var money = 0;
var __reflect = this && this.__reflect || function(t, e, i) {
		t.__class__ = e, i ? i.push(e) : i = [e], t.__types__ = t.__types__ ? i.concat(t.__types__) : i
	},
	__extends = this && this.__extends || function(t, e) {
		function i() {
			this.constructor = t
		}
		for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]);
		i.prototype = e.prototype, t.prototype = new i
	},
	__awaiter = this && this.__awaiter || function(t, e, i, n) {
		return new(i || (i = Promise))(function(a, o) {
			function r(t) {
				try {
					h(n.next(t))
				} catch (e) {
					o(e)
				}
			}

			function s(t) {
				try {
					h(n["throw"](t))
				} catch (e) {
					o(e)
				}
			}

			function h(t) {
				t.done ? a(t.value) : new i(function(e) {
					e(t.value)
				}).then(r, s)
			}
			h((n = n.apply(t, e || [])).next())
		})
	},
	__generator = this && this.__generator || function(t, e) {
		function i(t) {
			return function(e) {
				return n([t, e])
			}
		}

		function n(i) {
			if (a) throw new TypeError("Generator is already executing.");
			for (; h;) try {
				if (a = 1, o && (r = o[2 & i[0] ? "return" : i[0] ? "throw" : "next"]) && !(r = r.call(o, i[1])).done) return r;
				switch (o = 0, r && (i = [0, r.value]), i[0]) {
					case 0:
					case 1:
						r = i;
						break;
					case 4:
						return h.label++, {
							value: i[1],
							done: !1
						};
					case 5:
						h.label++, o = i[1], i = [0];
						continue;
					case 7:
						i = h.ops.pop(), h.trys.pop();
						continue;
					default:
						if (r = h.trys, !(r = r.length > 0 && r[r.length - 1]) && (6 === i[0] || 2 === i[0])) {
							h = 0;
							continue
						}
						if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {
							h.label = i[1];
							break
						}
						if (6 === i[0] && h.label < r[1]) {
							h.label = r[1], r = i;
							break
						}
						if (r && h.label < r[2]) {
							h.label = r[2], h.ops.push(i);
							break
						}
						r[2] && h.ops.pop(), h.trys.pop();
						continue
				}
				i = e.call(t, h)
			} catch (n) {
				i = [6, n], o = 0
			} finally {
				a = r = 0
			}
			if (5 & i[0]) throw i[1];
			return {
				value: i[0] ? i[1] : void 0,
				done: !0
			}
		}
		var a, o, r, s, h = {
			label: 0,
			sent: function() {
				if (1 & r[0]) throw r[1];
				return r[1]
			},
			trys: [],
			ops: []
		};
		return s = {
			next: i(0),
			"throw": i(1),
			"return": i(2)
		}, "function" == typeof Symbol && (s[Symbol.iterator] = function() {
			return this
		}), s
	},
	Dispose = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.resetDispose = function() {
			this._isDispose = !1
		}, e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.HashObject);
__reflect(Dispose.prototype, "Dispose", ["IDispose"]);
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.Sprite);
	t.GSprite = e, __reflect(e.prototype, "h5_engine.GSprite", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._aniLength = -1, t._scaleX = 1, t._scaleY = 1, t._aniScaleX = 1, t._aniScaleY = 1, t._alpha = 1, t._visible = !
				0, t._x = 0, t._y = 0, t._currentIndex = 0, t.init(), t
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "father", {
			get: function() {
				return this._father
			},
			set: function(t) {
				this._father = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.init = function() {
			this._canva = this.makeBitmap()
		}, i.prototype.makeBitmap = function() {
			return new t.FrameSprite
		}, i.prototype.setTo = function(t, e) {
			this._x = t, this._y = e
		}, i.prototype.seToPoint = function(t) {
			this.setTo(t.x, t.y)
		}, Object.defineProperty(i.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "scaleX", {
			get: function() {
				return this._scaleX
			},
			set: function(t) {
				this._scaleX != t && (this._scaleX = t, this.changeScaleX())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "scaleY", {
			get: function() {
				return this._scaleY
			},
			set: function(t) {
				this._scaleY != t && (this._scaleY = t, this.changeScaleY())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "visible", {
			get: function() {
				return this._visible
			},
			set: function(t) {
				var e = this;
				e._visible != t && (e._visible = t, e.view && (e.view.visible = t))
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "alpha", {
			get: function() {
				return this._alpha
			},
			set: function(t) {
				var e = this;
				e._alpha != t && (e._alpha = t, e.view && (e.view.alpha = t))
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.deleteAnimator = function() {
			var t = this;
			t._canva.blendMode = egret.BlendMode.NORMAL, t._canva.setSingleImage(null), t._ani && (t._ani.delPlayer(t), t._ani =
				null), t._aniLength = 0, t._currentIndex = 0
		}, Object.defineProperty(i.prototype, "aniLength", {
			get: function() {
				return this._aniLength
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.addAnimatior = function(t) {
			var e = this;
			null == t ? e.deleteAnimator() : (e._ani = t, e._aniScaleX = t.scaleX, e._aniScaleY = t.scaleY, e.changeScaleX(),
				e.changeScaleY(), t.addPlayer(e), e._aniLength = t.length, e._currentIndex >= e._aniLength && (e._currentIndex =
					0), e._canva.blendMode = t.blendMode, e.updateViewBmd())
		}, i.prototype.changeScaleX = function() {
			var t = this;
			t.view.scaleX = t._aniScaleX * t._scaleX
		}, i.prototype.changeScaleY = function() {
			var t = this;
			t.view.scaleY = t._aniScaleY * t._scaleY
		}, Object.defineProperty(i.prototype, "animator", {
			get: function() {
				return this._ani
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "view", {
			get: function() {
				return this._canva
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.restart = function() {
			this._currentIndex = 0
		}, i.prototype.updateViewBmd = function() {
			if (this._ani) {
				var t = this._ani.getImage(this._currentIndex),
					e = this._canva;
				t && e && t.texture && (e.setSingleImage(t), e.anchorOffsetX = -t.offsetX, e.anchorOffsetY = -t.offsetY, e.x =
					this._x, e.y = this._y)
			}
		}, Object.defineProperty(i.prototype, "currentIndex", {
			get: function() {
				return this._currentIndex
			},
			set: function(t) {
				var e = this;
				e._currentIndex != t && (e._currentIndex = t, e.updateViewBmd())
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.addParent = function(t) {
			this._parent != t && (this._parent = t, this._parent.addChild(this.view))
		}, Object.defineProperty(i.prototype, "parent", {
			get: function() {
				return this._parent
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.removeParent = function() {
			var t = this;
			t.view && t.view.parent && t.view.parent.removeChild(t.view), t._parent = null
		}, i.prototype.resetAndClear = function() {
			var t = this;
			t.view.rotation = 0, t.removeParent(), t.deleteAnimator(), t._x = 0, t._y = 0, t._scaleX = 1, t._scaleY = 1, t._aniScaleX =
				1, t._aniScaleY = 1, t.view.scaleX = 1, t.view.scaleY = 1, t.alpha = 1, t.visible = !0, t._father = null
		}, i.prototype.dispose = function() {
			e.prototype.dispose.call(this), this.resetAndClear(), this._canva && this._canva.dispose(), this._canva = void 0
		}, i
	}(Dispose);
	t.FramePlayer = e, __reflect(e.prototype, "h5_engine.FramePlayer")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function n() {
			var t = e.call(this) || this;
			return t._isMouseEnabled = !0, t.init(), t
		}
		return __extends(n, e), n.prototype.init = function() {
			var e = this;
			e._avatar = e.makeAvatar(), e._avatar.changePartDepthCallBack = new FunctionVO(e.changeAvatarPartDepth, e), e._avatar
				.playEndHanlder = new FunctionVO(e.playToEndFrame, e), e._filterPlugin = new t.FilterPlugin(e._avatar), e._container =
				new i, e._container.father = e, e._container.touchChildren = !0, e._container.touchEnabled = !0, e._container.addChild(
					e._avatar), e._roleHeadLayout = new t.RoleHeadLayout;
			var n = new t.AvatarHeadTextName;
			e._roleHeadLayout.addContent("name", 1, n), n.show()
		}, Object.defineProperty(n.prototype, "view", {
			get: function() {
				return this._container
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.removeFromParent = function() {
			var t = this;
			t._parent && (t._parent.removeChild(t._container), t._parent = null)
		}, n.prototype.addParent = function(t) {
			var e = this;
			e._parent != t && (e._parent && e.removeFromParent(), e._parent = t, e._parent.addChild(e._container))
		}, Object.defineProperty(n.prototype, "visible", {
			get: function() {
				return this._container.visible
			},
			set: function(t) {
				var e = this;
				e._container.visible = t, e.roleHeadLayout.visible = t, e.shadow && (e.shadow.visible = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(n.prototype, "alpha", {
			get: function() {
				return this._container.alpha
			},
			set: function(t) {
				var e = this;
				e._container.alpha = t, e.shadow && (e.shadow.alpha = t)
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.changeAvatarPartDepth = function(t) {
			this.avatar.changeAvatarPartDepth(this.getAvatarPartDepthList(t))
		}, n.prototype.getAvatarPartDepthList = function(t) {
			return null
		}, Object.defineProperty(n.prototype, "avatar", {
			get: function() {
				return this._avatar
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.makeAvatar = function() {
			return new t.Avatar
		}, Object.defineProperty(n.prototype, "shadow", {
			get: function() {
				return this._shadow
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.setShadow = function(t) {
			this._shadow != t && (this._shadow = t)
		}, Object.defineProperty(n.prototype, "roleHeadLayout", {
			get: function() {
				return this._roleHeadLayout
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(n.prototype, "nameBar", {
			get: function() {
				return this._roleHeadLayout.getContent("name")
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.checkHitPoint = function() {
			var t = !1;
			return 0 == t && (t = this._avatar.checkHitPoint()), t
		}, n.prototype.changeDirAction = function(t, e, i, n, a) {
			void 0 === e && (e = -1), void 0 === i && (i = !0), void 0 === n && (n = !1), void 0 === a && (a = 0);
			var o = this.avatar;
			o.dir = -1 == e ? o.dir : e, t == AvatarActionType.ACTION_TYPE_DIE && (i = !1), o.changeAct(t, i, n, a), o.play()
		}, n.prototype.changeDirActionABMode = function(t, e, i, n, a) {
			void 0 === n && (n = -1), void 0 === a && (a = !0);
			var o = this.avatar;
			o.dir = -1 == n ? o.dir : n, o.playPoint_AB(t, e, i, a), o.play()
		}, Object.defineProperty(n.prototype, "isMouseEnabled", {
			get: function() {
				return this._isMouseEnabled
			},
			set: function(t) {
				this._isMouseEnabled != t && (this._isMouseEnabled = t, this._container.touchEnabled = t)
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.mouseDown = function() {}, n.prototype.mouseOver = function() {
			this._filterPlugin && this._filterPlugin.mouseOver()
		}, n.prototype.mouseOut = function() {
			this._filterPlugin && this._filterPlugin.mouseOut()
		}, Object.defineProperty(n.prototype, "filterPlugin", {
			get: function() {
				return this._filterPlugin
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.playToEndFrame = function() {
			null != this.playEndFrameHandler && this.playEndFrameHandler.exec()
		}, n.prototype.remove = function() {
			this.dispose()
		}, Object.defineProperty(n.prototype, "playEndFrameHandler", {
			get: function() {
				return this._playEndFrameHandler
			},
			set: function(t) {
				this._playEndFrameHandler = t
			},
			enumerable: !0,
			configurable: !0
		}), n.prototype.addvanceTime = function(t) {
			var e = this;
			e._avatar && e._avatar.addvanceTime(t), e._roleHeadLayout && e._roleHeadLayout.addvanceTime(t)
		}, n.prototype.changePostion = function(t) {
			var e = this;
			e._container.x = t.x >> 0, e._container.y = t.y - .5 * t.z >> 0, e._shadow && (e._shadow.x = t.x + .5 * t.z >> 0,
				e._shadow.y = t.y + .25 * t.z >> 0), e.changeChildPosition(t.x, t.y, t.z), e.roleHeadLayout.resetPosition()
		}, n.prototype.changeChildPosition = function(t, e, i) {}, n.prototype.resetAndClear = function() {
			var t = this,
				e = t._roleHeadLayout;
			t.removeFromParent(), t.isMouseEnabled = !0, e && (e.visible = !0, e.removeFromParent()), e.hashConetnt("name") &&
				e.getContent("name").clear(), t._filterPlugin && t._filterPlugin.clearAll(), t._shadow && (t._shadow.dispose(), t
					._shadow = null), t._avatar && t._avatar.clear(), t._playEndFrameHandler = null
		}, n.prototype.dispose = function() {
			e.prototype.dispose.call(this);
			var t = this;
			t.resetAndClear(), t._roleHeadLayout && (t._roleHeadLayout.dispose(), t._roleHeadLayout = null), t._filterPlugin =
				null, t._avatar && t._avatar.dispose(), t._avatar = null
		}, n
	}(Dispose);
	t.BaseRole = e, __reflect(e.prototype, "h5_engine.BaseRole", ["ISceneInteractiveTings"]);
	var i = function(t) {
		function e() {
			return null !== t && t.apply(this, arguments) || this
		}
		return __extends(e, t), e
	}(t.GSprite);
	__reflect(i.prototype, "AvatarConatiner", ["IMapTing"])
}(h5_engine || (h5_engine = {}));
var RoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		e._name = "", e._mapId = -1, e._lastMapId = 0, e._faceDir = -1, e._stateLevel = 1, e._moveSpeed = 1, e._moveSpeedOft =
			0, e._nation = -1, e._serverId = 0, e._showGroup = 0, e._createTime = 0, e._mHeight = 120, e._mBaseHeight = 120, e._action =
			"", e._serverMap_x = -1, e._serverMap_y = -1, e._c_move_to_x = -1, e._c_move_to_y = -1, e._mapNodeX = -1, e._mapNodeY = -
			1, e._isInVisableArea = !1, e._changeVisible = !1, e._visible = !0, e._isPlaying = !0;
		var i = e;
		return i._isPlaying = !0, i._mHeight = 120, i._mBaseHeight = 120, i._p3D = new h5_engine.Point3D, i.initManagers(),
			i._roleView = i.createRoleView(), i._roleView.setRoleData(i), i._createTime = egret.getTimer(),
			RoleDataAdvanceTimeCenter.instance.addRoleData(i), e
	}
	return __extends(e, t), e.prototype.initManagers = function() {
		this._surface = App.thing.create(RoleSurfaceManager, "RoleData", !0), this._surface.setData(this, RoleSurfaceData),
			this._buffer = App.thing.create(RoleBufferManager, "RoleData", !0), this._buffer.setData(this), this._actionList =
			App.thing.create(RoleDataActionList, "RoleData", !0), this._actionList.setData(this)
	}, e.prototype.clearManager = function() {
		this._buffer.clear(), this._surface.clear()
	}, e.prototype.initRoldData = function(t) {}, Object.defineProperty(e.prototype, "modelHeight", {
		get: function() {
			return this._mHeight
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setModelBaseHeight = function(t) {
		this._mBaseHeight != t && (this._mBaseHeight = t, this._mHeight = this._mBaseHeight)
	}, Object.defineProperty(e.prototype, "bufferManager", {
		get: function() {
			return this._buffer
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceManager", {
		get: function() {
			return this._surface
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.crossDressing = function(t) {
		this._crossData = t
	}, e.prototype.createRoleView = function() {
		return null
	}, Object.defineProperty(e.prototype, "roleView", {
		get: function() {
			return this._roleView
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "move_to_y", {
		get: function() {
			return this._c_move_to_y
		},
		set: function(t) {
			this._c_move_to_y = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "move_to_x", {
		get: function() {
			return this._c_move_to_x
		},
		set: function(t) {
			this._c_move_to_x = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "serverMap_y", {
		get: function() {
			return this._serverMap_y
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "serverMap_x", {
		get: function() {
			return this._serverMap_x
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mapNode_x", {
		get: function() {
			return this._mapNodeX
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mapNode_y", {
		get: function() {
			return this._mapNodeY
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pixel_x", {
		get: function() {
			return this._p3D.x >> 0
		},
		set: function(t) {
			var e = this;
			e._p3D.x != t && (e._p3D.x = t >> 0, e._isChangePostion = !0)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pixel_y", {
		get: function() {
			return this._p3D.y >> 0
		},
		set: function(t) {
			var e = this;
			e._p3D.y != t && (e._p3D.y = t >> 0, e._isChangePostion = !0)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pixel_z", {
		get: function() {
			return this._p3D.z >> 0
		},
		set: function(t) {
			var e = this;
			e._p3D.z != t && (e._p3D.z = t >> 0, e._isChangePostion = !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setMapPos = function(t, e) {
		var i = this;
		if (i._serverMap_x != t || i._serverMap_y != e) var n = !0;
		i._serverMap_x = t, i._serverMap_y = e;
		var a = i._serverMap_x / h5_engine.MapConfig.MAP_NODE_WIDTH >> 0,
			o = i._serverMap_y / h5_engine.MapConfig.MAP_NODE_HEIGHT >> 0;
		App.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(i, a, o, i._mapNodeX, i._mapNodeY), i._mapNodeX = a, i._mapNodeY =
			o, n && i.resetIsInVisiableArea()
	}, Object.defineProperty(e.prototype, "actionList", {
		get: function() {
			return this._actionList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "serverid", {
		get: function() {
			return this._serverId
		},
		set: function(t) {
			this._serverId = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "StateLevel", {
		get: function() {
			return this._stateLevel
		},
		set: function(t) {
			this._stateLevel = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "nation", {
		get: function() {
			return this._nation
		},
		set: function(t) {
			this._nation = t, this.changeNation()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeNation = function() {
		this.setName(this._name)
	}, Object.defineProperty(e.prototype, "faceDir", {
		get: function() {
			return this._faceDir
		},
		set: function(t) {
			var e = this;
			e._faceDir != t && (e._faceDir = -1 == t ? e._faceDir : t, e.changeDirAction(e._action, e._faceDir))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "action", {
		get: function() {
			return this._action
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeDirAction = function(t, e, i, n, a) {
		void 0 === e && (e = -1), void 0 === i && (i = !0), void 0 === n && (n = !1), void 0 === a && (a = 0);
		var o = this;
		o._action = t, o._faceDir = -1 == e ? o._faceDir : e, o._roleView && o._roleView.changeDirAction(t, o._faceDir, i,
			n, a)
	}, e.prototype.showEffect = function(t, e, i, n, a, o) {
		return void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = null), void 0 === o && (o = 1), this._roleView ?
			EffectUtils.showOnceEffect(t, this._roleView.view, e, i, n, a, o) : null
	}, Object.defineProperty(e.prototype, "lastMapId", {
		get: function() {
			return this._lastMapId
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mapId", {
		get: function() {
			return this._mapId
		},
		set: function(t) {
			var e = this;
			e._mapId != t && (e._lastMapId = e._mapId, e._mapId = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.resetIsInVisiableArea = function() {
		var t = this,
			e = App.global.mapModule.mapAvatarModel.checkIsInVisibleArea(t);
		t._isInVisableArea != e && (t._isInVisableArea = e, t._changeVisible = !0)
	}, Object.defineProperty(e.prototype, "name", {
		get: function() {
			return this._name
		},
		set: function(t) {
			this._name = t, this.setName(t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setName = function(t, e, i) {
		void 0 === e && (e = 16777215), void 0 === i && (i = !1);
		var n = Config.isDebug ? " >ID: " + this._personId : "",
			a = t + n;
		this._roleView.nameBar.setName(a, e, 18, !1, i)
	}, Object.defineProperty(e.prototype, "personId", {
		get: function() {
			return this._personId
		},
		set: function(t) {
			this._personId = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "moveSpeed", {
		get: function() {
			return this._moveSpeed
		},
		set: function(t) {
			this._moveSpeed = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "moveSpeedOft", {
		get: function() {
			return this._moveSpeedOft
		},
		set: function(t) {
			this._moveSpeedOft = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showGroup", {
		get: function() {
			return this._showGroup
		},
		set: function(t) {
			this._showGroup != t && (this._showGroup = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getMoveTime = function(t, e, i, n, a, o) {
		void 0 === o && (o = !1);
		var r = this,
			s = .48,
			h = 0,
			l = 2 * h5_engine.MapConfig.MAP_NODE_WIDTH,
			p = h5_engine.MapConfig.MAP_NODE_WIDTH,
			c = 0;
		return o ? (t != i && e != n ? (s = .576, h = 2 == a ? Math.sqrt(l * l + l * l) : Math.sqrt(p * p + p * p)) : h = 2 ==
			a ? l : p, c = MathUnit.distance_Map(i, n, t, e) / h * s * r.moveSpeed + r._moveSpeedOft / 1e3) : (t != i && e !=
			n && (s = .576), c = s * r.moveSpeed + r._moveSpeedOft / 1e3), 2 == a ? c : .5 * c
	}, e.prototype.stopAndMoveTo = function(t, e, i, n) {
		void 0 === n && (n = !0);
		var a = this;
		n && a._actionList && a._actionList.clear(), a.setMapPos(e, i), a.pixel_x = a._c_move_to_x = e, a.pixel_y = a._c_move_to_y =
			i, App.global.mapModule.mapAvatarModel.setRoleNodeAplha(a, null, a._mapNodeX, a._mapNodeY)
	}, Object.defineProperty(e.prototype, "isInVisableArea", {
		get: function() {
			return this._isInVisableArea
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.actionListAdvanceTime = function(t) {
		this._actionList && this._actionList.addvanceTime(t)
	}, Object.defineProperty(e.prototype, "visible", {
		get: function() {
			return this._visible
		},
		set: function(t) {
			this._visible != t && (this._visible = t, this._changeVisible = !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addvanceTime = function(t) {
		var e = this;
		e.actionListAdvanceTime(t), e._changeVisible && (e._changeVisible = !1, e._isInVisableArea && e._visible ? App.global
				.mapModule.mapAvatarModel.addRoleToScene(e) : App.global.mapModule.mapAvatarModel.removeRoleToScene(e)), e._buffer &&
			e._buffer.addvanceTime(t), e._isInVisableArea && e._visible && (e._roleView.addvanceFightNumber(t), e._isPlaying &&
				e._roleView.addvanceTime(t), e._isChangePostion && e.changePostion())
	}, e.prototype.changePostion = function() {
		var t = this;
		t._isPlaying && (t._roleView.changePostion(t._p3D), t._roleView.moveCallBack(t._p3D.x, t._p3D.y), t._isChangePostion = !
			1)
	}, e.prototype.startMove = function(t, e) {
		this._roleView.settingEndRun(0)
	}, e.prototype.progressMove = function(t, e) {
		var i = this;
		i._p3D.x = t, i._p3D.y = e, i.changePostion()
	}, e.prototype.endMove = function(t, e, i) {
		void 0 === i && (i = "");
		var n = this;
		n._p3D.x = t, n._p3D.y = e, n._isChangePostion = !0, n._roleView.settingEndRun(30)
	}, e.prototype.playAnimation = function() {
		this._isPlaying = !0, this.changePostion()
	}, e.prototype.stopAnimation = function() {
		this._isPlaying = !1
	}, e.prototype.dispose = function() {
		var e = this;
		t.prototype.dispose.call(this), RoleDataAdvanceTimeCenter.instance.deleteRoleData(e), e._mBaseHeight = 120, e._mHeight =
			e._mBaseHeight, e._actionList && (e._actionList.putPoolClear(), App.thing.putIn(e._actionList), e._actionList =
				null), e._surface && (e._surface.dispose(), e._surface = null), e._buffer && (e._buffer.dispose(), e._buffer =
				null), e._crossData = null, e._roleView && e._roleView.dispose(), e._roleView = null, e._changeVisible = !1, App.dispatcher
			.dispatchEvent(PlayerAttributeEvent.ROLE_DISPOSE, e._personId)
	}, Object.defineProperty(e.prototype, "mountInfo", {
		get: function() {
			return this._mountInfo
		},
		set: function(t) {
			this._mountInfo = t;
			var e = this;
			App.dispatcher.dispatchEvent(AdvanceEvent.UPDATE_ADVANCEINFO, AdvanceType.zuoqi, e._personId)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "fazhenInfo", {
		get: function() {
			return this._fazhenInfo
		},
		set: function(t) {
			this._fazhenInfo = t;
			var e = this;
			App.dispatcher.dispatchEvent(AdvanceEvent.UPDATE_ADVANCEINFO, AdvanceType.fazhen, e._personId)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "tianBingInfo", {
		get: function() {
			return this._tianBingInfo
		},
		set: function(t) {
			this._tianBingInfo = t;
			var e = this;
			App.dispatcher.dispatchEvent(AdvanceEvent.UPDATE_ADVANCEINFO, AdvanceType.tianbing, e._personId)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "guangyiInfo", {
		get: function() {
			return this._guangyiInfo
		},
		set: function(t) {
			this._guangyiInfo = t;
			var e = this;
			App.dispatcher.dispatchEvent(AdvanceEvent.UPDATE_ADVANCEINFO, AdvanceType.guangyi, e._personId)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "binghunInfo", {
		get: function() {
			return this._binghunInfo
		},
		set: function(t) {
			this._binghunInfo = t;
			var e = this;
			App.dispatcher.dispatchEvent(AdvanceEvent.UPDATE_ADVANCEINFO, AdvanceType.binghun, e._personId)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(Dispose);
__reflect(RoleData.prototype, "RoleData", ["IMoveTargetPoint"]);
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._delayChangeAvatarPartAniNameHash = new HashObject, t
		}
		return __extends(i, e), i.prototype.init = function() {
			e.prototype.init.call(this);
			var t = this;
			t._bufferEffectHash = new HashObject, t._bufferEffectCountHash = new HashObject, t._bufferColorFilterCountHash =
				new HashObject
		}, i.prototype.changeGreenPointState = function() {
			var t = this;
			Config.isDebug ? (t.view.graphics.beginFill(65280, 1), t.view.graphics.drawRect(-2, -2, 4, 4), t.view.graphics.endFill()) :
				t.view.graphics.clear()
		}, Object.defineProperty(i.prototype, "cavatar", {
			get: function() {
				return this.avatar
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.makeAvatar = function() {
			return new t.CAvatar(this)
		}, i.prototype.makeShadow = function() {
			var e = this;
			null == e.shadow && e.setShadow(t.Shadow.getShadow()), e._roleData ? (e.shadow.x = e._roleData.pixel_x, e.shadow.y =
				e._roleData.pixel_y) : (e.shadow.x = 0, e.shadow.y = 0)
		}, i.prototype.addAvatar = function() {
			var t = this;
			i.lastSelectRole == t ? t.view.addChildAt(t.avatar, 1) : t.view.addChildAt(t.avatar, 0);
			var e = t._bufferEffectHash.$_getValueMap();
			for (var n in e) {
				var a = e[n];
				a.addParent(t.view)
			}
		}, i.prototype.removeAvatar = function(t) {
			void 0 === t && (t = !1);
			var e = this;
			e.avatar.parent == e.view && e.view.removeChild(e.avatar);
			var i = e._bufferEffectHash.$_getValueMap();
			for (var n in i) {
				var a = i[n];
				a.removeParent()
			}
		}, i.prototype.addBufferFilter = function(t, e) {
			var i = this;
			if (0 == i._bufferColorFilterCountHash.has(t)) i.filterPlugin.addFilter(t, e), i._bufferColorFilterCountHash.put(t,
				1);
			else {
				var n = i._bufferColorFilterCountHash.get(t);
				n++, i._bufferColorFilterCountHash.put(t, n)
			}
		}, i.prototype.removeBufferFilter = function(t) {
			var e = this;
			if (e._bufferColorFilterCountHash.has(t)) {
				var i = e._bufferColorFilterCountHash.get(t);
				i--, 0 >= i ? (e.filterPlugin.removeFilter(t), e._bufferColorFilterCountHash.del(t)) : e._bufferColorFilterCountHash
					.put(t, i)
			}
		}, i.prototype.addBufferEffect = function(t, e, n, a, o, r) {
			void 0 === e && (e = 0), void 0 === n && (n = 0), void 0 === a && (a = 1), void 0 === o && (o = 1), void 0 === r &&
				(r = -1);
			var s = this;
			if (0 == s._bufferEffectHash.has(t)) {
				s.cavatar.getCAvavtarPatr(AvatarPartType.HORSE) && (n += i.BUFFER_HORSE_OFFSET_Y);
				var h = EffectUtils.showBuffEffect("SceneRole", s.view, t, e, n, null);
				h.pasueFrame = r, h.scaleX = a, h.scaleY = o, null == s.avatar.parent && h.removeParent(), s._bufferEffectHash.put(
					t, h), s._bufferEffectCountHash.put(t, 1)
			} else {
				var l = s._bufferEffectCountHash.get(t);
				l++, s._bufferEffectCountHash.put(t, l)
			}
		}, i.prototype.deleteBufferEffect = function(t) {
			var e = this;
			if (e._bufferEffectHash.has(t)) {
				var i = e._bufferEffectCountHash.get(t);
				if (i--, 0 >= i) {
					if (e._bufferEffectCountHash.del(t), e._bufferEffectHash.has(t)) {
						var n = e._bufferEffectHash.get(t);
						n.endAnimation(), e._bufferEffectHash.del(t)
					}
				} else e._bufferEffectCountHash.put(t, i)
			}
		}, i.prototype.addFootEffect = function(t) {
			void 0 === t && (t = "");
			var e = this;
			t ? (null == e._footEffect && (e._footEffect = App.thing.create(FootEffect, "SceneRole", !0)), e._footEffect.url =
					t, e._footEffect.addParent(App.layer.sceneLayer.footAniLayer), e._footEffect.setTo(0, 0), e._footEffect.play()) :
				!t && e._footEffect && (e._footEffect.dispose(), e._footEffect = null)
		}, i.prototype.addSelectEffect = function(e) {
			void 0 === e && (e = null);
			var n = this,
				a = !1;
			if (n._roleData && (a = App.global.mapModule.mapQuickSelect.checkIsEnemy(n._roleData.personId, App.global.characterData)),
				i.lastSelectRole && i.lastSelectRole != n && i.lastSelectRole.removeSelectEffect(), i.lastSelectRole = n, e || (e =
					a ? ResPathUtil.getMenuEffect("guangquan", "small") : ResPathUtil.getMenuEffect("guangquan", "lvse")), e) {
				var o = n._seleteEffect;
				o && o.url != e && (o.dispose(), o = null, n._seleteEffect = null), null == o && (o = App.thing.create(FootEffect,
						"SceneRole", !0), n._seleteEffect = o, o.url = e, o.play()), o.setTo(n._roleData.pixel_x, n._roleData.pixel_y),
					o.addParent(App.layer.sceneLayer.footAniLayer)
			}
			var r;
			r = a ? t.FilterPlugin.downFilter_2 : n._roleData instanceof MapNpcRoleData ? t.FilterPlugin.downFilter_1 : t.FilterPlugin
				.downFilter_3, n.filterPlugin.addFilter("down", r)
		}, i.prototype.removeSelectEffect = function() {
			var t = this;
			t.filterPlugin && t.filterPlugin.removeFilter("down"), i.lastSelectRole == t && (i.lastSelectRole = null, t._seleteEffect &&
				(t._seleteEffect.dispose(), t._seleteEffect = null))
		}, i.prototype.resizeChildPosition = function() {
			var t = this,
				e = 0;
			if ((t.cavatar.getCAvavtarPatr(AvatarPartType.HORSE) || t._delayChangeAvatarPartAniNameHash.has(AvatarPartType.HORSE)) &&
				(e = i.BUFFER_HORSE_OFFSET_Y), t._bufferEffectHash && t._bufferEffectHash.length > 0) {
				var n = t._bufferEffectHash.$_getValueMap();
				for (var a in n) {
					var o = n[a];
					o.y = e
				}
			}
		}, i.prototype.changeChildPosition = function(t, e, i) {
			var n = this;
			n._footEffect && (n._footEffect.x = t, n._footEffect.y = e), n._seleteEffect && (n._seleteEffect.x = t, n._seleteEffect
				.y = e), n.roleHeadLayout.x = t, n.roleHeadLayout.y = e
		}, i.prototype.setRoleData = function(t) {
			this._roleData = t
		}, i.prototype.getRoleData = function() {
			return this._roleData
		}, i.prototype.resetAndClear = function() {
			var t = this;
			App.global.mouseUnit == t && (App.global.mouseUnit = null), i.lastSelectRole == t && (i.lastSelectRole.removeSelectEffect(),
					i.lastSelectRole = null), t._bufferEffectHash && (t._bufferEffectHash.forInValExcFucName("dispose"), t._bufferEffectHash
					.clear()), t._bufferEffectCountHash && t._bufferEffectCountHash.clear(), t._bufferColorFilterCountHash && t._bufferColorFilterCountHash
				.clear(), t._footEffect && (t._footEffect.dispose(), t._footEffect = null), t._seleteEffect && (t._seleteEffect.dispose(),
					t._seleteEffect = null), t._roleData = null, t.visible = !0, t.alpha = 1, e.prototype.resetAndClear.call(this)
		}, i.prototype.dispose = function() {
			var t = this;
			t._bufferEffectHash.dispose(), t._bufferEffectHash = null, t._bufferEffectCountHash.dispose(), t._bufferEffectCountHash =
				null, t._bufferColorFilterCountHash.dispose(), t._bufferColorFilterCountHash = null, e.prototype.dispose.call(
					this)
		}, Object.defineProperty(i.prototype, "bufferColorFilterCountHash", {
			get: function() {
				return this._bufferColorFilterCountHash
			},
			enumerable: !0,
			configurable: !0
		}), i.BUFFER_HORSE_OFFSET_Y = -50, i
	}(t.BaseRole);
	t.SceneRole = e, __reflect(e.prototype, "h5_engine.SceneRole")
}(h5_engine || (h5_engine = {}));
var ViewBase = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._euiSkinName = "", i._hasCreated = !1, i.isDispose = !1, i.createCompleteFun = e, i.touchEnabled = !1, i._dispatcher =
			new DispatcherRegister, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "euiSkinName", {
		get: function() {
			return this._euiSkinName
		},
		set: function(t) {
			this._hasCreated || (this._hasCreated = !0, this._euiSkinName = t, this.createView())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.createView = function() {
		this.addEventListener(eui.UIEvent.COMPLETE, this.createComplete, this), this.skinName = this.euiSkinName
	}, Object.defineProperty(e.prototype, "hasCreated", {
		get: function() {
			return this._hasCreated
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.createComplete = function() {
		this.removeEventListener(eui.UIEvent.COMPLETE, this.createComplete, this), void 0 != this.createCompleteFun && this
			.createCompleteFun.exec(), this.dispatchEvent(new GameEvent(e.EUI_SKIN_COMPLETE, this.euiSkinName))
	}, e.prototype.show = function(t) {
		void 0 === t && (t = null)
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners()
	}, e.prototype.resize = function() {}, e.prototype.dispose = function() {
		this.roleList && (this.roleList.destroy(), this.roleList = null), this.funcOpenView && (this.funcOpenView.dispose(),
				this.funcOpenView = null), this.fightPower && (this.fightPower.dispose(), this.fightPower = null), this._dispatcher &&
			(this._dispatcher.dispose(), this._dispatcher = null), this.createCompleteFun = null, this._hasCreated = !1, this.isDispose = !
			0, this.callback = null, this.args = null, this.remove()
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t, this.y = e, i && i.addChild(this)
	}, e.prototype.remove = function() {
		this.parent && this.parent.removeChild(this)
	}, e.EUI_SKIN_COMPLETE = "eui_skin_complete", e
}(eui.Component);
__reflect(ViewBase.prototype, "ViewBase", ["IView", "IDispose"]);
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this, e) || this;
			return i._isDispose = !1, i
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.Bitmap);
	t.GBitmap = e, __reflect(e.prototype, "h5_engine.GBitmap", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.DisplayObjectContainer);
	t.GDisplayObjectContainer = e, __reflect(e.prototype, "h5_engine.GDisplayObjectContainer", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._action = null, i._dir = -1, i._partType = -1, i._partType = e, i
		}
		return __extends(e, t), e.prototype.init = function() {
			t.prototype.init.call(this)
		}, e.prototype.changeAnimator = function(t, e) {
			var i = this;
			return i._action != t || i._dir != e ? (i._action = t, i._dir = e, !0) : !1
		}, e.prototype.addvanceTime = function(t) {}, Object.defineProperty(e.prototype, "partType", {
			get: function() {
				return this._partType
			},
			set: function(t) {
				this._partType = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "action", {
			get: function() {
				return this._action
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "dir", {
			get: function() {
				return this._dir
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.clearActionAndDir = function() {
			this._dir = -1, this._action = null
		}, e.prototype.resetAndClear = function() {
			this.clearActionAndDir(), t.prototype.resetAndClear.call(this)
		}, e.prototype.dispose = function() {
			this._partType = -1, t.prototype.dispose.call(this)
		}, e
	}(t.FramePlayer);
	t.AvatarPart = e, __reflect(e.prototype, "h5_engine.AvatarPart")
}(h5_engine || (h5_engine = {}));
var MapFightRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._hp = -1, e._maxHp = -1, e._mp = -1, e._maxMp = -1, e._ng = -1, e._maxNg = -1, e._positions = [], e._isDead = !
			1, e._isGather = !1, e._speed = 1, e._level = -1, e._fightWeightValue = 0, e._group = 0, e._atkSpeed = 1, e._guildId =
			"", e._skillAniMap = new HashObject, e._petHash = new HashObject, e._aiRoleState = "", e._isFightAiRuning = !1, e._isInAutoSearchRoad = !
			1, e._isClientDead = !1, e._clientHp = 0, e._clientDeadTime = 0, e._isJumping = !1, e._roleIdleTime = 0, e._lastAttackRoleId =
			"", e._refreshHp = !1, e._refreshMp = !1, e._refreshNg = !1, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "AIRoleState", {
		get: function() {
			return this._aiRoleState
		},
		set: function(t) {
			this._aiRoleState == EnumAIRobotState.ROLE_PICK_ITEM && t == EnumAIRobotState.ROLE_WAIT && GameLog.log(
				"拾取切换到等待 -> ROLE_PICK_ITEM to ROLE_WAIT"), this._aiRoleState = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "petHash", {
		get: function() {
			var t = this;
			return null == t._petHash && (t._petHash = new HashObject), t._petHash
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isJumping", {
		get: function() {
			return this._isJumping
		},
		set: function(t) {
			this._isJumping != t && (this._isJumping = t, this.ai && (this.ai.isRuning = !t))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getIsInAutoSearchRoad = function() {
		return this._isInAutoSearchRoad
	}, e.prototype.changeAutoSearchRoad = function(t) {
		this._isInAutoSearchRoad = t, App.dispatcher.dispatchEvent(EventType.AUTO_SEARCH_ROAD, t)
	}, e.prototype.openFightAi = function(t) {
		this.fightParma = t, this.isFightAiRuning = !0
	}, e.prototype.closeFightAi = function() {
		this.fightParma = null, this.isFightAiRuning = !1
	}, Object.defineProperty(e.prototype, "isFightAiRuning", {
		get: function() {
			return this._isFightAiRuning
		},
		set: function(t) {
			var e = this;
			t != e._isFightAiRuning && (e._isFightAiRuning = t, e.changeAiProcessor(), App.dispatcher.dispatchEvent(
				PlayerAttributeEvent.CHANGE_AUTO_ROBOT, t), App.dispatcher.dispatchEvent(EventType.AUTO_FIGHT_SIGN, t))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeAiProcessor = function() {
		var t = this;
		t._isFightAiRuning ? (t._isInAutoSearchRoad = !1, AIFactory.createAi(t, EnumAiType.FIGHT_PVE, t.fightParma)) :
			AIFactory.createAi(t, EnumAiType.auxiliary)
	}, Object.defineProperty(e.prototype, "roleIdleTime", {
		get: function() {
			return this._roleIdleTime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "stopTime", {
		get: function() {
			return 0
		},
		set: function(t) {
			this._roleIdleTime = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "clientHp", {
		get: function() {
			return this._clientHp
		},
		set: function(t) {
			this._clientHp = t, 0 >= t && (this.isClientDead = !0)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isClientDead", {
		get: function() {
			return this._isClientDead
		},
		set: function(t) {
			var e = this;
			t != e._isClientDead && (e._isClientDead = t, e._clientDeadTime = 2e3)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addvanceTime = function(e) {
		var i = this;
		t.prototype.addvanceTime.call(this, e), i._roleIdleTime += e, i._clientDeadTime > 0 && (i._clientDeadTime -= e, i._clientDeadTime <=
			0 && (i._hp > 0 || 0 == i._isDead) && (i._clientHp = i._hp, i._isClientDead = !1)), i.ai && i.ai.addvanceTime(e)
	}, Object.defineProperty(e.prototype, "atkSpeed", {
		get: function() {
			return this._atkSpeed
		},
		set: function(t) {
			this._atkSpeed = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "searchToPointVo", {
		get: function() {
			return this._searchVo
		},
		set: function(t) {
			var e = this;
			t != e._searchVo && (e._searchVo && (SearchToPointVO.putInfo(e._searchVo), e._searchVo = null), e._searchVo = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.resetSearchNewRoadToPoint = function(t, e) {
		void 0 === e && (e = null);
		var i = this;
		e && (i.searchToPointVo = e), i.searchToPointVo && i.actionList.setNext(new SearchNewRoadAction(t))
	}, e.prototype.stopAndMoveTo = function(e, i, n, a) {
		void 0 === a && (a = !0);
		var o = this;
		o.searchToPointVo && (o.searchToPointVo = null), a && 0 == o.getIsDead() && o.changeDirAction(AvatarActionType.ACTION_TYPE_STAND),
			t.prototype.stopAndMoveTo.call(this, e, i, n, a)
	}, e.prototype.getIsDead = function() {
		return this._isDead
	}, e.prototype.setIsDead = function(t) {
		var e = this;
		e.searchToPointVo = null, e._isDead != t && (e._isDead = t, e._isDead ? (e.setDeadState(), e.changeDirAction(
				AvatarActionType.ACTION_TYPE_DIE, -1, !1, !0), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_DEAD, e.personId)) :
			(e.changeDirAction(AvatarActionType.ACTION_TYPE_STAND), App.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(e,
				e._mapNodeX, e._mapNodeY, -1, -1), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_RELIVE, e.personId)))
	}, e.prototype.setDeadState = function() {
		var t = this;
		t.closeFightAi(), t._actionList.clear(), t.setCrtHp(0), t.setCrtNg(0), t._roleView.hpBar.hide(), t._roleView.nameBar
			.hide(), App.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(t, -1, -1, t._mapNodeX, t._mapNodeY)
	}, Object.defineProperty(e.prototype, "isGather", {
		get: function() {
			return this._isGather
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setGatherState = function(t) {
		this._isGather = t
	}, Object.defineProperty(e.prototype, "group", {
		get: function() {
			return this._group
		},
		set: function(t) {
			this._group != t && (this._group = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "speed", {
		get: function() {
			return this._speed
		},
		set: function(t) {
			this._speed = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getLevel = function() {
		return this._level
	}, e.prototype.setLevel = function(t) {
		this._level != t && (this._level = t)
	}, Object.defineProperty(e.prototype, "positions", {
		get: function() {
			return this._positions
		},
		set: function(t) {
			this._positions != t && (this._positions = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getTeamId = function() {
		return this._teamId
	}, e.prototype.setTeamId = function(t) {
		this._teamId = t
	}, Object.defineProperty(e.prototype, "guildId", {
		get: function() {
			return this._guildId
		},
		set: function(t) {
			this._guildId != t && (this._guildId = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "maxHp", {
		get: function() {
			return this._maxHp
		},
		set: function(t) {
			var e = this;
			e._maxHp != t && (e._maxHp = t, e._refreshHp = !0, e.refreshCurrentHp())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "hp", {
		get: function() {
			return this._hp
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setCrtHp = function(t, e) {
		void 0 === e && (e = !0);
		var i = this;
		i._hp != t && (i._hp = t, i._refreshHp = !0, e && i.refreshCurrentHp())
	}, Object.defineProperty(e.prototype, "maxMp", {
		get: function() {
			return this._maxMp
		},
		set: function(t) {
			var e = this;
			t != e._maxMp && (e._maxMp = t, e._refreshMp = !0, e.refreshCurrentMp())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mp", {
		get: function() {
			return this._mp
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setCrtMp = function(t, e) {
		void 0 === e && (e = !0);
		var i = this;
		t != i._mp && (i._mp = t, i._refreshMp = !0, e && i.refreshCurrentMp())
	}, Object.defineProperty(e.prototype, "maxNg", {
		get: function() {
			return this._maxNg
		},
		set: function(t) {
			var e = this;
			t != e._maxNg && (e._maxNg = t, e._refreshNg = !0, e.refreshCurrentNg())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "ng", {
		get: function() {
			return this._ng
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setCrtNg = function(t, e) {
		void 0 === e && (e = !0);
		var i = this;
		t != i._ng && (i._ng = t, i._refreshNg = !0, e && i.refreshCurrentNg())
	}, e.prototype.setHp = function(t, e) {
		var i = this;
		(i._hp != t || i._maxHp != e) && (i._hp = t, i._maxHp = e, i._refreshHp = !0, i.refreshCurrentHp())
	}, e.prototype.setMp = function(t, e) {
		var i = this;
		(i._mp != t || i._maxMp != e) && (i._mp = t, i._maxMp = e, i._refreshMp = !0, i.refreshCurrentMp())
	}, e.prototype.setNg = function(t, e) {
		var i = this;
		(i._ng != t || i._ng != e) && (i._ng = t, i._maxNg = e, i._refreshNg = !0, i.refreshCurrentNg())
	}, e.prototype.refreshCurrentHp = function() {
		var t = this;
		return t._refreshHp ? (0 == t.isDispose && t._roleView && t._roleView.hpBar.settingHpValue(t._hp, t._maxHp), t._refreshHp = !
			1, !0) : !1
	}, e.prototype.refreshCurrentMp = function() {
		return this._refreshMp ? (this._refreshMp = !1, !0) : !1
	}, e.prototype.refreshCurrentNg = function() {
		var t = this;
		return t._refreshNg ? (0 == t.isDispose && t._roleView && t._roleView.hpBar.settingNeiGongValue(t._ng, t._maxNg), t
			._refreshNg = !1, !0) : !1
	}, e.prototype.getSkillAniProMap = function() {
		return this._skillAniMap
	}, e.prototype.setSkillAniProMap = function(t) {
		var e = this._skillAniMap.get(t.fightActionId);
		e && e.dispose(), this._skillAniMap.put(t.fightActionId, t)
	}, Object.defineProperty(e.prototype, "fightWeightValue", {
		get: function() {
			return this._fightWeightValue
		},
		set: function(t) {
			this._fightWeightValue = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastAttackRoleId", {
		get: function() {
			return this._lastAttackRoleId
		},
		set: function(t) {
			this._lastAttackRoleId = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		var t = this;
		t._skillAniMap && (t._skillAniMap.forInValExcFucName("dispose"), t._skillAniMap.dispose(), t._skillAniMap = null)
	}, e.prototype.dispose = function() {
		var e = this;
		e.ai && e.ai.dispose(), e.ai = null, e.clear(), e._positions = null, t.prototype.dispose.call(this)
	}, e
}(RoleData);
__reflect(MapFightRoleData.prototype, "MapFightRoleData");
var ActChargeBaseView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isOpen = !0, e.count = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ActConChargeSkin"), this.addChild(this._view), this._scrollPanel = new VScrollPanel(
			640, 520, ActConChargeItemRender, 5), this._scrollPanel.move(25, 160, this)
	}, e.prototype.updatePanel = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.updatePanel,
			this), this.isOpen = !0
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.key, this), App.timer.clearTimer(this.referview, this), this
			.key = null, this.isOpen = !0, this._view.hide(), this._scrollPanel.removeAll()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.key, this), App.timer.clearTimer(this.referview, this), this.key = null, this.isOpen = !1,
			null != this._view && (this._view.dispose(), this._view = null), null != this._scrollPanel && (this._scrollPanel.dispose(),
				this._scrollPanel = null), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose.call(this)
	}, e.prototype.ontimer = function(t) {}, e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom = function(t) {
		this._scrollPanel.viewport.validateDisplayList(), this._scrollPanel.validateNow(), this._scrollPanel.viewport.contentHeight >
			this._scrollPanel.viewport.height ? this.isOpen ? this._scrollPanel.viewport && (this._scrollPanel.viewport.scrollV =
				this._scrollPanel.viewport.contentHeight - (this._scrollPanel.viewport.contentHeight - 168 * t)) : (this._scrollPanel
				.viewport && (this.count = this._scrollPanel.viewport.scrollV), App.timer.doFrameLoop(this, 1, this.referview, [t])
			) : this._scrollPanel.viewport && (this._scrollPanel.viewport.scrollV = 0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 4, this.count >= 168 * t ? (this._scrollPanel.viewport && (this._scrollPanel.viewport.scrollV =
			168 * t), App.timer.clearTimer(this.referview, this)) : this._scrollPanel.viewport && (this._scrollPanel.viewport
			.scrollV = this.count)
	}, e
}(ViewBase);
__reflect(ActChargeBaseView.prototype, "ActChargeBaseView");
var AIProcessor = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isRuning = !0, e._lastRunTime = 0, e._passTime = 0, e
	}
	return __extends(e, t), e.prototype.setRoleData = function(t) {
		this._roleData = t
	}, e.prototype.setParma = function(t) {
		this._parma = t
	}, e.prototype.start = function() {}, e.prototype.reset = function() {}, e.prototype.end = function() {
		this._roleData = null, this._parma = null
	}, e.prototype.getGapTime = function() {
		return 1e6
	}, e.prototype.getRuningTime = function() {
		return this._passTime
	}, e.prototype.addvanceTime = function(t) {
		var e = this;
		if (1 == e.isRuning) {
			e._passTime += t;
			var i = e.getGapTime() + e._lastRunTime;
			e._passTime >= i && (e._lastRunTime = i, e.updateHandler(t))
		}
	}, e.prototype.updateHandler = function(t) {}, e
}(Dispose);
__reflect(AIProcessor.prototype, "AIProcessor");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.hidenName = function() {
					t.roleHeadLayout.hashConetnt(AvatarHeadType.NAME_BAR) && t.roleHeadLayout.removeContent(AvatarHeadType.NAME_BAR)
				}, t._isChangeRun = 0, t._bubbleShowPassTime = 0, t._resultNumberGapTime = 80, t._resultPassTime = 0, t._resultNumberList = [],
				t._reslutNumberDealyPlayHash = new HashObject, t._reslutNumberPlayingHash = new HashObject, t._isDead = 1, t._isShowBlooding = !
				1, t
		}
		return __extends(i, e), i.prototype.init = function() {
			e.prototype.init.call(this);
			var t = new AvatarHpMpBar;
			this.roleHeadLayout.addContent(AvatarHeadType.HP_BAR, 0, t), t.show(), this._resultPlayOverFucVo = new FunctionVO(
				this.playOverHandler, this)
		}, i.prototype.changeAniDirType = function(t) {}, i.prototype.changePartVisible = function(t, e) {
			this.cavatar.getCAvavtarPatr(t) && (this.cavatar.getCAvavtarPatr(t).visible = e)
		}, i.prototype.changeAvatarPartAniName = function(t, e) {
			t != AvatarPartType.WEAPON && this._delayChangeAvatarPartAniNameHash.put(t, e), (t == AvatarPartType.BODY || t ==
				AvatarPartType.HORSE) && this.resizeChildPosition()
		}, i.prototype.delayChangeAvatarPartAniName = function() {
			var t = this,
				e = t._delayChangeAvatarPartAniNameHash.$_getValueMap();
			for (var i in e) {
				var n = parseInt(i),
					a = t._delayChangeAvatarPartAniNameHash.get(n);
				if (null == t.cavatar.getCAvavtarPatr(n)) {
					t.avatar.addPart(n), t.shadow instanceof ShadowAvatar && t.shadow.addPart(n);
					var o = !0
				}
				t.cavatar.changePartAniName(n, a), t.shadow instanceof ShadowAvatar && t.shadow.changePartAniName(n, a), n ==
					AvatarPartType.WING && App.global.mapModule.mapAvatarModel.hideData.hide_playerWing && t.changePartVisible(
						AvatarPartType.WING, !1)
			}
			if (o) {
				var r = t._roleData.action;
				r == AvatarActionType.ACTION_TYPE_STAND && t.cavatar.getCAvavtarPatr(AvatarPartType.HORSE) && (r =
					AvatarActionType.ACTION_TYPE_HORSE_STAND), t._roleData.changeDirAction(r)
			}
		}, i.prototype.removeAvatarPart = function(t) {
			var e = this;
			e._delayChangeAvatarPartAniNameHash.del(t), t == AvatarPartType.HORSE && (e.cavatar.offsetAvatarHeight(0), e.resizeChildPosition()),
				e.cavatar.getCAvavtarPatr(t) && (e.cavatar.removePart(t), t == AvatarPartType.HORSE && e.changeDirAction(e._roleData
					.action))
		}, i.prototype.resizeChildPosition = function() {
			var t = this;
			e.prototype.resizeChildPosition.call(this);
			var i = t._roleData.modelHeight;
			t.roleHeadLayout.oftY = -i, t._nameBarLeftSign && (t._nameBarLeftSign.x = t.nameBar.x - 40, t._nameBarLeftSign.y = -
				60)
		}, i.prototype.offsetAvatarHeight = function(t) {
			var e = this;
			e.cavatar.offsetAvatarHeight(t), e.shadow instanceof ShadowAvatar && e.shadow.offsetAvatarHeight(t)
		}, i.prototype.addNameBarSign = function(t) {
			var e = this;
			null == e._nameBarLeftSign && (e._nameBarLeftSign = new AvatarHeadImage(UIMaker.getCImage(null, e)), e._nameBarLeftSign
				.addFather(e.roleHeadLayout), e._nameBarLeftSign.show(), e.resizeChildPosition())
		}, i.prototype.clearNameBarSign = function() {
			var t = this;
			t._nameBarLeftSign && (t._nameBarLeftSign.dispose(), t._nameBarLeftSign = null)
		}, i.prototype.showWordTitle = function(e, i) {
			void 0 === e && (e = ""), void 0 === i && (i = 16777215);
			var n = this;
			if ("" == e || null == e) n.roleHeadLayout.hashConetnt(AvatarHeadType.WORD_TITLE) && n.roleHeadLayout.removeContent(
				AvatarHeadType.WORD_TITLE);
			else {
				if (0 == n.roleHeadLayout.hashConetnt(AvatarHeadType.WORD_TITLE)) {
					var a = new t.AvatarHeadTextName;
					n.roleHeadLayout.addContent(AvatarHeadType.WORD_TITLE, AvatarHeadType.getIndex(AvatarHeadType.WORD_TITLE), a), a
						.show()
				}
				n.roleHeadLayout.getContent(AvatarHeadType.WORD_TITLE).setName(e, i)
			}
		}, i.prototype.showTitleRankEffect = function(e) {
			void 0 === e && (e = "");
			var i = this;
			if ("" == e || null == e) i.roleHeadLayout.hashConetnt(AvatarHeadType.TITLE_RANK_EFFECT) && i.roleHeadLayout.removeContent(
				AvatarHeadType.TITLE_RANK_EFFECT);
			else {
				if (0 == i.roleHeadLayout.hashConetnt(AvatarHeadType.TITLE_RANK_EFFECT)) {
					var n = new CEffect;
					n.play();
					var a = new t.AvatarHeadEffect(n);
					a.show(), i.roleHeadLayout.addContent(AvatarHeadType.TITLE_RANK_EFFECT, AvatarHeadType.getIndex(AvatarHeadType.TITLE_RANK_EFFECT),
						a)
				}
				i.roleHeadLayout.getContent(AvatarHeadType.TITLE_RANK_EFFECT).effect.url = e
			}
		}, i.prototype.showTitleEffect = function(e, i) {
			void 0 === e && (e = ""), void 0 === i && (i = 0);
			var n = this;
			if (2 == i) n.showTitleRankEffect(e);
			else if ("" == e || null == e) n.roleHeadLayout.hashConetnt(AvatarHeadType.TITLE_EFFECT) && n.roleHeadLayout.removeContent(
				AvatarHeadType.TITLE_EFFECT);
			else {
				if (0 == n.roleHeadLayout.hashConetnt(AvatarHeadType.TITLE_EFFECT)) {
					var a = new CEffect;
					a.play();
					var o = new t.AvatarHeadEffect(a);
					n.roleHeadLayout.addContent(AvatarHeadType.TITLE_EFFECT, AvatarHeadType.getIndex(AvatarHeadType.TITLE_EFFECT), o),
						o.show()
				}
				n.roleHeadLayout.getContent(AvatarHeadType.TITLE_EFFECT).effect.url = e
			}
		}, i.prototype.changeDirAction = function(t, i, n, a, o) {
			void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), void 0 === o && (o = 0);
			var r = this;
			1 != r.isDispose && (t != AvatarActionType.ACTION_TYPE_DIE ? r._isDead = 1 : App.global.mouseUnit == r, e.prototype
				.changeDirAction.call(this, t, i, n, a, o), r.shadow.dir = r.avatar.dir, r.shadow.changeAct(t, n, a, o), r.shadow
				.play(), r._isChangeRun = 0)
		}, i.prototype.playToEndFrame = function() {
			var t = this;
			(t._roleData.action == AvatarActionType.ACTION_TYPE_BLOW || t._roleData.action == AvatarActionType.ACTION_TYPE_DANCE) &&
			t._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND), 0 == t.avatar.isLoop && t._roleData.action ==
				AvatarActionType.ACTION_TYPE_DIE && (t.avatar.stop(), t.shadow.stop(), t._isDead = 0), e.prototype.playToEndFrame
				.call(this)
		}, i.prototype.mouseOver = function() {
			var e = this;
			if (e._roleData.action && e._roleData.action != AvatarActionType.ACTION_TYPE_DIE && t.SceneRole.lastSelectRole !=
				e) {
				if (e._roleData) {
					var i, n = App.global.mapModule.mapQuickSelect.checkIsEnemy(e._roleData.personId, App.global.characterData);
					i = n ? t.FilterPlugin.overFilter_2 : e._roleData instanceof MapNpcRoleData ? t.FilterPlugin.overFilter_1 : t.FilterPlugin
						.overFilter_3
				} else i = t.FilterPlugin.overFilter_1;
				e.filterPlugin.addFilter("over", i)
			}
		}, i.prototype.settingEndRun = function(t) {
			void 0 === t && (t = 30), this._isChangeRun = t
		}, i.prototype.moveCallBack = function(t, e) {
			var i = this;
			null != i._mapMoveCallBack && (i._mapMoveCallBack.param = [t, e], i._mapMoveCallBack.exec())
		}, i.prototype.delayShowBloodWord = function(t) {
			var e = this;
			e._isShowBlooding ? e._resultNumberList.push(t) : (e._reslutNumberPlayingHash.put(t.hashCode, t), t.showBloodWord(
				e._resultPlayOverFucVo), e._isShowBlooding = !0)
		}, i.prototype.showBlood = function(t) {
			var e = this;
			if (0 == e._isShowBlooding) {
				e._resultPassTime += t;
				var i = e._resultNumberList.length;
				if (e._resultNumberGapTime = 600 / i >> 0, e._resultNumberGapTime < 30 && (e._resultNumberGapTime = 30), e._resultNumberGapTime >
					120 && (e._resultNumberGapTime = 120), i > 0) {
					e._isShowBlooding = !0;
					var n = e._resultPassTime / e._resultNumberGapTime >> 0;
					e._resultPassTime -= n * e._resultNumberGapTime, n = n > i ? i : n;
					for (var a = 0; n > a; a++) {
						var o = e._resultNumberList.shift(),
							r = n * e._resultNumberGapTime;
						r > 0 ? (o.delay = r, e._reslutNumberDealyPlayHash.put(o.hashCode, o)) : (e._reslutNumberPlayingHash.put(o.hashCode,
							o), o.showBloodWord(e._resultPlayOverFucVo))
					}
				}
			}
		}, i.prototype.addvanceFightNumber = function(t) {
			var e = this;
			if (e._isShowBlooding && (e._isShowBlooding = !1, e.showBlood(t)), e._reslutNumberDealyPlayHash.length > 0) {
				var i = e._reslutNumberDealyPlayHash.$_getValueMap();
				for (var n in i) {
					var a = i[n];
					a.delay -= t, a.delay <= 0 && (e._reslutNumberPlayingHash.put(a.hashCode, a), a.showBloodWord(e._resultPlayOverFucVo),
						e._reslutNumberDealyPlayHash.del(a.hashCode))
				}
			}
		}, i.prototype.addvanceTime = function(t) {
			var i = this;
			i.shadow && i.shadow.addvanceTime(t), e.prototype.addvanceTime.call(this, t), i._isChangeRun > 0 && (i._isChangeRun -=
					t, i._isChangeRun <= 0 && (!i._roleData.action || i._roleData.action != AvatarActionType.ACTION_TYPE_RUN && i._roleData
						.action != AvatarActionType.ACTION_TYPE_WALK && i._roleData.action != AvatarActionType.ACTION_TYPE_HORSE_RUN ||
						i._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, i._roleData.faceDir, !0))), i._delayChangeAvatarPartAniNameHash
				.length > 0 && (i.delayChangeAvatarPartAniName(), i._delayChangeAvatarPartAniNameHash.clear()), i._bubbleShowPassTime >
				0 && (i._bubbleShowPassTime -= t, i._bubbleShowPassTime <= 0 && i._chatBubble.hide())
		}, i.prototype.changeChildPosition = function(t, i, n) {
			var a = this;
			e.prototype.changeChildPosition.call(this, t, i, n), a._chatBubble && a._chatBubble.move(a._roleData.pixel_x, a._roleData
				.pixel_y, a._roleData.modelHeight)
		}, i.prototype.playOverHandler = function(t) {
			this._reslutNumberPlayingHash.del(t.hashCode)
		}, i.prototype.showChatBubble = function(t) {
			var e = this;
			null == e._chatBubble && (e._chatBubble = new AvatarChatBubble(App.global.mapModule.secne.guideLayer)), e._bubbleShowPassTime =
				3e3, e._chatBubble.move(e._roleData.pixel_x, e._roleData.pixel_y, e._roleData.modelHeight), e._chatBubble.showContent(
					t)
		}, Object.defineProperty(i.prototype, "isDead", {
			get: function() {
				return this._isDead
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "hpBar", {
			get: function() {
				return this.roleHeadLayout.getContent(AvatarHeadType.HP_BAR)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "nationNameBar", {
			get: function() {
				var e = this;
				if (0 == e.roleHeadLayout.hashConetnt(AvatarHeadType.NATION_NAME)) {
					var i = new t.AvatarHeadTextName;
					e.roleHeadLayout.addContent(AvatarHeadType.NATION_NAME, AvatarHeadType.getIndex(AvatarHeadType.NATION_NAME), i),
						e.resizeChildPosition()
				}
				return e.roleHeadLayout.getContent(AvatarHeadType.NATION_NAME)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "mapMoveProgressCallBack", {
			get: function() {
				return this._mapMoveCallBack
			},
			set: function(t) {
				this._mapMoveCallBack = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.getFightNumberCount = function() {
			return this._resultNumberList ? this._resultNumberList.length : 0
		}, i.prototype.clearFightNumber = function() {
			for (var t = this, e = t._resultNumberList.length, i = 0; e > i; i++) t._resultNumberList[i].dispose();
			t._resultNumberList = [], t._reslutNumberDealyPlayHash.forInValExcFucName("dispose"), t._reslutNumberDealyPlayHash
				.clear(), t._reslutNumberPlayingHash.forInValExcFucName("dispose"), t._reslutNumberPlayingHash.clear()
		}, i.prototype.resetAndClear = function() {
			var i = this;
			i._delayChangeAvatarPartAniNameHash.clear(), i.addAvatar(), i.clearNameBarSign();
			for (var n = i.view.numChildren, a = n - 1; a >= 0; a--) {
				var o = i.view.getChildAt(a);
				o instanceof t.EffectSprite && o.father instanceof CPlayOnceEffect && o.father.dispose()
			}
			i.clearFightNumber(), i._isDead = 1, i._chatBubble && i._chatBubble.clear(), i._bubbleShowPassTime = 0, i.roleHeadLayout
				.hashConetnt(AvatarHeadType.NATION_NAME) && (i.roleHeadLayout.getContent(AvatarHeadType.NATION_NAME).clear(), i.roleHeadLayout
					.getContent(AvatarHeadType.NATION_NAME).hide()), i.roleHeadLayout.removeContent(AvatarHeadType.TITLE_EFFECT), i.roleHeadLayout
				.removeContent(AvatarHeadType.TITLE_RANK_EFFECT), i.roleHeadLayout.removeContent(AvatarHeadType.WORD_TITLE), i.cavatar
				.removePart(AvatarPartType.HORSE), i.cavatar.removePart(AvatarPartType.HORSE_HEAD), i.cavatar.clearPart(), i._mapMoveCallBack =
				null, e.prototype.resetAndClear.call(this)
		}, i.prototype.dispose = function() {
			var t = this;
			t._resultNumberList = null, t._reslutNumberDealyPlayHash = null, t._delayChangeAvatarPartAniNameHash.dispose(), t._delayChangeAvatarPartAniNameHash =
				null, t._chatBubble && (t._chatBubble.dispose(), t._chatBubble = null), e.prototype.dispose.call(this)
		}, i
	}(t.SceneRole);
	t.MoveRole = e, __reflect(e.prototype, "h5_engine.MoveRole")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._stateFucName = "", i._isEnd = !1, i._isStart = !1, i._endReason = "noEnd", i._hasListCallBack = !1, i._callBackVo =
				e, i
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "listCallBack", {
			get: function() {
				return this._listCallBack
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "endReason", {
			get: function() {
				return this._endReason
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "isEnd", {
			get: function() {
				return this._isEnd
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "isStart", {
			get: function() {
				return this._isStart
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "stateFucName", {
			get: function() {
				return this._stateFucName
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "disposeCallBack", {
			get: function() {
				return this._disposeCallBack
			},
			set: function(t) {
				this._disposeCallBack = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "startBack", {
			get: function() {
				return this._startBack
			},
			set: function(t) {
				this._startBack = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "callBack", {
			get: function() {
				return this._callBackVo
			},
			set: function(t) {
				this._callBackVo = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.start = function() {
			this._isStart = !0, this._startBack && this._startBack.exec()
		}, e.prototype.addvanceTime = function(t) {}, e.prototype.setlistCallBack = function(t) {
			void 0 === t && (t = null), null != t && (this._hasListCallBack = !0, this._listCallBack = t)
		}, e.prototype.end = function(t) {
			var e = this;
			if (0 == e.isDispose) {
				if (e._isEnd = !0, e._callBackVo && e._callBackVo.exec(), e._hasListCallBack)
					if (e._listCallBack) e._listCallBack.exec();
					else if (0 == e.isDispose) {
					e.actionListEmpty()
				}
				e._endReason = t
			}
		}, e.prototype.actionListEmpty = function() {
			var t = "Action-动作列表的回调函数消失了";
			return t
		}, e.prototype.resetDispose = function() {
			var e = this;
			e._stateFucName = "", e._isEnd = !1, e._isStart = !1, e._endReason = "noEnd", e._hasListCallBack = !1, t.prototype
				.resetDispose.call(this)
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this);
			var e = this;
			e._stateFucName = "dispose", 0 == e._isEnd && 1 == e._isStart && (e._disposeCallBack && e._disposeCallBack.exec(),
					e._hasListCallBack && null != e._listCallBack && e._listCallBack.exec()), e._listCallBack = null, e._disposeCallBack =
				null, e._startBack = null, e._startBackParam = null, e._data = null, e._callBackVo = null
		}, e
	}(Dispose);
	t.Action = e, __reflect(e.prototype, "h5_engine.Action")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._aniDirType = 0, t._avatarKeyPart = AvatarPartType.BODY, t._currentActionPasstime = 0, t._partLength = 0,
				t._dir = -1, t._fiveDir = -1, t._currentFrame = 0, t._frameCount = -1, t._speed = 1, t._isChangeAction = !1, t._isChangeDir = !
				1, t._isChangeUpdatePartDepth = !1, t._isLoop = !1, t._partVisible = !0, t._partAlpha = 1, t._endFrame = -1, t._isPlaying = !
				1, t._isABPlayMode = !1, t._abModeIndexA = -1, t._abModeIndexB = -1, t._isLoopABMode = !1, t.init(), t
		}
		return __extends(i, e), i.prototype.init = function() {
			var t = this;
			t.touchEnabled = !1, t.touchChildren = !1, t._partHash = {}, t._partLength = 0, t.addPart(AvatarPartType.BODY)
		}, Object.defineProperty(i.prototype, "playEndHanlder", {
			get: function() {
				return this._playEndHanlder
			},
			set: function(t) {
				this._playEndHanlder = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isLoop", {
			get: function() {
				return this._isLoop
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isPlaying", {
			get: function() {
				return this._isPlaying
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "action", {
			get: function() {
				return this._action
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "aniDirType", {
			get: function() {
				return this._aniDirType
			},
			set: function(t) {
				this._aniDirType = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "dir", {
			get: function() {
				return this._dir
			},
			set: function(t) {
				var e = this;
				e._dir != t && (e._dir = t, e._isChangeDir = !0)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "partVisible", {
			get: function() {
				return this._partVisible
			},
			set: function(t) {
				if (t != this._partVisible) {
					this._partVisible = t;
					var e = this._partHash;
					for (var i in e) e[i].visible = t
				}
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "partAlpha", {
			get: function() {
				return this._partAlpha
			},
			set: function(t) {
				if (t != this._partAlpha) {
					this._partAlpha = t;
					var e = this._partHash;
					for (var i in e) e[i].alpha = t
				}
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "speed", {
			get: function() {
				return this._speed
			},
			set: function(t) {
				this._speed != t && (this._speed = .1 >= t ? .1 : t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "changePartDepthCallBack", {
			set: function(t) {
				this._changePartDepthCallBack = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.checkHitPoint = function(t) {
			return void 0 === t && (t = -1), !1
		}, i.prototype.play = function() {
			this._isPlaying = !0, this._endFrame = -1
		}, i.prototype.stop = function() {
			this._isPlaying = !1
		}, i.prototype.gotoAndStop = function(t, e) {
			void 0 === e && (e = 0), this._isLoop = !1, this._currentFrame = e, this.play(), this._endFrame = t
		}, i.prototype.gotoAndPlay = function(t, e) {
			void 0 === e && (e = !1), this._isLoop = e, this._currentFrame = t, this.play()
		}, Object.defineProperty(i.prototype, "avatarKeyPart", {
			get: function() {
				return this._avatarKeyPart
			},
			set: function(t) {
				this._avatarKeyPart = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.addvanceTime = function(t) {
			var e = this;
			if (0 != e._isPlaying) {
				e._currentActionPasstime += t, e.changeAnimator();
				var i = e._partHash;
				for (var n in i) i[n].addvanceTime(t);
				var a = e.getPart(e.avatarKeyPart);
				null != a && null != a.animator && (e._frameCount != a.aniLength && (e._frameCount = a.aniLength, e._currentFrame >=
					e._frameCount && (e._currentFrame = 0)), -1 == e._currentFrame ? (e._currentFrame = e._frameCount - 1, e.setCurrentFrame(),
					e.playEnd()) : e.update())
			}
		}, i.prototype.changeAvatarPartDepth = function(t) {
			var e = this;
			if ((e._partDepthList != t || 0 != e._isChangeUpdatePartDepth) && (e._isChangeUpdatePartDepth = !1, e._partDepthList =
					t, t)) {
				for (var i = t.length, n = [], a = 0; i >= a; a++) {
					var o = t[a],
						r = e._partHash[o];
					r && n.push(r.view)
				}
				e.$children = n
			}
		}, i.prototype.changeAct = function(t, e, i, n) {
			void 0 === e && (e = !1), void 0 === i && (i = !1), void 0 === n && (n = 0);
			var a = this;
			a.closePoint_AB(), a._isLoop = e, a.setAction(t, i, n)
		}, i.prototype.playPoint_AB = function(t, e, i, n) {
			void 0 === n && (n = !0), this._abModeIndexA = e, this._abModeIndexB = i, this._isLoopABMode = n, this._isABPlayMode = !
				0, this.setAction(t, !0, this._abModeIndexA)
		}, i.prototype.closePoint_AB = function() {
			this._isABPlayMode = !1
		}, i.prototype.playEnd = function() {
			null != this._playEndHanlder && this._playEndHanlder.exec()
		}, i.prototype.changePartDepth = function() {
			var e = this;
			if (null != e._changePartDepthCallBack) {
				var i = e._dir;
				e._aniDirType == t.AvatarAniDirType.FIVE_DIR && (i = e._fiveDir), e._changePartDepthCallBack.exec(i)
			}
			e._isChangeUpdatePartDepth = !1
		}, i.prototype.update = function() {
			var t = this,
				e = t.getPart(t.avatarKeyPart).animator;
			if (null != e) {
				var i = e.totalMovieTime * t._speed,
					n = (t._currentActionPasstime, t._currentActionPasstime / i >> 0);
				t._currentActionPasstime = t._currentActionPasstime % i;
				for (var a = t._currentFrame, o = e.getImage(a); o && t._currentActionPasstime >= o.delayTime * t._speed;) t._currentActionPasstime -=
					o.delayTime * t._speed, a++, t._isABPlayMode ? a >= t._abModeIndexB && (t._isLoopABMode ? a = t._abModeIndexA :
						t.stop()) : (a >= t._frameCount - 1 && n++, a >= t._frameCount && (a = 0)), o = e.getImage(a);
				if ((a != t._currentFrame || n > 0) && (t._currentFrame = a, t.setCurrentFrame(), 0 == t._isABPlayMode && t._endFrame ==
						t._currentFrame && t.stop(), n > 0))
					for (n = t._isLoop ? n : 1; n > 0;) t.playEnd(), n--
			}
		}, i.prototype.changeAnimator = function() {
			var e = this;
			if (e._isChangeDir || e._isChangeAction)
				if (e._aniDirType == t.AvatarAniDirType.EIGHT_DIR) {
					var i = e._partHash;
					for (var n in i) i[n].changeAnimator(e._action, e._dir);
					e.changePartDepth()
				} else if (e._aniDirType == t.AvatarAniDirType.FIVE_DIR) {
				var a = t.SceneType.getFiveDir(e, e.dir);
				if (a != e._fiveDir || e._isChangeAction) {
					e._fiveDir = a;
					var i = e._partHash;
					for (var n in i) i[n].changeAnimator(e._action, a);
					e.changePartDepth()
				} else e._isChangeAction && e.changePartDepth()
			}
			e._isChangeUpdatePartDepth && e.changePartDepth(), e._isChangeAction = !1, e._isChangeDir = !1
		}, i.prototype.setAction = function(t, e, i) {
			void 0 === e && (e = !1), void 0 === i && (i = 0);
			var n = this;
			(n._action != t || e) && (n._action = t, n._currentFrame = i, n._currentActionPasstime = 0, n._isChangeAction = !0)
		}, Object.defineProperty(i.prototype, "currentFrame", {
			get: function() {
				return this._currentFrame
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.setCurrentFrame = function() {
			var t = this,
				e = t._partHash;
			for (var i in e) e[i].currentIndex = t._currentFrame, t._isChangeUpdatePartDepth = !0
		}, i.prototype.addPart = function(e) {
			var i = this,
				n = i._partHash[e];
			if (null == n) {
				n = i.makePart(e), i._partHash[e] = n, i._partLength++, n.father = i, n.addParent(i);
				var a = i._aniDirType == t.AvatarAniDirType.FIVE_DIR ? i._fiveDir : i._dir;
				n.changeAnimator(i._action, a), i._isChangeUpdatePartDepth = !0
			}
			return n
		}, i.prototype.makePart = function(e) {
			return new t.AvatarPart(e)
		}, i.prototype.removePart = function(t) {
			var e = this,
				i = e._partHash[t];
			i && (i.dispose(), e._partLength--, delete e._partHash[t])
		}, i.prototype.getPart = function(t) {
			return this._partHash[t]
		}, i.prototype.getPartHash = function() {
			return this._partHash
		}, i.prototype.clear = function() {
			var t = this;
			if (t._partHash && t._partLength > 0) {
				var e = t._partHash;
				for (var i in e) e[i].clearActionAndDir()
			}
			t.scaleX = 1, t._action = null, t._fiveDir = -1, t._dir = -1, t._isChangeAction = !1, t._isChangeUpdatePartDepth = !
				1, t._isChangeDir = !1, t._speed = 1, t._frameCount = -1, t._currentFrame = 0, t._currentActionPasstime = 0, t._isLoop = !
				1
		}, i.prototype.dispose = function() {
			var t = this;
			if (e.prototype.dispose.call(this), t.stop(), t._avatarKeyPart = AvatarPartType.BODY, t._partHash && t._partLength >
				0) {
				var i = t._partHash;
				for (var n in i) i[n].dispose()
			}
			t._partHash = null, t._partDepthList = null, t._playEndHanlder = null, t.clear()
		}, i
	}(t.GDisplayObjectContainer);
	t.Avatar = e, __reflect(e.prototype, "h5_engine.Avatar")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i(t) {
			var i = e.call(this, t) || this;
			return i._url = "NetAvatarPart", i._isLoading = !1, i
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "url", {
			get: function() {
				return this._url
			},
			set: function(t) {
				var e = this;
				e._url != t && (e.clear(), e._url = null == t ? "NetAvatarPart" : t, t && "" != t && TypeUtil.isString(t) && e.netLoad())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "resType", {
			get: function() {
				return this._resType
			},
			set: function(t) {
				this._resType = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.clear = function() {
			var t = this;
			t.deleteAnimator(), t.unNetLoad(), t._url = "NetAvatarPart", t._vo = null, t._content = null
		}, Object.defineProperty(i.prototype, "data", {
			get: function() {
				return this._vo
			},
			set: function(t) {
				this._vo = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netLoad = function() {
			var e = this;
			0 == e._isLoading && ("NetAvatarPart" != e._url && null != e._url ? (e._isLoading = !0, t.NetResourceManager.instance
				.getResource(e)) : GameLog.log("NetAvatarPart >> 加载路径有问题"))
		}, i.prototype.unNetLoad = function() {
			this._isLoading = !1, t.NetResourceManager.instance.delResource(this)
		}, Object.defineProperty(i.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netComplete = function(e) {
			var i = this;
			e instanceof t.Animator ? (i._isLoading = !1, i._content = e, i.addAnimatior(e), i._netHandler && i._netHandler.netComplete()) :
				e instanceof t.Animation ? (i._isLoading = !1, i._content = e, i.addAnimatior(i.ani.getAnimator(i.action, i.dir)),
					i._netHandler && i._netHandler.netComplete()) : GameLog.log("NetAvatarPart- 传入的资源错误了")
		}, i.prototype.netProgress = function(t) {
			this._netHandler && this._netHandler.netProgress()
		}, i.prototype.netError = function(t) {
			this._netHandler && this._netHandler.netError()
		}, Object.defineProperty(i.prototype, "netHandler", {
			get: function() {
				var e = this;
				return null == e._netHandler && (e._netHandler = new t.NetHandler), e._netHandler
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "ani", {
			get: function() {
				return this._content
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.changeAnimator = function(t, i) {
			var n = e.prototype.changeAnimator.call(this, t, i);
			return n && this.setAnimator(), n
		}, i.prototype.setAnimator = function() {
			var e, i = this;
			i.ani instanceof t.Animation && (e = i.ani.getAnimator(i.action, i.dir)), e ? i.addAnimatior(e) : (i.deleteAnimator(),
				i.getAnimationNetPath())
		}, i.prototype.getAnimationNetPath = function() {}, i.prototype.resetAndClear = function() {
			var t = this;
			t.clear(), t._netHandler && t._netHandler.clear(), e.prototype.resetAndClear.call(this)
		}, i.prototype.dispose = function() {
			var t = this;
			t._netHandler && (t._netHandler.dispose(), t._netHandler = null), e.prototype.dispose.call(this)
		}, i
	}(t.AvatarPart);
	t.NetAvatarPart = e, __reflect(e.prototype, "h5_engine.NetAvatarPart", ["INetResourceElement", "IDispose",
		"egret.IHashObject"
	])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i(t, i) {
			void 0 === t && (t = null), void 0 === i && (i = null);
			var n = e.call(this) || this;
			return n._isLoading = !1, n._src = "NetImage", n._width = 0, n._height = 0, n._vo = i, n.url = t, n
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "resType", {
			get: function() {
				return ""
			},
			set: function(t) {},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "data", {
			get: function() {
				return this._vo
			},
			set: function(t) {
				this._vo = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "url", {
			get: function() {
				return this._src
			},
			set: function(t) {
				var e = this;
				e._src != t && (e.clear(), e._src = null == t ? "NetImage" : t, null != t && (t instanceof egret.BitmapData ? (
						e._content = t, e.$bitmapData = t) : t instanceof egret.Texture ? e.texture = t : TypeUtil.isString(t) && e
					.netLoad()))
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netLoad = function() {
			var e = this;
			TypeUtil.isString(e._src) && 0 == e._isLoading && ("NetImage" != e._src && null != e._src ? (e._isLoading = !0, t.NetResourceManager
				.instance.getResource(e)) : GameLog.log("NetImage >> 加载路径有问题"))
		}, i.prototype.unNetLoad = function() {
			TypeUtil.isString(this._src) && (this._isLoading = !1, t.NetResourceManager.instance.delResource(this))
		}, Object.defineProperty(i.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netComplete = function(t) {
			var e = this;
			e._content = t, t instanceof egret.BitmapData ? e.$bitmapData = t : t instanceof egret.Texture && (e.texture = t),
				e._isLoading = !1, e._netHandler && e._netHandler.netComplete()
		}, i.prototype.netProgress = function(t) {
			this._netHandler && this._netHandler.netProgress()
		}, i.prototype.netError = function(t) {
			this._netHandler && this._netHandler.netError()
		}, Object.defineProperty(i.prototype, "netHandler", {
			get: function() {
				var e = this;
				return null == e._netHandler && (e._netHandler = new t.NetHandler), e._netHandler
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.clear = function() {
			var t = this;
			t.unNetLoad(), t._src = null, t._vo = null, t._content = null, t.$bitmapData = null, t.texture = null
		}, i.prototype.dispose = function() {
			var t = this;
			e.prototype.dispose.call(this), t.clear(), t._netHandler && t._netHandler.dispose(), t._netHandler = null, t.parent &&
				t.parent.removeChild(t)
		}, i
	}(t.GBitmap);
	t.NetImage = e, __reflect(e.prototype, "h5_engine.NetImage", ["INetResourceElement", "egret.IHashObject"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._currentPasstime = 0, t._degrees = 0, t._speed = 1, t._isPlaying = !1, t
		}
		return __extends(i, e), i.prototype.makeBitmap = function() {
			return new t.EffectSprite(this)
		}, Object.defineProperty(i.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				var e = this;
				e._x = t, e.animator && (e.view.x = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				var e = this;
				e._y = t, e.animator && (e.view.y = t)
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.setTo = function(t, i) {
			e.prototype.setTo.call(this, t, i);
			var n = this;
			n.animator && (n.view.x = t, n.view.y = i)
		}, Object.defineProperty(i.prototype, "degrees", {
			get: function() {
				return this._degrees
			},
			set: function(t) {
				var e = this;
				e._degrees != t && (e._degrees = t, e.rantionView())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "angle", {
			get: function() {
				return MathUnit.degreesToRadin(this._degrees)
			},
			set: function(t) {
				this.degrees = MathUnit.radinToDegrees(t)
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.rantionView = function() {
			var t = this;
			0 == t.isDispose && t.animator && (t.view.rotation = t._degrees)
		}, Object.defineProperty(i.prototype, "isPlaying", {
			get: function() {
				return this._isPlaying
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.play = function() {
			this._isPlaying = !0
		}, i.prototype.stop = function() {
			this._isPlaying = !1
		}, i.prototype.restart = function() {
			this._currentPasstime = 0, e.prototype.restart.call(this)
		}, i.prototype.updateFrame = function(t) {
			var e = this;
			if (e._currentPasstime += t, null != e.animator) {
				var i = e._currentPasstime / e.animator.totalMovieTime >> 0;
				e._currentPasstime = e._currentPasstime % e.animator.totalMovieTime;
				for (var n = e.currentIndex, a = e.animator.getImage(n); a && e._currentPasstime >= a.delayTime * e._speed;) e._currentPasstime -=
					a.delayTime * e._speed, n++, n >= e.aniLength && (n = 0, i++), a = e.animator.getImage(n);
				if (i > 0 && e.aniLength > 0)
					for (var o = 0; i > o; o++) e.lastFrameHandler();
				e.isPlaying && (e.currentIndex = n)
			}
		}, i.prototype.lastFrameHandler = function() {}, Object.defineProperty(i.prototype, "speed", {
			get: function() {
				return this._speed
			},
			set: function(t) {
				this._speed != t && (this._speed = .1 >= t ? .1 : t)
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.updateViewBmd = function() {
			e.prototype.updateViewBmd.call(this), this.rantionView()
		}, i.prototype.addvanceTime = function(t) {
			this._isPlaying && this.updateFrame(t)
		}, i.prototype.resetAndClear = function() {
			var t = this;
			e.prototype.resetAndClear.call(this), t.stop(), t._currentPasstime = 0, t._speed = 1, t._degrees = 0
		}, i.prototype.clear = function() {
			this.resetAndClear()
		}, i.prototype.dispose = function() {
			e.prototype.dispose.call(this)
		}, i
	}(t.FramePlayer);
	t.Effect = e, __reflect(e.prototype, "h5_engine.Effect")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this.touchEnabled = !1, this.touchChildren = !1
		}, e.prototype.clear = function() {}, e.prototype.dispose = function() {
			this.clear(), t.prototype.dispose.call(this)
		}, e
	}(t.GDisplayObjectContainer);
	t.MapLayerBase = e, __reflect(e.prototype, "h5_engine.MapLayerBase")
}(h5_engine || (h5_engine = {}));
var RoleAction = function(t) {
	function e(e) {
		return void 0 === e && (e = null), t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.setRoleData = function(t) {
		this._roleData = t
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._roleData = null
	}, e
}(h5_engine.Action);
__reflect(RoleAction.prototype, "RoleAction");
var SeverActivityChongzhiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "SeverActivityChongzhiSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject, this._rewardhash = new HashObject, ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(
			App.data.activityCenter.getListActId(727)), ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(App.data.activityCenter
			.getListActId(726));
		for (var t = 0; 5 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowDesc = !1, e.x = 120 * t, e.y = 11, e.name = "" + t, this.lianchonggroup.addChild(e), this._gridDict.put(t,
				e)
		}
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 100 * t + 190, e.y = 520, this.addChild(e), this._rewardhash.put(t, e)
		}
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/mrlc", "",
			".jpg"))), null == this.itembg && (this.itembg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/chongzhibj", "", ".jpg"), 0, 156))
	}, e.prototype.show = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetClick, this, this.btnget), this._dispatcher
			.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showView, this), this.showView(), App.timer.serverTimeEndCount(
				this, this.ontimer1, ServerTime.remianZeroTime)
	}, e.prototype.ontimer1 = function(t) {
		t.spuleTime > 0 ? this.descshijian.textFlow = HtmlUtil.getHtmlStr("<font color = '0xffb258'>活动时间 </font>" +
			StringUtil.convertTime_3(t.spuleTime)) : (this.descshijian.text = "", App.timer.clearTimer(this.ontimer1, this))
	}, e.prototype.onGetClick = function(t) {
		ActivityCommandSender.sendC2S_JoinActivityMessage(79001)
	}, e.prototype.openGrid = function(t) {
		var e = t.currentTarget;
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.dataarr[Number(e.name)].bean.q_id)
	}, e.prototype.showView = function() {
		this.clearEff(), this.dataarr = App.data.activityCenter.getList(727);
		for (var t = 0; t < this.dataarr.length; t++) {
			var e = this.dataarr[t],
				i = this._gridDict.get(t),
				n = ItemUtil.getRewardDataList(e.bean.q_show_rewards);
			i.setData(n[0]), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openGrid, this, i);
			var a = StringUtil.JsonParse(e.extendMap);
			this["desc" + t].text = "" + e.bean.q_desc, 0 == t && (this.descneirong.text = "今日累充:" + a.gold / 100 + "元"), 1 ==
				e.playerStates ? (i.isShowTip = !1, null == this.lelingquEff && (this.lelingquEff = EffectUtils.showCEffect(this,
					this.lianchonggroup, ResPathUtil.getMenuEffect("panel", "kelingqu"), i.x + 36, i.y + 40))) : 0 == e.playerStates &&
				this.lianchonggroup.addChild(this["img" + t])
		}
		var o = App.data.activityCenter.getData(79001);
		this.kelingqudesc.text = "可领取" + o.remainTimes + "次";
		for (var r = App.data.activityCenter.getList(726), s = ItemUtil.getRewardDataList(r[0].bean.q_show_rewards), t = 0; t <
			s.length; t++) this._rewardhash.get(t).setData(s[t])
	}, e.prototype.hide = function() {
		this.clearEff(), App.timer.clearTimer(this.ontimer1, this), t.prototype.hide.call(this)
	}, e.prototype.clearEff = function() {
		this.lelingquEff && (this.lelingquEff.stop(), this.lelingquEff.dispose(), this.lelingquEff = null)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.itembg && (this.itembg.dispose(), this.itembg =
				null), App.timer.clearTimer(this.ontimer1, this), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		if (this._rewardhash) {
			for (var e = 0; e < this._rewardhash.length; e++) this._rewardhash.get(e).dispose();
			this._rewardhash = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(SeverActivityChongzhiView.prototype, "SeverActivityChongzhiView");
var SeverActivityjingjiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.count = 0, e.skinName = "SeverActivityjingjiSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 520, SeverAvtivityjingjiItem, 5), this._vscroller.move(20, 245, this), null ==
			this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/djjj", "", ".jpg")))
	}, e.prototype.show = function(t) {
		this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity, this);
		var e = App.data.activityCenter.getList(16);
		this._vscroller.dataProvider = e, this.showfirstView(e[0]), App.timer.serverTimeEnd(this, this.timeOnClick,
			ServerTime.serverOpenZoneTime + ServerTime.opentime + 518400), App.timer.doFrameOnce(this, 1, this.refreView)
	}, e.prototype.refreView = function() {
		var t = App.data.activityCenter.getList(16);
		this.scrollBottom1(t.length - this.getActivityFlag(t) >= 4 ? this.getActivityFlag(t) : t.length - 4)
	}, e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom1 = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)) : this._vscroller.viewport && (this._vscroller
				.viewport.scrollV = 0)
	}, e.prototype.scrollBottom = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? (this._vscroller.viewport && (this.count = this._vscroller.viewport.scrollV),
				App.timer.doFrameLoop(this, 1, this.referview, [t])) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
				0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 4, this.count >= 132 * t ? (this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			132 * t), App.timer.clearTimer(this.referview, this)) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			this.count)
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:00:00:00")
	}, e.prototype.showfirstView = function(t) {
		this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), this.myrank.text = "我的等级:" + (0 == App.global.characterData
			.zhuanSheng ? "" : App.global.characterData.zhuanSheng + "转") + App.global.characterData.level + "级"
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(16);
		if (null != this._vscroller) {
			this._vscroller.dataProvider = t;
			var e = this.getActivityFlag(t);
			this.scrollBottom(t.length - e >= 4 ? e : t.length - 4)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.referview, this), this._vscroller.removeAll(), App.timer.clearTimer(
			this.timeOnClick, this)
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller = null), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose
			.call(this)
	}, e
}(ViewBase);
__reflect(SeverActivityjingjiView.prototype, "SeverActivityjingjiView");
var SeverActivityRankView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.skinName = "SeverActivityRankSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(592, 255, severActivityRankItem, 1), this._vscroller.move(24, 475, this), this._gridDict =
			new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.x = t % 2 * 120 + 392, e.y = 6, t > 1 && (e.y = 103), this.firstgroup.addChild(e), this._gridDict
				.put(t, e)
		}
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/ph", "",
			".jpg"))), null == this.bgimg1 && (this.bgimg1 = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/zhuangbeibang", "", ".jpg"), 0, 156)), this.goBtn.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(
			"前往>>")), this.getbtn.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("查看排行"))
	}, e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
				this), this._dispatcher.addEventListener(EventType.RANK_LIST_REFRESH, this.changePageData, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.getbtn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.goBtnClick, this, this.goBtn), this.showactivity(), RankListCommandSender.getRankListInfo(
				1, this.rankType, 1)
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			switch (this.day) {
				case 1:
					return 711;
				case 2:
					return 1111;
				case 3:
					return 1112;
				case 4:
					return 1113;
				case 5:
					return 709;
				case 6:
					return 713;
				case 7:
					return 714;
				case 8:
					return 710;
				case 9:
					return 712;
				case 10:
					return 708
			}
			return 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "rankType", {
		get: function() {
			switch (this.day) {
				case 1:
					return EnumRankType.WING_TOP_RANK;
				case 2:
					return EnumRankType.ZUOQI;
				case 3:
					return EnumRankType.TIANBING;
				case 4:
					return EnumRankType.FAZHEN;
				case 5:
					return EnumRankType.BAOWU_RANK;
				case 6:
					return EnumRankType.WARPET_FIGHT;
				case 7:
					return EnumRankType.FIGHT_POWER_TOP_KEY;
				case 8:
					return EnumRankType.ZHUANS_RANK;
				case 9:
					return EnumRankType.ZHUANBSCORE_RANK;
				case 10:
					return EnumRankType.LEVEL_TOP_RANK
			}
			return 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.goBtnClick = function(t) {
		App.panel.openPanel(this.qianwan.panelid, {
			selectedIndex: this.qianwan.selectIndex
		})
	}, e.prototype.onBtnClick = function(t) {
		void 0 == this._rankInfo ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">暂无玩家上榜</font>") :
			(ActivityRankPanel.isNational = !1, App.panel.openPanel(103, this._rankInfo.rankInfoVec))
	}, e.prototype.changePageData = function(t) {
		this._rankInfo = t
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		"" == t.bean.q_icon ? this.goBtn.visible = !1 : (this.goBtn.visible = !0, this.qianwan = StringUtil.JsonParse(t.bean
			.q_icon));
		for (var i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i]);
		if (this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), this.clearLabelEff(), t.extendMap) {
			var n = StringUtil.JsonParse(t.extendMap);
			App.timer.serverTimeEnd(this, this.timeOnClick, n.endtime), "" == n.rankname ? (this.firstname.text = "上榜需求:",
				this.firstscore.text = t.bean.q_desc) : (this.firstname.text = "" + ("" == n.rankname ? "无" : n.rankname), this.firstscore
				.text = "" + this.needStr + n.rankdata), this.myranklevel.textFlow = this.getroletext(n.myrankdata);
			var a = 83;
			this._saEff = EffectUtils.showCEffect(this, this.firstgroup, ResPathUtil.getTitleEffect("" + t.bean.q_icon2), 188,
				a), n.myrank <= 20 && n.myrank > 0 ? this.myrank.text = "我的排名：" + n.myrank : this.myrank.text = "我的排名：未上榜"
		} else this.myrank.text = "该栏活动没有数据"
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType, !1, !1);
		t && this.showfirstView(t.shift()), this._vscroller.dataProvider = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearLabelEff(), this._vscroller.removeAll(), App.timer.clearTimer(this.timeOnClick,
			this)
	}, e.prototype.clearLabelEff = function() {
		this._saEff && (this._saEff.stop(), this._saEff.dispose(), this._saEff = null)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.bgimg1 && (this.bgimg1.dispose(), this.bgimg1 =
				null), this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.getroletext = function(t) {
		var e = "";
		switch (this.day) {
			case 1:
				e = HtmlUtil.formatColor("我的光翼星级:", 12491897);
				break;
			case 2:
				e = HtmlUtil.formatColor("我的坐骑星级:", 12491897);
				break;
			case 3:
				e = HtmlUtil.formatColor("我的天兵星级:", 12491897);
				break;
			case 4:
				e = HtmlUtil.formatColor("我的法阵星级:", 12491897);
				break;
			case 5:
				e = HtmlUtil.formatColor("我的兵魂星级:", 12491897);
				break;
			case 6:
				e = HtmlUtil.formatColor("我的魔宠战力:", 12491897);
				break;
			case 7:
				e = HtmlUtil.formatColor("我的战斗力:", 12491897);
				break;
			case 8:
				e = HtmlUtil.formatColor("我的转生等级:", 12491897);
				break;
			case 9:
				e = HtmlUtil.formatColor("我的装备评分:", 12491897);
				break;
			case 10:
				e = HtmlUtil.formatColor("我的角色等级:", 12491897)
		}
		var i = StringUtil.substitute("{0}{1}", e, HtmlUtil.formatColor(t.toString(), 13404418));
		return HtmlUtil.getHtmlStr(i)
	}, e.prototype.getroletext1 = function(t) {
		return 1 == t ? "角色等级:" : 5 == t ? "兵魂等级:" : 2 == t ? "转生等级:" : 4 == t ? "羽翼等级:" : 3 == t ? "装备评分:" : 6 == t ?
			"魔宠战力:" : 7 == t ? "战斗力:" : 8 == t ? "消费元宝:" : void 0
	}, Object.defineProperty(e.prototype, "needStr", {
		get: function() {
			switch (this.day) {
				case 1:
					return "光翼星级:";
				case 2:
					return "坐骑星级:";
				case 3:
					return "天兵星级:";
				case 4:
					return "法阵星级:";
				case 5:
					return "兵魂星级:";
				case 6:
					return "魔宠战力:";
				case 7:
					return "战斗力:";
				case 8:
					return "转生等级:";
				case 9:
					return "装备评分:";
				case 10:
					return "角色等级:"
			}
			return ""
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(SeverActivityRankView.prototype, "SeverActivityRankView");
var ShabakeJiangliView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.euiSkinName = "ShabakeJiangliViewSkin", e._gridDict = new HashObject;
		for (var i = 0; 4 > i; i++) {
			var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			n.isShowDesc = !1, n.x = 120 + 100 * i, n.y = 620, e.addChild(n), e._gridDict.put(i, n)
		}
		return e.y = -89, e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/sbk", "", ".jpg"))), this.addAvatarUI(1, 1);
		for (var i = App.data.activityCenter.getData(10102), n = ItemUtil.getRewardDataList(i.bean.q_show_rewards), a = 0; a <
			n.length; a++) this._gridDict.get(a).setData(n[a]);
		var o = StringUtil.JsonParse(i.extendMap);
		o.endtime && App.timer.serverTimeEnd(this, this.ontimer, o.endtime)
	}, e.prototype.ontimer = function(t) {
		t.spuleTime > 0 ? this.desc.text = "活动时间:" + StringUtil.convertTime_4(t.spuleTime) : (this.desc.text = "活动时间:00:00",
			App.timer.clearTimer(this.ontimer, this))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), App.timer.clearTimer(this.ontimer,
			this), this._avatar && this._avatar.dispose(), this._avatar = null
	}, e.prototype.addAvatarUI = function(t, e) {
		void 0 === e && (e = 1), null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.touchEnabled = !1,
			this._avatar.touchChildren = !1, this._avatar.x = 318, this._avatar.y = 320, this.parent.parent.parent.addChild(
				this._avatar)), this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, e, "74119"), this._avatar.changeTitle(
			ResPathUtil.getTitleEffect("sanjiebazhu"))
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				var i = this._gridDict.get(e);
				i.filters = [], i.dispose(), i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ShabakeJiangliView.prototype, "ShabakeJiangliView");
var XianShiBossView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "XianShiBossViewSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("xianshifuben", "kfhd", ".jpg"), 0, 61)
	}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this.btn_go), this.arr = App.data.activityCenter.getList(739), this.arr && this.arr.length > 0) {
			var i = App.config.q_activitiesContainer.getDataBean(this.arr[0].id);
			this.des_txt1.textFlow = HtmlUtil.getHtmlStr(i.q_desc), this.des_txt2.textFlow = HtmlUtil.getHtmlStr(i.q_info);
			var n = App.data.zoneCenter.getData(Number(this.arr[0].bean.q_icon2));
			n.remainIntoNum > 1 ? this.xiaohao.text = "本次免费" : 0 == n.remainIntoNum ? this.xiaohao.text = "无剩余次数" : this.xiaohao
				.text = "消耗" + this.arr[0].bean.q_icon + "元宝"
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		if (this.arr && this.arr.length > 0) {
			var e = App.data.zoneCenter.getData(Number(this.arr[0].bean.q_icon2));
			e && ZoneCommandSender.sendC2S_ZoneIntoMessage(e.id, e.type) && App.panel.removePanel(102)
		} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有限时副本的数据</font>")
	}, e.prototype.dispose = function() {
		this._bg && (this._bg.dispose(), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(XianShiBossView.prototype, "XianShiBossView");
var ChouJiangView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.flag = !1, e.point = 0, e.pointArr = [0, 36, 72, 108, 144, 180, 216, 252, 288, 324], e.postionArr = [new egret.Point(
				283, 171), new egret.Point(381, 195), new egret.Point(454, 286), new egret.Point(454, 383), new egret.Point(381,
				474), new egret.Point(282, 501), new egret.Point(185, 474), new egret.Point(112, 383), new egret.Point(112, 286),
			new egret.Point(185, 195)
		], e.euiSkinName = "SignChouJiangViewSkin", e._gridDict = new HashObject, null == e.bgimg && (e.bgimg = UIMaker.getCImage(
			e.bggroup, e, ResPathUtil.getImgPath("fuli/fxzp_01", "", ".jpg")));
		for (var i = 0; 10 > i; i++) {
			var n = new ItemGrid;
			n.isShowDesc = !1, n.x = e.postionArr[i].x, n.y = e.postionArr[i].y, e.liqugroup.addChild(n), e._gridDict.put(i, n)
		}
		return e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 60, e), e._moneyBar.showBg(!1), e.checkBtn.visible = !0,
			e.y = -89, e
	}
	return __extends(e, t), e.prototype.onClose = function() {
		App.panel.removePanel(102)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(VipEvent.LuckTurntable, this.showView, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onfenxiangClick, this, this.btn0), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClose, this, this.btnClose), this._moneyBar.show(), this.desc1.textFlow = HtmlUtil.getHtmlStr(
				"" + GameUtil.getGlobalConfigData(295).q_string_value), this.showView()
	}, e.prototype.showView = function() {
		this.comonarr = App.data.moonCardCenter.getLuckTuranbleList();
		for (var t = this.comonarr.length, e = 0; t > e; e++) {
			var i = this.comonarr[e],
				n = ItemUtil.getRewardDataList(i.q_reward),
				a = this._gridDict.get(e);
			a.setData(n[0]), a.name = "" + i.q_id, i.q_get_order <= App.data.moonCardCenter.luckTurData.sumcount ? (this["gou" +
				e].visible = !0, a.filters = FilterUtil.FILTER_GRAY) : (this["gou" + e].visible = !1, a.filters = [])
		}
		this.canchoujiangtext.text = "可抽奖次数:" + App.data.moonCardCenter.luckTurData.remainder
	}, e.prototype.onfenxiangClick = function(t) {}, e.prototype.onBtnClick = function(t) {
		if (!this.flag) {
			if (0 == App.data.moonCardCenter.luckTurData.remainder) return void Notice.showMousePosMessage("<font color=" +
				Notice.MIDDLE_COLOR_2 + ">没有抽奖次数啦!</font>");
			this.flag = !0, this.btn.touchEnabled = !1, this.btn.filters = FilterUtil.FILTER_GRAY;
			for (var e = 0; e < this.comonarr.length; e++)
				if (this.comonarr[e].q_get_order == App.data.moonCardCenter.luckTurData.sumcount + 1) {
					this.point = this.comonarr[e].q_display_order - 1;
					break
				} this.checkBtn.selected ? (this.img.rotation = this.pointArr[this.point], this.choujiangClick()) : TweenLite.to(
				this.img, 4, {
					ease: Cubic.easeOut,
					onStart: this.onStartView(),
					onComplete: this.choujiangClick,
					onCompleteScope: this,
					rotation: 1080 + this.pointArr[this.point]
				})
		}
	}, e.prototype.onStartView = function() {
		App.timer.doFrameLoop(this, 1, this.updeteView)
	}, e.prototype.updeteView = function() {
		var t = Math.abs(Math.ceil(this.img.rotation / 36));
		this.img.rotation >= -18 && this.img.rotation < 18 ? t = 0 : this.img.rotation >= 18 && this.img.rotation < 54 ? t =
			1 : this.img.rotation >= 54 && this.img.rotation < 90 ? t = 2 : this.img.rotation >= 90 && this.img.rotation < 126 ?
			t = 3 : this.img.rotation >= 126 && this.img.rotation < 162 ? t = 4 : this.img.rotation >= 162 && this.img.rotation <
			-162 ? t = 5 : this.img.rotation >= -162 && this.img.rotation < -126 ? t = 6 : this.img.rotation >= -126 && this.img
			.rotation < -90 ? t = 7 : this.img.rotation >= -90 && this.img.rotation < -54 ? t = 8 : this.img.rotation >= -54 &&
			this.img.rotation < -18 && (t = 9), this["img" + t].visible = !0, this["img" + t].alpha = 1;
		for (var e = 0; t - 1 > e; e++) this["img" + e].visible = !1;
		t > 0 ? TweenLite.to(this["img" + (t - 1)], .1, {
			alpha: 0,
			visible: !1
		}) : TweenLite.to(this.img9, .1, {
			alpha: 0,
			visible: !1
		})
	}, e.prototype.choujiangClick = function() {
		App.timer.clearTimer(this.updeteView, this), this.flag = !1, this.btn.touchEnabled = !0, this.btn.filters = [];
		for (var t = 0; 10 > t; t++) t != this.point && (this["img" + t].visible = !1);
		var e = this._gridDict.get(this.point);
		App.global.operate.flyToBag([e.icon], this), VipCommandSender.sendC2sTurntableReward(Number(e.name), 2)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar && this._moneyBar.hide(), App.timer.clearTimer(this.updeteView, this),
			TweenLite.killTweensOf(this.img), TweenLite.killTweensOf(this.img0), TweenLite.killTweensOf(this.img1), TweenLite.killTweensOf(
				this.img2), TweenLite.killTweensOf(this.img3), TweenLite.killTweensOf(this.img4), TweenLite.killTweensOf(this.img5),
			TweenLite.killTweensOf(this.img6), TweenLite.killTweensOf(this.img7), TweenLite.killTweensOf(this.img8), TweenLite
			.killTweensOf(this.img9)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				var i = this._gridDict.get(e);
				i.filters = [], i.dispose(), i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this.bgimg && (this.bgimg.dispose(), this.bgimg =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ChouJiangView.prototype, "ChouJiangView");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this, e) || this;
			return i._isNeedLoadAnimator = !1, i.resType = NetResourceType.ANI_AVATAR, i
		}
		return __extends(e, t), e.prototype.getAnimationNetPath = function() {
			this._isNeedLoadAnimator = !0
		}, e.prototype.addvanceTime = function(e) {
			var i = this;
			t.prototype.addvanceTime.call(this, e), i._isNeedLoadAnimator && (i.loadAnimation(), i._isNeedLoadAnimator = !1)
		}, e.prototype.loadAnimation = function() {
			var t = this,
				e = t._aniName;
			e && "" != e && null != t.action && "0" != e && -1 != t.dir ? t.partType != AvatarPartType.HORSE && t.partType !=
				AvatarPartType.HORSE_HEAD || t.action != AvatarActionType.ACTION_TYPE_HORSE_STAND && t.action != AvatarActionType
				.ACTION_TYPE_HORSE_RUN ? t.partType != AvatarPartType.WING || t.action != AvatarActionType.ACTION_TYPE_SKILL_ATK3 &&
				t.action != AvatarActionType.ACTION_TYPE_SKILL_ATK4 ? t.partType != AvatarPartType.HORSE && t.partType !=
				AvatarPartType.HORSE_HEAD && (t.url = t.getAvatarPartUrl()) : t.clear() : t.url = t.getAvatarPartUrl() : t.clear()
		}, e.prototype.clearCatchLoader = function() {}, e.prototype.getAvatarPartUrl = function() {
			var t = this;
			return ResPathUtil.getAvatarPartUrl(t._aniName, t.action, t.dir)
		}, e.prototype.netError = function(e) {
			t.prototype.netError.call(this, e), this.action == AvatarActionType.ACTION_TYPE_BLOW && this.changeAnimator(
				AvatarActionType.ACTION_TYPE_STAND, this.dir)
		}, Object.defineProperty(e.prototype, "aniName", {
			get: function() {
				return this._aniName
			},
			set: function(t) {
				var e = this;
				e._aniName != t && (e._aniName = t, e.clearCatchLoader(), e.getAnimationNetPath())
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.resetAndClear = function() {
			var e = this;
			e._isNeedLoadAnimator = !1, e._aniName = null, e.partType = -1, t.prototype.resetAndClear.call(this)
		}, e.prototype.dispose = function() {
			this.resetAndClear(), App.thing.putIn(this)
		}, e
	}(t.NetAvatarPart);
	t.CAvatarPart = e, __reflect(e.prototype, "h5_engine.CAvatarPart")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i(t) {
			void 0 === t && (t = null);
			var i = e.call(this) || this;
			return i._ofy = 0, i._father = t, i
		}
		return __extends(i, e), i.prototype.init = function() {
			this._ofy = 0, e.prototype.init.call(this)
		}, i.prototype.makePart = function(e) {
			var i = App.thing.create(t.CAvatarPart, "CAvatar", !0);
			return i.partType = e, i
		}, i.prototype.getCAvavtarPatr = function(t) {
			return this.getPart(t)
		}, i.prototype.changePartAniName = function(t, e) {
			this.getCAvavtarPatr(t).aniName = e
		}, i.prototype.addPart = function(t) {
			var i = e.prototype.addPart.call(this, t);
			return t != AvatarPartType.HORSE && t != AvatarPartType.HORSE_HEAD && (i.y = this._ofy), i
		}, i.prototype.offsetAvatarHeight = function(t) {
			var e = this,
				i = e.getPartHash();
			for (var n in i) {
				var a = Number(n);
				if (a != AvatarPartType.HORSE && a != AvatarPartType.HORSE_HEAD) {
					var o = e.getCAvavtarPatr(a);
					o.y = t
				}
			}
			e._ofy = t
		}, Object.defineProperty(i.prototype, "offsetY", {
			get: function() {
				return this._ofy
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.removePart = function(t) {
			var i = this.getCAvavtarPatr(t);
			i && (i.aniName = null, e.prototype.removePart.call(this, t))
		}, i.prototype.clearPart = function(t) {
			void 0 === t && (t = !1);
			var i = this.getPartHash();
			for (var n in i) {
				var a = Number(n),
					o = this.getCAvavtarPatr(a);
				o.aniName = null, o.visible = !0, o.y = 0, a != AvatarPartType.BODY && t && e.prototype.removePart.call(this, a)
			}
			var r = this.getCAvavtarPatr(AvatarPartType.BODY);
			r.scaleX = 1, r.scaleY = 1
		}, i
	}(t.Avatar);
	t.CAvatar = e, __reflect(e.prototype, "h5_engine.CAvatar")
}(h5_engine || (h5_engine = {}));
var AI_Auxiliary = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._lastPickItemID = "", e._crtTimeDate = 0, e._pickItemLastList = [], e._isTaskEndCheckDrop = !1, e.tipNoEmpty = !
			1, e._isStart = !1, e._lastNoDrugTipTime = 0, e
	}
	return __extends(e, t), e.prototype.start = function() {
		var e = this;
		e._mapModule = App.global.mapModule, t.prototype.start.call(this), e.tipNoEmpty = !1, e._configData = e._roleData.autoSettingData,
			e._pickItemList = null, e._pickItemLastList = [], e._dropItemBackDict = {}, e._isStart = !0
	}, e.prototype.end = function() {
		var e = this;
		e._dropItemBackDict = null, e._pickItemList = null, e._pickItemLastList = [], e.tipNoEmpty = !1, t.prototype.end.call(
			this)
	}, e.prototype.updateHandler = function(t) {
		var e = this;
		e.checkDorpTime(t), 0 == e._roleData.getIsDead() && (e.checkHpMpValue(t), 0 == e.autoUserBuffer() && e.userZhaohuanSkill())
	}, e.prototype.getGapTime = function() {
		return 500
	}, e.prototype.checkDorpTime = function(t) {
		var e = this,
			i = ServerTime.serverTime / 1e3;
		e._crtTimeDate = i;
		var n = e._dropItemBackDict;
		for (var a in n) {
			var o = e._dropItemBackDict[a];
			i - o > 7 && delete e._dropItemBackDict[a]
		}
	}, e.prototype.checkAutoSearchItem = function(t) {
		var e = this;
		null != t ? (e._parma = t, e.endAutoFightAndCheckItem()) : e.end()
	}, e.prototype.endAutoFightAndCheckItem = function() {
		this._isTaskEndCheckDrop = !0
	}, e.prototype.dropMapItemBySpace = function(t) {
		var e = this;
		if (e._roleData.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM) {
			if (e._lastPickItemID != t.itemOnlyId)
				if (e._pickItemList && e._pickItemList.length > 0) {
					var i = e._mapModule.mapItemModel.getDropItem(e._lastPickItemID);
					i && e._pickItemList.unshift(i), e._pickItemList.unshift(t), e.startDropItem(e._pickItemList)
				} else e.startDropItem([t])
		} else e.startDropItem([t])
	}, e.prototype.checkHasDropItem = function(t) {
		void 0 === t && (t = !1);
		var e = this,
			i = e._roleData,
			n = App.data.zoneCenter.getMyZoneData();
		if (n) {
			var a = 1 == n.bean.q_drop_get_mode ? !0 : !1;
			if (a) return !1
		}
		var o = e._mapModule.mapItemModel.dropItemHash;
		if (i.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM && 0 == o.length) return GameLog.log(
				"checkHasDropItem() => rData.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM  && dropItemHash.length == 0"), i.AIRoleState =
			EnumAIRobotState.ROLE_WAIT, !1;
		var r = App.global.characterData;
		if (r && r.isNoSearchMonster) return !1;
		if (i.AIRoleState == EnumAIRobotState.ROLE_RESET) return !1;
		if (i.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM && 0 == t) return !0;
		var s = [];
		o && o.length > 0 && (s = e.getCanTaskUpItemListByHashMap(o));
		var h = s.length;
		if (h > 0) {
			for (var l = 0; h > l; l++) {
				var p = s[l];
				MapItemModel.setItmTakeUpSort(p)
			}
			e.startDropItem(s)
		}
		return h > 0 ? !0 : !1
	}, e.prototype.getCanTaskUpItemListByHashMap = function(t) {
		var e = this,
			i = [];
		e.tipNoEmpty = !1;
		var n = t.$_getValueMap();
		for (var a in n) {
			var o = n[a],
				r = e.itemIsCanTakeUp(o);
			r && i.push(o)
		}
		if (e.tipNoEmpty);
		return i
	}, e.prototype.isInTakeDropItemList = function(t) {
		var e = this;
		return e._pickItemList && -1 != e._pickItemList.indexOf(t) ? !0 : e._pickItemLastList && -1 != e._pickItemLastList.indexOf(
			t) ? !0 : !1
	}, e.prototype.itemIsCanTakeUp = function(t) {
		var e = this,
			i = e._roleData;
		e._configData = i.autoSettingData;
		var n = !0;
		if (e._dropItemBackDict && e._dropItemBackDict[t.itemOnlyId]) return !1;
		var a = App.config.q_itemContainer.getDataBean(t.itemBaseid);
		if (t.nationId > 0);
		else if (!("0" == t.ownerId || "" == t.ownerId || t.ownerId == i.personId || i instanceof CharcterPartnerRoleData &&
				i.ownerId == t.ownerId)) return !1;
		if (a && e._configData) switch (a.q_show_type) {
			case 1:
				n = e.getEquipItemDrop(a), n && (e.tipNoEmpty = !0);
				break;
			case 2:
				e._configData.isDropMaterial ? e.tipNoEmpty = !0 : n = !1;
				break;
			case 3:
				e._configData.isDropPotion ? e.tipNoEmpty = !0 : n = !1;
				break;
			case 0:
			case 4:
				e._configData.isDropGold || (n = !1);
				break;
			case 5:
				n = !0;
				break;
			case 6:
				e._configData.isDropOther || (n = !1);
				break;
			default:
				e._configData.isDropOther || (n = !1)
		}
		return n
	}, e.prototype.startDropItem = function(t) {
		var e = this;
		e._pickItemLastList = [], e._pickItemList = t, e.dropItem()
	}, e.prototype.sortItemForCharPosition = function(t, e) {
		for (var i = this, n = (i._roleData, i._pickItemList.length), a = 0; n > a; a++) {
			var o = i._pickItemList[a];
			o.dtc = MathUnit.distance_Map(o.x, o.y, t, e)
		}
		i._pickItemList.length > 1 && i._pickItemList.sort(MapItemModel.itemTakeUpSort)
	}, e.prototype.dropItem = function() {
		var t = this,
			e = t._roleData;
		if (t._pickItemList && t._pickItemList.length > 0) {
			e.AIRoleState = EnumAIRobotState.ROLE_PICK_ITEM, e.operation.clearAuto();
			var i, n = e.move_to_x,
				a = e.move_to_y,
				o = (App.data.bagItemDataCenter.isFull(), t._pickItemList.length);
			if (o = t._pickItemList.length, o >= 1) {
				if (t.sortItemForCharPosition(n, a), i = t._pickItemList.shift(), t._pickItemLastList.push(i), t._lastPickItemID =
					i.itemOnlyId, i.x == n && i.y == a) return;
				var r = MathUnit.distance_Map(i.x, i.y, n, a),
					s = t._mapModule.mapLoader.mapData.getNode(i.nodex, i.nodey),
					h = !0;
				if (0 == App.data.zoneCenter.isInSinglePlayerZone() && r > 12 * h5_engine.MapConfig.MAP_NODE_WIDTH && (h = !1), h &&
					t._mapModule.mapItemModel.dropItemHash.has(i.itemOnlyId) && 1 == s.walkAble && 1 == s.roleBlock) {
					var l = SearchToPointVO.getVO();
					l.isNearestPoint = !1, l.max = 3, l.countMaxFinishHandler = new FunctionVO(t.onSearchToDropItemFailHandler, t, l,
						i.itemOnlyId), 0 == l.search(e, s.pixelPoint.x, s.pixelPoint.y, "dropItem") && (t._dropItemBackDict && (t._dropItemBackDict[
						t._lastPickItemID] = t._crtTimeDate), t.dropItem())
				} else t._dropItemBackDict && (t._dropItemBackDict[t._lastPickItemID] = t._crtTimeDate), t.dropItem()
			} else t.dropItemEnd()
		} else t.dropItemEnd()
	}, e.prototype.onSearchToDropItemFailHandler = function(t, e) {
		var i = this;
		i._roleData && (i._mapModule.mapItemModel.getDropItem(e) && i._dropItemBackDict && (i._dropItemBackDict[e] = 1e4),
			i.dropItem())
	}, e.prototype.dropItemEnd = function() {
		var t = this,
			e = t._roleData;
		t._pickItemLastList.length = 0, t._isTaskEndCheckDrop ? App.data.zoneCenter.isInSinglePlayerZone() ? t._mapModule.mapItemModel
			.dropItemHash.length <= 0 ? (t.end(), t._isTaskEndCheckDrop = !1) : (GameLog.log(
				"dropItemEnd() => loc._mapModule.mapItemModel.dropItemHash.length <= 0"), e.AIRoleState = EnumAIRobotState.ROLE_WAIT) :
			(t.end(), t._isTaskEndCheckDrop = !1) : (GameLog.log("dropItemEnd() => loc._isTaskEndCheckDrop == false"), e.AIRoleState =
				EnumAIRobotState.ROLE_WAIT)
	}, e.prototype.deleteDropItem = function(t) {
		var e = this,
			i = e._roleData;
		if (e._pickItemList && e._pickItemList.length > 0)
			for (var n = e._pickItemList.length, a = n - 1; a >= 0; a--) t == e._pickItemList[a] && e._pickItemList.splice(a,
				1);
		e._dropItemBackDict[t.itemOnlyId] && delete e._dropItemBackDict[t.itemOnlyId], i.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM &&
			(e._lastPickItemID == t.itemOnlyId ? (e._lastPickItemID = "", e.delayDropItem()) : 0 == e._pickItemList.length &&
				e.dropItem())
	}, e.prototype.delayDropItem = function() {
		var t = this,
			e = t._roleData;
		if (e.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM) {
			if (t._lastPickItemID = "", App.keyBoard.isKeyDown(Keyboard.SPACE)) {
				var i = t._mapModule.mapItemModel.getOneDropItem();
				i && t._pickItemList.unshift(i)
			}
			e instanceof CharcterPartnerRoleData && GameLog.log("拾取完成"), t.dropItem()
		}
	}, e.prototype.getEquipItemDrop = function(t) {
		var e = this,
			i = !0;
		return e._configData.isDropEquipLv ? t.q_zhuanshen < e._configData.dropEquipZhuanshengLevel ? i = !1 : t.q_zhuanshen ==
			e._configData.dropEquipZhuanshengLevel && t.q_level < e._configData.dropEquipLevel ? i = !1 : e._configData.isDropEquipQuality &&
			e._configData.dropEquipQuality > t.q_default && (i = !1) : (!e._configData.isDropEquipQuality || e._configData.dropEquipQuality >
				t.q_default) && (i = !1), i
	}, e.prototype.autoUserBuffer = function() {
		var t = this,
			e = t._roleData,
			i = e.autoSettingData,
			n = !1,
			a = 0;
		return i.isAutoUseBuffSkill && (e instanceof MapPlayerRoleData && e.job == EnumRole.DAO_SHI ? a = EnumSkillID.SHEN_SHENG_ZHAN_JIA :
			e instanceof MapPlayerRoleData && e.job == EnumRole.FA_SHI && (a = EnumSkillID.MO_FA_DUN), a > 0 && (n = t.useBuffer(
				a))), 0 == n && i.isAutoUseExpandBuffer && i.expandBufferSkillId > 0 && (a = i.expandBufferSkillId, n = t.useBuffer(
			a)), 0 == n && i.isAutoUseExpandBuffer2 && i.expandBufferSkillId2 > 0 && (a = i.expandBufferSkillId2, n = t.useBuffer(
			a)), 0 == n && e instanceof MapPlayerRoleData && e.job == EnumRole.DAO_SHI && e.hp / e.maxHp * 100 < 80 && (a =
			EnumSkillID.ZHI_LIAO_SHU, n = t.useBuffer(a)), n
	}, e.prototype.getSkillData = function(t) {
		var e = this,
			i = e._roleData,
			n = 1;
		return i instanceof CharcterPartnerRoleData && (n = i.partnerIndex), App.data.skillCenter.getRoleSkill(n, t)
	}, e.prototype.useBuffer = function(t) {
		var e = this,
			i = e._roleData,
			n = e.getSkillData(t);
		if (null == n) return !1;
		for (var a = n ? n.level : 1, o = GameUtil.getSkillConfigData(t, a), r = o.q_passive_buff, s = r.split(";"), h = 0; h <
			s.length; h++) {
			var l = s[h];
			if (l) {
				var p = l.split("_")[0],
					c = parseInt(l.split("_")[1]),
					_ = parseInt(p),
					d = GameUtil.getBufferConfigData(_, c);
				if (p && 0 == i.bufferManager.hasBufferByModelid(_) && 0 != d.q_cast_type && 0 == App.data.CDCenter.isInCD(CDType
						.SKILL, t) && 1 == App.global.enterMapIng) {
					var u = i.operation.onUserSkill(!1, t, 0, !1, !0);
					return u && i.isFightAiRuning && (i.AIRoleState = EnumAIRobotState.ROLE_USEBUFFER), u
				}
			}
		}
		return !1
	}, e.prototype.userZhaohuanSkill = function() {
		var t = this,
			e = t._roleData,
			i = e.autoSettingData;
		if (0 == e.isFightAiRuning) return !1;
		var n = !1;
		return i.isAutoSummonPet1 && (n = t.callBabyComeOn(i.autoSummonPetId1)), 0 == n && i.isAutoSummonPet2 && (n = t.callBabyComeOn(
			i.autoSummonPetId2)), n
	}, e.prototype.callBabyComeOn = function(t) {
		var e = this,
			i = e._roleData,
			n = e.getSkillData(t);
		if (n) {
			var a = n.level,
				o = GameUtil.getSkillConfigData(t, a),
				r = o.q_cal_monster,
				s = App.config.q_monsterContainer.getDataBean(r).q_petID;
			if (s) {
				var h = !1,
					l = i.petHash;
				if (l.length > 0) {
					var p = l.$_getValueMap();
					for (var c in p)
						if (p[c].petModelId == s) {
							h = !0;
							break
						}
				}
				if (0 == h) return h = i.operation.onUserSkill(!1, t, 0, !1, !1), h && i.isFightAiRuning && (i.AIRoleState =
					EnumAIRobotState.ROLE_CALL_BABY), !0
			}
		}
		return !1
	}, e.prototype.checkHpMpValue = function(t) {}, e
}(AIProcessor);
__reflect(AI_Auxiliary.prototype, "AI_Auxiliary");
var BasePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._resizeDelay = !1, e._isSpreading = !1, e._totaltime = .2, e._once = .01, e._w = 640, e._h = 932, e._dispatcher =
			new DispatcherRegister, e.lastHideTime = 0, e.lastShowTime = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function(t) {
		var e = this;
		e.lastShowTime = egret.getTimer(), e._dispatcher.addEventListener(EventType.STGAE_RESIZE, e.resize, e), e._btnClose &&
			(e._btnClose.visible = !e.info.neverClose && e.info.showClose, e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				e.onClose, e, e._btnClose)), e._externalData = t
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners(), this.lastHideTime = egret.getTimer(), this._externalData = null, this._isSpreading = !
			1, this._resizeDelay = !1
	}, e.prototype.tween = function() {
		this.x = .5 * Config.SCREEN_WIDTH, this.y = .5 * Config.SCREEN_HEIGHT, this.scaleX = 0, this.scaleY = 0, this._isSpreading = !
			0, App.timer.doTimeLoop(this, 1e3 * this._once, this.spread)
	}, e.prototype.spread = function() {
		this.x -= .5 * Config.SCREEN_WIDTH / this._totaltime * this._once, this.y -= .5 * Config.SCREEN_HEIGHT / this._totaltime *
			this._once, this.scaleX += 1 / this._totaltime * this._once, this.scaleY += 1 / this._totaltime * this._once, (
				this.x <= 0 || this.y <= 0 || this.scaleX >= 1 || this.scaleY >= 1) && (this.x = 0, this.y = 0, this.scaleX = 1,
				this.scaleY = 1, this._isSpreading = !1, this._resizeDelay && (this._resizeDelay = !1, this.resize()), App.timer.clearTimer(
					this.spread, this))
	}, e.prototype.resize = function() {
		var t = this;
		return t._isSpreading ? void(t._resizeDelay = !0) : void(t.stage && (t.x = Config.SCREEN_WIDTH - t.width >> 1, t.y =
			t.info && t.info.isModal ? Config.SCREEN_HEIGHT - t.height >> 1 : Config.isPhoneX && (Config.isWxGame || Config.isNeiZhiWeb ||
				Config.isBaiduGame) ? Config.SCREEN_HEIGHT - t.height >> 1 : 0))
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(this.info.panelID)
	}, e.prototype.dispose = function() {
		this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this._externalData = null
	}, e.prototype.setWidthAndHeight = function(t, e) {
		this._w = t, this._h = e
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._w
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._h
		},
		enumerable: !0,
		configurable: !0
	}), e
}(h5_engine.GDisplayObjectContainer);
__reflect(BasePanel.prototype, "BasePanel", ["IPanelDispose"]);
var SurfaceViewUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "SurfaceViewSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(SurfaceViewUI.prototype, "SurfaceViewUI");
var Player = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._levelUpCount = 0, e._isShowLevelEffect = !1, e._txPlatformImageList = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.cavatar.aniDirType = 1
	}, e.prototype.changeDirAction = function(e, i, n, a, o) {
		void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), void 0 === o && (o = 0);
		var r = this;
		r._roleData;
		r.cavatar.getCAvavtarPatr(AvatarPartType.HORSE) ? e == AvatarActionType.ACTION_TYPE_STAND ? e = AvatarActionType.ACTION_TYPE_HORSE_STAND :
			(e == AvatarActionType.ACTION_TYPE_RUN || e == AvatarActionType.ACTION_TYPE_WALK) && (e = AvatarActionType.ACTION_TYPE_HORSE_RUN) :
			e == AvatarActionType.ACTION_TYPE_HORSE_STAND ? e = AvatarActionType.ACTION_TYPE_STAND : e == AvatarActionType.ACTION_TYPE_HORSE_RUN &&
			(e = AvatarActionType.ACTION_TYPE_RUN), t.prototype.changeDirAction.call(this, e, i, n, a, o)
	}, Object.defineProperty(e.prototype, "guildNameBar", {
		get: function() {
			var t = this;
			if (0 == t.roleHeadLayout.hashConetnt(AvatarHeadType.GUILD_NAME)) {
				var e = new h5_engine.AvatarHeadTextName;
				t.roleHeadLayout.addContent(AvatarHeadType.GUILD_NAME, AvatarHeadType.getIndex(AvatarHeadType.GUILD_NAME), e),
					t.guildNameBar.show()
			}
			return t.roleHeadLayout.getContent(AvatarHeadType.GUILD_NAME)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getAvatarPartDepthList = function(t) {
		return AvatarActionType.getPlayerDepth(t, this._roleData.action, this.avatar.currentFrame)
	}, e.prototype.mouseOver = function() {
		t.prototype.mouseOver.call(this);
		var e = this._roleData;
		0 == e.getIsDead() && this.hpBar.showHpText()
	}, e.prototype.mouseOut = function() {
		t.prototype.mouseOut.call(this), this.hpBar.hideHpText()
	}, e.prototype.mouseDown = function() {
		t.prototype.mouseDown.call(this), App.dispatcher.dispatchEvent(EventType.MOUSE_DOWN_ROLE, this._roleData)
	}, e.prototype.addSelectEffect = function(e) {
		void 0 === e && (e = null), t.prototype.addSelectEffect.call(this), App.dispatcher.dispatchEvent(EventType.SELECT_PLAYER,
			this._roleData)
	}, e.prototype.removeSelectEffect = function() {
		t.prototype.removeSelectEffect.call(this), App.dispatcher.dispatchEvent(EventType.UN_SELECT_PLAYER, this._roleData)
	}, e.prototype.showGatherSign = function(t) {
		var e = this;
		if (t) {
			if (0 == e.roleHeadLayout.hashConetnt(AvatarHeadType.GATHER_SIGN)) {
				var i = new CEffect,
					n = EnumZoneType.CROSS_FLAG == App.data.zoneCenter.type ? "flag" : "gather";
				i.url = ResPathUtil.getMenuEffect("main", n), i.play();
				var a = new h5_engine.AvatarHeadEffect(i);
				a.height = -5, a.show(), e.roleHeadLayout.addContent(AvatarHeadType.GATHER_SIGN, AvatarHeadType.getIndex(
					AvatarHeadType.GATHER_SIGN), a)
			}
			var o = this._roleData;
			o.isGather
		} else e.roleHeadLayout.removeContent(AvatarHeadType.GATHER_SIGN)
	}, e.prototype.showGoodItemSign = function(t, e, i, n) {
		void 0 === e && (e = null), void 0 === i && (i = 0), void 0 === n && (n = !1)
	}, e.prototype.addLevelEffect = function() {
		var t = this;
		t._levelUpCount++, t.playLevelUpEffect()
	}, e.prototype.onLevelEffectComplet = function() {
		var t = this;
		if (t._isShowLevelEffect = !1, t._levelUpCount > 0) t.playLevelUpEffect();
		else if (t._lvlUpEffect) {
			for (var e = 0; e < t._lvlUpEffect.length; e++) t._lvlUpEffect[e].dispose();
			t._lvlUpEffect = null
		}
	}, e.prototype.playLevelUpEffect = function() {
		var t = this;
		if (0 == t._isShowLevelEffect) {
			if (t._isShowLevelEffect = !0, t._levelUpCount--, null == t._lvlUpEffect) {
				t._lvlUpEffect = [];
				var e = new CEffect;
				t._lvlUpEffect.push(e), e.lastFrameHanderCallBack = new FunctionVO(function(e) {
					e.stop(), t.onLevelEffectComplet()
				}, t, e)
			}
			for (var i = 0; i < t._lvlUpEffect.length; i++) {
				var e = t._lvlUpEffect[i];
				e.stop(), e.restart(), EffectUtils.showOnceEffect("Player", App.global.mapModule.secne.guideLayer, ResPathUtil.getMenuEffect(
					"lvup", (i + 1).toString()), 0, 0, e)
			}
		}
	}, e.prototype.showExpPaoDian = function() {
		var t = this;
		if (0 == t.roleHeadLayout.hashConetnt(AvatarHeadType.EXP_PAODIAN_SIGN)) {
			var e = new CEffect;
			e.url = ResPathUtil.getMenuEffect("paodian", "1"), e.play();
			var i = new h5_engine.AvatarHeadEffect(e);
			i.height = 20, t.roleHeadLayout.addContent(AvatarHeadType.EXP_PAODIAN_SIGN, AvatarHeadType.getIndex(AvatarHeadType
				.EXP_PAODIAN_SIGN), i), i.show()
		}
	}, e.prototype.hideExpPaoDian = function() {
		var t = this;
		t.roleHeadLayout.hashConetnt(AvatarHeadType.EXP_PAODIAN_SIGN) && t.roleHeadLayout.removeContent(AvatarHeadType.EXP_PAODIAN_SIGN)
	}, e.prototype.changePlatformSign = function(t) {
		var e = this;
		if (t && t.length > 0) {
			e.clearPlatformSign();
			for (var i = (t.length, 0); i < t.length; i++) {
				t[i]
			}
			e.nameBar.changeSignCall = new FunctionVO(e.changeSignPosition, e), e.resizeChildPosition()
		} else e.clearPlatformSign()
	}, e.prototype.clearPlatformSign = function() {
		var t = this;
		if (t._txPlatformImageList)
			for (var e = 0; e < t._txPlatformImageList.length; e++) {
				var i = t._txPlatformImageList[e];
				i.parent && i.parent.removeChild(i)
			}
		t._txPlatformImageList = [], t.nameBar.changeSignCall = null
	}, e.prototype.changeSignPosition = function() {
		var t = this,
			e = t._txPlatformImageList.length;
		if (1 == t._roleData.pfVipType) i = (t.nameBar.x < t.hpBar.x ? t.nameBar.x : t.hpBar.x) - 5;
		else var i = t.nameBar.x - 3,
			n = t.nameBar.y + 2;
		for (var a = 0; e > a; a++) {
			var o = t._txPlatformImageList[a];
			o.x = i - o.width, o.y = n ? n : -10 - o.height, i = o.x - 3
		}
	}, e.prototype.resizeChildPosition = function() {
		this.changeSignPosition(), t.prototype.resizeChildPosition.call(this)
	}, e.prototype.changeChildPosition = function(e, i, n) {
		var a = this;
		if (t.prototype.changeChildPosition.call(this, e, i, n), a._lvlUpEffect)
			for (var o = 0; o < a._lvlUpEffect.length; o++) {
				var r = a._lvlUpEffect[o];
				r.setTo(e, i)
			}
	}, e.prototype.resetAndClear = function() {
		var e = this;
		if (e._levelUpCount = 0, e._isShowLevelEffect = !1, e.roleHeadLayout.hashConetnt(AvatarHeadType.GUILD_NAME) && e.roleHeadLayout
			.getContent(AvatarHeadType.GUILD_NAME).clear(), e.roleHeadLayout.hashConetnt(AvatarHeadType.GOOD_ITEM_SIGN) && e.roleHeadLayout
			.removeContent(AvatarHeadType.GOOD_ITEM_SIGN), e.roleHeadLayout.hashConetnt(AvatarHeadType.GATHER_SIGN) && e.roleHeadLayout
			.removeContent(AvatarHeadType.GATHER_SIGN), e.roleHeadLayout.hashConetnt(AvatarHeadType.STALL_NAME) && e.roleHeadLayout
			.removeContent(AvatarHeadType.STALL_NAME), e._lvlUpEffect) {
			for (var i = 0; i < e._lvlUpEffect.length; i++) e._lvlUpEffect[i].dispose();
			e._lvlUpEffect = null
		}
		e.clearPlatformSign(), t.prototype.resetAndClear.call(this)
	}, e.prototype.clear = function() {
		this.clearFightNumber()
	}, e.prototype.dispose = function() {
		var t = this;
		t.resetAndClear(), t.hpBar.show(), App.thing.putIn(t)
	}, e
}(h5_engine.MoveRole);
__reflect(Player.prototype, "Player");
var CImage = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._type = NetResourceType.C_IMAGE, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return this._type
		},
		set: function(t) {
			this._type = t
		},
		enumerable: !0,
		configurable: !0
	}), e
}(h5_engine.NetImage);
__reflect(CImage.prototype, "CImage");
var RoleSkillAniProcessor = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.fightActionId = "", e.personId = "", e.damageHp = 0, e.damageMp = 0, e.curhp = 0, e.curmp = 0, e.fightDirection =
			0, e.skillid = 0, e.skillLevel = 0, e.fightTarget = "", e.skillToX = 0, e.skillToY = 0, e.targetPersonList = new Array,
			e._init = !1, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "mapModule", {
		get: function() {
			return this._mapModule
		},
		set: function(t) {
			this._mapModule = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.init = function() {
		var t = this;
		if (0 == t._init) {
			t._init = !0;
			var e = t._mapModule.mapAvatarModel.getFightRoleData(t.personId);
			if (e) {
				null == t.targetPersonRole && (t.targetPersonRole = new HashObject);
				for (var i = t.targetPersonList.length, n = 0; i > n; n++) {
					var a = t.targetPersonList[n],
						o = t._mapModule.mapAvatarModel.getFightRoleData(a);
					o && t.targetPersonRole.put(a, o)
				}
				t.attackRole = e, e.refreshCurrentHp(), e.refreshCurrentMp(), e.refreshCurrentNg(), t.playSkillProgressAnimation()
			} else t.dispose()
		}
	}, e.prototype.playSkillProgressAnimation = function() {}, e.prototype.playBeHitSound = function(t) {
		if (t)
			if (t instanceof MapMonsterRoleData) {
				var e = t.monsterModelBean;
				if (e) {
					if (e.q_underfire_soundid > 0) {
						var i = 3e3;
						App.global.characterData && this.attackRole == App.global.characterData && (i = 0), App.sound.playSound(e.q_underfire_soundid
							.toString(), i)
					}
					0 == t.getIsDead() && 1 == e.q_isBelow && t.changeDirAction(AvatarActionType.ACTION_TYPE_BLOW, -1, !1, !0)
				}
			} else if (t instanceof MapPetRoleData) {
			var n = t.monsterModelBean;
			n && n.q_underfire_soundid > 0 && App.sound.playSound(n.q_underfire_soundid.toString())
		}
	}, e.prototype.clear = function() {
		var t = this;
		t.fightActionId = "", t.personId = "", t.damageHp = 0, t.damageMp = 0, t.curhp = 0, t.curmp = 0, t.fightDirection =
			0, t.skillid = 0, t.skillLevel = 0, t.fightTarget = "", t.skillToX = 0, t.skillToY = 0, t.targetPersonList = new Array,
			t.fightTargetCurHpList = null
	}, e.prototype.dispose = function() {
		var t = this;
		t.clear(), t.targetPersonRole && t.targetPersonRole.clear(), t._mapModule = null, t._init = !1, t.putPoolback.exec()
	}, e
}(Dispose);
__reflect(RoleSkillAniProcessor.prototype, "RoleSkillAniProcessor");
var BaseGrid = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.init(), i.style = e, i.createChildren(), i
	}
	return __extends(e, t), e.prototype.init = function() {
		this.touchEnabled = !0, this.touchChildren = !1, this._gradeBg = new eui.Image, this.addChild(this._gradeBg)
	}, e.prototype.createChildren = function() {}, Object.defineProperty(e.prototype, "style", {
		get: function() {
			return this._styleName
		},
		set: function(t) {
			if (this._styleName != t) {
				if (this._styleName = t, void 0 == this._styleName || "" == this._styleName || null == this._styleName) return this
					._gridBgSize = void 0, this._iconSize = void 0, void(this._gradeBg.source = void 0);
				this._gridBgSize || (this._gridBgSize = new egret.Rectangle), this._iconSize || (this._iconSize = new egret.Rectangle);
				var e = this._styleName.split("|"),
					i = e[0].split(",");
				this._gridBgSize.width = parseInt(i[0]), this._gridBgSize.height = parseInt(i[1]), i = e[1].split(","), this._iconSize
					.width = parseInt(i[0]), this._iconSize.height = parseInt(i[1]), this.resize()
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "size", {
		get: function() {
			return this._iconSize
		},
		set: function(t) {
			this._iconSize.width = t.width, this._iconSize.height = t.height
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "gridBgSize", {
		get: function() {
			return this._gridBgSize
		},
		set: function(t) {
			this._gridBgSize.width = t.width, this._gridBgSize.height = t.height
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "gridBg", {
		get: function() {
			return this._gradeBg
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "icon", {
		get: function() {
			return null == this._icon && (this._icon = new CImage, this._icon.touchEnabled = !1, this.addChildAt(this._icon,
				1)), this._icon
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.resize = function() {
		this.icon.x = 0, this.icon.y = 0
	}, e.prototype.move = function(t, e, i) {
		this.x != t && (this.x = t), this.y != e && (this.y = e), i && i.addChild(this)
	}, e.prototype.removeFromParent = function() {
		this.parent && this.parent.removeChild(this)
	}, e.prototype.clear = function() {
		this.x = 0, this.y = 0
	}, e.prototype.resetAndClear = function() {
		this.clear()
	}, e.prototype.dispose = function() {
		this.resetAndClear(), this.style = void 0, this.removeFromParent(), this._icon && (this._icon.filters = null), this
			.gridBg && (this.gridBg.alpha = 1), GridUtil.putInPool(this)
	}, e
}(eui.Group);
__reflect(BaseGrid.prototype, "BaseGrid", ["IDispose"]);
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._url = "NetEffect", t._isLoading = !1, t
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "url", {
			get: function() {
				return this._url
			},
			set: function(t) {
				var e = this;
				e._url != t && (e.clear(), e._url = null == t ? "NetEffect" : t, t && "" != t && TypeUtil.isString(t) && e.netLoad())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "resType", {
			get: function() {
				return 0
			},
			set: function(t) {},
			enumerable: !0,
			configurable: !0
		}), i.prototype.clear = function() {
			this.unNetLoad(), this._content = null
		}, Object.defineProperty(i.prototype, "data", {
			get: function() {
				return this._vo
			},
			set: function(t) {
				this._vo = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netLoad = function() {
			var e = this;
			0 == e._isLoading && ("NetEffect" != e._url && null != e._url ? (e._isLoading = !0, t.NetResourceManager.instance.getResource(
				e)) : GameLog.log("NetEffect >> 加载路径有问题"))
		}, i.prototype.unNetLoad = function() {
			this._isLoading = !1, t.NetResourceManager.instance.delResource(this)
		}, Object.defineProperty(i.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netComplete = function(e) {
			var i = this;
			e instanceof t.Animator ? (i._content = e, i._isLoading = !1, i.addAnimatior(i._content), i._netHandler && i._netHandler
				.netComplete()) : GameLog.log("NetEffect- 传入的资源错误了")
		}, i.prototype.netProgress = function(t) {
			this._netHandler && this._netHandler.netProgress()
		}, i.prototype.netError = function(t) {
			this._netHandler && this._netHandler.netError()
		}, Object.defineProperty(i.prototype, "netHandler", {
			get: function() {
				return null == this._netHandler && (this._netHandler = new t.NetHandler), this._netHandler
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.resetAndClear = function() {
			var t = this;
			t._vo = null, t._netHandler && t._netHandler.clear(), t.clear(), e.prototype.resetAndClear.call(this), t._url =
				"NetEffect"
		}, i.prototype.dispose = function() {
			var t = this;
			e.prototype.dispose.call(this), t._vo = null, t.clear(), t._netHandler && t._netHandler.dispose(), t._netHandler =
				null
		}, i
	}(t.Effect);
	t.NetEffect = e, __reflect(e.prototype, "h5_engine.NetEffect", ["INetResourceElement", "IDispose", "egret.IHashObject"])
}(h5_engine || (h5_engine = {}));
var MapPlayerRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._job = -1, e._upjob = -1, e._sex = -1, e._state = -1, e._pksword = -1, e._playerPkModelColor = EnumPKState.PKSWORD_WHITE,
			e._pkswordState = EnumPKState.PKSWORD_WHITE, e._pkswordValue = 0, e._pkstateSplueTime = 0, e._weapon = -1, e._armor = -
			1, e._surfaceWeapon = "", e._surfaceArmor = "", e._head = "", e._wing = "", e._weaponSoul = "", e._horse = "", e._horseHead =
			"", e._guildName = "", e._guildNameColor = 0, e._showWeapon = "", e._vipExp = 0, e._vipLevel = 0, e._zhuanSheng = 0,
			e._pfVipType = -1, e._pfVipLvl = -1, e._pfVipYear = -1, e._pfViphigh = -1, e._groupColor = 0, e._enemyFriendName =
			"", e._attackerName = "", e._goodItemArr = [], e._hideSurfaceType = [], e._pkState = 0, e.soldierNextSkillid = 0, e
			.isForbidSpeak = !1, e.PartnerCampSync = function(t, i) {
				var n = e._view.getRoleData().personId,
					a = App.global.mapModule.mapAvatarModel.getPlayerOrCharacterData(n);
				if (a) {
					var o = App.global.roles.roleList;
					o.length > 1 && o.map(function(e) {
						var n = e.roleView.roleHeadLayout.getContent(AvatarHeadType.GUILD_NAME);
						n.setName(t, i), n.show()
					})
				}
			}, e._chengzhuWeapon = "", e._hejiRationIndex = 0, e
	}
	return __extends(e, t), e.prototype.createRoleView = function() {
		return this._view = App.thing.create(Player, "MapPlayerRoleData", !0), this._view
	}, e.prototype.initRoldData = function(t) {
		var e = this,
			i = t;
		e._personId = LongUtil.toString(i.personId), e._faceDir = i.dir, e._hp = i.hp, e._maxHp = i.maxHp, e._ng = i.insidePowerVal,
			e._maxNg = i.insidePowerMaxVal, e._name = i.name, e.pksword = i.pksword, e.group = i.group, e._sex = i.sex, e._speed =
			i.speed, e._level = i.level, e._job = i.job, e._upjob = i.upjob, e.armor = i.armor, e.weapon = i.weapon, e.positions =
			i.positions, e.guildId = LongUtil.toString(i.guildId), e._teamId = LongUtil.toString(i.teamId), e._nation = i.nation,
			e.setMapPos(i.x, i.y), e._c_move_to_x = e._serverMap_x, e._c_move_to_y = e._serverMap_y, e.state = i.state, e._showGroup =
			i.showgroup, e._serverId = i.serverid, 0 != LongUtil.toNumber(i.gatherId) && e.setGatherState(!0), e._bb1ID =
			LongUtil.toString(i.bb1), e._bb2ID = LongUtil.toString(i.bb2), null != i.pfVipInfo && (e.pfVipType = i.pfVipInfo.vipType,
				e.pfViphigh = i.pfVipInfo.highVip, e.pfVipYear = i.pfVipInfo.yearVip, e.pfVipLvl = i.pfVipInfo.vipLvl), e.hideSurfaceType =
			i.hideSurfaceType, e._roleView.hpBar.settingHpValue(e._hp, e._maxHp), e._roleView.hpBar.settingNeiGongValue(e._ng,
				e._maxNg);
		for (var n = i.buffs.length, a = 0; n > a; a++) {
			var o = i.buffs[a];
			e.bufferManager.createBuffer(o.buffId.toString(), o)
		}
		for (var r = i.showSurfaceInfo.length, s = 0; r > s; s++) {
			var h = i.showSurfaceInfo[s];
			e._surface.addSerface(h.surfaceId, h)
		}
	}, e.prototype.setIsDead = function(t) {
		var e = this;
		if (e._isDead != t)
			if (e._isDead = t, e._isDead) {
				e.operation && (e.operation.clearAuto(), e.operation.clear()), e.setDeadState(), e.changeDirAction(
					AvatarActionType.ACTION_TYPE_DIE, -1, !1, !0), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_DEAD, e.personId);
				var i = e._sex == EnumRole.BOY ? EnumSoundId.MAN_DEAD : EnumSoundId.WOMAN_DEAD;
				App.sound.playSound(i)
			} else e.ai && (e.ai.isRuning = !0), e._roleView.hpBar.show(), e._roleView.isMouseEnabled = !0, e._roleView.roleHeadLayout
				.change = !0, e.changeDirAction(AvatarActionType.ACTION_TYPE_STAND), App.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(
					this, e._mapNodeX, e._mapNodeY, -1, -1), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_RELIVE, e.personId)
	}, Object.defineProperty(e.prototype, "pkState", {
		get: function() {
			return this._pkState
		},
		set: function(t) {
			var e = this;
			e._pkState != t && (e._pkState = t, e.changeAiProcessor(), App.dispatcher.dispatchEvent(PlayerAttributeEvent.CHANGE_PKSTATE,
				e._pkState, e._personId))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "hideSurfaceType", {
		get: function() {
			return this._hideSurfaceType
		},
		set: function(t) {
			var e = this;
			e._hideSurfaceType = t, 0 == t.length && (e._surfaceHair = null), e.changeWeaponShow(), e.changeHeadShow(), e.changeArmorShow()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.crossDressing = function(e) {
		var i = this;
		e != i._crossData && (t.prototype.crossDressing.call(this, e), i.changeWeaponShow(), i.changeHeadShow(), i.changeArmorShow(),
			i.changeWingShow())
	}, Object.defineProperty(e.prototype, "armor", {
		get: function() {
			return this._armor
		},
		set: function(t) {
			var e = this;
			e._armor != t && (e._armor = t, e.changeArmorShow())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceArmor", {
		get: function() {
			return this._surfaceArmor
		},
		set: function(t) {
			var e = this;
			e._surfaceArmor != t && (e._surfaceArmor = t, e.changeArmorShow())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeArmorShow = function() {
		var t = this;
		if (t._armor > 0) var e = App.config.q_itemContainer.getDataBean(t._armor);
		if (e) {
			var i = e.q_equip_resource;
			if (t._horse) switch (t.job) {
				case EnumRole.ZHAN_SHI:
					i = t.sex == EnumRole.BOY ? "zsm00" : "80192";
					break;
				case EnumRole.FA_SHI:
					i = t.sex == EnumRole.BOY ? "fsm00" : "80194";
					break;
				case EnumRole.DAO_SHI:
					i = t.sex == EnumRole.BOY ? "dsm00" : "80196"
			}
		}
		var n = App.data.surfaceCenter.checkArrHasHideType(t.hideSurfaceType, 4);
		if (t._surfaceArmor && !n && (i = t._surfaceArmor), t._crossData && (i = t._crossData.modelBodyResID), i) {
			var a = ResPathUtil.getMapAvatarPartRes(AvatarPartType.BODY, t.sex, i);
			t._crossData && (a = ResPathUtil.getMapAvatarPartRes(AvatarPartType.BODY, t._crossData.sex, i)), t._roleView.changeAvatarPartAniName(
				AvatarPartType.BODY, a)
		} else i = EnumRole.getDefaultBody(t.job, t.sex), a = ResPathUtil.getMapAvatarPartRes(AvatarPartType.BODY, t.sex, i),
			t._roleView.changeAvatarPartAniName(AvatarPartType.BODY, a)
	}, Object.defineProperty(e.prototype, "weapon", {
		get: function() {
			return this._weapon
		},
		set: function(t) {
			var e = this;
			e._weapon != t && (e._weapon = t, e.changeWeaponShow())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceWeapon", {
		get: function() {
			return this._surfaceWeapon
		},
		set: function(t) {
			var e = this;
			e._surfaceWeapon != t && (e._surfaceWeapon = t, e.changeWeaponShow())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "chengzhuWeapon", {
		get: function() {
			return this._chengzhuWeapon
		},
		set: function(t) {
			var e = this;
			e._chengzhuWeapon != t && (e._chengzhuWeapon = t, e.changeWeaponShow())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showWeapon", {
		get: function() {
			return this._showWeapon
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeWeaponShow = function() {
		var t = this,
			e = t._chengzhuWeapon;
		if (!e && t._weapon > 0) {
			var i = App.config.q_itemContainer.getDataBean(t._weapon);
			i && (e = i.q_equip_resource)
		}
		var n = App.data.surfaceCenter.checkArrHasHideType(t.hideSurfaceType, 5);
		if (t._surfaceWeapon && !n && (e = t._surfaceWeapon), t._crossData && (e = t._crossData.modelWeaponResId), t._showWeapon !=
			e)
			if (t._showWeapon = e, e) {
				var a = ResPathUtil.getMapAvatarPartRes(AvatarPartType.WEAPON, t.sex, e);
				t._crossData && (a = ResPathUtil.getMapAvatarPartRes(AvatarPartType.WEAPON, t._crossData.sex, e)), t._roleView.changeAvatarPartAniName(
					AvatarPartType.WEAPON, a)
			} else t._showWeapon = "", t._roleView.removeAvatarPart(AvatarPartType.WEAPON)
	}, Object.defineProperty(e.prototype, "head", {
		get: function() {
			return this._head
		},
		set: function(t) {
			var e = this;
			e._head != t && (e._head = t, e.changeHeadShow())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceHair", {
		get: function() {
			return this._surfaceHair
		},
		set: function(t) {
			var e = this;
			e._surfaceHair = t, e.changeHeadShow()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeHeadShow = function() {}, Object.defineProperty(e.prototype, "wingID", {
		get: function() {
			return this._wingId
		},
		set: function(t) {
			this._wingId = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "wing", {
		get: function() {
			return this._wing
		},
		set: function(t) {
			var e = this;
			e._wing != t && (e._wing = t, e.changeWingShow())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeWingShow = function() {
		var t = this,
			e = t._wing;
		if (t._crossData && (e = t._crossData.modelWingResId), e) var i = ResPathUtil.getMapAvatarPartRes(AvatarPartType.WING,
			1, e);
		i ? t._roleView.changeAvatarPartAniName(AvatarPartType.WING, i) : t._roleView.removeAvatarPart(AvatarPartType.WING)
	}, Object.defineProperty(e.prototype, "weaponSoul", {
		get: function() {
			return this._weaponSoul
		},
		set: function(t) {
			var e = this;
			e._weaponSoul != t && (e._weaponSoul = t, e.changeWeaponSoul())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeWeaponSoul = function() {
		var t = this,
			e = t._weaponSoul;
		if (t._crossData && (e = t._crossData.modelWeaponSoulResId), e) var i = ResPathUtil.getMapAvatarPartRes(
			AvatarPartType.WEAPONSOUL, 1, e);
		i ? t._roleView.changeAvatarPartAniName(AvatarPartType.WEAPONSOUL, i) : t._roleView.removeAvatarPart(AvatarPartType
			.WEAPONSOUL)
	}, e.prototype.setModelBaseHeight = function(t) {
		var e = this;
		e._mBaseHeight = t, e._horse && (e._mHeight = e._mBaseHeight + 30)
	}, Object.defineProperty(e.prototype, "horse", {
		get: function() {
			return this._horse
		},
		set: function(t) {
			var e = this;
			e._horse != t && (e._horse = t, e.changeHorseShow())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeHorseShow = function() {
		var t = this,
			e = t._horse;
		if (t._crossData && (e = t._crossData.modelHorseResId), e) var i = ResPathUtil.getMapAvatarPartRes(AvatarPartType.HORSE,
			1, e);
		i ? t._roleView.changeAvatarPartAniName(AvatarPartType.HORSE, i) : t._roleView.removeAvatarPart(AvatarPartType.HORSE),
			t.setModelBaseHeight(t._mBaseHeight), t.changeArmorShow()
	}, Object.defineProperty(e.prototype, "horseHead", {
		get: function() {
			return this._horseHead
		},
		set: function(t) {
			var e = this;
			e._horseHead != t && (e._horseHead = t, e.changeHorseHeadShow())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeHorseHeadShow = function() {
		var t = this,
			e = t._horseHead;
		if (t._crossData && (e = t._crossData.modelHorseHeadResId), e) var i = ResPathUtil.getMapAvatarPartRes(
			AvatarPartType.HORSE_HEAD, 1, e);
		i ? t._roleView.changeAvatarPartAniName(AvatarPartType.HORSE_HEAD, i) : t._roleView.removeAvatarPart(AvatarPartType
			.HORSE_HEAD)
	}, Object.defineProperty(e.prototype, "pkswordState", {
		get: function() {
			return this._pkswordState
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pksword", {
		get: function() {
			return this._pkswordValue
		},
		set: function(t) {
			var e = this;
			if (e._pksword != t) {
				e._pksword = t, e._pkstateSplueTime = e._pksword >> 24, e._pkswordValue = 16777215 & e._pksword;
				var i = 0;
				i = e._pkswordValue >= 280 ? EnumPKState.PKSWORD_RED : e._pkswordValue >= 150 ? EnumPKState.PKSWORD_YELLOW : e._pkstateSplueTime >
					0 ? EnumPKState.PKSWORD_GREY : EnumPKState.PKSWORD_WHITE, e._pkswordState != i && (e._pkswordState = i, e.setName(
						e._name)), App.dispatcher.dispatchEvent(PlayerAttributeEvent.PKSWORD_CHANGE, e._personId)
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "group", {
		get: function() {
			return this._group
		},
		set: function(t) {
			var i = this;
			if (egret.superSetter(e, this, "group", t), 0 == t) {
				var n = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
				if (n && n.q_zone_client_type == EnumZoneType.BIQI_NIGHT) return;
				!i.guildId && i._view.roleHeadLayout.hashConetnt(AvatarHeadType.GUILD_NAME) && i._view.guildNameBar.hide(), i.guildId &&
					i.changeGuildName()
			} else i.changeGuildName()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setName = function(e, i, n) {
		void 0 === i && (i = 16777215), void 0 === n && (n = !0);
		var a = this;
		switch (i = 0 != a.pksword ? a._pkswordState : a._playerPkModelColor, a._group) {
			case 0:
				i = a._pkswordState;
				break;
			case 1:
			case 2:
			case 3:
				i = 16777215;
				break;
			default:
				i = a._pkswordState
		}
		App.data.crossCenter().isInCrossMap() && (e = "S" + this._serverId + "." + e, this._serverId != App.global.characterData
			.serverid && (i = 16711680)), App.data.zoneCenter.type == EnumZoneType.TIANXIADIYI && (e = ""), i = this.checkInShenyuan(
			this.personId, i);
		var o = "0x" + i.toString(16);
		t.prototype.setName.call(this, "<font color=" + o + ">" + e + "</font>" + a._enemyFriendName + a._attackerName, i,
			!0)
	}, e.prototype.checkInShenyuan = function(t, e) {
		return App.data.zoneCenter.abyssCenter.checkIsNoGold(t) && (e = EnumPKState.PKSWORD_GREY), e
	}, Object.defineProperty(e.prototype, "enemyFriendName", {
		get: function() {
			return this._enemyFriendName
		},
		set: function(t) {
			var e = this;
			e._enemyFriendName != t && (e._enemyFriendName = t, e.setName(e._name))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "attackerName", {
		get: function() {
			return this._attackerName
		},
		set: function(t) {
			var e = this;
			e._attackerName != t && (e._attackerName = t, e.setName(e._name))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "state", {
		get: function() {
			return this._state
		},
		set: function(t) {
			var e = this;
			e._state != t && (e._state = t, EnumPlayerState.compare(e._state, EnumPlayerState.DIE) && (e._isDead = !0, e.setDeadState()))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setDeadState = function() {
		var t = this;
		t._actionList.clear(), t.setCrtHp(0), t.setCrtNg(0), t._roleView.hpBar.hide(), t._roleView.isMouseEnabled = !1, App
			.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(this, -1, -1, t._mapNodeX, t._mapNodeY)
	}, Object.defineProperty(e.prototype, "sex", {
		get: function() {
			return this._sex
		},
		set: function(t) {
			this._sex = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "job", {
		get: function() {
			return this._job
		},
		set: function(t) {
			this._job = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "upjob", {
		get: function() {
			return this._upjob
		},
		set: function(t) {
			this._upjob = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "zhuanSheng", {
		get: function() {
			return this._zhuanSheng
		},
		set: function(t) {
			this._zhuanSheng = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refreshCurrentHp = function() {
		var e = this,
			i = t.prototype.refreshCurrentHp.call(this);
		return i && App.dispatcher.dispatchEvent(PlayerAttributeEvent.HP, e.personId, e.hp, e.maxHp), i
	}, e.prototype.refreshCurrentMp = function() {
		var e = this,
			i = t.prototype.refreshCurrentMp.call(this);
		return i && App.dispatcher.dispatchEvent(PlayerAttributeEvent.MP, e.personId, e.mp, e.maxMp), i
	}, e.prototype.refreshCurrentNg = function() {
		var e = this,
			i = t.prototype.refreshCurrentNg.call(this);
		return i && App.dispatcher.dispatchEvent(PlayerAttributeEvent.NG, e.personId, e.hp, e.maxHp), i
	}, Object.defineProperty(e.prototype, "guildId", {
		get: function() {
			return this._guildId
		},
		set: function(t) {
			var e = this;
			e._guildId != t && (!t && e._guildNameCallBack && App.data.guildNameCenter.removeGuildNameRequets(e._guildId, e._guildNameCallBack),
				e._guildId = t, e._guildId ? (null == e._guildNameCallBack && (e._guildNameCallBack = new FunctionVO(e.onGuildNameCallBack,
					this)), App.data.guildNameCenter.getGuildNameById(e._guildId, e._guildNameCallBack)) : (e._guildName = "", e._view
					.roleHeadLayout.hashConetnt(AvatarHeadType.GUILD_NAME) && 0 == e._groupColor && e._view.guildNameBar.hide()))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onGuildNameCallBack = function(t, e) {
		var i = this;
		t == i._guildId && (i._guildName = e, i.changeGuildName())
	}, e.prototype.changeGildNameColor = function(t, e) {
		void 0 === e && (e = 0);
		var i = this;
		i._guildNameColor != t && (i._guildNameColor = t, i._playerPkModelColor != e && (i._playerPkModelColor = e), i._guildId &&
			i._guildName && i.changeGuildName())
	}, e.prototype.changeGuildName = function() {
		var t = this;
		t._groupColor = 0;
		var e = "";
		if (0 != t._group) switch (t._group) {
			case 1:
				t._groupColor = 16711680, e = "【红色阵营】";
				break;
			case 2:
				t._groupColor = 16776960, e = "【黄色阵营】"
		} else {
			var i = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
			if (i && i.q_zone_client_type == EnumZoneType.BIQI_NIGHT) return
		}
		var n = t._groupColor;
		0 == t._groupColor && t._guildName && t._guildId && -1 != GameUtil.getGlobalConfigData(269).q_string_value.indexOf(
				App.data.zoneCenter.type.toString()) && (t._guildId == App.data.castleWarCenter.castleLinkData.castleGuildId && (
				e = "【王城】 "), e += "【" + t._guildName + "】", n = t._guildNameColor > 0 ? t._guildNameColor : 16760853), e && n >
			0 ? (t._view.guildNameBar.setName(e, n), t._view.guildNameBar.show()) : t.guildId && "0" != t.guildId || !t._view.roleHeadLayout
			.hashConetnt(AvatarHeadType.GUILD_NAME) ? "" == e && t._view.guildNameBar.hide() : t._view.guildNameBar.hide()
	}, Object.defineProperty(e.prototype, "vipExp", {
		get: function() {
			return this._vipExp
		},
		set: function(t) {
			this._vipExp = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "vipLevel", {
		get: function() {
			return this._vipLevel
		},
		set: function(t) {
			this._vipLevel = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pfVipType", {
		get: function() {
			return this._pfVipType
		},
		set: function(t) {
			var e = this;
			e._pfVipType != t && (e._pfVipType = t, e.changePfVipSign())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pfVipLvl", {
		get: function() {
			return this._pfVipLvl
		},
		set: function(t) {
			var e = this;
			e._pfVipLvl != t && (e._pfVipLvl = t, e.changePfVipSign())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pfVipYear", {
		get: function() {
			return this._pfVipYear
		},
		set: function(t) {
			var e = this;
			e._pfVipYear != t && (e._pfVipYear = t, e.changePfVipSign())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pfViphigh", {
		get: function() {
			return this._pfViphigh
		},
		set: function(t) {
			var e = this;
			e._pfViphigh != t && (e._pfViphigh = t, e.changePfVipSign())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changePfVipSign = function() {}, e.prototype.setGatherState = function(e) {
		var i = this;
		i._view.showGatherSign(e), i._isGather != e && e && i.changeDirAction(AvatarActionType.ACTION_TYPE_STAND), t.prototype
			.setGatherState.call(this, e)
	}, e.prototype.getHejiRation = function() {
		this._hejiRationList || (this._hejiRationList = [80, 140, 180, 220, 270], ArrayUtil.shullfe(this._hejiRationList));
		var t = this._hejiRationList[this._hejiRationIndex];
		return this._hejiRationIndex++, this._hejiRationIndex >= this._hejiRationList.length && (this._hejiRationIndex = 0),
			t
	}, e.prototype.dispose = function() {
		var e = this;
		e._guildNameCallBack && App.data.guildNameCenter.removeGuildNameRequets(e._guildId, e._guildNameCallBack), e._guildNameCallBack =
			null, e._view = null, t.prototype.dispose.call(this)
	}, e
}(MapFightRoleData);
__reflect(MapPlayerRoleData.prototype, "MapPlayerRoleData");
var ActBossView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.btnEventType = 0, e._scrollH = 0, e._isRight = !1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ActBossSkin"), this.addChild(this._view), this._scrollPanel = new VScrollPanel(
				568, 180, ActBossItemRender, 3, null, 2), this._scrollPanel.move(40, 200, this), null == this.bgimg && (this.bgimg =
				UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/qmboss", "", ".jpg"))), this._defaultIndex =
			0, this._pageSize = 4, this._pageNo = 1, this._maxPage = 0
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onPreBtn, this, this._view.preBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNextBtn, this, this._view.nextBtn), this._dispatcher.addEventListener(
				eui.ItemTapEvent.ITEM_TAP, this.onSelectBoss, this, this._scrollPanel.list), this._dispatcher.addEventListener(
				eui.ItemTapEvent.CHANGE, this.onListChange, this, this._scrollPanel), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onBtnGo, this, this._view.btnGo), this._dispatcher.addEventListener(ActivityEvent.REFRESH_BRIEF,
				this.updatePanel, this), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.updatePanel, this),
			this._dispatcher.addEventListener(BossEvent.REFRESH, this.onSelectBoss, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.updatePanel()
	}, e.prototype.updatePanel = function() {
		this._arrData = App.data.activityCenter.getList(15), this._scrollPanel.dataProvider = this._arrData, this._defaultIndex =
			this.defaultIndex(this._arrData), this._pageNo = Math.floor(this._defaultIndex / this._pageSize) + 1, this._redPoint =
			new HashObject;
		for (var t = 0; t < this._arrData.length; t++) {
			var e = Math.floor(t / this._pageSize) + 1;
			1 == this._arrData[t].playerStates && this._redPoint.put(e, !0)
		}
		this._maxPage = Math.ceil(this._arrData.length / 4), this._scrollPanel.validateNow(), this._scrollPanel.selectClick2(
				this._defaultIndex), this.onSelectBoss(), this.updateTurnBtn(), App.timer.serverTimeEnd(this, this.ontimer, this.endTime),
			this._view.tfDesc.text = this._arrData[0].bean.q_desc
	}, e.prototype.ontimer = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.ontimer, this))
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onTimer, this), App.timer.clearTimer(this.ontimer, this), this._dispatcher.removeAllListeners(),
			this._view.hide(), this._bg && (this._bg.dispose(), this._bg = null), this._scrollPanel.removeAll(), t.prototype.hide
			.call(this)
	}, e.prototype.dispose = function() {
		this._arrData = null, this._redPoint && (this._redPoint.dispose(), this._redPoint = null), this.bgimg && (this.bgimg
			.dispose(), this.bgimg = null), this._scrollPanel && (this._scrollPanel.parent && this._scrollPanel.parent.removeChild(
			this._scrollPanel), this._scrollPanel.dispose(), this._scrollPanel = null), this._bg && (this._bg.dispose(), this
			._bg = null), this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e.prototype.defaultIndex = function(t) {
		for (var e = 0; e < t.length; e++)
			if (1 == t[e].playerStates) return e;
		for (var e = 0; e < t.length; e++)
			if (2 == t[e].playerStates) return e;
		return t.length - 1
	}, e.prototype.onSelectBoss = function() {
		var t = this._scrollPanel.list.selectedIndex;
		if (t >= 0) {
			var e = this._scrollPanel.list.selectedItem;
			if (null == e) return;
			if ("" == e.extendMap) return void GameLog.log("没有扩展字段");
			var i = StringUtil.JsonParse(e.extendMap);
			Number(i.kill1);
			this.endTime = Number(i.endtime), 1 == e.playerStates ? (this._view.btnGo.label = "领 取", this._view.btnGo.visible =
				this._view.btnGo.enabled = !0, this._view.tfGot.visible = !1, this.btnEventType = 10) : 2 == e.playerStates ? (
				this._view.btnGo.label = "前往击杀", this._view.btnGo.visible = this._view.btnGo.enabled = !0, this._view.tfGot.visible = !
				1, this.btnEventType = 11) : (this._view.tfGot.visible = !0, this._view.btnGo.visible = this._view.btnGo.enabled = !
				1), this._view.tfBossBorn.text = "";
			var n = App.data.boss.getZoneBoss(Number(i.zone1)),
				a = 0;
			null != n && 0 != e.playerStates && (n.canKill || (a = n.endTime, this._view.tfBossBorn.text = StringUtil.convertTime(
				a))), a > 0 ? App.timer.serverTimeEnd(this, this.onTimer, a) : (App.timer.clearTimer(this.onTimer, this), 2 == e
				.playerStates && (this._view.tfBossBorn.text = "已出现"));
			var o = App.data.zoneCenter.getData(Number(i.zone1)),
				r = App.config.q_monsterContainer.getDataBean(Number(o.bean.q_image));
			if (this._view.tfBossType.text = r.q_name + "击杀奖", null == this._listDataProvider) {
				var s = new eui.HorizontalLayout;
				s.gap = 2, this._view.listReward.layout = s, this._listDataProvider = new eui.ArrayCollection, this._view.listReward
					.itemRenderer = ActRewardItemRender, this._view.listReward.dataProvider = this._listDataProvider
			}
			var h = ItemUtil.getRewardDataList(e.bean.q_show_rewards);
			this._listDataProvider.replaceAll(h)
		}
	}, e.prototype.onBtnGo = function(t) {
		var e = this._scrollPanel.list.selectedItem;
		if (null != e)
			if (10 == this.btnEventType) ActivityCommandSender.sendC2S_JoinActivityMessage(e.id);
			else {
				var i = StringUtil.JsonParse(e.extendMap),
					n = Number(i.zone1),
					a = App.data.zoneCenter.getData(n);
				switch (a.type) {
					case EnumZoneType.WILD_BOSS:
						var o = {
							selectedIndex: 1,
							zoneId: a.id
						};
						PanelOpenManager.openPanel(29, o, !0, !0, 90)
				}
			}
	}, e.prototype.updateTurnBtn = function() {
		var t = !1;
		if (this._pageNo < this._maxPage) {
			for (var e = this._pageNo; e < this._maxPage && (t = this._redPoint.get(e + 1), UIMaker.showPoint(this._view.nextBtn,
					this, t, 4, -16), !t); e++);
			this._view.nextBtn.visible = !0
		} else this._view.nextBtn.visible = !1;
		if (this._pageNo > 1) {
			for (var e = this._pageNo; e > 1 && (t = this._redPoint.get(e - 1), UIMaker.showPoint(this._view.preBtn, this, t,
					4, -16), !t); e--);
			this._view.preBtn.visible = !0
		} else this._view.preBtn.visible = !1;
		this._view.tfPage.text = ""
	}, e.prototype.onPreBtn = function(t) {
		t.stopImmediatePropagation(), this._pageNo -= 1, 0 == this._pageNo && (this._pageNo = 1), this._scrollPanel.selectClick2(
			this._pageSize * (this._pageNo - 1)), this.onSelectBoss(), this.updateTurnBtn()
	}, e.prototype.onNextBtn = function(t) {
		t.stopImmediatePropagation(), this._pageNo += 1, this._scrollPanel.selectClick2(this._pageSize * (this._pageNo - 1)),
			this.onSelectBoss(), this.updateTurnBtn()
	}, e.prototype.onListChange = function(t) {
		t.stopImmediatePropagation(), this._isRight = this._scrollH < this._scrollPanel.list.scrollH, this._scrollH = this._scrollPanel
			.list.scrollH;
		var e = Math.floor(Math.abs(this._scrollPanel.list.scrollH / (140 + this._scrollPanel.gap)));
		e >= 0 && 4 > e ? (this._pageNo = 1, this.updateTurnBtn(), e >= 1 ? this._view.preBtn.visible = !0 : this._view.preBtn
			.visible = !1) : e >= 4 && 8 > e ? (this._pageNo = 2, this.updateTurnBtn()) : e >= 8 && 12 > e && (this._pageNo =
			3, this.updateTurnBtn())
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this._view.tfBossBorn.text = StringUtil.convertTime(t.spuleTime) + "后重生" : (this._view.tfBossBorn
			.text = "", App.timer.clearTimer(this.onTimer, this))
	}, e
}(ViewBase);
__reflect(ActBossView.prototype, "ActBossView");
var ItemRenderer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.addEventListener(egret.Event.ADDED_TO_STAGE, e.onAddStage, e), e.addEventListener(egret.Event.REMOVED_FROM_STAGE,
			e.onRemoveStage, e), e._dispatcher = new DispatcherRegister, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(t) {}, e.prototype
		.onRemoveStage = function(t) {
			this._dispatcher.removeAllListeners(), this.clear()
		}, e.prototype.dataChanged = function() {}, e.prototype.showSelected = function(t) {
			void 0 === t && (t = !1)
		}, e.prototype.clear = function() {}, e.prototype.dispose = function() {}, e
}(eui.ItemRenderer);
__reflect(ItemRenderer.prototype, "ItemRenderer");
var ActConChargeSevenView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.flag = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.addgrid = function() {
		for (var t = 0; 4 > t; t++) {
			var e = new ItemGrid;
			e.x = 400 + 100 * (t % 2), 2 > t ? e.y = 50 : e.y = 160, this._view.itemgroup.addChild(e), this.gridhash.put(t, e)
		}
		for (var i = 0; 3 > i; i++) {
			var e = new ItemGrid;
			e.x = 50 + 150 * i, e.y = 10, e.name = "" + i, e.isShowTip = !1, e.isShowDesc = !1, this._view.lianchonggroup.addChild(
				e), this.lianchonggridhash.put(i, e)
		}
	}, e.prototype.updatePanel = function() {
		if (this.clearEff(), this.listData = App.data.activityCenter.getList(201), null != this.listData[0] && void 0 !=
			this.listData[0].extendMap && "" != this.listData[0].extendMap) {
			for (var t = StringUtil.JsonParse(this.listData[0].extendMap), e = ItemUtil.getRewardDataList(this.listData[0].bean
					.q_show_rewards), i = 0; i < e.length; i++) {
				var n = this.gridhash.get(i);
				n.setData(e[i])
			}
			for (var a = 0; a < this.listData.length; a++) {
				var o = this.listData[a],
					r = ItemUtil.getRewardDataList(o.bean.q_show_rewards),
					n = this.lianchonggridhash.get(a);
				n.setData(r[0]), this._view["desc" + a].text = "累充" + t.regday + "/" + o.bean.q_desc + "天", this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.openGrid, this, n), 0 == o.playerStates ? this._view.lianchonggroup.addChild(
					this._view["img" + a]) : 1 == o.playerStates && (this.lelingquEff = EffectUtils.showCEffect(this, this._view.lianchonggroup,
					ResPathUtil.getMenuEffect("panel", "kelingqu"), n.x + 36, n.y + 40))
			}
			this._view.bar.width = 300 * (t.regday / 6);
			var s = Number(t.endtime);
			this.key = App.timer.serverTimeEnd(this, this.ontimer, s), this._view.descmiaoshu.text = this.listData[0].bean.q_info,
				this._view.tfCharge.text = StringUtil.substitute("已充值：{0}元", t.gold / 100), this._view.tfTime.text = StringUtil.convertTime_4(
					this.endTime), this._view.tfDesc.text = this.listData[0].bean.q_desc;
			for (var h = StringUtil.JsonParse(this.listData[0].bean.q_show_finish), i = 0; i < h.length; i++)
				if (h[i].sex == App.global.characterData.sex || 0 == h[i].sex) {
					var l = App.config.q_surfaceContainer.getDataBean(h[i].surfaceid);
					4 == l.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, l.q_scene_show_id) :
						5 == l.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, l.q_scene_show_id) :
						1 == l.q_type && this._avatar.changePlayerRolePartResource(AvatarPartType.WING, this.roleData.sex, l.q_scene_show_id)
				}
		}
	}, e.prototype.clearEff = function() {
		this.lelingquEff && (this.lelingquEff.stop(), this.lelingquEff.dispose(), this.lelingquEff = null)
	}, e.prototype.openGrid = function(t) {
		for (var e = t.currentTarget, i = ItemUtil.getRewardDataList(this.listData[Number(e.name)].bean.q_show_rewards), n =
				0; n < this.lianchonggridhash.length; n++) {
			var a = this.gridhash.get(n);
			a.setData(i[n])
		}
		this._view.selectimg.x = e.x - 8, this._view.selectimg.y = e.y - 8, 1 == this.listData[Number(e.name)].playerStates &&
			ActivityCommandSender.sendC2S_JoinActivityMessage(this.listData[Number(e.name)].bean.q_id)
	}, e.prototype.addAvatarUI = function() {
		if (null == this._avatar) {
			this._avatar = new CUIShowAvatar;
			var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
			this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t), this._avatar.touchEnabled = !
				1, this._avatar.touchChildren = !1, this._avatar.x = 225, this._avatar.y = 465, this._avatar.scaleX = .75, this._avatar
				.scaleY = .75, this.parent.parent.parent.addChild(this._avatar)
		}
	}, e.prototype.clearAvatar = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.itemgroup.visible = !0, this._view.lianchonggroup.visible = !0, this._scrollPanel
			.visible = !1, this.gridhash = new HashObject, this.lianchonggridhash = new HashObject, this.bgimg = UIMaker.getCImage(
				this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/lcfl", "", ".jpg")), this.itembg = UIMaker.getCImage(this._view
				.bggroup, this, ResPathUtil.getImgPath("kfhd/bj", "", ".jpg"), 0, 156), this.clearAvatar(), this.addAvatarUI(),
			this.addgrid(), this.updatePanel(), this.isOpen = !1
	}, e.prototype.hide = function() {
		if (this.clearAvatar(), this.clearEff(), this.flag = !1, this.itembg && (this.itembg.dispose(), this.itembg = null),
			this.gridhash) {
			for (var e = 0; e < this.gridhash.length; e++) {
				var i = this.gridhash.get(e);
				i.parent.removeChild(i), i.dispose(), i = null
			}
			this.gridhash.dispose(), this.gridhash = null
		}
		if (this.lianchonggridhash) {
			for (var e = 0; e < this.lianchonggridhash.length; e++) {
				var i = this.lianchonggridhash.get(e);
				i.parent.removeChild(i), i.dispose(), i = null
			}
			this.lianchonggridhash.dispose(), this.lianchonggridhash = null
		}
		this._view.itemgroup.visible = !1, this._view.lianchonggroup.visible = !1, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.ontimer = function(t) {
		this.endTime--, t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime
			.text = "", App.timer.clearTimer(this.key, this))
	}, e
}(ActChargeBaseView);
__reflect(ActConChargeSevenView.prototype, "ActConChargeSevenView");
var ActConChargeThirtyView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(200);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap),
				i = Number(e.endtime);
			this.key = App.timer.serverTimeEnd(this, this.ontimer, i), this._view.tfCharge.text = StringUtil.substitute(
				"已充值：{0}元", e.gold / 100), this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text = StringUtil.convertTime_4(
				this.endTime);
			var n = this.getActivityFlag(t);
			n = t.length - n >= 3 ? n : t.length - 3, this.scrollBottom(n)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.bgimg = UIMaker.getCImage(this._view.bggroup, this,
			ResPathUtil.getImgPath("kfhd/ttfl", "", ".jpg")), this.isOpen = !1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.ontimer = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.key, this))
	}, e
}(ActChargeBaseView);
__reflect(ActConChargeThirtyView.prototype, "ActConChargeThirtyView");
var ActivityFanPaiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.flag = !1, e.skinName = "ActivityFanPaiViewSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._pool = [], null == this.bg && (this.bg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/fanpai_bg", "", ".jpg"), 0, 147)), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this,
			ResPathUtil.getImgPath("kfhd/fpdj", "", ".jpg")))
	}, e.prototype.refreBtn = function(t) {
		if (!this.flag && !App.data.moonCardCenter.fanpaiYulan) {
			var e = 0;
			"kfhd_fanpai_11_png" == this.refreimg.source ? e = 1 : "kfhd_fanpai_12_png" == this.refreimg.source && (e = 2),
				VipCommandSender.sendC2S_FanPaiMessage(e)
		}
	}, e.prototype.createOnceEffect = function(t, e, i, n, a, o) {
		void 0 === i && (i = ""), void 0 === n && (n = 0), void 0 === a && (a = 0);
		var r = App.thing.create(CPlayOnceEffect, t, !0);
		r.url = ResPathUtil.getMenuEffect("fanpai", i), r.finishCallBackFun = o, r.x = n, r.y = a, r.addParent(e), r.play()
	}, e.prototype.startBtn = function(t) {
		this.flag || 0 == this.itemGroup.visible || ("开始洗牌" == this.kaishibtn.label ? (App.data.moonCardCenter.fanpaiFirst = !
				1, this.refreView()) : "开始游戏" == this.kaishibtn.label ? (App.data.moonCardCenter.fanpaiStart = !1, this.itemGroup
				.visible = !1, this.createOnceEffect(this, this, "shoupai", 318, 448, new FunctionVO(this.shouPai, this))) :
			"奖励预览" == this.kaishibtn.label ? (App.data.moonCardCenter.fanpaiYulan = !0, this.refreView()) : "继续翻牌" == this.kaishibtn
			.label && (App.data.moonCardCenter.fanpaiYulan = !1, this.refreView()))
	}, e.prototype.shouPai = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.xiPai1, this))
	}, e.prototype.xiPai1 = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.xiPai2, this))
	}, e.prototype.xiPai2 = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.xiPai3, this))
	}, e.prototype.xiPai3 = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.xiPai4, this))
	}, e.prototype.xiPai4 = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.xiPai5, this))
	}, e.prototype.xiPai5 = function() {
		this.createOnceEffect(this, this, "xipai", 318, 448, new FunctionVO(this.faPai, this))
	}, e.prototype.faPai = function() {
		this.createOnceEffect(this, this, "fapai", 318, 448, new FunctionVO(this.wancheng, this))
	}, e.prototype.wancheng = function() {
		this.itemGroup.visible = !0, this.refreView()
	}, e.prototype.onItemTouch = function(t) {
		this.flag = t
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.refreBtn, this,
				this.refreimg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.startBtn, this, this.kaishibtn),
			this._dispatcher.addEventListener(VipEvent.FANPAIREFRE, this.refreView, this), this._dispatcher.addEventListener(
				VipEvent.FANPAICURR, this.onItemTouch, this), this.refreView(), this.shijian()
	}, e.prototype.shijian = function() {
		App.data.moonCardCenter.fanpaitime > 0 ? App.timer.serverTimeEnd(this, this.timeOnClick, App.data.moonCardCenter.fanpaitime /
			1e3) : this.refreimg.source = "kfhd_fanpai_11_png"
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.timeOnClick, this)
	}, e.prototype.refreView = function() {
		App.data.moonCardCenter.fanpaiFirst ? this.kaishibtn.label = "开始洗牌" : App.data.moonCardCenter.fanpaiStart ? this.kaishibtn
			.label = "开始游戏" : App.data.moonCardCenter.fanpaiYulan ? this.kaishibtn.label = "继续翻牌" : this.kaishibtn.label =
			"奖励预览";
		for (var t, e, i = 9; this.itemGroup.numChildren > 0;) e = this.itemGroup.removeChildAt(0), egret.is(e, "eui.Image") ||
			(t = e, t.hide(), this._pool.push(t));
		for (var n = 0; i > n; n++) {
			t = this.getItem(), t.show(n + 1), App.data.moonCardCenter.getFanPaiNum() - 1 < 9 && t.setData(App.data.moonCardCenter
				.fanpaiArr[App.data.moonCardCenter.getFanPaiNum() - 1]);
			for (var a = 0; 9 > a; a++)
				if (n + 1 == App.data.moonCardCenter.fanpaiArr[a].pos) {
					t.setData(App.data.moonCardCenter.fanpaiArr[a]);
					break
				} this.itemGroup.addChild(t), t.x = 120 * Math.floor(n % 3) + 2, t.y = 135 * Math.floor(n / 3) + 5
		}
	}, e.prototype.timeOnClick = function(t) {
		if (t.spuleTime > 0) {
			this.refreimg.source = "kfhd_fanpai_12_png";
			var e = App.config.q_flopContainer.getDataBean(App.data.moonCardCenter.fanpaiArr[0].id);
			this.lab2.textFlow = HtmlUtil.getHtmlStr("消耗<font color='0x2bb12a'>" + e.q_shuaxin_yuanbao + "</font>元宝"), this.timetext
				.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(t.spuleTime) +
					"</font>")
		} else this.timetext.textFlow = HtmlUtil.getHtmlStr("活动时间:00:00:00"), this.refreimg.source = "kfhd_fanpai_11_png",
			this.lab2.textFlow = HtmlUtil.getHtmlStr("免费");
		App.data.moonCardCenter.getFanPaiNum() - 1 >= 9 && (this.refreimg.source = "kfhd_fanpai_11_png", this.lab2.textFlow =
			HtmlUtil.getHtmlStr("免费"))
	}, e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), App.timer.clearTimer(this.timeOnClick, this), this._pool) {
			for (var e = this._pool.length, i = 0; e > i; i++) this._pool[i].dispose();
			this._pool = null
		}
		this.bg && (this.bg.dispose(), this.bg = null), this.bgimg && (this.bgimg.dispose(), this.bgimg = null)
	}, e.prototype.getItem = function() {
		return this._pool.length > 0 ? this._pool.shift() : new ActivityFanPaiItem
	}, e
}(ViewBase);
__reflect(ActivityFanPaiView.prototype, "ActivityFanPaiView");
var HashMap = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._length = 0, e._keyArray = null, e._valueArray = null, e._keyArray = new Array, e._valueArray = new Array,
			e
	}
	return __extends(e, t), e.getMap = function() {
		return this._hashMapPool.length > 0 ? this._hashMapPool.pop() : new e
	}, e.putMap = function(t) {
		-1 != this._hashMapPool.indexOf(t) ? GameLog.log("有重复HashMap对象入池") : (t.clear(), this._hashMapPool.push(t))
	}, Object.defineProperty(e.prototype, "keys", {
		get: function() {
			return this._keyArray.concat()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "values", {
		get: function() {
			return this._valueArray.concat()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.$_getKeys = function() {
		return this._keyArray
	}, e.prototype.$_getValues = function() {
		return this._valueArray
	}, e.prototype.put = function(t, e) {
		var i = this,
			n = i._keyArray.indexOf(t);
		return n >= 0 ? void(i._valueArray[n] = e) : (i._keyArray[i._length] = t, i._valueArray[i._length] = e, void i._length++)
	}, e.prototype.get = function(t) {
		var e = this._keyArray.indexOf(t);
		return e >= 0 ? this._valueArray[e] : null
	}, e.prototype.has = function(t) {
		return this._keyArray.indexOf(t) >= 0 ? !0 : !1
	}, e.prototype.del = function(t) {
		var e = this,
			i = e._keyArray.indexOf(t);
		i >= 0 && (i != e._length - 1 ? (e._keyArray[i] = e._keyArray.pop(), e._valueArray[i] = e._valueArray.pop()) : (e._keyArray
			.pop(), e._valueArray.pop()), e._length--)
	}, Object.defineProperty(e.prototype, "length", {
		get: function() {
			return this._length
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.foEach = function(t, e, i) {
		void 0 === i && (i = null);
		var n = this;
		if (n._length > 0) {
			var a = [null, null];
			i && (a = a.concat(i));
			for (var o = 0; o < n._length; o++) {
				a[0] = n._keyArray[o], a[1] = n._valueArray[o];
				var r = t.apply(e, a);
				if (r) return r
			}
		}
		return null
	}, e.prototype.forInKeyByFunctionName = function(t) {
		for (var e = this._keyArray, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a[t]()
		}
	}, e.prototype.forInValueExcetureFunctionName = function(t) {
		for (var e = this._valueArray, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a[t]()
		}
	}, e.prototype.clear = function() {
		var t = this;
		t._length > 0 && (t._keyArray.length = 0, t._valueArray.length = 0, t._length = 0)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._valueArray = null, this._keyArray = null
	}, e._hashMapPool = [], e
}(Dispose);
__reflect(HashMap.prototype, "HashMap");
var ActKaifuGiftView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(14);
		if (null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap);
			this._scrollPanel.dataProvider = t;
			var i = Number(e.endtime);
			this.key = App.timer.serverTimeEnd(this, this.ontimer, i), this._view.tfCharge.visible = !1, this._view.tfDesc.text =
				t[0].bean.q_desc, this._view.tfTime.text = StringUtil.convertTime_4(this.endTime);
			var n = this.getActivityFlag(t);
			n = t.length - n >= 3 ? n : t.length - 3, this.scrollBottom(n)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.bgimg = UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/kflb", "", ".jpg")), this.updatePanel(), this.isOpen = !1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.ontimer = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.key, this))
	}, e
}(ActChargeBaseView);
__reflect(ActKaifuGiftView.prototype, "ActKaifuGiftView");
var ActSumChargeView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(13);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap),
				i = Number(e.endtime);
			App.timer.serverTimeEnd(this, this.ontimer1, i), this._view.tfCharge.text = StringUtil.substitute("累计已充值：{0}元", e.gold /
				100), this._view.tfDesc.text = t[0].bean.q_desc;
			var n = this.getActivityFlag(t);
			n = t.length - n >= 3 ? n : t.length - 3, this.scrollBottom(n)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, this.bgimg = UIMaker.getCImage(this._view.bggroup,
			this, ResPathUtil.getImgPath("kfhd/mrlc", "", ".jpg"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.ontimer1, this))
	}, e
}(ActChargeBaseView);
__reflect(ActSumChargeView.prototype, "ActSumChargeView");
var ActSumLongChargeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.flag = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		if (this.listData = App.data.activityCenter.getList(ServerTime.openday > 7 ? 728 : 722), null != this.listData[0] &&
			void 0 != this.listData[0].extendMap && "" != this.listData[0].extendMap) {
			var t = StringUtil.JsonParse(this.listData[0].extendMap);
			if (0 == this.listData[0].playerStates ? (this._view.linqubtn.label = "已领取", this._view.linqubtn.filters =
					FilterUtil.FILTER_GRAY) : 1 == this.listData[0].playerStates ? this._view.linqubtn.label = "领取" : this._view.linqubtn
				.label = "充值", !this.flag) {
				this.flag = !0;
				for (var e = ItemUtil.getRewardDataList(this.listData[0].bean.q_show_rewards), i = 0; i < e.length; i++) {
					var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
					n.x = 400 + 100 * (i % 2), 2 > i ? n.y = 50 : n.y = 160, n.setData(e[i]), this._view.itemgroup.addChild(n), this
						.gridhash.put(i, n)
				}
				var a = Number(t.endtime);
				this.key = App.timer.serverTimeEnd(this, this.ontimer, a);
				var o = t.gold / 100;
				this._view.tfCharge.text = StringUtil.substitute("累计充值：{0}元", o);
				var r = this.listData[0].bean.q_desc;
				this._view.tfTime.text = StringUtil.convertTime_4(this.endTime), this._view.yuanbao_text.text = "已充值" + o + "/" +
					r + "元", this._view.bar1.width = 447 * (o / Number(r) > 1 ? 1 : o / Number(r));
				for (var s = StringUtil.JsonParse(this.listData[0].bean.q_show_finish), i = 0; i < s.length; i++)
					if (s[i].sex == App.global.characterData.sex || 0 == s[i].sex) {
						var h = App.config.q_surfaceContainer.getDataBean(s[i].surfaceid);
						4 == h.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, h.q_scene_show_id) :
							5 == h.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, h.q_scene_show_id) :
							1 == h.q_type && this._avatar.changePlayerRolePartResource(AvatarPartType.WING, this.roleData.sex, h.q_scene_show_id)
					}
			}
		}
	}, e.prototype.addAvatarUI = function() {
		if (null == this._avatar) {
			this._avatar = new CUIShowAvatar;
			var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
			this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t), this._avatar.touchEnabled = !
				1, this._avatar.touchChildren = !1, this._avatar.x = 225, this._avatar.y = 465, this._avatar.scaleX = .75, this._avatar
				.scaleY = .75, this._avatar.getCAvavtarPatr(AvatarPartType.WING).y = -35, this.parent.parent.parent.addChild(this
					._avatar)
		}
	}, e.prototype.clearAvatar = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.itemgroup.visible = !0, this._view.leijigroup.visible = !0, this.gridhash =
			new HashObject, this.bgimg = UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/ljlb", "",
				".jpg")), this.itembg = UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/bj", "", ".jpg"),
				0, 156), this.clearAvatar(), this.addAvatarUI(), this.updatePanel(), this.isOpen = !1, this._scrollPanel.visible = !
			1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLingQuClick, this, this._view.linqubtn)
	}, e.prototype.onLingQuClick = function() {
		1 == this.listData[0].playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(this.listData[0].bean.q_id) :
			PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.hide = function() {
		if (t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer, this), this.flag = !1, this.gridhash)
			for (var e = 0; e < this.gridhash.length; e++) {
				var i = this.gridhash.get(e);
				i.parent.removeChild(i), i.dispose(), i = null
			}
		this.itembg && (this.itembg.dispose(), this.itembg = null), this._scrollPanel.visible = !0, this._view.itemgroup.visible = !
			1, this._view.leijigroup.visible = !1, this.clearAvatar(), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.ontimer = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.key, this))
	}, e
}(ActChargeBaseView);
__reflect(ActSumLongChargeView.prototype, "ActSumLongChargeView");
var ActThreeView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(725);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap);
			this.endTime = Number(e.endtime), App.timer.serverTimeEnd(this, this.ontimer1, this.endTime), this._view.tfCharge.visible = !
				1, this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text = StringUtil.convertTime(this.endTime);
			var i = this.getActivityFlag(t);
			i = t.length - i >= 3 ? i : t.length - 3, this.scrollBottom(i)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, ActivityCenter.threeFlag = !0, this.bgimg =
			UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/mcsj", "", ".jpg")), App.global.redPoint.redPointDispatchEvent(
				12)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : this._view.tfTime.text = ""
	}, e
}(ActChargeBaseView);
__reflect(ActThreeView.prototype, "ActThreeView");
var ActXiaoFeiView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(724);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap);
			App.timer.serverTimeEndCount(this, this.ontimer1, ServerTime.remianZeroTime), this._view.tfCharge.text =
				StringUtil.substitute("今日已消费：{0}", e.gold), this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text =
				StringUtil.convertTime(ServerTime.remianZeroTime);
			var i = this.getActivityFlag(t);
			i = t.length - i >= 3 ? i : t.length - 3, this.scrollBottom(i)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, this.bgimg = UIMaker.getCImage(this._view.bggroup,
			this, ResPathUtil.getImgPath("kfhd/xffl", "", ".jpg"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_3(t.spuleTime) : (this._view.tfTime.text = "",
			App.timer.clearTimer(this.ontimer1, this))
	}, e
}(ActChargeBaseView);
__reflect(ActXiaoFeiView.prototype, "ActXiaoFeiView");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			return t.call(this) || this
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "filters", {
			set: function(t) {},
			enumerable: !0,
			configurable: !0
		}), e
	}(t.MapLayerBase);
	t.MapNoFilterLayer = e, __reflect(e.prototype, "h5_engine.MapNoFilterLayer")
}(h5_engine || (h5_engine = {}));
var HotBloodActivityView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(737);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap);
			this.endTime = Number(e.endtime), App.timer.serverTimeEnd(this, this.ontimer1, this.endTime), this._view.tfCharge.visible = !
				1, this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text = StringUtil.convertTime(this.endTime);
			var i = this.getActivityFlag(t);
			i = t.length - i >= 3 ? i : t.length - 3, this.scrollBottom(i)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, ActivityCenter.threeFlag = !0, this.bgimg =
			UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/cjfl", "", ".jpg")), App.global.redPoint.redPointDispatchEvent(
				12)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function(t) {
		t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : this._view.tfTime.text = ""
	}, e
}(ActChargeBaseView);
__reflect(HotBloodActivityView.prototype, "HotBloodActivityView");
var AdvanceCommonUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(AdvanceCommonUI.prototype, "AdvanceCommonUI");
var ForgeCommonUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ForgeCommonUI.prototype, "ForgeCommonUI");
var GuildListViewUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GuildListViewUI.prototype, "GuildListViewUI");
var FightAction = function(t) {
	function e(e) {
		void 0 === e && (e = null);
		var i = t.call(this, e) || this;
		return i._loadBodyAni = !1, i._skillid = -1, i._skillLevel = -1, i._isAutoBuffer = !1, i._tagretX = -1, i._targetY = -
			1, i._targetPersonId = "", i._fightDirection = -1, i._fightActionTime = 500, i
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.startAction()
	}, e.prototype.startAction = function() {
		var t = this,
			e = t._roleData,
			i = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (!i) return void t.end("SkillBean Null");
		if (-1 == t._fightDirection && (t._tagretX == e.pixel_x && t._targetY == e.pixel_y ? t._fightDirection = e.faceDir :
				t._fightDirection = h5_engine.SceneType.getDretion(e.pixel_x, e.pixel_y, t._tagretX, t._targetY)), t._fightActionId =
			i.q_attack_id.toString(), (i.q_skillID == EnumSkillID.HEJI_ZHANSHI || i.q_skillID == EnumSkillID.HEJI_FASHI || i.q_skillID ==
				EnumSkillID.HEJI_DAOSHI) && e instanceof CharacterRoleData) {
			t._fightActionId = "4"
		}
		"0" != t._fightActionId && e.changeDirAction(t._fightActionId, t._fightDirection, !1, !0), t._aniDir = e.faceDir, 1 ==
			e.roleView.cavatar.aniDirType && (t._aniDir = h5_engine.SceneType.getFiveDir(null, t._aniDir));
		var n = 1;
		t._aniName = e.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).aniName;
		var a = t.getResAnimator(t._aniName, t._fightActionId, t._aniDir);
		n = t.setAnimatorSpeed(), null == a && (null == this._bodyAniFunc && (this._bodyAniFunc = new FunctionVO(t.onBodyAnimatorComplete,
				t)), e.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).netHandler.addCompleteHandler(t, this._bodyAniFunc),
			t._loadBodyAni = !0), 0 == App.global.mapModule.mapAvatarModel.hideData.hide_skillEffect && t.playFightEffect(n,
			i), t.playSound(i)
	}, e.prototype.onBodyAnimatorComplete = function() {
		var t = this,
			e = t._roleData;
		e.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).netHandler.removeCompleteHandler(t), t.setAnimatorSpeed()
	}, e.prototype.setAnimatorSpeed = function() {
		var t = this,
			e = t._roleData;
		if (null == e || null == e.roleView) return 1;
		var i = e.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).aniName;
		if (e.action != t._fightActionId || t._aniName != i) return 1;
		var n = 1,
			a = 0,
			o = t.getResAnimator(i, t._fightActionId, t._aniDir),
			r = null != o ? o.totalMovieTime : t._fightActionTime;
		r *= Config.gameSceneSpeed;
		var s = r;
		e instanceof MapMonsterRoleData ? e.monsterModelBean ? (a = e.monsterModelBean.q_atktick, null == o ? r = s = a : r >
			a && (0 == a && (a = r), s = a)) : r = s = a = r : e instanceof MapPetRoleData && (e.petModelBean && (a = e.petModelBean
			.q_atktick), e.monsterModelBean && (a += e.monsterModelBean.q_atktick), 0 != a && (null == o ? r = s = a : r > a &&
			(s = a))), t._fightActionTime = s * e.atkSpeed, n = t._fightActionTime / r, n || (n = 1);
		var h = GameUtil.getSkillConfigData(t.skillid, t.skillLevel),
			l = h.q_play_speed;
		return 0 != l && (n = n * l / 100, t._fightActionTime = t._fightActionTime * l / 100), e instanceof CharacterRoleData ==
			0 && e.actionList.length > 1 && (n *= 1 / (e.actionList.length + 1), t._fightActionTime = t._fightActionTime * (1 /
				(e.actionList.length + 1))), n *= Config.gameSceneSpeed, e.roleView.cavatar.speed = n, n
	}, e.prototype.getResAnimator = function(t, e, i) {
		this._roleData instanceof MapMonsterRoleData && (i = h5_engine.SceneType.getMonsterDir(i));
		var n = ResPathUtil.getAvatarPartUrl(t, e, i),
			a = h5_engine.NetResourceManager.instance.getResouceData(n);
		if (null == a)
			for (var o = 0; 8 > o && (n = ResPathUtil.getAvatarPartUrl(t, e, o), !(a = h5_engine.NetResourceManager.instance.getResouceData(
					n))); o++);
		return a
	}, e.prototype.playFightEffect = function(t, e) {
		var i = this,
			n = i._roleData;
		if (e.q_use_effect) {
			var a = App.thing.getUseCountForCls(CPlayOnceEffect);
			if (a > 40) return;
			if (0 != e.q_skill_dir) {
				if (e.q_skillID != EnumSkillID.YE_MAN_CHONG_ZHUANG) {
					var o = i._fightDirection;
					n instanceof MapMonsterRoleData && 4096 != n.monsterType && (o = h5_engine.SceneType.getMonsterDir(o));
					for (var r = 0, s = ResPathUtil.parseSkillEffect(e.q_File_client, e.q_use_effect, h5_engine.SceneType.getFiveDir(
							null, o)), h = s.length, l = 0; h > l; l++) {
						var p = App.thing.create(CPlayOnceEffect, "FightAction - 0 : " + i._createFrom, !0);
						h5_engine.SceneType.getFiveDir(p, o);
						var c = s[l];
						c && EffectUtils.showOnceEffect("FightAction-2 : " + i._createFrom, App.global.mapModule.secne.flyEffectLayer,
							c, n.pixel_x, n.pixel_y, p, t, 0, r)
					}
				}
			} else
				for (var s = ResPathUtil.parseSkillEffect(e.q_File_client, e.q_use_effect), h = s.length, l = 0; h > l; l++) {
					var c = s[l];
					EnumSkillID.BAN_YUE_DAO_FA == i.skillid ? c && EffectUtils.showOnceEffect("FightAction-1 : " + i._createFrom,
						App.global.mapModule.secne.flyEffectLayer, c, n.pixel_x, n.pixel_y, null, t) : n.showEffect(
						"FightAction-role : " + i._createFrom, c, 0, 0, null, t)
				}
		}
	}, e.prototype.playSound = function(t) {
		var e, i = this._roleData,
			n = 0;
		if (i instanceof MapMonsterRoleData) e = App.config.q_monsterContainer.getDataBean(i.monsterModelId).q_fire_soundid
			.toString(), n = 2e3;
		else if (t.q_use_sound) {
			e = t.q_use_sound;
			var a = e.split(";"),
				o = a[0],
				r = a[1];
			i instanceof MapPlayerRoleData ? (r && (e = i.sex == EnumRole.BOY ? o : r), EnumSkillID.isPutongGongji(this.skillid) &&
					(0 == i.weapon ? e = EnumSoundId.PUTONG_ATTACK : i.job == EnumRole.FA_SHI && (e = EnumSoundId.FASHI_ATTACK))) :
				e = o, n = 0
		}
		if (e && "0" != e) {
			var s = .2;
			i instanceof MapMonsterRoleData && (s = .2), App.sound.playSound(e, n, s)
		}
	}, e.prototype.addvanceTime = function(t) {
		var e = this;
		e._fightActionTime -= t, e._fightActionTime <= 0 && e.end("addvanceTime - _fightActionTime <= 0")
	}, e.prototype.end = function(e) {
		var i = this,
			n = i._roleData;
		n && n.roleView && n.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).netHandler.removeCompleteHandler(i), i.endFight(),
			t.prototype.end.call(this, e)
	}, e.prototype.endFight = function() {
		var t = this,
			e = t._roleData,
			i = e;
		if (i) {
			var n = i.getSkillAniProMap();
			n.length > 0 && (n.foEach(t.aniProcessorInit, t), n.clear())
		}
		e.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, -1, !1, !0);
		var a = !1;
		0 == e.actionList.length && e instanceof MapPlayerRoleData && e.operation && (a = e.operation.keyBoardShiftHandler(
			"onS2C_FighterStateEndMessageHandler")), 0 == a && e.endMove(e.pixel_x, e.pixel_y, "FightAction:" + t._skillid)
	}, e.prototype.aniProcessorInit = function(t, e) {
		var i = this;
		if (e.skillid != i._skillid) {
			var n = GameUtil.getSkillConfigData(e.skillid, e.skillLevel);
			n && i.playSound(n)
		}
		e.init()
	}, e.prototype.setCreateFrom = function(t) {
		this._createFrom = t
	}, Object.defineProperty(e.prototype, "targetPersonId", {
		get: function() {
			return this._targetPersonId
		},
		set: function(t) {
			this._targetPersonId = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTargetPosi = function(t, e) {
		this._tagretX = t, this._targetY = e
	}, Object.defineProperty(e.prototype, "skillLevel", {
		get: function() {
			return this._skillLevel
		},
		set: function(t) {
			this._skillLevel = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isAutoBuffer", {
		get: function() {
			return this._isAutoBuffer
		},
		set: function(t) {
			this._isAutoBuffer = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "skillid", {
		get: function() {
			return this._skillid
		},
		set: function(t) {
			this._skillid = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "fightDirection", {
		get: function() {
			return this._fightDirection
		},
		set: function(t) {
			this._fightDirection = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.putInPool = function() {
		var t = this;
		t._isAutoBuffer = !1, t._skillid = -1, t._skillLevel = -1, t._targetPersonId = "", t._fightDirection = -1, t._fightActionTime =
			500, t._fightActionId = void 0, t._aniName = void 0, t._loadBodyAni = !1, t.resetDispose(), App.thing.putIn(t)
	}, e.prototype.dispose = function() {
		var e = this,
			i = e._roleData;
		e._loadBodyAni && i && i.roleView && i.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY).netHandler.removeCompleteHandler(
			e), e._isStart && 0 == e._isEnd && i == App.global.characterData && i.changeDirAction(AvatarActionType.ACTION_TYPE_STAND,
			-1, !1, !0), t.prototype.dispose.call(this), e._tagretX = -1, e._targetY = -1, e.putInPool()
	}, e
}(RoleAction);
__reflect(FightAction.prototype, "FightAction");
var EnterButton = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._dispatcher = new DispatcherRegister, e._posObj = {}, e.isPlaying = !0, e.parentX = 0, e.parentY = 0, e._type =
			0, e
	}
	return __extends(e, t), e.prototype.setData = function(t) {
		this.data = t, this.btnSource(), this.addEvent(), App.panel.registerFlyTarget(this.data.panelId, this)
	}, e.prototype.btnSource = function() {
		this.imgUp = UIMaker.getImage(this, this, "enterbutton_" + this.data.resName + "_png", 0, 0, !0, this.imgUp), this.imgUp
			.width = this.data.width, this.imgUp.height = this.data.height
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onBegin, this, this)
	}, e.prototype.onBegin = function(t) {
		this.imgUp.y = 1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, App.stage)
	}, e.prototype.onEnd = function(t) {
		this.imgUp.y = 0, this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, App.stage),
			this.onTouch(null)
	}, e.prototype.onTouch = function(t) {
		if (this.isPlaying) {
			var e = {};
			this.touchProxy(e) && (Guide.getGuide().hide(), 87 == this.data.panelId && App.panel.removePanel(1),
				PanelOpenManager.openPanel(this.data.panelId, e, !0, !0, this.data.functionID)), App.dispatcher.dispatchEvent(
				EnterButtonEvent.TOUCH_BUTTON, this.data.id)
		}
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t, this.y = e, this.setUiComponentXY(this.time_txt), this.setUiComponentXY(this.time_bg), this.setUiComponentXY(
				this.red), this.setUiComponentXY(this.redEffect), this.setUiComponentXY(this.effect), this.setUiComponentXY(this.tip),
			i && i.addChild(this)
	}, e.prototype.saveUiComponentXY = function(t, e, i, n) {
		this._posObj[t] = {
			x: e - this.x,
			y: i - this.y
		}, n && (n.alpha = this.isPlaying ? 1 : .01, n.touchEnabled && this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN,
			this.onBegin, this, n))
	}, e.prototype.deleteUiComponentXY = function(t, e) {
		delete this._posObj[t], e && this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onBegin, this,
			e)
	}, e.prototype.setUiComponentXY = function(t) {
		if (null != t) {
			var e = this._posObj[t.hashCode];
			null != e && (t.x = e.x + this.x, t.y = e.y + this.y)
		}
	}, e.prototype.tween = function(t) {
		this.isPlaying = !t, t ? (this.tweenUiCompoment(this), this.tweenUiCompoment(this.time_txt), this.tweenUiCompoment(
			this.time_bg), this.tweenUiCompoment(this.red), this.tweenUiCompoment(this.redEffect), this.tweenUiCompoment(
			this.effect), this.tweenUiCompoment(this.tip)) : (this.setUiComponentVisible(this, !t), this.setOtherVisible(!t))
	}, e.prototype.tweenUiCompoment = function(t) {
		null != t && (TweenLite.killTweensOf(t), TweenLite.to(t, 1, {
			alpha: .01,
			onComplete: this.onOver,
			onCompleteScope: this
		}))
	}, e.prototype.onOver = function() {
		this.setUiComponentVisible(this, this.isPlaying), this.setOtherVisible(this.isPlaying)
	}, e.prototype.setOtherVisible = function(t) {
		this.setUiComponentVisible(this.time_txt, t), this.setUiComponentVisible(this.time_bg, t), this.setUiComponentVisible(
			this.red, t), this.setUiComponentVisible(this.redEffect, t), this.setUiComponentVisible(this.effect, t), this.setUiComponentVisible(
			this.tip, t)
	}, e.prototype.setUiComponentVisible = function(t, e) {
		null != t && (t.visible = e, e && (TweenLite.killTweensOf(t), t.alpha = 1))
	}, e.prototype.addTimer = function(t, e) {
		void 0 === e && (e = -1), 1 == e ? this.time_txt.text = t + "天后开启" : App.timer.serverTimeEnd(this, this.onTimer, t)
	}, e.prototype.removeTimer = function() {
		App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, this.data.id, -1), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt && (this.time_txt.text = StringUtil.convertTime(t.spuleTime)) : this.removeTimer()
	}, e.prototype.changeUrl = function(t) {
		t = t ? t : "enterbutton_" + this.data.resName2 + "_png", this.imgUp = UIMaker.getImage(this, this, t, 0, 0, !0,
			this.imgUp)
	}, e.prototype.dispose = function() {
		this.removeTimer(), this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this.imgUp && (
				UIMaker.putToPool(this.imgUp), this.imgUp = null), this.red = null, this.time_txt = null, this.time_bg = null,
			this.redEffect = null, this.effect = null, this.data = null, this.parent && this.parent.removeChild(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this.data ? this.data.width : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this.data ? this.data.height : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "sortIndex", {
		get: function() {
			return this.data ? this.data.sortId : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.touchProxy = function(t) {
		if (this.data.panelIndex > 0 && (t.selectedIndex = this.data.panelIndex), this.data && (t.enterID = this.data.id),
			(29 == this.data.panelId || 5 == this.data.panelId) && (App.data.taskCenter.getThreadTaskShowGuide(12) ? t.selectedIndex =
				0 : App.data.taskCenter.getThreadTaskShowGuide(13) ? t.selectedIndex = 3 : 5 == this.data.panelId && (t.selectedIndex =
					0), 5 == this.data.panelId && (App.data.characterCenter.isshowheji = !1)), 41 == this.data.id) return ZoneCommandSender
			.sendC2S_ZoneIntoMessage(EnumZoneID.MAIN_CITY_ID, EnumZoneType.MAIN_CITY_OLD), !1;
		if (53 == this.data.id) {
			var e = App.data.activityCenter.getData(1e4);
			if (e && e.extendMap) {
				var i = StringUtil.JsonParse(e.extendMap);
				if (i && i.openday > 0) return Notice.showMousePosMessage("<font color='0xf8f3b7'>" + i.openday + "天后开启</font>"),
					!1
			}
		}
		return !0
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(EnterButton.prototype, "EnterButton");
var MapMouseModel = function() {
	function t(t) {
		var e = this;
		this.View_ON_OFF = !0, this.ControlScreen = function(t) {
				e.View_ON_OFF = t
			}, this._isCanUseMouse = !1, this._isLeftMouseDown = !1, this._isRightMouseDown = !1, this._tempList = [], this._loaderClip = !
			1, this._lastCheckMouseEffect = 0;
		var i = this;
		i._mapModule = t, this._mouseScenePoint = new egret.Point(0, 0), this._touchStagePoint = new egret.Point(0, 0), i._playerPoint =
			new egret.Point(0, 0), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, i.onStageResize, i), App.dispatcher.addEventListener(
				EventType.PLAYER_SCREEN, this.ControlScreen, this)
	}
	return Object.defineProperty(t.prototype, "isMouseDown", {
			get: function() {
				var t = this;
				return t._isLeftMouseDown || t._isRightMouseDown
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t.prototype, "mouseScenePoint", {
			get: function() {
				return this._mouseScenePoint
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t.prototype, "controlRoleData", {
			get: function() {
				return this._controlRoleData
			},
			enumerable: !0,
			configurable: !0
		}), t.prototype.onStageResize = function() {
			var t = this;
			t._mapModule.mapSceneModel.updateMapScreenScale(Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), t._mapModule.secne.update(
				t._mapModule.mapSceneModel.screen.x, t._mapModule.mapSceneModel.screen.y), t._loaderClip = !0
		}, t.prototype.onMapChangeHandler = function() {
			var e = this;
			e._mapModule.mapSceneModel.updateMapScreenScale(Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT),
				LookVisibleScreenAreaUtils.setVisibleArea(Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), e._mapModule.mapLoader.mapData &&
				e._mapModule.mapSceneModel.updateMapArea(e._mapModule.mapLoader.mapData.mapWidth, e._mapModule.mapLoader.mapData.mapHeight),
				e.changeControPlayer(), e._mapModule.secne.addEventListener(egret.TouchEvent.TOUCH_BEGIN, e.onMapLeftMouseDown, e),
				e._mapModule.secne.addEventListener(egret.TouchEvent.TOUCH_END, e.onMapLeftMouseUp, e), e._mapModule.secne.addEventListener(
					egret.TouchEvent.TOUCH_CANCEL, e.onMapLeftMouseUp, e), e._mapModule.secne.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE,
					e.onMapLeftMouseUp, e), App.timer.doFrameLoop(e, 2, e.updateMapClips), App.timer.doTimeLoop(e, t.AVATAR_SORT_TIME,
					e.checkAvatarSort), e._loaderClip = !0, e.updateMapClips()
		}, t.prototype.changeControPlayer = function() {
			for (var t = this, e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				if (0 == a.getIsDead()) {
					t._mapModule.mapMouseModel.setControlPlayer(a);
					break
				}
			}
		}, t.prototype.setControlPlayer = function(t) {
			var e = this;
			e._controlRoleData && (e._controlRoleData.roleView.mapMoveProgressCallBack = null), e._controlRoleData = t, e._controlRoleData
				.visible = !0, e._controlRoleData.roleView.mapMoveProgressCallBack = new FunctionVO(e.onMyPlayerMove, e), e.moveMapCenterToPoint(
					e._controlRoleData.pixel_x, e._controlRoleData.pixel_y), e.addMapMouseListen()
		}, t.prototype.moveMapCenterToPoint = function(t, e) {
			var i = this;
			i._playerPoint.setTo(t, e), i._mapModule.mapSceneModel.initMapCenter(t, e), i._mapModule.secne.update(i._mapModule.mapSceneModel
				.screen.x, i._mapModule.mapSceneModel.screen.y), i._loaderClip = !0
		}, t.prototype.addMapMouseListen = function() {}, t.prototype.removeMapMouseListen = function() {}, t.prototype.onMapLeftMouseUp =
		function(t) {
			this._isLeftMouseDown = !1
		}, t.prototype.onMapLeftMouseDown = function(t) {
			this._isLeftMouseDown = !0
		}, t.prototype.checkMouseDownMap = function(t) {
			return void 0 === t && (t = !1), this.isMouseDown
		}, t.prototype.checkMouseEffect = function(t) {
			void 0 === t && (t = 150);
			var e = this;
			e._lastCheckMouseEffect += App.timer.frametime, null == App.global.mouseUnit && e.isMouseDown && e._lastCheckMouseEffect >
				t && (e._mapModule.mapMoveModel.addMapClickEffect(e._mouseScenePoint.x, e._mouseScenePoint.y), e._lastCheckMouseEffect =
					0)
		}, t.prototype.onMyPlayerMove = function(t, e) {
			if (this.View_ON_OFF) {
				var i = this;
				i._playerPoint.x = t, i._playerPoint.y = e, i._mapModule.mapSceneModel.updateMapScreenCencterPosition(i._playerPoint),
					i._mapModule.secne.update(i._mapModule.mapSceneModel.screen.x, i._mapModule.mapSceneModel.screen.y), i._loaderClip = !
					0
			}
		}, t.prototype.updateMapClips = function() {
			var t = this;
			if (0 != t._loaderClip && null != t._mapModule.mapLoader.mapData) {
				t._tempList.length = 0;
				var e = t._mapModule.mapSceneModel.getClips(t._tempList);
				t._mapModule.mapLoader.loadClips(e), t._mapModule.mapLoader.clearClips(t._mapModule.mapSceneModel.screen.x, t._mapModule
						.mapSceneModel.screen.y), t._loaderClip = !1, t._mapModule.mapEffectModel.updateScreenTransport(), t._mapModule.mapEffectModel
					.updateScreenMapEffect()
			}
		}, t.prototype.checkAvatarSort = function() {
			this._mapModule.secne.avatarLayer.doSortAvatar()
		}, t.prototype.clear = function() {
			var t = this;
			App.timer.clearTimer(t.updateMapClips, t)
		}, t.MAP_CLICK_GAP_TIME = 250, t.AVATAR_SORT_TIME = 250, t
}();
__reflect(MapMouseModel.prototype, "MapMouseModel");
var MoveAction = function(t) {
	function e(e, i) {
		void 0 === e && (e = null), void 0 === i && (i = null);
		var n = t.call(this) || this;
		return n._faceDirection = -1, n._step = 0, n._tx = 0, n._ty = 0, n._needSend = !0, n._sx = 0, n._sy = 0, n._movePassTime =
			0, n._moveNeedTime = 0, n._isPlaySound = !0, n._from = i, n
	}
	return __extends(e, t), e.getOne = function(t) {
		null == e.pool && (e.pool = new ObjectPool(e));
		var i = e.pool.getObject();
		return i.from = t, i
	}, Object.defineProperty(e.prototype, "from", {
		get: function() {
			return this._from
		},
		set: function(t) {
			this._from = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.endNodeNullHandler = function() {
		this.end("MoveAction-endNodeNullHandler")
	}, e.prototype.movePositionSame = function() {
		this.end("MoveAction-movePositionSame")
	}, e.prototype.start = function() {
		var e = this;
		e._roleData;
		return t.prototype.start.call(this), e._stateFucName = "start", null == App.global.mapModule.mapLoader.mapData ?
			void e.end("MoveAction-_mapModule.mapLoader.mapData == null") : null == e._endNode ? void e.endNodeNullHandler() :
			void e.checkMove()
	}, e.prototype.changeServerDir = function(t) {
		this._faceDirection = t, this._roleData.faceDir = t
	}, e.prototype.checkNodeHashRole = function(t) {
		var e = App.global.characterData;
		return !t || this._roleData != e || 0 != t.roleBlock && 0 != t.walkAble ? !1 : (e.resetSearchNewRoadToPoint(
			"checkNodeHashRole"), !0)
	}, e.prototype.checkMove = function() {
		var t = this;
		if (t._postionBytes && t._postionBytes.length > 0) {
			var e = t._postionBytes.shift();
			t.step = 31 & e, t.faceDirection = (224 & e) >> 5;
			var i = App.global.mapModule.mapMoveModel.getNodeByDir(t._serverNode, t._faceDirection, t._step);
			if (0 == t._postionBytes.length && t._endNode && t._endNode != i && GameLog.log("移动计算结果不一致"), i) {
				var n = i.pixelPoint;
				t._tx = n.x, t._ty = n.y, t.moveNext()
			} else t.end("checkMove-nextNode为空")
		} else t.moveNext()
	}, e.prototype.moveEnd = function(t) {
		var e = this;
		e._postionBytes && e._postionBytes.length > 0 ? (e._movePassTime -= e._moveNeedTime, e.checkMove()) : e.end(t)
	}, e.prototype.moveNext = function() {
		var t = this,
			e = t._roleData;
		if (t._tx == e.move_to_x && t._ty == e.move_to_y) return void t.movePositionSame();
		var i = h5_engine.SceneType.getDretion(e.pixel_x, e.pixel_y, t._tx, t._ty);
		if (-1 == t._faceDirection ? t._faceDirection = i : i != t._faceDirection && t.changeServerDir(i), 1 == t._step);
		else if (2 == t._step) {
			var n = (t._tx + e.move_to_x) / 2,
				a = (t._ty + e.move_to_y) / 2;
			if (t._centerNode = App.global.mapModule.mapLoader.mapData.getNodeByXY(n, a), t.checkNodeHashRole(t._centerNode))
				return void t.end("MoveAction - start() - checkNodeHashRole(_centerNode) == true, 开始新的寻路了");
			App.global.mapModule.mapAvatarModel.setRoleNodeAplha(e, t._centerNode)
		}
		t.move(t._tx, t._ty)
	}, e.prototype.move = function(t, e) {
		var i = this,
			n = i._roleData;
		if (i.checkNodeHashRole(i._endNode)) return void i.end(
			"MoveAction - move() - checkNodeHashRole(_centerNode) == true, 开始新的寻路了");
		1 == i._step ? n.changeDirAction(AvatarActionType.ACTION_TYPE_RUN, i._faceDirection) : 2 == i._step && n.changeDirAction(
				AvatarActionType.ACTION_TYPE_RUN, i._faceDirection), i._sx = n.pixel_x >> 0, i._sy = n.pixel_y >> 0, n.move_to_x =
			t, n.move_to_y = e;
		var a = !i._needSend,
			o = n.getMoveTime(i._sx, i._sy, t, e, i._step, a);
		if (o *= Config.gameSceneSpeed, n instanceof CharacterRoleData == 0 && (o *= 1 / (n.actionList.length + 1)), i._stateFucName =
			"move", o >= .01) {
			if (n == App.global.characterData && i._isPlaySound) {
				var r = EnumSoundId.RUN;
				App.sound.playSound(r, 0, 1)
			}
			i._needSend && n instanceof CharacterRoleData && n.sendCharcterRunMessage(i._from, n.mapId, t, e, i._faceDirection,
				i._step, i._sx, i._sy), i.onStartMove(o, t, e, i._sx, i._sy)
		} else i.moveEnd("MoveAction - move() - (time < 0), 直接结束了")
	}, e.prototype.onStartMove = function(t, e, i, n, a) {
		var o = this,
			r = o._roleData;
		o._stateFucName = "onStartMove", r.startMove(n, a), o._moveToPoint = egret.Point.create(r.pixel_x, r.pixel_y);
		try {
			TweenLite.to(o._moveToPoint, t, {
				x: e,
				y: i,
				onComplete: o.onCompete,
				onCompleteScope: o,
				onUpdate: o.onUpdate,
				onUpdateScope: o,
				ease: Linear.easeInOut
			})
		} catch (s) {
			GameLog.log(s)
		}
		o._moveNeedTime = Math.ceil(1e3 * t * 1.2), o._moveNeedTime = o._moveNeedTime < 500 ? 500 : o._moveNeedTime
	}, e.prototype.onUpdate = function() {
		var t = this;
		t._moveToPoint && t._roleData.progressMove(t._moveToPoint.x, t._moveToPoint.y)
	}, e.prototype.onCompete = function() {
		var t = this;
		App.global.mapModule.mapAvatarModel.setRoleNodeAplha(t._roleData, t._endNode), t._stateFucName = "onCompete", t.moveEnd(
			"MoveAction - onCompete() - 移动完成的结束")
	}, e.prototype.end = function(e) {
		var i = this,
			n = i._roleData;
		i._stateFucName = "end", n && (i._moveToPoint ? (TweenLite.killTweensOf(i._moveToPoint), n.endMove(n.move_to_x, n.move_to_y,
			"MoveAction: 1: ")) : n.endMove(n.pixel_x, n.pixel_y, "MoveAction: 2: "), n instanceof MapFightRoleData && (n.stopTime =
			0)), t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(t) {
		var e = this;
		e._movePassTime += t, e._roleData instanceof CharacterRoleData && (e._isStart && e._isEnd && 0 == e.isDispose ? e.forceEnd() :
			e._movePassTime > e._moveNeedTime && e.moveEnd("移动超时强制结束这个移动"))
	}, e.prototype.forceEnd = function() {
		var t = this;
		null != t.listCallBack ? t.end("动作应该已经结束，强制结束这个行为动作") : (t.end("动作应该已经结束，强制结束这个行为动作, 但是_listCallBack不存在了"), App.global
			.characterData.actionList.forceNextAction())
	}, Object.defineProperty(e.prototype, "needSend", {
		get: function() {
			return this._needSend
		},
		set: function(t) {
			this._needSend = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "postionBytes", {
		get: function() {
			return this._postionBytes
		},
		set: function(t) {
			this._postionBytes = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "step", {
		get: function() {
			return this._step
		},
		set: function(t) {
			this._step = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "startNode", {
		get: function() {
			return this._startNode
		},
		set: function(t) {
			this._startNode = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "endNode", {
		get: function() {
			return this._endNode
		},
		set: function(t) {
			var e = this;
			if (e._endNode = t, e._endNode) {
				var i = e._endNode.pixelPoint;
				e._tx = i.x, e._ty = i.y
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeNewEndNode = function(t) {
		var e = this;
		if (e._endNode = t, e._endNode) {
			var i = e._endNode.pixelPoint;
			e._tx = i.x, e._ty = i.y, e._needSend = !1, e._isPlaySound = !1, e._from = e._from + "changeNewEndNode", e._moveToPoint &&
				(TweenLite.killTweensOf(e._moveToPoint), egret.Point.release(e._moveToPoint)), e._moveToPoint = null, e.move(e._tx,
					e._ty)
		}
	}, Object.defineProperty(e.prototype, "centerNode", {
		get: function() {
			return this._centerNode
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "serverNode", {
		get: function() {
			return this._serverNode
		},
		set: function(t) {
			this._serverNode = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "faceDirection", {
		get: function() {
			return this._faceDirection
		},
		set: function(t) {
			this._faceDirection = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.putInPool = function() {
		var t = this;
		t._postionBytes = null, t._step = 0, t._tx = 0, t._ty = 0, t._movePassTime = 0, t._moveNeedTime = 0, t._needSend = !
			0, t._from = "putInPool", t.resetDispose(), e.pool.push(t)
	}, e.prototype.dispose = function() {
		var e = this,
			i = e._roleData;
		e._moveToPoint && (TweenLite.killTweensOf(e._moveToPoint), egret.Point.release(e._moveToPoint)), e._moveToPoint =
			null, e._isStart && 0 == e._isEnd && i instanceof CharacterRoleData && i.roleView.settingEndRun(30), t.prototype.dispose
			.call(this), e._serverNode = null, e._startNode = null, e._centerNode = null, e._endNode = null, e.putInPool()
	}, e
}(RoleAction);
__reflect(MoveAction.prototype, "MoveAction");
var TabPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectedIndex = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowMain, this.addChild(this.window), this.window.showRoleList(!1), this._btnClose = this.window
			.close_btn, this.titleImage = this.window.imgTitle, this.viewContainer = this.window.viewContainer
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._tab && (this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabSelectHandler,
			this, this._tab), this._dispatcher.addEventListener(EventType.SHOW_REDPOINT, this.onShowPointByIndex, this));
		var i;
		for (var n in this._infoObj) i = this._infoObj[n], i.functionID > 0 && (i.enable = App.global.funcOpen.isFunctionOpen(
			i.functionID, "", !1), this.onShowPointByIndex(i.functionID));
		e && e.hasOwnProperty("selectedIndex") ? this.selectedIndex = e.selectedIndex : this.selectFirstEnabledPanel(),
			this.window && this.window.show(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.window && this.window.hide(), this.hideCurSubPanel(), this._selectedIndex = -1,
			this._tab && this._tab.clear()
	}, e.prototype.registerSubPanel = function(t, e, i, n, a, o, r, s, h) {
		void 0 === i && (i = null), void 0 === n && (n = -1), void 0 === a && (a = !1), void 0 === o && (o = !1), void 0 ===
			r && (r = null), void 0 === s && (s = null), void 0 === h && (h = !0), this._infoObj || (this._infoObj = {}), this
			._functionIDHashMap || (this._functionIDHashMap = new HashObject);
		var l = this._infoObj[t];
		l || (this._infoObj[t] = l = {}), l.index = t, l.cls = e, l.titleUrl = i, l.functionID = n, l.callback = r, l.args =
			s, l.enable = !0, l.showRoleList = a, l.showFightPower = o, l.showBottomBg = h, this._functionIDHashMap.put(n, l)
	}, e.prototype.setSubPanelEnabled = function(t, e) {
		var i = this._infoObj[t];
		i && this.tab && i.enable != e && (i.enable = e, this.tab.allTabButtonArr[t].filters = e ? null : FilterUtil.FILTER_GRAY)
	}, e.prototype.selectFirstEnabledPanel = function() {
		if (this._infoObj) {
			var t = -1;
			for (var e in this._infoObj)
				if (this._infoObj[e].enable) {
					if (this._infoObj[e].redPoint) {
						t = Number(e);
						break
					} - 1 == t && (t = Number(e))
				} this.selectedIndex = t
		}
	}, Object.defineProperty(e.prototype, "selectedIndex", {
		get: function() {
			return this._selectedIndex
		},
		set: function(t) {
			if (this._infoObj) {
				var e = this._infoObj[t];
				if (null != e) {
					if (!e.enable) return -1 == this.selectedIndex && this.selectFirstEnabledPanel(), this.tab.selectedIndex =
						this.selectedIndex, void(e.functionID > -1 && App.global.funcOpen.isFunctionOpen(e.functionID, "", !0));
					if (this._selectedIndex != t) {
						this._selectedIndex = t, this._tab && this._tab.selectedIndex != this._selectedIndex && (this._tab.selectedIndex =
								this._selectedIndex), this.hideCurSubPanel(), this.titleImage && e.titleUrl && (this.titleImage.source = e.titleUrl),
							this.window && (this.window.imgBottom.visible = e.showBottomBg, this.window.showRoleList(e.showRoleList),
								this.window.showFightPower(e.showFightPower), this.window.roleList && (this.window.roleList.selectIndex = 1,
									this.window.roleList.functionid = e.functionID, this.window.roleList.showPoint(e.functionID)));
						var i = e.cls;
						if (i) {
							var n = e.view;
							null == n && (n = new i, e.view = n, n.callback = e.callback, n.args = e.args, this.window && (n.roleList =
									this.window.roleList, n.fightPower = this.window.fightPower)), this._currentView = n, this.window ? this.window
								.showOpenFunc(e.functionID, new FunctionVO(this.showCurSubPanel, this)) : this.showCurSubPanel()
						} else this._currentView = null
					}
				}
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.showCurSubPanel = function() {
		this._currentView && (this.viewContainer && this.viewContainer.addChild(this._currentView), this.window && 1 ==
			this.window.fightPowerShowState && (this.window.fightPowerShowState = !1, this.window.fightPower.visible = !0),
			this._currentView.show(this._externalData))
	}, e.prototype.hideCurSubPanel = function() {
		this._currentView && this._currentView.parent && (this._currentView.hide(), this._currentView.parent.removeChild(
			this._currentView), this._currentView = null)
	}, e.prototype.onShowPointByIndex = function(t) {
		if (this._functionIDHashMap.has(t)) {
			var e = this._functionIDHashMap.get(t),
				i = e.index;
			e.redPoint = App.global.redPoint.getShowPoint(t), this.tab && this.tab.setRedSign(i, e.redPoint)
		}
	}, e.prototype.showTab = function(t) {
		this.window && (this.tab = this.window.showTab(t))
	}, Object.defineProperty(e.prototype, "tab", {
		get: function() {
			return this._tab
		},
		set: function(t) {
			this._tab && this._dispatcher.removeEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabSelectHandler, this,
				this._tab), this._tab = t, this._tab && this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabSelectHandler,
				this, this._tab)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.tabSelectHandler = function(t) {
		this.selectedIndex = this._tab.selectedIndex
	}, e.prototype.resetSubPanel = function() {
		this.hideCurSubPanel();
		var t;
		for (var e in this._infoObj) t = this._infoObj[e], t.view && t.view.dispose(), t.view = null, t.cls = null, t.callback =
			null, t.args = null;
		this._functionIDHashMap.dispose(), this._functionIDHashMap = null, this._infoObj = null
	}, e.prototype.dispose = function() {
		this.selectedIndex = -1, this.tab = null;
		var e;
		for (var i in this._infoObj) e = this._infoObj[i], e.view && e.view.dispose(), e.view = null, e.cls = null, e.callback =
			null, e.args = null;
		this.viewContainer = null, this._currentView = null, this.window && (this.window.dispose(), this.window = null), t.prototype
			.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(TabPanel.prototype, "TabPanel");
var ActTabPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectedIndex = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
			this.window = new ActivityMainUI, this.addChild(this.window), this._btnClose = this.window.close_btn, this._btnClose =
				this.window.close_btn, this.titleImage = this.window.imgTitle, this.viewContainer = this.window.viewContainer
		}, e.prototype.show = function(e) {
			t.prototype.show.call(this, e), this._externalData = e, e && e.hasOwnProperty("selectedIndex") ? this.selectedIndex =
				e.selectedIndex : this.selectFirstEnabledPanel(), this.window && this.window.show(e)
		}, e.prototype.hide = function() {
			t.prototype.hide.call(this), this.window && this.window.hide(), this._externalData = null, this.hideCurSubPanel(),
				this._selectedIndex = -1
		}, e.prototype.registerSubPanel = function(t, e, i, n, a, o, r, s, h) {
			void 0 === i && (i = null), void 0 === n && (n = -1), void 0 === a && (a = !1), void 0 === o && (o = !1), void 0 ===
				r && (r = null), void 0 === s && (s = null), void 0 === h && (h = !0), this._infoObj || (this._infoObj = {});
			var l = this._infoObj[t];
			l || (this._infoObj[t] = l = {}), l.index = t, l.cls = e, l.titleUrl = i, l.callback = r, l.args = s, l.enable = !0
		}, e.prototype.setSubPanelEnabled = function(t, e) {
			var i = this._infoObj[t];
			i && i.enable != e && (i.enable = e)
		}, e.prototype.selectFirstEnabledPanel = function() {
			if (this._infoObj) {
				var t = -1;
				for (var e in this._infoObj)
					if (this._infoObj[e].enable) {
						if (this._infoObj[e].redPoint) {
							t = Number(e);
							break
						} - 1 == t && (t = Number(e))
					} this.selectedIndex = t
			}
		}, Object.defineProperty(e.prototype, "selectedIndex", {
			get: function() {
				return this._selectedIndex
			},
			set: function(t) {
				if (this._infoObj) {
					var e = this._infoObj[t];
					if (null != e) {
						if (!e.enable) return void(-1 == this.selectedIndex && this.selectFirstEnabledPanel());
						if (this._selectedIndex != t) {
							this._selectedIndex = t, this.hideCurSubPanel(), this.titleImage && e.titleUrl && (this.titleImage.source = e
								.titleUrl);
							var i = e.cls;
							if (i) {
								var n = e.view;
								null == n && (n = new i, e.view = n, n.callback = e.callback, n.args = e.args), this._currentView = n, this.showCurSubPanel()
							} else this._currentView = null
						}
					}
				}
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.showCurSubPanel = function() {
			this._currentView && (this.viewContainer && this.viewContainer.addChild(this._currentView), this._currentView.show(
				this._externalData))
		}, e.prototype.hideCurSubPanel = function() {
			this._currentView && this._currentView.parent && (this._currentView.hide(), this._currentView.parent.removeChild(
				this._currentView), this._currentView = null)
		}, e.prototype.onShowPointByIndex = function(t) {}, e.prototype.showTab = function(t) {}, e.prototype.resetSubPanel =
		function() {
			this.hideCurSubPanel();
			var t;
			for (var e in this._infoObj) t = this._infoObj[e], t.view && t.view.dispose(), t.view = null, t.cls = null, t.callback =
				null, t.args = null;
			this._infoObj = null
		}, e.prototype.dispose = function() {
			this.selectedIndex = -1;
			var e;
			if (this._infoObj) {
				for (var i in this._infoObj) e = this._infoObj[i], e.view && e.view.dispose(), e.view = null, e.cls = null, e.callback =
					null, e.args = null;
				this._infoObj = null
			}
			this.viewContainer = null, this._currentView = null, this._externalData = null, this.window && (this.window.dispose(),
				this.window = null), t.prototype.dispose.call(this)
		}, Object.defineProperty(e.prototype, "width", {
			get: function() {
				return 640
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return 932
			},
			enumerable: !0,
			configurable: !0
		}), e
}(BasePanel);
__reflect(ActTabPanel.prototype, "ActTabPanel");
var ActivityMain = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.maxNumOnPage = 5, e.lastIndex = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		var i = this;
		t.prototype.init.call(this);
		var n = App.data.activityCenter;
		this._scroll = new VScrollPanel(490, 117, ActToggleItemRender, 2, null, 2), this._scroll.itemRender =
			ActToggleItemRender, this._scroll.move(80, 0, this.window.tabGroup), this._preBtn = this.window.preBtn, this._nextBtn =
			this.window.nextBtn, this._tfPage = this.window.tfPage, this.maxNumOnPage = 5, this._actBtn = n.getActMainBtn(),
			this._actBtnCount = this._actBtn.length, this._scroll.dataProvider = this._actBtn.getValueArray();
		var a = 0;
		this._actBtn = n.getActMainBtn(), this._actBtn.foEach(function(t, n) {
			var o = n;
			i.registerSubPanel(a, e.cls[o.panelIndex], "kfhd_kf_title_" + o.actData.type + "_png"), a++
		}, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), e && 27 == e.enterID ? this.selectedIndex = this._actBtnCount - 1 :
			this.selectedIndex = this.lastIndex, App.timer.doFrameOnce(this, 1, this.callLater, [this.selectedIndex])
	}, e.prototype.callLater = function(t) {
		void 0 === t && (t = 0), this._scroll.selectedIndex = t, this.curritem && this.curritem.selectItem(!1);
		var e = this._scroll.list.getChildAt(t);
		this.curritem = e, e && e.selectItem(!0)
	}, e.prototype.dispose = function() {
		this.window && (this.window.dispose(), this.window = null), this._scroll && (this._scroll.parent && this._scroll.parent
			.removeChild(this._scroll), this._scroll.dispose(), this._scroll = null), this.curritem && (this.curritem.dispose(),
			this.curritem = null), t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		this.lastIndex = this.selectedIndex, t.prototype.hide.call(this)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onPreBtn, this, this._preBtn), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onNextBtn, this, this._nextBtn), this._dispatcher.addEventListener(eui.ItemTapEvent
			.ITEM_TAP, this.onUpdateList, this, this._scroll.list), this._dispatcher.addEventListener(ActivityEvent.REFRESH_BRIEF,
			this.showToggleBtnRed, this), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showToggleBtnRed,
			this);
		var t = App.data.activityCenter;
		this._actBtn = t.getActMainBtn(), this._actBtn.foEach(function(t, e) {
			var i = e,
				n = App.data.activityCenter.getListActId(i.actData.type);
			ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(n)
		}, this)
	}, e.prototype.updateTabButton = function() {
		var t = this,
			i = App.data.activityCenter,
			n = i.getActMainBtn();
		if (null != n && (this._scroll.dataProvider = n.getValueArray(), this._actBtnCount != n.length)) {
			this.hideCurSubPanel(), this.resetSubPanel();
			var a = 0;
			n.foEach(function(i, n) {
				var o = n,
					r = "kfhd_kf_title_" + o.actData.type + "_png";
				App.data.activityCenter.isXianGou(o.actData.type) && (r = "kfhd_kf_title_746_png"), t.registerSubPanel(a, e.cls[
					o.panelIndex], r), a++
			}, this), this.selectedIndex = 0, this._actBtn = n, this._actBtnCount = n.length
		}
	}, e.prototype.updateTabRed = function() {
		var t = this,
			e = App.data.activityCenter,
			i = e.getActMainBtn();
		null != i && (this._actRedCache = [], i.foEach(function(i, n) {
			var a = n,
				o = e.isShowKfhdRed(a.actData.type);
			t._actRedCache.push(o)
		}, this))
	}, e.prototype.showNextBtnRed = function() {
		if (this._actBtnCount < this.maxNumOnPage) return !1;
		for (var t = !1, e = this.maxNumOnPage; e < this._actBtnCount && !(t = this._actRedCache[e]); e++);
		return t
	}, e.prototype.showPreBtnRed = function() {
		if (this._actBtnCount < this.maxNumOnPage) return !1;
		for (var t = !1, e = this._actBtnCount < this.maxNumOnPage ? this._actBtnCount : this.maxNumOnPage, i = 0; e > i &&
			!(t = this._actRedCache[i]); i++);
		return t
	}, e.prototype.onPreBtn = function(t) {
		t.stopImmediatePropagation();
		this._actBtnCount > 5 && (this._scroll.selectClick2(0), this.selectedIndex = 0), UIMaker.showPoint(this._preBtn,
			this, !1, 0, -10), UIMaker.showPoint(this._nextBtn, this, this.showNextBtnRed(), 0, -10)
	}, e.prototype.onNextBtn = function(t) {
		t.stopImmediatePropagation(), 5 < this._actBtnCount && this._actBtnCount <= 10 && (this._scroll.selectClick2(5),
			this.selectedIndex = 5), UIMaker.showPoint(this._preBtn, this, this.showPreBtnRed(), 0, -10), UIMaker.showPoint(
			this._nextBtn, this, !1, 0, -10)
	}, e.prototype.onUpdateList = function(t) {
		t.stopImmediatePropagation();
		var e = this._scroll.list.selectedIndex;
		e >= 0 && e != this.selectedIndex && (this.selectedIndex = e)
	}, e.prototype.showToggleBtnRed = function(t) {
		this.updateTabButton(), this.updateTabRed(), this.selectedIndex < this.maxNumOnPage ? (UIMaker.showPoint(this._preBtn,
			this, !1, 0, -10), UIMaker.showPoint(this._nextBtn, this, this.showNextBtnRed(), 0, -10)) : (UIMaker.showPoint(
			this._preBtn, this, this.showPreBtnRed(), 0, -10), UIMaker.showPoint(this._nextBtn, this, !1, 0, -10))
	}, e.cls = {
		999: ActThreeView,
		2019: HotBloodActivityView,
		1002: ActBossView,
		1008: ActConChargeSevenView,
		1010: ActConChargeThirtyView,
		1009: ActSumChargeView,
		1007: ActSumLongChargeView,
		1001: ActKaifuGiftView,
		1011: ActXiaoFeiView,
		1019: SeverActivityRankView,
		1013: SeverActivityChongzhiView,
		1023: XianShiBossView,
		1021: ChouJiangView,
		1022: ShabakeJiangliView,
		1024: ActivityFanPaiView,
		1003: SeverActivityjingjiView
	}, e
}(ActTabPanel);
__reflect(ActivityMain.prototype, "ActivityMain");
var ItemGrid = function(t) {
	function e(e) {
		void 0 === e && (e = EnumGridStyle.GRID_STYLE_NORMAL);
		var i = t.call(this, e) || this;
		return i.useStroke = !1, i._itemId = 0, i._isShowCount = !0, i._isShowDesc = !0, i._isShowJob = !0, i._isShowTip = !
			0, i._isShowEffect = !0, i
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.effectgroup = new eui.Group, this.effectgroup.width = 1, this.effectgroup.height = 1, this.effectgroup.touchEnabled = !
			1, this.addChild(this.effectgroup), this.redgroup = new eui.Group, this.redgroup.width = 1, this.redgroup.height =
			1, this.redgroup.touchEnabled = !1, this.addChild(this.redgroup), this.touchEnabled = !1, this.touchChildren = !0,
			this.icon.touchEnabled = !1
	}, e.prototype.setData = function(t) {
		if (GridUtil.has(this)) throw "警告：正在尝试操作已释放的格子！";
		t ? (this.clear(), TypeUtil.isNumber(t) ? (this._itemId = Number(t), this._data = new ItemData, this._data.itemId =
				this._itemId) : (this._itemId = t.itemId, this._data = t), this.refresh()) : (this._data || 0 != this._itemId) &&
			this.clear()
	}, Object.defineProperty(e.prototype, "data", {
		get: function() {
			return this._data
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "itemId", {
		get: function() {
			return this._itemId
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refresh = function() {
		this.setGradeBg(), this.setIcon(), this.checkTip(), this.isShowCount && this.setCount(), this.isShowDesc && this.setDesc(),
			this.showEffect(this.isShowEffect), this.bean && 39 == this.bean.q_type && this.setWinggodimg(), this.isShowJobImg &&
			this.setJobImage()
	}, e.prototype.checkTip = function() {
		if (this.isShowTip) {
			var t = void 0;
			ItemUtil.isEquip(this.itemId) ? (t = new TipData(4), t.data = this.data ? this.data : this.itemId) : ItemUtil.isWarpet(
					this.itemId) ? (t = new TipData(19), t.data = this.data ? this.data : this.itemId) : ItemUtil.isFaBao(this.itemId) ?
				(t = new TipData(23), t.data = this.data ? this.data : this.itemId) : (t = new TipData(2), t.data = this.data ?
					this.data : this.itemId), App.tip.addTip(this.gridBg, t)
		} else App.tip.removeTip(this.gridBg)
	}, e.prototype.setGradeBg = function(t) {
		if (t) this.gridBg.source != t && (this.gridBg.source = t), this.gridBg.width = this.gridBgSize.width, this.gridBg.height =
			this.gridBgSize.height;
		else if (this.bean) {
			var e = GridUtil.getSizeGridGradeBg(this.gridBgSize.width, this.bean.q_default);
			this.gridBg.source != e && (this.gridBg.source = e), this.gridBg.width = this.gridBgSize.width, this.gridBg.height =
				this.gridBgSize.height
		} else this.gridBg.source = void 0
	}, e.prototype.setIcon = function(t) {
		if (t) this.icon.url != t && (this.icon.url = t);
		else if (this.bean) {
			var e = ResPathUtil.getIcon(this.bean.q_tiny_icon, EnumImageType.ITEM_80);
			this.icon.url != e && (this.icon.url = e), this.icon.x = 5, this.icon.y = 5, this.icon.width = this.gridBgSize.width -
				10, this.icon.height = this.gridBgSize.height - 10
		} else this.icon.url = void 0
	}, e.prototype.setJobImage = function(t) {
		if (this._jobImg || (this._jobImg = new eui.Image, this._jobImg.x = this.gridBgSize.width - 35, this._jobImg.y = 0,
				this._jobImg.touchEnabled = !1, this.redgroup.addChild(this._jobImg)), t) this._jobImg.source != t && (this._jobImg
			.source = t);
		else if (this.bean && (ItemUtil.isEquip(this.itemId) || 34 == this.bean.q_type) && this.bean.q_job > 0) {
			var e = GridUtil.getGridJob(this.bean.q_job);
			this._jobImg.source != e && (this._jobImg.source = e)
		} else this._jobImg.source = void 0
	}, e.prototype.setDesc = function() {
		if (this._descTxt || (this._descTxt = new h5_engine.GTextField, this._descTxt.width = 120, this._descTxt.height =
				20, this._descTxt.textAlign = egret.HorizontalAlign.CENTER, this._descTxt.verticalAlign = egret.VerticalAlign.MIDDLE,
				this._descTxt.size = 18, this._descTxt.x = (this.gridBgSize.width - this._descTxt.width) / 2, this._descTxt.y =
				this.gridBgSize.height + 4, this._descTxt.stroke = this.useStroke ? 1 : 0, this.addChild(this._descTxt)), this._data &&
			this._data.getDataBean()) {
			var t = ItemUtil.getItemName(this._data.itemId);
			ItemUtil.isEquip(this._data.itemId) && this._data.getEquipDataBean().q_kind != EnumEquipType.XUE_FU && (t = 0 ==
					this._data.bean.q_zhuanshen && 1 == this._data.bean.q_level && this._data.bean.q_default >= EnumNumber.red ?
					"无级别" : this._data.bean.q_zhuanshen > 0 ? this._data.bean.q_zhuanshen + "转" : "lv." + this._data.bean.q_level),
				this._descTxt.text = t, this._descTxt.textColor = GameUtil.getItemNameColor(this._data.itemId)
		} else {
			var e = GameUtil.getItemConfigData(this.itemId);
			99 == e.q_type ? (this._descTxt.text = GameUtil.getEquipConfigData(this.itemId).q_add_engrave_prop + "阶", this._descTxt
				.textColor = GameUtil.getItemNameColor(this.itemId)) : this._descTxt.text = ""
		}
		this._descTxt.text.length > 5 ? this._descTxt.size = 16 : this._descTxt.size = 18
	}, e.prototype.Desc = function(t) {
		this._descTxt && (this._descTxt.text = "" + t), this._descTxt.text.length > 5 ? this._descTxt.size = 16 : this._descTxt
			.size = 18
	}, e.prototype.setIconSize = function(t, e) {
		this.gridBgSize = t, this._itemSize = e, this.icon.width = e.width, this.icon.height = e.height, this.resized(),
			this.isShowJobImg && this.setJobImage()
	}, e.prototype.showEffect = function(t) {
		if (t) {
			var e = App.config.q_itemContainer.getDataBean(this._itemId);
			e && e.q_effect > 0 && (this._effect = EffectUtils.showCEffect(this, this.effectgroup, ResPathUtil.getMenuEffect(
						"item", e.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE), this.gridBgSize.width >> 1, this.gridBgSize.height >>
					1, this._effect), this._effect.scaleX = this.gridBgSize.width / EnumGridStyle.DEFAULT_SIZE, this._effect.scaleY =
				this.gridBgSize.height / EnumGridStyle.DEFAULT_SIZE)
		} else this._effect && (this._effect.stop(), this._effect.dispose(), this._effect = null)
	}, e.prototype.resized = function() {
		this.icon.x = this.gridBgSize.width - this._itemSize.width >> 1, this.icon.y = this.gridBgSize.height - this._itemSize
			.height >> 1
	}, e.prototype.setBgVisible = function(t) {
		void 0 === t && (t = !0), this.gridBg.alpha = t ? 1 : .01
	}, e.prototype.setTxtVisible = function(t) {
		void 0 === t && (t = !0), this._descTxt && (this._descTxt.visible = t)
	}, e.prototype.setCount = function(t) {
		this._numTxt || (this._numTxt = new h5_engine.GTextField, this._numTxt.width = 71, this._numTxt.height = 71, this._numTxt
				.textAlign = egret.HorizontalAlign.RIGHT, this._numTxt.verticalAlign = egret.VerticalAlign.BOTTOM, this._numTxt.size =
				18, this._numTxt.textColor = 16315319, this._numTxt.stroke = 1, this.addChild(this._numTxt)), t ? this._numTxt.htmlText =
			t : this._data && this._data.count > 1 ? this.itemId < 0 && this.itemId != EnumMoney.YUAN_BAO ? this._data.count >=
			1e8 ? this._numTxt.htmlText = StringUtil.formatMoney(this._data.count, "亿", 1e8) : this._numTxt.htmlText =
			StringUtil.formatMoney(this._data.count, "w") : this._numTxt.htmlText = this._data.count + "" : this._numTxt.text =
			""
	}, e.prototype.setqianghua = function(t) {
		this._getqhTxt || (this._getqhTxt = new h5_engine.GTextField, this._getqhTxt.width = this.gridBgSize.width - 5,
			this._getqhTxt.height = 20, this._getqhTxt.stroke = 1, this._getqhTxt.strokeColor = 0, this._getqhTxt.textColor =
			16757760, this._getqhTxt.textAlign = egret.HorizontalAlign.RIGHT, this._getqhTxt.verticalAlign = egret.VerticalAlign
			.MIDDLE, this._getqhTxt.size = 20, this._getqhTxt.x = 0, this._getqhTxt.y = this.gridBgSize.height - 25, this.addChild(
				this._getqhTxt)), this._getqhTxt.size = t >= 100 ? 18 : 20, this._getqhTxt.htmlText = t > 0 ? t + "" : ""
	}, e.prototype.setzhuzao = function(t) {
		this._getzzTxt || (this._getzzTxt = new h5_engine.GTextField, this._getzzTxt.touchEnabled = !1, this._getzzTxt.width =
				this.gridBgSize.width, this._getzzTxt.height = 20, this._getzzTxt.stroke = 1, this._getzzTxt.strokeColor = 0,
				this._getzzTxt.textColor = 6407139, this._getzzTxt.textAlign = egret.HorizontalAlign.LEFT, this._getzzTxt.verticalAlign =
				egret.VerticalAlign.MIDDLE, this._getzzTxt.size = 20, this._getzzTxt.x = 5, this._getzzTxt.y = this.gridBgSize.height -
				25, this.addChild(this._getzzTxt)), this._getzzTxt.size = t >= 100 ? 18 : 20, this._getzzTxt.htmlText = t > 0 ? t +
			"" : ""
	}, e.prototype.setWinggodimg = function() {
		this._winggod || (this._winggod = new eui.Image, this._winggod.touchEnabled = !1), this._winggod.source = GridUtil.getGridWingGod(
			this.bean.q_level), this._winggod.x = 48, this._winggod.y = 0, this.addChild(this._winggod)
	}, Object.defineProperty(e.prototype, "numTxtFiled", {
		get: function() {
			return this._numTxt
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "descTxtField", {
		get: function() {
			return this._descTxt
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "jobImage", {
		get: function() {
			return this._jobImg
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowJobImg", {
		get: function() {
			return this._isShowJob
		},
		set: function(t) {
			this._isShowJob = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowCount", {
		get: function() {
			return this._isShowCount
		},
		set: function(t) {
			this._isShowCount = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "changgeTextPos", {
		get: function() {
			return this._descTxt.y
		},
		set: function(t) {
			this._descTxt.y = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowEffect", {
		get: function() {
			return this._isShowEffect
		},
		set: function(t) {
			this._isShowEffect = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowDesc", {
		get: function() {
			return this._isShowDesc
		},
		set: function(t) {
			this._isShowDesc = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowTip", {
		get: function() {
			return this._isShowTip
		},
		set: function(t) {
			this._isShowTip = t, this.checkTip()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bean", {
		get: function() {
			return GameUtil.getItemConfigData(this.itemId)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		this.gridBg.source = void 0, this.icon.visible = !0, this.icon.url = void 0, this._jobImg && (this._jobImg.parent &&
				this._jobImg.parent.removeChild(this._jobImg), this._jobImg.source = void 0, this._jobImg = null), this._numTxt &&
			(this._numTxt.parent && this._numTxt.parent.removeChild(this._numTxt), this._numTxt.text = "", this._numTxt.textFlow =
				void 0, this._numTxt = null), this._descTxt && (this._descTxt.parent && this._descTxt.parent.removeChild(this._descTxt),
				this._descTxt.text = "", this._descTxt.textFlow = void 0, this._descTxt = null), this._getzzTxt && (this._getzzTxt
				.parent && this._getzzTxt.parent.removeChild(this._getzzTxt), this._getzzTxt.text = "", this._getzzTxt.textFlow =
				void 0, this._getzzTxt = null), this._getqhTxt && (this._getqhTxt.parent && this._getqhTxt.parent.removeChild(
				this._getqhTxt), this._getqhTxt.text = "", this._getqhTxt.textFlow = void 0, this._getqhTxt = null), this._winggod &&
			(this._winggod.parent && this._winggod.parent.removeChild(this._winggod), this._winggod.source = void 0, this._winggod =
				null), this.showEffect(!1), App.tip.removeTip(this.gridBg), this._data = void 0, this._itemId = 0
	}, e.prototype.resetAndClear = function() {
		this.clear(), this.x = 0, this.y = 0, this.scaleX = 1, this.scaleY = 1, this.touchEnabled = !1, this.touchChildren = !
			0, this._isShowJob = !0, this._isShowCount = !0, this._isShowDesc = !0, this._isShowTip = !0, this.setBgVisible(!0)
	}, e
}(BaseGrid);
__reflect(ItemGrid.prototype, "ItemGrid");
var AI_PVE_Processor = function(t) {
	function e() {
		var i = t.call(this) || this;
		return i._isMonsterKillCheckDrop = !1, i._runGapTime = e.CONST_GAP, i._startCharPoint = egret.Point.create(0, 0), i
	}
	return __extends(e, t), e.prototype.getGapTime = function() {
		return this._runGapTime
	}, e.prototype.getFightParam = function() {
		return this._parma
	}, e.prototype.logFight = function(t) {}, e.prototype.start = function() {
		var e = this,
			i = e._roleData;
		t.prototype.start.call(this), e._isMonsterKillCheckDrop = !1, e.logFight("AI_PVE_Processor() => start"), i.AIRoleState =
			EnumAIRobotState.ROLE_WAIT;
		var n = i.operation.lastAttackRole,
			a = n;
		a && i.operation.autoSelect && (a = null, i.operation.lastSelectRole = a, i.operation.autoSelect = !1), e._unChoseAtkList =
			new HashObject, e._startCharPoint.setTo(i.move_to_x, i.move_to_y), App.dispatcher.addEventListener(EventType.CHARACTER_ACTION_LIST_EMPTY,
				e.onCharacterActionListEmpty, e), App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_DEAD, e.onRoleOrDead,
				e), App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_DISPOSE, e.onRoleOrDead, e), App.dispatcher.addEventListener(
				EventType.MYPLAYER_KILL_MONSTER, e.onKillMonster, e), i.actionList.clearList(), null == this._roleData.actionList
			.crtAction && this.isRuning && this.updateHandler(0), App.dispatcher.dispatchEvent(GuideEvent.HIDE, 100)
	}, e.prototype.end = function() {
		var e = this,
			i = e._roleData;
		i.AIRoleState = "end", e._isMonsterKillCheckDrop = !1, e._isTaskEndCheckDrop = !1, e._unChoseAtkList = null, App.dispatcher
			.removeEventListener(EventType.CHARACTER_ACTION_LIST_EMPTY, e.onCharacterActionListEmpty, e), App.dispatcher.removeEventListener(
				PlayerAttributeEvent.ROLE_DEAD, e.onRoleOrDead, e), App.dispatcher.removeEventListener(PlayerAttributeEvent.ROLE_DISPOSE,
				e.onRoleOrDead, e), App.dispatcher.removeEventListener(EventType.MYPLAYER_KILL_MONSTER, e.onKillMonster, e);
		var n = e.getFightParam();
		n && null != n.checkDropCallBack && n.checkDropCallBack.exec(), t.prototype.end.call(this)
	}, e.prototype.reset = function() {
		this._roleData.AIRoleState = EnumAIRobotState.ROLE_RESET
	}, e.prototype.updateHandler = function(t) {
		var i = this;
		i.checkDorpTime(t);
		var n = i._roleData;
		if (i._mapModule.mapMoveModel.mapSearchManager.isJumpMap) {
			var a = this._mapModule.mapMouseModel.controlRoleData;
			if (a == n) return
		}
		if (0 == n.getIsDead()) {
			if (i.logFight("updateHandler - rData.AIRoleState" + n.AIRoleState), i.checkHpMpValue(t), App.global.characterData
				.isGather) return;
			i._runGapTime = e.CONST_GAP, i.runAction(), n.roleIdleTime > 2500 && (i.logFight(
				"updateHandler() => rData.roleIdleTime > 2500"), n.AIRoleState = EnumAIRobotState.ROLE_WAIT, n.stopTime = 0)
		}
	}, e.prototype.getAtkTargetIsLive = function(t) {
		return null == t || t.getIsDead() || t.isDispose || t.isClientDead ? !1 : !0
	}, e.prototype.runAction = function() {
		var t = this,
			e = t._roleData;
		if (0 == App.global.enterMapIng || e.getIsDead()) return t._runGapTime = 30, void t.logFight(
			"runAction -- App.global.enterMapIng == false || rData.getIsDead()");
		if (t._isTaskEndCheckDrop) return 0 == t.checkHasDropItem() && (t._isTaskEndCheckDrop = !1, e.closeFightAi()), void t
			.logFight("runAction -- _isTaskEndCheckDrop");
		if (t._isMonsterKillCheckDrop && (t._isMonsterKillCheckDrop = !1, t.checkHasDropItem())) return void t.logFight(
			"runAction -- _isMonsterKillCheckDrop -- checkHasDropItem");
		if (e.isFightAiRuning && (t.autoUserBuffer(), e.AIRoleState != EnumAIRobotState.ROLE_USEBUFFER && t.userZhaohuanSkill()),
			t.checkHasDropItem()) return void t.logFight("runAction -- checkHasDropItem");
		var i = e.AIRoleState;
		if (t.logFight("rData.AIRoleState" + e.AIRoleState), i != EnumAIRobotState.ROLE_CALL_BABY && i != EnumAIRobotState.ROLE_USEBUFFER &&
			i != EnumAIRobotState.ROLE_PICK_ITEM) {
			if (i == EnumAIRobotState.ROLE_RESET || i == EnumAIRobotState.ROLE_FIGHT_MOVE) return void t.logFight(
				"runAction -- state == EnumAIRobotState.ROLE_RESET || state == EnumAIRobotState.ROLE_FIGHT_MOVE");
			if (t.moveToStartPoint()) return void t.logFight("runAction -- moveToStartPoint == true");
			var n = e.operation.lastSelectRole;
			n && (t._mapModule.mapQuickSelect.isSameGroup(n, e) && (n = null), 0 == t.getAtkTargetIsLive(n) && (n = null));
			var a = t.targetIsAtk(n);
			if (n = a ? n : null, null == n && (n = t.getAttackTarget()), n) t.attackRole(n);
			else {
				var o = t.getFightParam();
				if (o && o.targetMonsterModelID && o.targetMonsterKillFuc) t.logFight("param.targetMonsterKillFuc.exec()"), o.targetMonsterKillFuc
					.exec();
				else if (e.AIRoleState == EnumAIRobotState.ROLE_RAND_MOVE) t.logFight("runAction-loc.randMove"), t.randMove();
				else {
					var r = App.data.zoneCenter.getMyZoneData();
					!r || 0 != r.isfinish && r.type != EnumZoneType.AUTO_FIGHT_ZONE ? t.logFight(
						"EnumAIRobotState.ROLE_RAND_MOVE - obj && obj.isfinish == false") : (e.AIRoleState = EnumAIRobotState.ROLE_RAND_MOVE,
						e.stopTime = 0, t._runGapTime = 200, t.logFight("EnumAIRobotState.ROLE_RAND_MOVE"))
				}
			}
		} else t.logFight(
			"runAction -- state != EnumAIRobotState.ROLE_CALL_BABY && state != EnumAIRobotState.ROLE_USEBUFFER && state != EnumAIRobotState.ROLE_PICK_ITEM"
		)
	}, e.prototype.moveToStartPoint = function() {
		return !1
	}, e.prototype.changeSearchNode = function() {
		var t = this,
			e = t._roleData;
		e.isFightAiRuning && (e.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM ? t.delayDropItem() : t.onCharacterActionListEmpty(
			e))
	}, e.prototype.onCharacterActionListEmpty = function(t) {
		var e = this,
			i = e._roleData;
		if (t == i) {
			var n = !1;
			if (i.AIRoleState == EnumAIRobotState.ROLE_RESET) {
				e._startCharPoint.setTo(i.move_to_x, i.move_to_y);
				var a = i.operation.lastSelectRole;
				if (e.getAtkTargetIsLive(a)) {
					if (a instanceof MapMonsterRoleData && ByteUtils.hasKey(a.monsterType, 2)) {
						var o = h5_engine.MapVO.getDistanceBy2Point(e._startCharPoint.x, e._startCharPoint.y, a.pixel_x, a.pixel_y),
							r = e.getSkillid(a),
							s = e.getSkillBean(r);
						if (s) {
							var h = s.q_range_limit;
							o > h && (a = null)
						}
					}
				} else a = null;
				if (null == a) {
					var l = e.getAttackTarget();
					l && (i.operation.lastSelectRole = l, i.operation.autoSelect = !0)
				}
				null == a && null == l && (n = !0)
			}
			i.AIRoleState != EnumAIRobotState.ROLE_PICK_ITEM && i.AIRoleState != EnumAIRobotState.ROLE_FIGHT && (e.logFight(
				"updateHandler() => rData.AIRoleState != EnumAIRobotState.ROLE_PICK_ITEM && rData.AIRoleState != EnumAIRobotState.ROLE_FIGHT"
			), i.AIRoleState = EnumAIRobotState.ROLE_WAIT, e._runGapTime = 30)
		}
	}, e.prototype.targetIsAtk = function(t) {
		var e = this,
			i = e._roleData;
		if (t) {
			if (t instanceof MapPlayerRoleData) {
				var n = e._mapModule.mapLoader.mapData.getNode(t.mapNode_x, t.mapNode_y);
				if (n && n.isSafe) return !1;
				var a = e._mapModule.mapLoader.mapData.getNode(i.mapNode_x, i.mapNode_y);
				if (a && a.isSafe) return !1
			}
			if (3 == e._configData.rangType) var o = i.serverMap_x,
				r = i.serverMap_y;
			else o = e._startCharPoint.x, r = e._startCharPoint.y;
			var s = e.getSkillid(t),
				h = e.getSkillBean(s);
			if (h) {
				var l = h5_engine.MapVO.getDistanceBy2Point(o, r, t.serverMap_x, t.serverMap_y);
				if (l > 15) return !1;
				var p = 0,
					c = h.q_range_limit;
				return i.operation.lastAttackRole && t == i.operation.lastAttackRole && (p = egret.getTimer() - i.operation.lastAttackRoleTime),
					l > c && p > 2e3 ? !1 : !0
			}
		}
		return !1
	}, e.prototype.onRoleOrDead = function(t) {}, e.prototype.onKillMonster = function(t) {
		this._isMonsterKillCheckDrop = !0
	}, e.prototype.chooseNewTarget = function(t) {
		var e = this,
			i = e._roleData;
		0 == i.isCanMove && (e._unChoseAtkList.put(t, 1), e.logFight("chooseNewTarget() => rData.isCanMove == false"), i.AIRoleState =
			EnumAIRobotState.ROLE_WAIT)
	}, e.prototype.attackRole = function(t) {
		var e = this;
		e._roleData;
		return 0 == e.getAtkTargetIsLive(t) ? void e.logFight("attackRole -- loc.getAtkTargetIsLive(target) == false") : (e
			.logFight("attackRole"), void e.useSkillToTarget(e.getSkillid(t), t, !0))
	}, e.prototype.useSkillToTarget = function(t, e, i) {
		var n = this,
			a = n._roleData;
		if (t > 0) {
			var o = a.operation.getSkillSupleTime(t);
			if (0 >= o) return a.operation.lastSelectRole = e, a.operation.autoSelect = !0, a.AIRoleState = EnumAIRobotState.ROLE_FIGHT,
				a.operation.onUserSkill(!1, t, 0, !1) && (n._runGapTime = OperationData.SKILL_PASS_INTERVAL * this._roleData.atkSpeed,
					n._unChoseAtkList.clear()), !0;
			n._runGapTime = 30
		}
		return !1
	}, e.prototype.getSkillid = function(t) {
		var e = this._roleData,
			i = e.skillCombo.getCurComboSkillId();
		return i
	}, e.prototype.getSkillBean = function(t) {
		var e = this.getSkillData(t),
			i = e ? e.level : 0;
		return GameUtil.getSkillConfigData(t, i)
	}, e.prototype.getAttackTarget = function() {
		var t = this,
			e = App.global.characterData;
		if (e && e.isNoSearchMonster) return null;
		var i = t._mapModule.mapMouseModel.controlRoleData;
		if (null == i && (i = t._roleData), null == i) return null;
		var n = 0;
		t.getFightParam() && (n = t.getFightParam().targetMonsterModelID);
		var a = t._mapModule.mapAvatarModel.getMonsterShortestDistance(i.serverMap_x, i.serverMap_y, 10, n, t._unChoseAtkList);
		return t.logFight("getAttackTarget" + a), a
	}, e.prototype.randMove = function() {
		if (this.logFight("AI_PVE_Processor - randMove()"), this._roleData.AIRoleState = EnumAIRobotState.ROLE_WAIT, 10028 !=
			this._roleData.mapId) {
			var t = App.global.characterData;
			t && t.isNoSearchMonster || this.moveToNextRefreshMonsterPoint()
		}
	}, e.prototype.moveToNextRefreshMonsterPoint = function() {
		var t = this,
			e = t._roleData,
			i = App.config.q_sceneMontserContainer.getSceneMonsterRefreshList(e.mapId);
		if (i) {
			for (var n = i.length, a = new Array, o = h5_engine.MapVO.getNodeByPixelXY(e.pixel_x, e.pixel_y, egret.Point.create(
					0, 0)), r = h5_engine.MapVO.getNodeByPixelXY(e.move_to_x, e.move_to_y, egret.Point.create(0, 0)), s = 0; n > s; s++) {
				var h = i[s],
					l = MathUnit.distancePoint2Point(o.x, o.y, h.q_x, h.q_y),
					p = MathUnit.distancePoint2Point(r.x, r.y, h.q_x, h.q_y);
				if (l > 0 && p > 0 && 0 != h.q_x && 0 != h.q_y) {
					var c = {
						x: h.q_x,
						y: h.q_y,
						dtc: l
					};
					a.push(c)
				}
			}
			a.length > 1 && ArrayUtil.sortOnArr(a, ["dtc"], [ArrayUtil.DESCENDING]);
			var _ = a[0];
			if (_) {
				var d = h5_engine.MapVO.getCenterPoint(_.x, _.y, o);
				t.moveToPostion(d.x, d.y, new FunctionVO(t.onMoveToRefreshHandler, t), null) && (e.AIRoleState = EnumAIRobotState
					.ROLE_RESET)
			}
			egret.Point.release(o), egret.Point.release(r)
		}
	}, e.prototype.onMoveToRefreshHandler = function() {
		var t = this,
			e = t._roleData;
		if (e && e.isFightAiRuning && 0 == t.checkHasDropItem(!0)) {
			t._startCharPoint.setTo(e.move_to_x, e.move_to_y);
			var i = t.getAttackTarget();
			i && t.attackRole(i)
		}
	}, e.prototype.moveToPostion = function(t, e, i, n, a) {
		void 0 === a && (a = 0);
		var o = SearchToPointVO.getVO();
		return o.stepHandler = i, o.shift = a, o.finishHandler = n, o.search(this._roleData, t, e,
			"autoFight-moveToPostion")
	}, e.CONST_GAP = 480, e
}(AI_Auxiliary);
__reflect(AI_PVE_Processor.prototype, "AI_PVE_Processor");
var RenderData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.visHash = new HashObject, e.uiComponentHash = new HashObject, e.urlHash = new HashObject, e.layerList = [],
			e
	}
	return __extends(e, t), e.prototype.setGridLayoutVisible = function(t, e) {
		var i = this.getUiComponent(t);
		i && (i.visible = e), this.visHash.put(t, e)
	}, e.prototype.setUiComponentVisible = function(t) {
		for (var e = this.layerList.length, i = 0; e > i; i++) {
			var n = this.uiComponentHash.get(this.layerList[i]);
			n && (n.visible = t, 0 == this.getVisible2ByLay(this.layerList[i]) && (n.visible = !1))
		}
	}, e.prototype.getVisible2ByLay = function(t) {
		var e = this.visHash.get(t);
		return void 0 == e || null == e ? !0 : e
	}, e.prototype.getUrl = function(t) {
		return this.urlHash.get(t)
	}, e.prototype.getUiComponent = function(t) {
		return this.uiComponentHash.get(t)
	}, e.prototype.setUiComponent = function(t, e) {
		e && (this.remove(t), this.uiComponentHash.put(t, e), this.layerList.push(t), egret.is(e, "eui.Image") ? this.urlHash
			.put(t, e.source) : egret.is(e, "CImage") && this.urlHash.put(t, e.url))
	}, e.prototype.remove = function(t) {
		var e = this.uiComponentHash.get(t);
		this.uiComponentHash.del(t), e && egret.is(e, "egret.DisplayObject") && e.parent ? (egret.is(e, "CImage") && e.clear(),
			UIMaker.putToPool(e)) : egret.is(e, "CEffect") && (e.removeParent(), e.stop(), e.dispose(), e = null)
	}, e.prototype.dispose = function() {
		for (var t = this.layerList.length, e = 0; t > e; e++) this.remove(this.layerList[e]);
		this.data = null, this.uiComponentHash.dispose(), this.uiComponentHash = null, this.urlHash.dispose(), this.visHash
			.dispose(), this.visHash = null, this.urlHash = null, this.layerList = null
	}, e
}(egret.HashObject);
__reflect(RenderData.prototype, "RenderData");
var Character = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.makeShadow(), e.hpBar.changeHpBarStyle(AvatarHpMpBar.STYLE_1), e
	}
	return __extends(e, t), e.prototype.makeAvatar = function() {
			return new CharacterAvatar(this)
		}, e.prototype.changePartVisible = function(e, i) {
			t.prototype.changePartVisible.call(this, e, i), this.shadow instanceof ShadowAvatar && this.shadow.getCAvavtarPatr(
				e) && (this.shadow.getCAvavtarPatr(e).visible = i)
		}, e.prototype.makeShadow = function() {
			this.setShadow(new ShadowAvatar), this._roleData ? (this.shadow.x = this._roleData.pixel_x, this.shadow.y = this._roleData
				.pixel_y) : (this.shadow.x = 0, this.shadow.y = 0)
		}, e.prototype.addSelectEffect = function(t) {
			void 0 === t && (t = null)
		}, e.prototype.mouseOver = function() {}, e.prototype.mouseOut = function() {}, e.prototype.mouseDown = function() {},
		e.prototype.dispose = function() {
			GameLog.logError("Character类永远不会被释放的")
		}, e
}(Player);
__reflect(Character.prototype, "Character");
var CharacterAvatar = function(t) {
	function e(e) {
		return void 0 === e && (e = null), t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.makePart = function(t) {
		var e = App.thing.create(CharacterAvatarPart, "CharacterAvatar", !0);
		return e.partType = t, e.resType = NetResourceType.CHAR_AVATAR, e
	}, e
}(h5_engine.CAvatar);
__reflect(CharacterAvatar.prototype, "CharacterAvatar");
var CharacterAvatarPart = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		return i._loaderHash = new HashObject, i
	}
	return __extends(e, t), e.prototype.loadAnimation = function() {
		var t = this.aniName;
		t && "" != t && null != this.action && "0" != t && -1 != this.dir && (this.partType != AvatarPartType.HORSE && this
				.partType != AvatarPartType.HORSE_HEAD || this.action == AvatarActionType.ACTION_TYPE_HORSE_STAND || this.action ==
				AvatarActionType.ACTION_TYPE_HORSE_RUN) && (this.partType != AvatarPartType.WING || this.action !=
				AvatarActionType.ACTION_TYPE_SKILL_ATK3 && this.action != AvatarActionType.ACTION_TYPE_SKILL_ATK4) ? this.loadResource() :
			this.clear()
	}, e.prototype.loadResource = function() {
		var t = this.getAvatarPartUrl(),
			e = this._loaderHash.get(t);
		e ? e.content && this.loadComplete(e) : (e = new h5_engine.NetLoader, e.netHandler.addCompleteHandler(this, new FunctionVO(
			this.loadComplete, this, e)), e.resType = NetResourceType.CHAR_AVATAR, e.url = t, this._loaderHash.put(t, e))
	}, e.prototype.loadComplete = function(t) {
		var e = this.getAvatarPartUrl();
		t.url == e && this.netComplete(t.content)
	}, e.prototype.clearCatchLoader = function() {
		var t = this._loaderHash.$_getValueMap();
		for (var e in t) t[e].dispose();
		this._loaderHash.clear()
	}, e
}(h5_engine.CAvatarPart);
__reflect(CharacterAvatarPart.prototype, "CharacterAvatarPart");
var CharacterRoleData = function(t) {
	function e(e) {
		void 0 === e && (e = null);
		var i = t.call(this) || this;
		if (i.changePositionOrder = 0, i.transferType = -1, i.transferID = -1, i.isShengji = 0, i.isNoSearchMonster = !1, i._line =
			0, i.selectroleindex = 0, i.selectroleindex1 = 1, i._gmLevel = 0, i._index = 0, i.prelevel = -1, i._moveCmdSign = 1,
			i._stopTime = 0, i._attackerHash = new HashMap, i._lastDropItem = 0, !e) return i;
		var n = i;
		return n._mapModule = e, n.skillCombo = new ComboData(i), AIFactory.createAi(i, EnumAiType.auxiliary), n.operationData =
			new OperationData, n.autoSettingData = new AutoSettingData, n.recoverySettingData = new RecoverySetData, n._changeVisible = !
			0, n._isInVisableArea = !0, RoleDataAdvanceTimeCenter.instance.deleteRoleData(i), i
	}
	return __extends(e, t), e.prototype.openFightAi = function(t) {
		var e = this;
		e.fightParma = t, 0 == e.isFightAiRuning && e._mapModule.sendCommand.sendAutoFightState(!0)
	}, e.prototype.closeFightAi = function() {
		var t = this;
		t.fightParma = null, t.isFightAiRuning && t._mapModule.sendCommand.sendAutoFightState(!1)
	}, e.prototype.createRoleView = function() {
		return this._view = new Character, this._view
	}, e.prototype.stopAndMoveTo = function(e, i, n, a) {
		void 0 === a && (a = !0), 0 == this.isJumping && (t.prototype.stopAndMoveTo.call(this, e, i, n, a), this.changeScenePoint(
			i, n), GameLog.log("stopAndMoveTo ----", e, i, n))
	}, e.prototype.changeScenePoint = function(t, e) {
		this._mapModule.mapLoader.mapData && this._mapModule.mapMouseModel.moveMapCenterToPoint(t, e)
	}, e.prototype.setLevel = function(t) {
		var e = this;
		t > e._level && (App.sound.playSound(EnumSoundId.LEVEL_UP, 1e3), e._view.addLevelEffect()), e._level != t && (e._level =
			t, App.dispatcher.dispatchEvent(PlayerAttributeEvent.CHARACTER_LEVEL, t), App.dispatcher.dispatchEvent(
				PlatformEventType.PLATFORM_LOG_UP, 4)), App.data.characterCenter.roleOpenRed()
	}, Object.defineProperty(e.prototype, "vipLevel", {
		get: function() {
			return egret.superGetter(e, this, "vipLevel")
		},
		set: function(t) {
			this._vipLevel != t && egret.superSetter(e, this, "vipLevel", t), App.data.characterCenter.roleOpenRed()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTeamId = function(e) {
		t.prototype.getTeamId.call(this) != e && (t.prototype.setTeamId.call(this, e), App.dispatcher.dispatchEvent(
			TeamEvent.CHARACTER_TEAM_CHANGE, e))
	}, e.prototype.setMapPos = function(t, e) {
		var i = this;
		if (i._serverMap_x != t || i._serverMap_y != e) var n = !0;
		i._serverMap_x = t, i._serverMap_y = e;
		var a = i._serverMap_x / h5_engine.MapConfig.MAP_NODE_WIDTH >> 0,
			o = i._serverMap_y / h5_engine.MapConfig.MAP_NODE_HEIGHT >> 0;
		App.global.mapModule.mapAvatarModel.checkIsNodeWalkAble(this, a, o, i._mapNodeX, i._mapNodeY), i._mapNodeX = a, i._mapNodeY =
			o, n && i._mapModule.mapMouseModel.controlRoleData == i && App.dispatcher.dispatchEvent(EventType.RESET_ALL_IS_IN_VISIBLE_AREA),
			i.changeDebugPostion()
	}, Object.defineProperty(e.prototype, "gmLevel", {
		get: function() {
			return this._gmLevel
		},
		set: function(t) {
			var e = this;
			e._gmLevel != t && (e._gmLevel = t, App.dispatcher.dispatchEvent(PlayerAttributeEvent.GM_LEVEL_CHANGE, e.personId,
				e._gmLevel), e._gmLevel > 0 && App.dispatcher.dispatchEvent(EventType.SHOW_GM))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearTransferInfo = function() {
		var t = this;
		t.transferType = -1, t.transferID = -1
	}, Object.defineProperty(e.prototype, "selectindex", {
		get: function() {
			return this.selectroleindex
		},
		set: function(t) {
			this.selectroleindex = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectindex1", {
		get: function() {
			return this.selectroleindex1
		},
		set: function(t) {
			this.selectroleindex1 = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleIndex", {
		get: function() {
			return this._index
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "stopTime", {
		get: function() {
			return this._stopTime
		},
		set: function(t) {
			var e = this;
			e._stopTime = t, e._roleIdleTime = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addAttacker = function(t) {
		var e = this;
		e._attackerHash.has(t) ? e._attackerHash.put(t, 1e4) : (e._attackerHash.put(t, 1e4), App.dispatcher.dispatchEvent(
			PlayerAttributeEvent.ADD_ATTACKER, t))
	}, e.prototype.changeDebugPostion = function() {
		var t = this;
		if (t._mapModule.mapLoader.mapData && t._mapModule.mapMouseModel.controlRoleData == t) {
			var e = t._mapModule.mapLoader.mapData.getNodeByXY(t.pixel_x, t.pixel_y);
			e && App.dispatcher.dispatchEvent(EventType.CHARACTER_UPDATE_POSITION, t.pixel_x, t.pixel_y, e.x, e.y, t._serverMap_x,
				t._serverMap_y)
		}
	}, e.prototype.endMove = function(e, i, n) {
		void 0 === n && (n = "");
		var a = this;
		a._lastDropItem = 0, a._mapModule.mapMouseModel.controlRoleData == this ? (a.actionList.length > 0 || 0 == a._mapModule
			.mapMouseModel.checkMouseDownMap()) && t.prototype.endMove.call(this, e, i, n) : t.prototype.endMove.call(this, e,
			i, n), a.changeDebugPostion()
	}, e.prototype.startMove = function(e, i) {
		var n = this;
		n._lastDropItem = 0, t.prototype.startMove.call(this, e, i), n.changeDebugPostion()
	}, e.prototype.progressMove = function(e, i) {
		var n = this;
		n._lastDropItem = 0, t.prototype.progressMove.call(this, e, i), n.changeDebugPostion()
	}, e.prototype.addvanceTime = function(e) {
		var i = this;
		t.prototype.addvanceTime.call(this, e), i.checkDropItem(e), i.checkAddvanceTime(e)
	}, e.prototype.checkDropItem = function(t) {
		var e = this;
		0 == e.getIsDead() && (e._lastDropItem += t, e._lastDropItem >= 100 && (e._mapModule.mapItemModel.checkCanDropItem(
			this, e.pixel_x, e.pixel_y), e._lastDropItem = 0))
	}, e.prototype.checkAddvanceTime = function(t) {
		var e = this;
		if (e._stopTime += t, e._attackerHash.length > 0)
			for (var i = e._attackerHash.keys, n = i.length, a = 0; n > a; a++) {
				var o = i[a],
					r = e._attackerHash.get(o);
				r -= t, 0 >= r || !App.global.mapModule.mapAvatarModel.getRoleData(o) ? (e._attackerHash.del(o), App.dispatcher.dispatchEvent(
					PlayerAttributeEvent.REMOVE_ATTACKER, o)) : e._attackerHash.put(o, r)
			}
	}, e.prototype.initCharacterData = function(t) {
		var e = this;
		e.clearManager(), t.personId && (e._personId = t.personId.toString()), e._stateLevel = t.stateLevel, e._index = 1,
			e._name = t.name, e._sex = t.sex, e._job = t.job, e._upjob = t.upjob, e._level = t.level, e._mapId = t.mapId, e._serverMap_x =
			t.x, e._serverMap_y = t.y, e._c_move_to_x = t.x, e._c_move_to_y = t.y, e.skill = t.skill, e.skills = t.skills, e._state =
			t.state, e._hp = t.hp, e._mp = t.mp, t.exp && (e.exp = LongUtil.toNumber(t.exp)), e.faceDir = t.dir, e.avatar = t.avatar,
			e.pkState = t.pkState, e.group = t.group, e.pksword = t.curPkSword, e.nation = t.nation, e._serverId = t.serverid,
			e.guildId = t.guildId.toString(), e.regTime = LongUtil.toNumber(t.roleRegTime), this.hoopCharmTime = t.hoopCharmTime,
			this.jadeFairyBottleTime = t.jadeFairyBottleTime, e.changeAttribute(t.abilityinfo), null != t.pfVipInfo && 0 != t.pfVipInfo
			.vipType ? (e.pfVipType = t.pfVipInfo.vipType, e.pfViphigh = t.pfVipInfo.highVip, e.pfVipYear = t.pfVipInfo.yearVip,
				e.pfVipLvl = t.pfVipInfo.vipLvl) : e.pfVipType = WebParams.pfviptype, e._equipStrengList = App.data.forgeCenter.createInfo(
				t.strengthInfoList), e._equipZhuZaoList = App.data.forgeCenter.createInfo(t.zhuZaoInfoList), e._equipRefineList =
			App.data.forgeCenter.createInfo(t.refineInfoList), e._equipChuanShiList = App.data.forgeCenter.createInfo(t.chuanShiInfoList),
			e._equipFushiList = App.data.forgeCenter.createFushiInfo(t.runesInfos), e._weaponSoulList = t.maSoulInfos, App.data
			.wingGodCenter().wingGodChange(t.EquipGodWingInfos, 1), App.data.wearEquipCenter.loadWearEquip(t.equips, this),
			App.data.characterCenter.loadGuildEquips(t.equipGuildSuitInfo, 1), App.data.characterCenter.loadChuanqiEquips(t.LegendarySuitlistInfo,
				1), App.data.characterCenter.loadLunhuiEquips(t.equipLunHuiInfo, 1), App.data.characterCenter.loadRexueEquips(t.fuseEquipInfo,
				1), App.data.characterCenter.loadFaBaoEquip(t.magicWeapons, 1), App.data.godEquipCenter.loadGodEquips(t.godEquipInfo,
				1), App.global.mapModule.mapAvatarModel.addRoleToScene(this), e._mapModule.mapSkillModel.changeOperation(this),
			App.global.characterData.prelevel = t.level, App.dispatcher.dispatchEvent(PlayerAttributeEvent.MY_PLAYER_INFO_INIT);
		for (var i, n = t.advanceInfo ? t.advanceInfo : [], a = n.length, o = 0; a > o; o++)
			if (i = n[o]) {
				var r = App.global.roles.getRoleInfoByIndex(1);
				if (r) switch (App.data.characterCenter.loadAdvanceEquips(i.equips, i.type, 1), i.type) {
					case AdvanceType.zuoqi:
						r.mountInfo = i;
						break;
					case AdvanceType.fazhen:
						r.fazhenInfo = i;
						break;
					case AdvanceType.tianbing:
						r.tianBingInfo = i;
						break;
					case AdvanceType.guangyi:
						r.guangyiInfo = i;
						break;
					case AdvanceType.binghun:
						r.binghunInfo = i
				}
			}
	}, e.prototype.changeAttribute = function(t, e) {
		void 0 === e && (e = 0);
		var i = this,
			n = i.getChangeAttributteData(t);
		i.isShengji = e, i.acmax = t.acmax, i.acmin = t.acmin, i.attackSpeed = t.attackSpeed, i.comfortable = t.comfortable,
			i.dcmax = t.dcmax, i.dcmin = t.dcmin, i.harmadd = t.harmadd, i.hit = t.hit, i.juck = t.juck, i.luck = t.luck, i.macmax =
			t.macmax, i.macmin = t.macmin, i.maxHp = t.maxHp, i.maxMp = t.maxMp, i.mcmax = t.mcmax, i.mcmin = t.mcmin, i.scmax =
			t.scmax, i.scmin = t.scmin, i._speed = t.speed, i.crit = t.crit, i.tenacity = t.tenacity, i.critharmadd = t.critharmadd,
			i.critharmdel = t.critharmdel, i.harmadd = t.harmadd, i.harmdel = t.harmdel, i.holyatk = t.holyatk, i.holydef = t.holydef,
			i.damageadd = t.damageadd, i.damagedel = t.damagedel, i.critadddamage = t.critadddamage, i.critdeldamage = t.critdeldamage,
			i._roleView.hpBar.settingHpValue(i._hp, i._maxHp), n && i.changeAttributeEvent(n)
	}, e.prototype.getChangeAttributteData = function(t) {
		var e = this,
			i = new PlayerAttributeChangeData;
		return i.acmax = t.acmax - e.acmax, i.acmin = t.acmin - e.acmin, i.attackSpeed = t.attackSpeed - e.attackSpeed, i.comfortable =
			t.comfortable - e.comfortable, i.dcmax = t.dcmax - e.dcmax, i.dcmin = t.dcmin - e.dcmin, i.harmadd = t.harmadd - e
			.harmadd, i.hit = t.hit - e.hit, i.juck = t.juck - e.juck, i.luck = t.luck - e.luck, i.macmax = t.macmax - e.macmax,
			i.macmin = t.macmin - e.macmin, i.maxHp = t.maxHp - e.maxHp, i.maxMp = t.maxMp - e.maxMp, i.mcmin = t.mcmin - e.mcmin,
			i.mcmax = t.mcmax - e.mcmax, i.scmin = t.scmin - e.scmin, i.scmax = t.scmax - e.scmax, i.crit = t.crit - e.crit, i
			.tenacity = t.tenacity - e.tenacity, i.critharmadd = t.critharmadd - e.critharmadd, i.critharmdel = t.critharmdel -
			e.critharmdel, i.harmadd = t.harmadd - e.harmadd, i.harmdel = t.harmdel - e.harmdel, i.damageadd = t.damageadd - e
			.damageadd, i.damagedel = t.damagedel - e.damagedel, i.critadddamage = t.critadddamage - e.critadddamage, i.critdeldamage =
			t.critdeldamage - e.critdeldamage, i.holyatk = t.holyatk - e.holyatk, i.holydef = t.holydef - e.holydef, i
	}, e.prototype.changeAttributeEvent = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.MY_PLAYER_ATTRIBUTE_CHANGE, t)
	}, e.prototype.checkInShenyuan = function(t, e) {
		return e
	}, e.prototype.sendCharcterRunMessage = function(t, e, i, n, a, o, r, s) {
		var h = this;
		h.stopTime = 0, h._mapModule.sendCommand.sendCharcterRunMessage(t, h._moveCmdSign, e, i, n, a, o, r, s, h.personId),
			h._moveCmdSign++, h._moveCmdSign > 255 && (h._moveCmdSign = 1)
	}, Object.defineProperty(e.prototype, "level", {
		get: function() {
			return this._level
		},
		set: function(t) {
			this.setLevel(t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipStrengList", {
		get: function() {
			return this._equipStrengList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipZhuZaoList", {
		get: function() {
			return this._equipZhuZaoList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipRefineList", {
		get: function() {
			return this._equipRefineList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipChuanShiList", {
		get: function() {
			return this._equipChuanShiList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipRisingStarList", {
		get: function() {
			return this._equipRisingStarList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipFushiList", {
		get: function() {
			return this._equipFushiList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "weaponSoulList", {
		get: function() {
			return this._weaponSoulList
		},
		set: function(t) {
			this._weaponSoulList = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		var e = this;
		t.prototype.clear.call(this), e._view && e._view.clear(), e.actionList && e.actionList.clear(), e._skillAniMap =
			new HashObject
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(MapPlayerRoleData);
__reflect(CharacterRoleData.prototype, "CharacterRoleData");
var IconImage = function(t) {
	function e(e, i) {
		void 0 === e && (e = null), void 0 === i && (i = null);
		var n = t.call(this) || this;
		return n._callback = null, n._imageType = e, n._callback = i, n
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "imageType", {
		get: function() {
			return this._imageType
		},
		set: function(t) {
			this._imageType = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "url", {
		get: function() {
			return this._src
		},
		set: function(t) {},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "path", {
		set: function(t) {
			var e = this,
				i = ResPathUtil.getIcon(t, e._imageType);
			e._src != i && (e.clear(), e.showDefault(), null != e._callback && e._callback.exec(e), null != t && null != e._imageType &&
				(e._src = i, e.netLoad()))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "head", {
		set: function(t) {
			var e = ResPathUtil.getHead(t, this._imageType);
			this._src != e && (this.clear(), this.showDefault(), null != this._callback && this._callback.exec(this), null !=
				t && null != this._imageType && (this._src = e, this.netLoad()))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.showDefault = function() {
		null == e.defaultBaseBitmapData, this.texture = e.defaultBaseBitmapData
	}, e.DEFAULT_ICON = "png.common_v1.default_item_icon_common", e
}(CImage);
__reflect(IconImage.prototype, "IconImage");
var ItemUseUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ItemUseSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ItemUseUI.prototype, "ItemUseUI");
var ChoujiangYuanbaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.flag = !1, e.point = 0, e.pointArr = [0, 36, 72, 108, 144, 180, 216, 252, 288, 324], e.postionArr = [new egret.Point(
				283, 171), new egret.Point(381, 195), new egret.Point(454, 286), new egret.Point(454, 383), new egret.Point(381,
				474), new egret.Point(282, 501), new egret.Point(185, 474), new egret.Point(112, 383), new egret.Point(112, 286),
			new egret.Point(185, 195)
		], e._currMoney = 0, e.euiSkinName = "SignChouJiangViewSkin", e._gridDict = new HashObject, null == e.bgimg && (e.bgimg =
			UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath("fuli/fxzp_01", "", ".jpg")));
		for (var i = 0; 10 > i; i++) {
			var n = new ItemGrid;
			n.isShowDesc = !1, n.x = e.postionArr[i].x, n.y = e.postionArr[i].y, e.liqugroup.addChild(n), e._gridDict.put(i, n)
		}
		return e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 60, e), e._moneyBar.showBg(!1), e.yuanbaoimg.visible = e.checkBtn
			.visible = !0, e.y = -89, ActivityCenter.xiaohaoFlag = !1, App.global.redPoint.redPointDispatchEvent(65), e
	}
	return __extends(e, t), e.prototype.onClose = function() {
		App.panel.removePanel(1013)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(VipEvent.YuanBaoTurntable, this.showView, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onfenxiangClick, this, this.btn0), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClose, this, this.btnClose), this._moneyBar.show(), this.desc1.textFlow = HtmlUtil.getHtmlStr(
				"" + GameUtil.getTipDesc(180).q_tipDesc), this.showView(), App.dispatcher.dispatchEvent(ActivityEvent.REFRESH_BRIEF)
	}, e.prototype.showView = function() {
		this.comonarr = App.data.moonCardCenter.getYuanBaoTuranbleList();
		for (var t = this.comonarr.length, e = 0; t > e; e++) {
			var i = this.comonarr[e],
				n = ItemUtil.getRewardDataList(i.q_reward),
				a = this._gridDict.get(e);
			a.setData(n[0]), a.name = "" + i.q_id, i.q_get_order <= App.data.moonCardCenter.YuanbaoTurData.sumcount ? (this[
					"gou" + e].visible = !0, a.filters = FilterUtil.FILTER_GRAY) : (this["gou" + e].visible = !1, a.filters = []), i
				.q_get_order == App.data.moonCardCenter.YuanbaoTurData.sumcount + 1 && "" != i.q_need_item && (this.canchoujiangtext
					.text = "消耗:   " + StringUtil.JsonParse(i.q_need_item)[0].num + "元宝")
		}
	}, e.prototype.onfenxiangClick = function(t) {}, e.prototype.onBtnClick = function(t) {
		if (!this.flag) {
			if (this._currMoney > App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO)) return void PanelOpenManager.openChargePanel(
				0, !0);
			this.flag = !0, this.btn.touchEnabled = !1, this.btn.filters = FilterUtil.FILTER_GRAY;
			for (var e = 0; e < this.comonarr.length; e++)
				if (this.comonarr[e].q_get_order == App.data.moonCardCenter.YuanbaoTurData.sumcount + 1) {
					this.point = this.comonarr[e].q_display_order - 1;
					break
				} this.checkBtn.selected ? (this.img.rotation = this.pointArr[this.point], this.choujiangClick()) : TweenLite.to(
				this.img, 4, {
					ease: Cubic.easeOut,
					onStart: this.onStartView(),
					onComplete: this.choujiangClick,
					onCompleteScope: this,
					rotation: 1080 + this.pointArr[this.point]
				})
		}
	}, e.prototype.onStartView = function() {
		App.timer.doFrameLoop(this, 1, this.updeteView)
	}, e.prototype.updeteView = function() {
		var t = Math.abs(Math.ceil(this.img.rotation / 36));
		this.img.rotation >= -18 && this.img.rotation < 18 ? t = 0 : this.img.rotation >= 18 && this.img.rotation < 54 ? t =
			1 : this.img.rotation >= 54 && this.img.rotation < 90 ? t = 2 : this.img.rotation >= 90 && this.img.rotation < 126 ?
			t = 3 : this.img.rotation >= 126 && this.img.rotation < 162 ? t = 4 : this.img.rotation >= 162 && this.img.rotation <
			-162 ? t = 5 : this.img.rotation >= -162 && this.img.rotation < -126 ? t = 6 : this.img.rotation >= -126 && this.img
			.rotation < -90 ? t = 7 : this.img.rotation >= -90 && this.img.rotation < -54 ? t = 8 : this.img.rotation >= -54 &&
			this.img.rotation < -18 && (t = 9), this["img" + t].visible = !0, this["img" + t].alpha = 1;
		for (var e = 0; t - 1 > e; e++) this["img" + e].visible = !1;
		t > 0 ? TweenLite.to(this["img" + (t - 1)], .1, {
			alpha: 0,
			visible: !1
		}) : TweenLite.to(this.img9, .1, {
			alpha: 0,
			visible: !1
		})
	}, e.prototype.choujiangClick = function() {
		App.timer.clearTimer(this.updeteView, this), this.flag = !1, this.btn.touchEnabled = !0, this.btn.filters = [];
		for (var t = 0; 10 > t; t++) t != this.point && (this["img" + t].visible = !1);
		var e = this._gridDict.get(this.point);
		App.global.operate.flyToBag([e.icon], this), VipCommandSender.sendC2sTurntableReward(Number(e.name), 3)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar && this._moneyBar.hide(), App.timer.clearTimer(this.updeteView, this),
			TweenLite.killTweensOf(this.img), TweenLite.killTweensOf(this.img0), TweenLite.killTweensOf(this.img1), TweenLite.killTweensOf(
				this.img2), TweenLite.killTweensOf(this.img3), TweenLite.killTweensOf(this.img4), TweenLite.killTweensOf(this.img5),
			TweenLite.killTweensOf(this.img6), TweenLite.killTweensOf(this.img7), TweenLite.killTweensOf(this.img8), TweenLite
			.killTweensOf(this.img9)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				var i = this._gridDict.get(e);
				i.filters = [], i.dispose(), i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this.bgimg && (this.bgimg.dispose(), this.bgimg =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ChoujiangYuanbaoView.prototype, "ChoujiangYuanbaoView");
var LongRangeSkillAniProcessor = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._total = 0, e._count = 0, e
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if ("" == e.q_trajectory_effect) {
			if ("" != e.q_hit_effect)
				if (t.targetPersonRole.length > 0) {
					var i = t.targetPersonRole.$_getValueMap();
					for (var n in i) {
						var a = i[n];
						a && t.hitTarget(a)
					}
				} else if (t.skillid != EnumSkillID.HEJI_DAOSHI && t.skillid != EnumSkillID.HEJI_FASHI && t.skillid !=
				EnumSkillID.HEJI_ZHANSHI) {
				var o = MoveTargetPoint.get(t.skillToX, t.skillToY);
				t.hitTarget(o)
			}
			t.dispose()
		} else t.targetRole ? t.makeTargetListEffect(e, t.targetRole) : t.makeTargetListEffect(e, null)
	}, e.prototype.makeTargetListEffect = function(t, e) {
		var i = this,
			n = i.targetPersonRole.length;
		if (1 == t.q_skill_target_type || 0 == n) e = MoveTargetPoint.get(i.skillToX, i.skillToY), t.q_trajectory_speed > 0 ?
			i.moveEffect(t, e) : i.makeEffect(t, e), t.q_trajectory_speed <= 0 && i.dispose();
		else {
			var a = i.targetPersonRole.$_getValueMap();
			for (var o in a) {
				var r = a[o];
				r && (t.q_trajectory_speed > 0 ? i.moveEffect(t, r) : i.makeEffect(t, r))
			}
			t.q_trajectory_speed <= 0 && i.dispose()
		}
	}, e.prototype.makeEffect = function(t, e, i, n) {
		void 0 === i && (i = 0), void 0 === n && (n = !0);
		for (var a = this, o = ResPathUtil.parseSkillEffect(t.q_File_client, t.q_trajectory_effect), r = o.length, s =
				Config.gameSceneSpeed * this.attackRole.atkSpeed, h = 0; r > h; h++) {
			var l = o[h];
			l && (e instanceof RoleData && a.skillid != EnumSkillID.SHEN_SHENG_ZHAN_JIA ? e.showEffect(
				"LongRangeSkillAniProcessor", l, 0, 0, null, s) : EffectUtils.showOnceEffect("LongRangeSkillAniProcessor", a.mapModule
				.secne.flyEffectLayer, l, e.pixel_x, e.pixel_y, null, s, i))
		}
		t.q_hit_sound && n && App.sound.playSound(t.q_hit_sound), e instanceof RoleData ? a.playBeHitSound(e) : e instanceof MoveTargetPoint &&
			MoveTargetPoint.put(e)
	}, e.prototype.moveEffect = function(t, e) {
		var i = this,
			n = i.attackRole.pixel_x,
			a = i.attackRole.pixel_y - .5 * i.attackRole.modelHeight,
			o = Math.abs(e.pixel_x - n),
			r = 2 * Math.abs(e.pixel_y - a),
			s = Math.sqrt(o * o + r * r) / t.q_trajectory_speed;
		i._total++;
		var h = ResPathUtil.getSkillEffectUrl(t.q_File_client, t.q_trajectory_effect);
		i.makeFlyEffect(h, n, a, e, s)
	}, e.prototype.makeFlyEffect = function(t, e, i, n, a, o) {
		void 0 === o && (o = !0);
		var r = this;
		null == r._flyBackVo && (r._flyBackVo = new FunctionVO(r.onFlyComplete, r)), a *= this.attackRole.atkSpeed;
		var s = App.thing.create(FlyEffect, "LongRangeSkillAniProcessor", !0);
		return s.url = t, s.addParent(r.mapModule.secne.flyEffectLayer), s.setTo(e, i), s.speed = Config.gameSceneSpeed *
			this.attackRole.atkSpeed, s.play(), s.moveTo(n, a, r._flyBackVo, o), s
	}, e.prototype.onFlyComplete = function(t) {
		var e = this;
		e.hitTarget(t.target), e._count++, e._count == e._total && e.dispose()
	}, e.prototype.hitTarget = function(t) {
		var e = this,
			i = GameUtil.getSkillConfigData(e.skillid, e.skillLevel);
		if ("" != i.q_hit_effect)
			for (var n = ResPathUtil.parseSkillEffect(i.q_File_client, i.q_hit_effect), a = n.length, o = Config.gameSceneSpeed *
					this.attackRole.atkSpeed, r = 0; a > r; r++) {
				var s = n[r];
				s && (t instanceof RoleData && e.skillid != EnumSkillID.SHEN_SHENG_ZHAN_JIA ? t.showEffect(
					"LongRangeSkillAniProcessor", s, 0, .5 * -t.modelHeight, null, o) : EffectUtils.showOnceEffect(
					"LongRangeSkillAniProcessor", e.mapModule.secne.flyEffectLayer, s, t.pixel_x, t.pixel_y, null, o))
			}
		i.q_hit_sound && App.sound.playSound(i.q_hit_sound), t instanceof RoleData ? e.playBeHitSound(t) : t instanceof MoveTargetPoint &&
			MoveTargetPoint.put(t)
	}, e
}(RoleSkillAniProcessor);
__reflect(LongRangeSkillAniProcessor.prototype, "LongRangeSkillAniProcessor");
var SurfaceCommonView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.btnGroup = {}, e.resetBtnState = function(t) {
			for (var i in e.btnGroup) e.btnGroup[i].currentState = "up";
			e.btnGroup[t].currentState = "down"
		}, e.compGroup_left = [], e.compGroup_Right = [], e.InitViewSetting = function() {
			0 == e.compGroup_left.length && (e.compGroup_left.push(e.btnLvUpAll), e.compGroup_left.push(e.need_txt), e.compGroup_left
				.push(e.name_txt)), 0 == e.compGroup_Right.length && (e.compGroup_Right.push(e.btnLvUpAll2), e.compGroup_Right.push(
				e.need_txt2), e.compGroup_Right.push(e.name_txt2));
			var t = {
				0: 175,
				1: 175,
				2: 225
			};
			"激 活" != e.btnLvUpAll.label ? (e.compGroup_left.map(function(e, i) {
					e.x = t[i] - 100
				}), e.compGroup_Right.map(function(t, e) {
					t.visible = !0
				}), e.name_txt2.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>" + e.name_txt.text + "</u></font>"), e
				._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenlLevelUp, e, e.btnLvUpAll2)) : (e.compGroup_left
				.map(function(e, i) {
					e.x = t[i]
				}), e.compGroup_Right.map(function(t, e) {
					t.visible = !1
				}))
		}, e.OpenlLevelUp = function() {}, e.hidenRole = function(t) {
			e._avatar.getCAvavtarPatr(AvatarPartType.BODY).visible = t, e._avatar.getCAvavtarPatr(AvatarPartType.WING).visible =
				t, e._avatar.getCAvavtarPatr(AvatarPartType.HEAD).visible = t, e._avatar.getCAvavtarPatr(AvatarPartType.HORSE).visible = !
				t, t ? (e._avatar.x = 270, e._avatar.y = 440) : (e._avatar.x = 280, e._avatar.y = 435)
		}, e._surType = 4, e._roleIndex = 1, e._currSurBeanArr = [], e.y = -160, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._currList = new VScrollPanel(127, 680, SurfaceCommonRender, 20), this.baseAttributeDataBean = new BaseAttributeDataBean,
			this.render_group.addChild(this._currList), this.btnGroup[1] = this.wing, this.btnGroup[4] = this.clothes, this.btnGroup[
				6] = this.mount
	}, Object.defineProperty(e.prototype, "surType", {
		set: function(t) {
			this._surType = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onWearSurface,
				this, this.btnLvUpAll), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSeletedPos, this,
				this.posgrid_group), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.onChangeRole, this), this._dispatcher
			.addEventListener(eui.ItemTapEvent.ITEM_TAP, this.selecdRender, this, this._currList.list), this._dispatcher.addEventListener(
				EventType.SURFACE_UPDATE, this.onSurfaceUpdate, this), this._dispatcher.addEventListener(SurfaceEvent.SURFACE_INDEX,
				this.SurfaceIndex, this), this._dispatcher.addEventListener(SurfaceEvent.SURFACE_BIND, this.updateBindMount, this),
			this._surType = 4, e && (this._roleIndex = e), this.onChangeRole(null), App.data.taskCenter.getThreadTaskShowGuide(
				13) && 0 == this.roleData.surfaceManager.hasSerface(3001) && Guide.getGuide().show("点击激活", Guide.RIGHT, 66, 703,
				this), this.clothes.currentState = "down", this.wing.currentState = "up", this.mount.currentState = "up"
	}, e.prototype.SurfaceIndex = function(t) {
		var e = new egret.TouchEvent(egret.TouchEvent.TOUCH_TAP);
		switch (t) {
			case 4:
				e.$target = this.clothes, this.onSeletedPos(e);
				break;
			case 1:
				e.$target = this.wing, this.onSeletedPos(e);
				break;
			case 6:
				e.$target = this.mount, this.onSeletedPos(e)
		}
	}, e.prototype.updateBindMount = function() {
		this.refrsh(this._currBean)
	}, e.prototype.onSurfaceUpdate = function(t, e) {
		var i = App.config.q_surfaceContainer.getDataBean(t);
		if (!i || 5 != i.q_type && 4 != i.q_type && 1 != i.q_type && 2 != i.q_type) {
			if (6 == i.q_type && this._currBean.q_id == t) switch (e) {
				case 3:
					this.btnLvUpAll.label = "穿 戴", this.need_txt.visible = this.name_txt.visible = !1
			}
		} else if (this._currBean.q_id == t) switch (e) {
			case 0:
				this.btnLvUpAll.label = "穿 戴", this.gridSource(i.q_type), this.need_txt.visible = this.name_txt.visible = !1;
				break;
			case 1:
				this.btnLvUpAll.label = "脱 下", this.gridSource(i.q_type), this.need_txt.visible = this.name_txt.visible = !1;
				break;
			case 2:
				break;
			case 3:
				this.btnLvUpAll.label = "穿 戴", this.need_txt.visible = this.name_txt.visible = !1;
				break;
			case 4:
		}
		this.updateRedPoint()
	}, e.prototype.onWearSurface = function(t) {
		Guide.getGuide().hide(), "脱 下" == this.btnLvUpAll.label ? CharacterUICommandSender.hideSerface(this._currBean.q_id,
				this._roleIndex) : "穿 戴" == this.btnLvUpAll.label ? CharacterUICommandSender.showSerface(this._currBean.q_id,
				this._roleIndex) : 1 == this._currBean.q_type ? App.global.funcOpen.isFunctionOpen(5, "", !0) &&
			CharacterUICommandSender.activeSurface(this._currBean.q_id, this._roleIndex) : CharacterUICommandSender.activeSurface(
				this._currBean.q_id, this._roleIndex)
	}, e.prototype.updateRedPoint = function() {
		this.red0.visible = App.data.surfaceCenter.roleTabRed(6), this.red1.visible = App.data.surfaceCenter.roleTabRed(4),
			this.red2.visible = App.data.surfaceCenter.roleTabRed(1), this.red3.visible = App.data.surfaceCenter.roleTabRed(2)
	}, e.prototype.onSeletedPos = function(t) {
		if (egret.is(t.target, "eui.Button")) {
			var e = t.target;
			if ("" == e.name) return;
			this.resetBtnState(e.name), this._surType = Number(e.name), this.seletedPos()
		} else if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			this._surType = Number(e.name), 2 == this._surType && App.panel.openPanel(42)
		}
	}, e.prototype.seletedPos = function() {
		this.addAvatarUI(), this.initCurrBeanArr()
	}, e.prototype.selecdRender = function(t) {
		this.refrsh(this._currSurBeanArr[this._currList.list.selectedIndex])
	}, e.prototype.onChangeRole = function(t) {
		if (t) {
			var e = t;
			this._roleIndex = e.roleIndex
		}
		App.data.surfaceCenter.roleIndex = this._roleIndex, this.seletedPos(), this.updateRedPoint();
		var i = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
		this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, i), this.showSurface(this.roleData
			.surfaceManager.getShowSerfaceIdBySerfaceType(1, 1), 1), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			4), 4), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(5), 5), this.showSurface(this
			.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(2, 3), 2), this.currPosSurface()
	}, e.prototype.currPosSurface = function() {
		var t = 0;
		if (5 == this._surType ? t = this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(5) : 4 == this._surType ? t =
			this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(4) : 1 == this._surType ? t = this.roleData.surfaceManager
			.getShowSerfaceIdBySerfaceType(1, 1) : 6 == this._surType && (t = this.roleData.surfaceManager.bindMountId), 0 >=
			t) this.refrsh(this._currSurBeanArr[0]), this._currList.list.selectedIndex = 0;
		else
			for (var e = this._currSurBeanArr, i = e.length, n = 0; i > n; n++)
				if (e[n].q_id == t) return this.refrsh(e[n]), void(this._currList.list.selectedIndex = n)
	}, e.prototype.initCurrBeanArr = function() {
		var t = {
				1: 1,
				2: 2,
				3: 1
			},
			e = this.roleData.job,
			i = App.config.q_surfaceContainer.list;
		this._currSurBeanArr = [];
		for (var n = i.length, a = App.config.q_surface_componentContainer, o = 0; n > o; o++) a.hasDataBean(i[o].q_id) &&
			(0 != a.getDataBean(i[o].q_id).q_job || a.getDataBean(i[o].q_id).q_sex != t[e] && 0 != a.getDataBean(i[o].q_id).q_sex ?
				a.getDataBean(i[o].q_id).q_job == e && "" != a.getDataBean(i[o].q_id).q_active_condition && (2 == i[o].q_type ? i[
						o].q_child_type == this._surType && this._currSurBeanArr.push(i[o]) : i[o].q_type == this._surType && 1 == this
					._surType ? 1 == i[o].q_child_type && this._currSurBeanArr.push(i[o]) : i[o].q_type == this._surType && (6 ==
						this._surType ? 1 != i[o].q_lock && this._currSurBeanArr.push(i[o]) : this._currSurBeanArr.push(i[o]))) : "" !=
				a.getDataBean(i[o].q_id).q_active_condition && (2 == i[o].q_type ? i[o].q_child_type == this._surType && this._currSurBeanArr
					.push(i[o]) : i[o].q_type == this._surType && 1 == this._surType ? 1 == i[o].q_child_type && this._currSurBeanArr
					.push(i[o]) : i[o].q_type == this._surType && (6 == this._surType ? 1 != i[o].q_lock && this._currSurBeanArr.push(
						i[o]) : this._currSurBeanArr.push(i[o]))));
		this.refrshRender()
	}, e.prototype.refrshRender = function() {
		this._currSurBeanArr.sort(App.data.surfaceCenter.sortSurface1), this.currPosSurface(), this._currList.dataProvider =
			this._currSurBeanArr, this._currList.viewport && (this._currList.viewport.scrollV = 0)
	}, e.prototype.refrsh = function(t) {
		if (t) {
			this._currBean = t, this.baseAttributeDataBean.convert(t.q_add_attribute), this.attr_txt.text = this.baseAttributeDataBean
				.getStrByBaseAttributeBean(this.baseAttributeDataBean, "5", "", "	"), this.showSurface(t.q_id, t.q_type);
			var e = FightPowerUtil.getFightPower([t.q_add_attribute], this.roleData);
			App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, e), 1 == this.roleData.surfaceManager.hasSerface(
				this._currBean.q_id) ? (6 == t.q_type ? this.roleData.surfaceManager.bindMountId == this._currBean.q_id ? this.btnLvUpAll
				.label = "脱 下" : this.btnLvUpAll.label = "穿 戴" : 1 == this.roleData.surfaceManager.getSerfaceIsShow(this._currBean
					.q_id) ? this.btnLvUpAll.label = "脱 下" : this.btnLvUpAll.label = "穿 戴", this.need_txt.visible = this.name_txt.visible = !
				1) : (this.btnLvUpAll.label = "激 活", this.need_txt.visible = this.name_txt.visible = !0);
			var i = App.config.q_surface_componentContainer.getDataBean(t.q_id),
				n = StringUtil.JsonParse(i.q_active_condition);
			this.name_txt.textFlow = HtmlUtil.getHtmlStr("<font color='#ce1616'><u>" + GameUtil.getItemConfigData(n[0].id).q_name +
				"x" + n[0].num + "</u></font>"), App.tip.removeTip(this.name_txt), App.tip.addTip(this.name_txt, new TipData(2,
				n[0].id)), this.InitViewSetting()
		}
	}, e.prototype.showOtherWing = function() {
		var t = (this.roleData.roleIndex, this.roleData.wingID);
		if (t > 0) {
			var e = App.config.q_surfaceContainer.getDataBean(t),
				i = e.q_scene_show_id;
			this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 10, i)
		} else this._avatar.removePart(AvatarPartType.WING)
	}, e.prototype.addAvatarUI = function() {
		if (null == this._avatar) {
			this._avatar = new CUIShowAvatar;
			var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
			this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t), this._avatar.touchEnabled = !
				1, this._avatar.touchChildren = !1, this._avatar.x = 280, this._avatar.y = 435, this.addChild(this._avatar)
		}
	}, e.prototype.gridSource = function(t) {
		this.setTypeVis(t, !1);
		var e;
		e = 1 == t ? this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(t, 1) : this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			t);
		var i = App.config.q_surfaceContainer.getDataBean(e);
		i && (2 == t && 3 == i.q_child_type && this.setTypeVis(t, !0), 1 == t && 1 == i.q_child_type ? this.setTypeVis(t, !
			0) : 4 == t ? this.setTypeVis(t, !0) : 5 == t && this.setTypeVis(t, !0))
	}, e.prototype.showSurface = function(t, e) {
		var i = App.config.q_surfaceContainer.getDataBean(t);
		if (this.gridSource(e), null != i && void 0 != i) {
			if (i && this._avatar) {
				var n = i.q_scene_show_id;
				if (2 == e && 3 == i.q_child_type) return this._avatar.changeAvatarPartResource(AvatarPartType.HEAD, ResPathUtil.getTitleEffect(
					n)), void(this._avatar.getCAvavtarPatr(AvatarPartType.HEAD).y = -185);
				1 == e ? 1 == i.q_child_type && (this.hidenRole(!0), this._avatar.changePlayerRolePartResource(AvatarPartType.WING,
					1, n), this._avatar.getCAvavtarPatr(AvatarPartType.WING).y = -30) : 4 == e ? (this.hidenRole(!0), this._avatar.changePlayerRolePartResource(
					AvatarPartType.BODY, this.roleData.sex, n)) : 5 == e ? this._avatar.changePlayerRolePartResource(AvatarPartType
					.WEAPON, this.roleData.sex, n) : 6 == e && (this._avatar.changePlayerRolePartResource(AvatarPartType.HORSE,
					this.roleData.sex, n), this.hidenRole(!1))
			}
		} else {
			var a = void 0;
			5 == e ? (a = App.data.wearEquipCenter.getRoleWearData(EnumEquipType.WU_QI, this._roleIndex), a && this._avatar.changePlayerRolePartResource(
				AvatarPartType.WEAPON, this.roleData.sex, a.getDataBean().q_equip_resource)) : 4 == e && (a = App.data.wearEquipCenter
				.getRoleWearData(EnumEquipType.YI_FU, this._roleIndex), a && this._avatar.changePlayerRolePartResource(
					AvatarPartType.BODY, this.roleData.sex, a.getDataBean().q_equip_resource))
		}
	}, e.prototype.setTypeVis = function(t, e) {}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this._avatar && this._avatar.parent && (this._avatar.parent.removeChild(this._avatar), this._avatar.dispose()),
			this._avatar = null, Guide.getGuide().hide(), this._currList.removeAll(), this._roleIndex = 1, this._currBean =
			null, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.btnGroup = null, App.tip.removeTip(this.name_txt), this._currList.dispose(), this._currList = null, this.checkSUR =
			null, this.compGroup_left = null, this.compGroup_Right = null, this.roleModel_group.removeChildren(), this.baseAttributeDataBean =
			null, t.prototype.dispose.call(this)
	}, e
}(SurfaceViewUI);
__reflect(SurfaceCommonView.prototype, "SurfaceCommonView");
var ShenluView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._seletedIndex = 0, e._itemId = 0, e._itemNum = 0, e.euiSkinName = "ShenLuSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("shenlu_bg", "", ".jpg"), 0, 60), this.addChildAt(
			this._bg, 0), this._titleCimg = UIMaker.getCImage(this, this, null, this.img_tiltebg.x + 10, this.img_tiltebg.y +
			15), this.lalGetItem.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>获得道具</u></font>")
	}, e.prototype.dispose = function() {
		null != this._bg && this._bg.dispose(), this._bg = null, null != this._titleCimg && this._titleCimg.dispose(), this
			._titleCimg = null, null != this._eft && (TweenMax.killTweensOf(this._eft), this._eft.dispose()), this._eft = null,
			t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		this._roleData = null, t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onUpClick, this,
				this.btn_up), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetItemClick, this, this.lalGetItem),
			this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.onChangeRole, this), this._dispatcher.addEventListener(
				WearEquipCenter.SHENLUUP, this.onLvUp, this), App.dispatcher.addEventListener(ItemEvent.ADD, this.onItemChange,
				this), App.dispatcher.addEventListener(ItemEvent.CHANGE, this.onItemChange, this), this._roleData = this.roleList
			.getRoleData(), this.title_desimg.source = "shenlu_shenlu_f0" + (this._seletedIndex + 1) + "_png", this.refresh()
	}, e.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++) i = t[a], i && i.itemId == this._itemId && this.refreshItem()
	}, e.prototype.onLvUp = function(t) {
		var e = App.config.q_shenluContainer.getDataBean(t - 1);
		if (e && 1 == e.q_change) App.dispatcher.dispatchEvent(EventType.ShowSuccess, ResPathUtil.getMenuEffect("stove",
			App.config.q_shenluContainer.getDataBean(t).q_pos_info), 0, 0, 0);
		else {
			var i = App.thing.create(CPlayOnceEffect, "ShenluView", !0);
			i.url = ResPathUtil.getMenuEffect("main", "up_lv"), i.x = 330, i.y = 400, i.addParent(this.parent), i.play()
		}
		this.refresh()
	}, e.prototype.onUpClick = function(t) {
		if (void 0 === t && (t = null), this._itemNum <= App.data.bagItemDataCenter.getItemCount(this._itemId)) {
			var e = App.data.wearEquipCenter.shenluHashObject.get(this._roleData.roleIndex);
			WearEquipCommandSender.sendShenluUpgradeMessage(this._roleData.roleIndex, e[this._seletedIndex])
		} else this.onGetItemClick()
	}, e.prototype.onGetItemClick = function(t) {
		void 0 === t && (t = null), 0 != this._itemId && App.panel.openPanel(19, this._itemId)
	}, e.prototype.refresh = function() {
		var t = App.data.wearEquipCenter.shenluHashObject.get(this._roleData.roleIndex),
			e = App.config.q_shenluContainer.getDataBean(t[this._seletedIndex]),
			i = App.config.q_shenluContainer.getDataBean(1e4 * e.q_type + e.q_lv + 1);
		this._titleCimg.url = ResPathUtil.getResImage(e.q_name, "stove", ".png");
		var n = new BaseAttributeDataBean;
		if (n.convertAndAdd(e.q_attribute), this.txt_attr0.text = n.getStrByBaseAttributeBean(n), this.fightPower.setValue(
				FightPowerUtil.getFightPower([e.q_attribute])), this.createEffect(e.q_pos_info), this.txt_upjiedes.visible = !1,
			this.imgsmall.visible = !1, "" != e.q_num) {
			var a = StringUtil.JsonParse(e.q_num);
			this._itemId = a[0].id, this._itemNum = a[0].num
		}
		if (this.txt_currlv.text = e.q_lv + "级", i) {
			1 == e.q_change ? this.btn_up.label = "进 阶" : this.btn_up.label = "升 级", this.refreshItem(), this.txt_nextlv.text =
				i.q_lv + "级";
			var o = new BaseAttributeDataBean;
			o.convertAndAdd(i.q_attribute), this.txt_attr1.text = o.getStrByBaseAttributeBean(o)
		} else this.txt_attr1.text = "已满级", this.txt_needitem.text = "", this.imgsmall.visible = !1, this.txt_nextlv.text =
			"已满级"
	}, e.prototype.refreshItem = function() {
		var t = App.data.bagItemDataCenter.getItemCount(this._itemId),
			e = "";
		e = t >= this._itemNum ? "<font color='#35ea35'>" + t + "</font>/" + this._itemNum : "<font color='#F33333'>" + t +
			"</font>/" + this._itemNum, this.txt_needitem.textFlow = HtmlUtil.getHtmlStr("消耗:" + GameUtil.getItemConfigData(
				this._itemId).q_name + " " + e)
	}, e.prototype.onChangeRole = function(t) {
		this._roleData = t, this.refresh()
	}, e.prototype.createEffect = function(t) {
		this._eft || (this._eft = new CEffect, this._eft.setTo(330, 400), this._eft.addParent(this), this._eft.play(),
			TweenMax.to(this._eft, .7, {
				y: this._eft.y - 15,
				repeat: -1,
				yoyo: !0,
				ease: Linear.easeOut
			})), this._eft.url = ResPathUtil.getMenuEffect("stove", t)
	}, e
}(ViewBase);
__reflect(ShenluView.prototype, "ShenluView");
var AbyssMallRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "AbyssMallItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBuy,
			this, this.buy_btn)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (null != t) {
			var e = App.config.q_shopContainer.getDataBean(t.sellId);
			if (null != e) {
				this._bean = e, this.price_txt.text = e.q_price + "", e.q_buy_time > 0 ? this.buynum_txt.text = "每日限购:" + (e.q_buy_time -
					t.remainNum) + "/" + e.q_buy_time : this.buynum_txt.text = "";
				var i = App.config.q_itemContainer.getDataBean(e.q_itemModelId);
				if (null != i) {
					this.name_txt.text = i.q_name.split("_")[0], this.name_txt.textColor = GameUtil.getItemNameColor(e.q_itemModelId);
					var n = new ItemData;
					n.itemId = i.q_id, n.count = 1, null == this._grid && (this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
						this._grid.move(24, 16, this)), this._grid.isShowDesc = !1, this._grid.setData(n)
				}
			}
		}
	}, e.prototype.onBuy = function(t) {
		App.global.itemBuy.useItemToBuy(this._bean, 1)
	}, e.prototype.clear = function() {
		t.prototype.clear.call(this), this._grid && (this._grid.dispose(), this._grid = null)
	}, e
}(ItemRenderer);
__reflect(AbyssMallRender.prototype, "AbyssMallRender");
var ZoneFinishView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._exitTime = 5, e.checkPointSettlement = function(t) {
				e.showCommon(t), e.groupPersonal.visible = !0, e.time_txt.x = e.btn.x, e.btn.label = "确定", e.vip_txt.visible = !1,
					App.timer.serverTimeEndCount(e, e.onTimer2, 10)
			}, e.euiSkinName = "ZoneFinishSkin", e._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 4, 33, 38),
			e._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]),
			e._gridLayer.useScroller(440, 270), e._gridLayer.moveTo(110, 426, e.groupSuccess), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOK, this,
				this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNext, this, this.btn_next), this._id =
			e.zoneid, this._items = e.items, App.data.moonCardCenter.iszhizuntequan() && this._items && App.data.getWangZheZBCenter()
			.areanzoneId == this._id) {
			for (var i = [], n = void 0, a = this._items.length, o = 0; a > o; o++) n = new ItemData, n.itemId = this._items[o]
				.itemId, n.count = this._items[o].count, i.push(n);
			this._items = this._items.concat(i)
		}
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("jiesuan_1", "zone"), 0, 0), this.addChildAt(this._bg,
			0), this.updateSuccess(e.items), this.visible = !0
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer2, this), App.timer.clearTimer(this.onTimer, this),
			App.timer.clearTimer(this.onOK, this), this._bg && this._bg.clear(), this.visible = !1
	}, e.prototype.updateSuccess = function(t) {
		this._bean = GameUtil.getZoneBean(this._id), null != this._bean && (this._type = this._bean.q_zone_client_type,
			this.groupPagoda.visible = !1, this.groupPersonal.visible = !1, this._type == EnumZoneType.PAGODA ? this.showPagoda(
				this._bean) : this._type == EnumZoneType.PERSONAL_BOSS ? (this._dispatcher.addEventListener(VipEvent.VIP_LEVEL_UP,
				this.onVip, this), this.showPersonalBoss(this._bean)) : this._type == EnumZoneType.WILD_BOSS || this._type ==
			EnumZoneType.BOSS_HOME || this._type == EnumZoneType.GOD_BOSS || this._type == EnumZoneType.KUANGFENG_BOSS ||
			this._type == EnumZoneType.HONGMO_BOSS || this._type == EnumZoneType.QIDAO_BOSS || this._type == EnumZoneType.SECRET ||
			this._type == EnumZoneType.SPECIAL_STORY_ZONE ? this.showOtherBoss(this._bean) : this._type == EnumZoneType.GUAN_KA_ZONE ||
			this._type == EnumZoneType.MOUNT || this._type == EnumZoneType.WING || this._type == EnumZoneType.TIANBING ||
			this._type == EnumZoneType.FAZHEN || this._type == EnumZoneType.ZHU_ZAO || this._type == EnumZoneType.JING_MAI ||
			this._type == EnumZoneType.LONG_HUN ? this.checkPointSettlement(this._bean) : this.showCommon(this._bean), (this._type ==
				EnumZoneType.MINE_ZONE || this._type == EnumZoneType.WANGZHE) && (this.btn.label = "确定"))
	}, e.prototype.onVip = function(t) {
		t > 0 && this.showPersonalBoss(this._bean)
	}, e.prototype.showPagoda = function(t) {
		this.btn.x = 136, this.btn_next.x = 341, this.btn_next.visible = !0, this.groupPagoda.visible = !0;
		for (var e, i = ItemUtil.getRewardDataList(t.q_reward).sort(this.sortFunc), n = i.length, a = [], o = 0; n > o; o++)
			if (e = i[o], e.itemId == EnumMoney.EXP) this.exp_txt.text = e.count + "";
			else if (e.itemId == EnumItemId.FUSHI) this.num_txt.text = e.count + "";
		else if (e.itemId == EnumMoney.JIN_BI) a.push(e);
		else
			for (var r = 0; r < e.count; r++) {
				var s = new ItemData;
				s.itemId = e.itemId, s.count = 1, a.push(s)
			}
		this._gridLayer.dataProvider = a, this._gridLayer.moveTo(110, 426), App.timer.serverTimeEndCount(this, this.onTimer,
			10)
	}, e.prototype.showOtherBoss = function(t) {
		this.showCommon(t), this.groupPersonal.visible = !0, this.time_txt.x = this.btn.x, this.vip_txt.text = "", App.timer
			.serverTimeEndCount(this, this.onTimer2, 10)
	}, e.prototype.showPersonalBoss = function(t) {
		this.showCommon(t), this.groupPersonal.visible = !0, App.data.getVipCenter().getCurrentVip() > 0 ? (this.time_txt.x =
				this.btn.x, this.vip_txt.text = "", this.btn.label = "双倍领取") : (this.btn.label = "狠心拒绝", this.btn_next.label =
				"双倍领取", this.vip_txt.text = "VIP可领", this.btn.x = 136, this.btn_next.x = 341, this.btn_next.visible = !0), App.timer
			.serverTimeEndCount(this, this.onTimer2, 10)
	}, e.prototype.onTimer2 = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = "(" + t.spuleTime + "秒后自动领取)" : (App.timer.clearTimer(this.onTimer2, this),
			this.onOK())
	}, e.prototype.showCommon = function(t) {
		this.groupPagoda.visible = !1, this.btn.x = this.width - this.btn.width >> 1, this.btn_next.visible = !1;
		var e = this._items.sort(this.sortFunc);
		this._gridLayer.dataProvider = e, this._gridLayer.moveTo(110, 350)
	}, e.prototype.onOK = function(t) {
		this._type == EnumZoneType.PERSONAL_BOSS && (App.data.getVipCenter().getCurrentVip() > 0 ? ZoneCommandSender.sendC2S_ZoneGetAwardMessage(
				this._id, 0, 2) : ZoneCommandSender.sendC2S_ZoneGetAwardMessage(this._id), ZoneCommandSender.sendC2S_ZoneFinishMessage()),
			"领取并退出" == this.btn.label && ZoneCommandSender.sendC2S_ZoneFinishMessage(), App.panel.removePanel(34)
	}, e.prototype.onNext = function(t) {
		if (this._type == EnumZoneType.PERSONAL_BOSS) Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">成为VIP可免费领取！</font>");
		else {
			var e = GameUtil.getZoneBean(this._id).q_next_zone_id;
			ZoneCommandSender.sendC2S_ZoneIntoMessage(e, EnumZoneType.PAGODA) && (App.panel.removePanel(34), App.panel.removePanel(
				14))
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.autofight_txt.text = "(" + t.spuleTime + "秒后继续挑战)" : (App.timer.clearTimer(this.onTimer,
			this), this.onNext())
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.sortFunc = function(t, e) {
		return t.getDataBean().q_default > e.getDataBean().q_default ? -1 : 1
	}, e.prototype.dispose = function() {
		this._items = null, this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), this._bg && (this._bg.dispose(),
			this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ZoneFinishView.prototype, "ZoneFinishView");
var DataConfigUtils = function() {
	function t() {}
	return t.prototype.loadJsonFile = function(t, e, i) {}, t.prototype.notHaveBean = function(t, e) {}, t.prototype.beanConfigPropertyError =
		function(t, e) {}, t.prototype.build2 = function(t, e, i, n, a, o, r) {
			for (var s, h = e.length, l = 0; h > l; ++l) s = this.build(t, e[l], i, new n), a[s[o]] = s, r.push(s)
		}, t.prototype.build = function(t, e, i, n) {
			var a, o;
			if (i)
				for (a in e) o = i[a], n.hasOwnProperty(o) ? n[o] = e[a] : this.beanConfigPropertyError(t, o);
			else
				for (a in e) n[a] = e[a];
			return n.init && n.init(e), n
		}, t.SUFIX_MIN = "_client_min.json", t
}();
__reflect(DataConfigUtils.prototype, "DataConfigUtils");
var Q_scene_monsterContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_scene_monsterBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_scene_monsterBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_scene_monsterContainer.prototype, "Q_scene_monsterContainer");
var Q_treasureContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_treasureBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_treasureBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_treasureContainer.prototype, "Q_treasureContainer");
var KaiFuActivityView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.skinName = "SeverActivityRankSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(592, 255, severActivityRankItem, 1), this._vscroller.move(24, 475, this), this._gridDict =
			new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.x = t % 2 * 120 + 392, e.y = 6, t > 1 && (e.y = 103), this.firstgroup.addChild(e), this._gridDict
				.put(t, e)
		}
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/ph", "",
			".jpg"))), null == this.bgimg1 && (this.bgimg1 = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/zhuangbeibang", "", ".jpg"), 0, 156)), this.goBtn.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(
			"前往>>")), this.getbtn.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("查看排行"))
	}, e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
				this), this._dispatcher.addEventListener(EventType.RANK_LIST_REFRESH, this.changePageData, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.getbtn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.goBtnClick, this, this.goBtn), this.showactivity(), RankListCommandSender.getRankListInfo(
				1, this.rankType, 1)
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			return this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay ?
				740 : this.day >= App.data.activityCenter.minBaowuDay && this.day <= App.data.activityCenter.maxBaowuDay ? 741 :
				this.day >= App.data.activityCenter.minShenshouDay && this.day <= App.data.activityCenter.maxShenshouDay ? 742 :
				this.day >= App.data.activityCenter.minDaojingDay && this.day <= App.data.activityCenter.maxDaojingDay ? 743 :
				this.day >= App.data.activityCenter.minLunhuiDay && this.day <= App.data.activityCenter.maxLunhuiDay ? 744 : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "rankType", {
		get: function() {
			return this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay ?
				EnumRankType.WARPET_TIANFU : this.day >= App.data.activityCenter.minBaowuDay && this.day <= App.data.activityCenter
				.maxBaowuDay ? EnumRankType.SHENLU_PAIHANG : this.day >= App.data.activityCenter.minShenshouDay && this.day <=
				App.data.activityCenter.maxShenshouDay ? EnumRankType.KUANGFENG_PAIHANG : this.day >= App.data.activityCenter.minDaojingDay &&
				this.day <= App.data.activityCenter.maxDaojingDay ? EnumRankType.DAOJING_PAIHANG : this.day >= App.data.activityCenter
				.minLunhuiDay && this.day <= App.data.activityCenter.maxLunhuiDay ? EnumRankType.LUNHUI_PAIHANG : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.goBtnClick = function(t) {
		App.panel.openPanel(this.qianwan.panelid, {
			selectedIndex: this.qianwan.selectIndex
		})
	}, e.prototype.onBtnClick = function(t) {
		void 0 == this._rankInfo ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">暂无玩家上榜</font>") :
			(ActivityRankPanel.isNational = !1, App.panel.openPanel(103, this._rankInfo.rankInfoVec))
	}, e.prototype.changePageData = function(t) {
		this._rankInfo = t
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		"" == t.bean.q_icon ? this.goBtn.visible = !1 : (this.goBtn.visible = !0, this.qianwan = StringUtil.JsonParse(t.bean
			.q_icon));
		for (var i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i]);
		if (this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), this.clearLabelEff(), t.extendMap) {
			var n = StringUtil.JsonParse(t.extendMap);
			if (App.timer.serverTimeEnd(this, this.timeOnClick, n.endtime), "" == n.rankname) this.firstname.text = "上榜需求:",
				this.firstscore.text = t.bean.q_desc;
			else if (this.firstname.text = "" + ("" == n.rankname ? "无" : n.rankname), 743 == this.activityType)
				if (0 == n.rankdata);
				else {
					var a = App.config.q_samsaraContainer.getDataBean(n.rankdata);
					this.firstscore.text = a.q_class_name
				}
			else this.firstscore.text = "" + this.needStr + ("" == n.rankdata ? "无" : n.rankdata);
			var o = this.getroletext(n.myrankdata);
			if (743 == this.activityType)
				if (0 == n.myrankdata) o = HtmlUtil.getHtmlStr(HtmlUtil.formatColor("我的道境:无", 12491897));
				else {
					var a = App.config.q_samsaraContainer.getDataBean(n.myrankdata);
					o = HtmlUtil.getHtmlStr("我的" + this.needStr + a.q_class_name)
				}
			else o = this.getroletext(n.myrankdata);
			this.myranklevel.textFlow = o;
			var r = 83;
			this.day < 8 && (r = 117), this._saEff = EffectUtils.showCEffect(this, this.firstgroup, ResPathUtil.getTitleEffect(
					"" + t.bean.q_icon2), 188, r), n.myrank <= 20 && n.myrank > 0 ? this.myrank.text = "我的排名：" + n.myrank : this.myrank
				.text = "我的排名：未上榜"
		} else this.myrank.text = "该栏活动没有数据"
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType, !1, !1);
		t && this.showfirstView(t.shift()), this._vscroller.dataProvider = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearLabelEff(), this._vscroller.removeAll(), App.timer.clearTimer(this.timeOnClick,
			this)
	}, e.prototype.clearLabelEff = function() {
		this._saEff && (this._saEff.stop(), this._saEff.dispose(), this._saEff = null)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.bgimg1 && (this.bgimg1.dispose(), this.bgimg1 =
				null), this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.getroletext = function(t) {
		void 0 === t && (t = 0);
		var e = "";
		this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay && (e =
				HtmlUtil.formatColor("我的魔宠天赋:", 12491897)), this.day >= App.data.activityCenter.minBaowuDay && this.day <= App.data
			.activityCenter.maxBaowuDay && (e = HtmlUtil.formatColor("我的宝物等级:", 12491897)), this.day >= App.data.activityCenter
			.minShenshouDay && this.day <= App.data.activityCenter.maxShenshouDay && (e = HtmlUtil.formatColor("我的狂风战力:",
				12491897)), this.day >= App.data.activityCenter.minDaojingDay && this.day <= App.data.activityCenter.maxDaojingDay &&
			(e = HtmlUtil.formatColor("我的道境:", 12491897)), this.day >= App.data.activityCenter.minLunhuiDay && this.day <= App
			.data.activityCenter.maxLunhuiDay && (e = HtmlUtil.formatColor("我的轮回战力:", 12491897));
		var i = StringUtil.substitute("{0}{1}", e, HtmlUtil.formatColor(t.toString(), 13404418));
		return HtmlUtil.getHtmlStr(i)
	}, e.prototype.getroletext1 = function(t) {
		return 0 == t ? "魔宠天赋:" : 1 == t ? "神炉等级:" : 2 == t ? "狂风战力:" : 3 == t ? "道境:" : 4 == t ? "轮回装备:" : 6 == t ?
			"魔宠战力:" : 7 == t ? "符石战力:" : 8 == t ? "消费元宝:" : void 0
	}, Object.defineProperty(e.prototype, "needStr", {
		get: function() {
			return this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay ?
				"魔宠天赋:" : this.day >= App.data.activityCenter.minBaowuDay && this.day <= App.data.activityCenter.maxBaowuDay ?
				"神炉等级:" : this.day >= App.data.activityCenter.minShenshouDay && this.day <= App.data.activityCenter.maxShenshouDay ?
				"狂风战力:" : this.day >= App.data.activityCenter.minDaojingDay && this.day <= App.data.activityCenter.maxDaojingDay ?
				"道境:" : this.day >= App.data.activityCenter.minLunhuiDay && this.day <= App.data.activityCenter.maxLunhuiDay ?
				"轮回装备:" : ""
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(KaiFuActivityView.prototype, "KaiFuActivityView");
var KaiFuJingJiActivityView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.count = 0, e.skinName = "SeverActivityjingjiSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 520, SeverAvtivityjingjiItem, 5), this._vscroller.move(20, 245, this), null ==
			this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/jj", "", ".jpg")))
	}, e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
			this);
		var e = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = e, e && this.showfirstView(e[0]), this.scrollBottom1(e.length - this.getActivityFlag(
			e) >= 4 ? this.getActivityFlag(e) : e.length - 4)
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			return this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay ?
				751 : this.day >= App.data.activityCenter.minBaowuDay && this.day <= App.data.activityCenter.maxBaowuDay ? 752 :
				this.day >= App.data.activityCenter.minShenshouDay && this.day <= App.data.activityCenter.maxShenshouDay ? 753 :
				this.day >= App.data.activityCenter.minDaojingDay && this.day <= App.data.activityCenter.maxDaojingDay ? 754 :
				this.day >= App.data.activityCenter.minLunhuiDay && this.day <= App.data.activityCenter.maxLunhuiDay ? 755 : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom1 = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)) : this._vscroller.viewport && (this._vscroller
				.viewport.scrollV = 0)
	}, e.prototype.scrollBottom = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? (this._vscroller.viewport && (this.count = this._vscroller.viewport.scrollV),
				App.timer.doFrameLoop(this, 1, this.referview, [t])) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
				0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 2, this.count >= 132 * t ? (this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			this._vscroller.viewport.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)), App.timer.clearTimer(
			this.referview, this)) : this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - (this._vscroller.viewport.contentHeight - this.count))
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:00:00:00")
	}, e.prototype.showfirstView = function(t) {
		if (this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), t.extendMap) {
			var e = StringUtil.JsonParse(t.extendMap);
			if (App.timer.serverTimeEnd(this, this.timeOnClick, e.endtime), 754 == this.activityType)
				if (0 == e.rank) this.myrank.text = "我的" + this.getroletext(this.activityType) + "无";
				else {
					var i = App.config.q_samsaraContainer.getDataBean(e.rank);
					this.myrank.text = "我的" + this.getroletext(this.activityType) + i.q_class_name
				}
			else this.myrank.text = "我的" + this.getroletext(this.activityType) + e.rank
		}
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType);
		this._vscroller.dataProvider = t;
		this.getActivityFlag(t);
		this.scrollBottom(t.length - this.getActivityFlag(t) >= 4 ? this.getActivityFlag(t) : t.length - 4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.referview, this), this._vscroller.removeAll(), App.timer.clearTimer(
			this.timeOnClick, this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (this._vscroller =
			null)
	}, e.prototype.getroletext = function(t) {
		return 751 == t ? "魔宠天赋:" : 752 == t ? "神炉等级:" : 753 == t ? "狂风战力:" : 754 == t ? "道境:" : 755 == t ? "轮回战力:" : void 0
	}, e
}(ViewBase);
__reflect(KaiFuJingJiActivityView.prototype, "KaiFuJingJiActivityView");
var KaiFuXianGouActivityView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.count = 0, e.skinName = "SeverActivityxiangouSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 520, SeverAvtivityxiangouItem, 5), this._vscroller.move(20, 245, this),
			null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/xglh", "",
				".jpg")))
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			return this.day >= App.data.activityCenter.minTianfuDay && this.day <= App.data.activityCenter.maxTianfuDay ?
				746 : 11 == this.day ? 747 : 12 == this.day ? 758 : 13 == this.day ? 759 : this.day >= App.data.activityCenter.minShenshouDay &&
				this.day <= App.data.activityCenter.maxShenshouDay ? 748 : this.day >= App.data.activityCenter.minDaojingDay &&
				this.day <= App.data.activityCenter.maxDaojingDay ? 749 : this.day >= App.data.activityCenter.minLunhuiDay &&
				this.day <= App.data.activityCenter.maxLunhuiDay ? 750 : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
			this);
		var e = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = e, this.showfirstView(e[0]), App.timer.serverTimeEnd(this, this.timeOnClick,
			ServerTime.getServerTime() + ServerTime.remianZeroTime), this.scrollBottom1(e.length - this.getActivityFlag(e) >=
			4 ? this.getActivityFlag(e) : e.length - 4)
	}, e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom1 = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)) : this._vscroller.viewport && (this._vscroller
				.viewport.scrollV = 0)
	}, e.prototype.scrollBottom = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? (this._vscroller.viewport && (this.count = this._vscroller.viewport.scrollV),
				App.timer.doFrameLoop(this, 1, this.referview, [t])) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
				0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 2, this.count >= 132 * t ? (this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			this._vscroller.viewport.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)), App.timer.clearTimer(
			this.referview, this)) : this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - (this._vscroller.viewport.contentHeight - this.count))
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_3(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc)
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = t, this.scrollBottom(t.length - this.getActivityFlag(t) >= 4 ? this.getActivityFlag(
			t) : t.length - 4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), App.timer.clearTimer(this.timeOnClick, this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (this._vscroller
			.parent && this._vscroller.parent.removeChild(this._vscroller), this._vscroller.dispose(), this._vscroller = null
		)
	}, e
}(ViewBase);
__reflect(KaiFuXianGouActivityView.prototype, "KaiFuXianGouActivityView");
var BaseLogicHandler = function() {
	function t(t, e) {
		var i = this;
		this.playerMusic = function() {
			i.curAction && i.curAction.otherObject && App.sound.playSound(i.curAction.otherObject)
		}, this.curAction = t, this.logic = e, this.playerMusic()
	}
	return t.prototype.gotoNext = function() {
		this.logic.gotoNextGuide()
	}, t.prototype.finish = function() {
		var t = App.global.mapModule.mapMouseModel.controlRoleData;
		App.dispatcher.dispatchOnce(EnumEvent.EVENT_STORY_FINISH), App.dispatcher.dispatchOnce(EventType.PLAYER_SCREEN, [!0]),
			t.actionList.isRuning = !0;
		var e = App.global.mapModule,
			i = SearchToPointVO.getVO();
		i.roleData = t;
		var n = e.mapLoader.mapData.getNode(26, 45);
		i.px = n.x, i.py = n.y;
		var a = App.global.mapModule.mapMoveModel.searchRoadByAstar(i);
		App.global.characterData.actionList.resetActionList(a)
	}, Object.defineProperty(t.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.startTime = function() {
		this.curAction.duration && App.timer.doTimeOnce(this, this.curAction.duration, this.gotoNext)
	}, t.prototype.clearStartTime = function() {
		App.timer.clearTimer(this.gotoNext, this)
	}, t.prototype.changeDirection = function() {
		this.curAction.direction && (this.roleData.faceDir = this.curAction.direction)
	}, t.prototype.resetGroupIndex = function() {
		this.curAction.resetGroupIndex()
	}, t.prototype.start = function() {}, t.prototype.stop = function() {}, t
}();
__reflect(BaseLogicHandler.prototype, "BaseLogicHandler");
var SeverActivityjingjiAllView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.count = 0, e.skinName = "SeverActivityjingjiSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 520, SeverAvtivityjingjiItem, 5), this._vscroller.move(20, 245, this), null ==
			this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/jj", "", ".jpg")))
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			switch (this.day) {
				case 1:
					return 704;
				case 2:
					return 1001;
				case 3:
					return 1002;
				case 4:
					return 1003;
				case 5:
					return 702;
				case 6:
					return 706;
				case 7:
					return 707;
				case 8:
					return 703;
				case 9:
					return 705;
				case 10:
					return 701
			}
			return 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
			this);
		var e = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = e, e && this.showfirstView(e[0]), this.scrollBottom1(e.length - this.getActivityFlag(
			e) >= 4 ? this.getActivityFlag(e) : e.length - 4), App.timer.serverTimeEnd(this, this.timeOnClick, ServerTime.getServerTime() +
			ServerTime.remianZeroTime)
	}, e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom1 = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)) : this._vscroller.viewport && (this._vscroller
				.viewport.scrollV = 0)
	}, e.prototype.scrollBottom = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? (this._vscroller.viewport && (this.count = this._vscroller.viewport.scrollV),
				App.timer.doFrameLoop(this, 1, this.referview, [t])) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
				0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 2, this.count >= 132 * t ? (this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			this._vscroller.viewport.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)), App.timer.clearTimer(
			this.referview, this)) : this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - (this._vscroller.viewport.contentHeight - this.count))
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_3(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		if (this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), t.extendMap) {
			var e = StringUtil.JsonParse(t.extendMap);
			this.myrank.text = "我的" + this.getroletext(this.activityType) + e.rank
		}
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType);
		this._vscroller.dataProvider = t;
		this.getActivityFlag(t);
		this.scrollBottom(t.length - this.getActivityFlag(t) >= 4 ? this.getActivityFlag(t) : t.length - 4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.referview, this), this._vscroller.removeAll(), App.timer.clearTimer(
			this.timeOnClick, this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (this._vscroller =
			null)
	}, e.prototype.getroletext = function(t) {
		return 701 == t ? "角色等级:" : 702 == t ? "兵魂等级:" : 703 == t ? "转生等级:" : 704 == t ? "光翼等级:" : 705 == t ? "装备评分:" : 706 ==
			t ? "魔宠战力:" : 707 == t ? "战斗力:" : 1001 == t ? "坐骑等级:" : 1002 == t ? "天兵等级:" : 1003 == t ? "法阵等级:" : void 0
	}, e
}(ViewBase);
__reflect(SeverActivityjingjiAllView.prototype, "SeverActivityjingjiAllView");
var TipStyleBase = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._dispatcher = new DispatcherRegister, e.touchEnabled = !0, e.createChildren(), e.resize(), e
	}
	return __extends(e, t), e.prototype.drawModalBg = function() {
			this._modalBg = new h5_engine.GShape, this._modalBg.touchEnabled = !0
		}, e.prototype.createChildren = function() {}, e.prototype.show = function(t) {}, e.prototype.hide = function() {},
		e.prototype.resize = function() {
			(this.modalBg.width != Config.SCREEN_WIDTH || this.modalBg.height != Config.SCREEN_HEIGHT) && (this.modalBg.graphics
				.clear(), this.modalBg.graphics.beginFill(0, .7), this.modalBg.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config
					.SCREEN_HEIGHT), this.modalBg.graphics.endFill())
		}, Object.defineProperty(e.prototype, "modalBg", {
			get: function() {
				return this._modalBg || this.drawModalBg(), this._modalBg
			},
			enumerable: !0,
			configurable: !0
		}), e
}(h5_engine.GDisplayObjectContainer);
__reflect(TipStyleBase.prototype, "TipStyleBase");
var BaseConnectionRegister = function() {
	function t() {
		this.initialize()
	}
	return t.prototype.register = function(t, e) {
		Config.socket.registerCommand(t, new FunctionVO(e, this))
	}, t
}();
__reflect(BaseConnectionRegister.prototype, "BaseConnectionRegister");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var i = e.call(this) || this;
			return i._bitmap = new t.GBitmap, i.addChild(i._bitmap), i
		}
		return __extends(i, e), i.prototype.setSingleImage = function(t) {
			var e = this._bitmap;
			t ? (e.texture = t.texture, 1 == t.ratio ? (e.anchorOffsetY = t.height, e.rotation = 90) : (e.rotation = 0, e.anchorOffsetX =
				0, e.anchorOffsetY = 0)) : (e.texture = null, e.$bitmapData = null)
		}, i.prototype.dispose = function() {
			e.prototype.dispose.call(this), this._bitmap && this._bitmap.dispose(), this._bitmap = null
		}, i
	}(t.GDisplayObjectContainer);
	t.FrameSprite = e, __reflect(e.prototype, "h5_engine.FrameSprite")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isLoading = !1, e._loaded = 0, e._lastLoaded = 0, e._httpStatus = "", e.RETRY_COUNT = 1, e
		}
		return __extends(e, t), e.prototype.tryToCloseLoad = function() {}, e.prototype.doLoad = function(t) {
			void 0 === t && (t = !1), this._startLoadTime = new Date
		}, e.prototype.onStatus = function(t) {
			this._httpStatus = HttpStatusInfo.getMessage(t.status)
		}, e.prototype.onError = function() {
			var t = this;
			t._endLoadTime = new Date, t._isLoading = !1, null != t._error && t._error.exec(t, t._resInfo)
		}, e.prototype.onProgress = function(t) {
			var e = this;
			if (null != e._progress) {
				var i = t.bytesLoaded / t.bytesTotal;
				e._progress.exec(e._resInfo, i)
			}
			e._loaded = t.bytesLoaded
		}, Object.defineProperty(e.prototype, "url", {
			get: function() {
				return this._resInfo.url
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.load = function(t, i, n, a) {
			t.isLoading = !0;
			var o = this;
			o._isLoading && o.tryToCloseLoad(), o._resInfo = t, o._complete = i, o._progress = n, o._error = a;
			var r = e.getLoadedResourece(t.url);
			return null != r ? o.endLoad(r) : (o._loaded = o._lastLoaded = 0, void o.doLoad())
		}, e.prototype.endLoad = function(t) {
			var e = this;
			if (e._endLoadTime = new Date, e._isLoading = !1, e._progress = null, e._error = null, null != e._complete) {
				var i = e._complete;
				e._complete = null, i.exec(e, e._resInfo, t)
			}
		}, e.prototype.catchContent = function(t) {
			this._resInfo.isCache && t && (e._loadedMap[this._resInfo.url] = t)
		}, e.clearLoadedResourece = function(t) {
			return delete e._loadedMap[t]
		}, e.getLoadedResourece = function(t) {
			return e._loadedMap[t]
		}, e.getMassLoader = function() {
			var t = e.LoaderClass ? e.LoaderClass : Egret_ResLoader;
			return new t
		}, e._loadedMap = {}, e
	}(Dispose);
	t.ResLoader = e, __reflect(e.prototype, "h5_engine.ResLoader")
}(h5_engine || (h5_engine = {}));
var BaseConnection = function() {
	function t(t) {
		this.host = "", this.port = 0, this.needBytesAvailableLength = 8, this.isCanReadCmd = !1, this.option1 = 0, this.option2 =
			0, this.isCompress = !1, this.isPackage = !1, this.isMulti = !1, this.totalMessageLength = 0, this.messgaeId = 0,
			this.socketBytes = new egret.ByteArray, this._isSendLastTime = 0, this._lockMessageSavePool = [], this._frameResloveCmdList = [],
			this._lockMessageReadReslove = !1, this._totalCmdNum = 0, this._reConnectCount = 0, this._callOnConnectSetp = 0,
			this._connect_timer_inval = 0, this._bytesPool = [], this._classToCallbackHash = new HashObject, this.netTransform =
			Config.isWxGame || Config.isBaiduGame ? new NetStructTarnsformWX : new NetStrcutTransform, this._messagePool = t
	}
	return t.prototype.createCmd = function(t) {
		return this.netTransform.createCmd(this._messagePool.getMessageNameByID(t))
	}, t.prototype.getTotalCmdNum = function() {
		return this._totalCmdNum
	}, t.prototype.getIsReconnecting = function() {
		return void 0 != this._reConnectSuccessFunc && null != this._reConnectSuccessFunc
	}, t.prototype.getLockMessageSavePoolLength = function() {
		return this._lockMessageSavePool ? this._lockMessageSavePool.length : 0
	}, t.prototype.getFrameResloveCmdListLength = function() {
		return this._frameResloveCmdList ? this._frameResloveCmdList.length : 0
	}, Object.defineProperty(t.prototype, "lockMessageReslove", {
		get: function() {
			return this._lockMessageReadReslove
		},
		set: function(t) {
			this._lockMessageReadReslove != t && (this._lockMessageReadReslove && !t && this.readAllLocalMessage(), this._lockMessageReadReslove =
				t)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getReConnectCount = function() {
		return this._reConnectCount
	}, t.prototype.readAllLocalMessage = function() {
		for (var t = this._lockMessageSavePool.length, e = 0; t > e; e++) {
			var i = this._lockMessageSavePool[e],
				n = i[0],
				a = i[1];
			this.resloveCmd(n, a)
		}
	}, Object.defineProperty(t.prototype, "connected", {
		get: function() {
			var t = this._socket ? this._socket.connected : !1;
			return t
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.registerCommand = function(t, e) {
		var i = t.toString(),
			n = this._classToCallbackHash.get(i);
		n ? -1 == n.indexOf(e) && n.push(e) : (n = new Array, n.push(e), this._classToCallbackHash.put(i, n))
	}, t.prototype.removeCommand = function(t, e) {
		var i = this._classToCallbackHash.get(t.toString());
		if (i) {
			var n = i.indexOf(e); - 1 != n && i.splice(n, 1)
		}
	}, t.prototype.connect = function(t, e, i) {
		var n = this;
		n.host = t, n.port = e, GameLog.logWarn("连接服务器：host:" + n.host + "port:" + n.port), n._socket && n.clearSocket(), n
			._socket || (n._socket = new egret.WebSocket, n._socket.type = egret.WebSocket.TYPE_BINARY, n._socket.addEventListener(
					egret.ProgressEvent.SOCKET_DATA, n.onRecv, n), n._socket.addEventListener(egret.Event.CONNECT, n.onConnect, n),
				n._socket.addEventListener(egret.Event.CLOSE, n.onClose, n), n._socket.addEventListener(egret.IOErrorEvent.IO_ERROR,
					n.onIOError, n)), n.callbackFuncOnConnect = i, n.socket_connect(n.host, n.port)
	}, t.prototype.onConnect = function(t) {
		var e = this;
		GameLog.logWarn("连接服务器成功：host:" + e.host + "port:" + e.port), Notice.showBottomMessage("连接服务器成功"), 0 == e._callOnConnectSetp &&
			(e._callOnConnectSetp++, e._reConnectCount = 0, e._connect_timer_inval = egret.setTimeout(e.connectLater, e, 10))
	}, t.prototype.connectLater = function() {
		var t = this;
		1 == t._callOnConnectSetp && (t._callOnConnectSetp++, egret.clearTimeout(t._connect_timer_inval), t._connect_timer_inval =
			0, t.connectSuccessLater())
	}, t.prototype.connectSuccessLater = function() {
		GameLog.logWarn("连接服务器成功延迟调用成功");
		var t = this;
		2 == t._callOnConnectSetp && (t._callOnConnectSetp++, egret.clearTimeout(t._connect_timer_inval), t._connect_timer_inval =
			0, t.sendInitBytes(), t._reConnectSuccessFunc ? (t._reConnectSuccessFunc.exec(), t._reConnectSuccessFunc = void 0) :
			t.callbackFuncOnConnect && (t.callbackFuncOnConnect.exec(), t.callbackFuncOnConnect = void 0), t._timer || (t._timer =
				new egret.Timer(1e3), t._timer.addEventListener(egret.TimerEvent.TIMER, t.onTimerHandler, t), t._timer.start()),
			t.startSocketFrameLoop())
	}, t.prototype.startSocketFrameLoop = function() {
		var t = new h5_engine.GSprite;
		t.addEventListener(egret.Event.ENTER_FRAME, this.onSocketEnterFrame, this)
	}, t.prototype.onSocketEnterFrame = function() {
		var t = this,
			e = t._frameResloveCmdList.length;
		e >= 30 && t.cmdFrameMaxFunc && (t.cmdFrameMaxFunc.param = [t._frameResloveCmdList], t.cmdFrameMaxFunc.exec());
		var i = 20,
			n = Math.ceil(1e3 / h5_engine.EngineConfig.currentGameFps * .8);
		i = Math.max(i, n);
		for (var a = egret.getTimer(), o = 0; e > o; o++) {
			var r = t._frameResloveCmdList.shift(),
				s = r[0],
				h = r[1];
			r[2], egret.getTimer();
			t.resloveCmd(s, h);
			var l = egret.getTimer();
			if (l - a >= i) break
		}
	}, t.prototype.logCmdTime = function(t, e, i, n) {
		if (0 == this._lockMessageReadReslove);
	}, t.prototype.pushCmdToList = function(t, e) {
		this._frameResloveCmdList.push([t, e, egret.getTimer()])
	}, t.prototype.onClose = function(t) {
		var e = "服务器连接失败，请尝试重新连接";
		this._reConnectSuccessFunc = null, this.socketCloseHandler(e), this.clear()
	}, t.prototype.onIOError = function(t) {
		this._socket.connected || this.clear();
		var e = "服务器连接失败，请尝试重新连接";
		this._reConnectSuccessFunc = null, this.socketCloseHandler(e)
	}, t.prototype.doReConnect = function(t) {
		0 != this._connect_timer_inval && (egret.clearTimeout(this._connect_timer_inval), this._connect_timer_inval = 0),
			this._reConnectCount++, this._reConnectSuccessFunc = t, this.socket_connect(this.host, this.port)
	}, t.prototype.onRecv = function(e) {
		var i = this;
		for (i.socketBytes.clear(), i._socket.readBytes(i.socketBytes), i.socketBytes.position = 0; i._socket.connected &&
			i.socketBytes.bytesAvailable >= i.needBytesAvailableLength;)
			if (0 == i.isCanReadCmd) i.totalMessageLength = i.socketBytes.readUnsignedInt(), i.messgaeId = i.socketBytes.readShort(),
				i.option1 = i.socketBytes.readByte(), i.option2 = i.socketBytes.readByte(), i.isCompress = Boolean(1 & i.option1),
				i.isPackage = Boolean(2 & i.option1), i.needBytesAvailableLength = i.totalMessageLength - t.MIN_LEN, i.isCanReadCmd = !
				0;
			else {
				var n = i.socketBytes.bytesAvailable,
					a = 0,
					o = 0;
				if (i.isCompress || i.isPackage || i.isMulti) {
					a = 8;
					var r = i.socketBytes.readUnsignedInt();
					o = i.socketBytes.readShort();
					i.socketBytes.readShort()
				}
				n -= a;
				var s = i.totalMessageLength - t.MIN_LEN - a,
					h = i.createBytes();
				if (s > 0) {
					if (i.socketBytes.readBytes(h, 0, s), i.isCompress) {
						var l = (h.length, h.buffer),
							p = new Uint8Array(l),
							c = new Zlib.Inflate(p),
							_ = c.decompress();
						_.byteLength != r && GameLog.logError("解压后长度不一致"), h = i.createBytes(), h.buffer = _.buffer
					}
					if (o > 0)
						for (var d = 0; o > d; d++) {
							var u = h.readUnsignedInt(),
								g = h.readShort(),
								f = (h.readByte(), h.readByte(), i.createBytes()),
								m = u - t.MIN_LEN;
							m > 0 && h.readBytes(f, 0, m), i.dispathCmd(g, f, !0)
						} else i.dispathCmd(i.messgaeId, h, !0)
				} else i.dispathCmd(i.messgaeId, h, !0);
				var v = i.socketBytes.bytesAvailable,
					y = n - v - s;
				if (0 != y) {
					var E = "指令解析错误, 指令ID=" + i.messgaeId + "， 字节数差异=" + y;
					GameLog.logError(E)
				}
				i.resetTempSign()
			}
	}, t.prototype.resetTempSign = function() {
		var e = this;
		e.totalMessageLength = 0, e.isCanReadCmd = !1, e.messgaeId = 0, e.needBytesAvailableLength = t.MIN_LEN, e.option1 =
			0, e.option2 = 0, e.isCompress = !1, e.isPackage = !1, e.isMulti = !1
	}, t.prototype.dispathCmd = function(t, e, i) {
		void 0 === i && (i = !1);
		var n = this;
		try {
			if (n._lockMessageReadReslove) n._lockMessageSavePool.push([t, e]);
			else if (1 == t) {
				e.position = 0;
				var a = "服务器踢人:";
				e.bytesAvailable > 0 && (a += e.readUTFBytes(e.length)), n.putBytes(e), n._reConnectSuccessFunc || this.socketCloseHandler(
					a)
			} else n.pushCmdToList(t, e)
		} catch (o) {
			GameLog.logError("messageid: " + t, o.stack), n.tipNocticFunc && (n.tipNocticFunc.param = [
				"dispathCmd，messageid: " + t + "," + o.message
			], n.tipNocticFunc.exec())
		}
	}, t.prototype.resloveCmd = function(t, e, i) {
		void 0 === i && (i = !1);
		var n = this,
			a = n._messagePool.getMessageNameByID(t);
		if (a) {
			var o = void 0;
			if (e.length > 0) {
				e.position = 0;
				try {
					o = n.netTransform.decodeNetData(a, e), o || GameLog.log("没有对应的protobuf解析类, 指令ID= " + t)
				} catch (r) {
					GameLog.logError("解析包:" + t + ":" + a + "出错", "proto解析消息结构出错", r.stack), i && n.resetTempSign(), n.tipNocticFunc &&
						(n.tipNocticFunc.param = ["messageid: " + t + ",proto解析消息结构出错", r.stack], n.tipNocticFunc.exec())
				}
			}
			o || (o = {});
			var s = n._classToCallbackHash.get(t.toString());
			if (s)
				for (var h = s.length, l = void 0, p = 0; h > p; p++) try {
					l = s[p], l.param = [o], s[p].exec(), GameLog.log("接收数据包：" + t, ":", a)
				} catch (r) {
					GameLog.logError("messageid: " + t, r.stack), n.tipCallBackError && (n.tipCallBackError.param = [
						"回调函数出错，messageid: " + t + "," + r.stack
					], n.tipCallBackError.exec())
				}
		}
		this.putBytes(e)
	}, t.prototype.onTimerHandler = function(t) {
		var e = this;
		if (e.connected) {
			var i = egret.getTimer();
			if (i - e._isSendLastTime > 3e4) {
				var n = e.createBytes();
				n.writeUnsignedInt(8), n.writeShort(0), n.writeByte(0), n.writeByte(0), e._socket.writeBytes(n), e._socket.flush(),
					e._isSendLastTime = i, e.putBytes(n)
			}
		}
	}, t.prototype.sendInitBytes = function() {
		var t = this;
		t.sendBuf.length > 0 && (t._socket.writeBytes(t.sendBuf), t._socket.flush(), t.sendBuf.clear())
	}, t.prototype.socket_connect = function(t, e) {
		if (this.sendBuf = new egret.ByteArray, this.sendTmpBuf = new egret.ByteArray, this._callOnConnectSetp = 0, 0 !=
			this._connect_timer_inval && (egret.clearTimeout(this._connect_timer_inval), this._connect_timer_inval = 0), -1 ==
			e) {
			this._socket.connectByUrl(t);
			var i = this._reConnectSuccessFunc ? "重连" : "连接";
			GameLog.log("正在" + i + "服务器：connectByUrl host:" + t)
		} else {
			this._socket.connect(t, e);
			var i = this._reConnectSuccessFunc ? "重连" : "连接";
			GameLog.log("正在" + i + "服务器：connect host:" + t + "port:" + e)
		}
	}, t.prototype.sendCommand = function(e) {
		var i = this;
		try {
			if (0 == i.connected) return i.clear(), this.getIsReconnecting && this.socketCloseHandler("客户端发送消息发现,未连接"), void GameLog
				.logWarn("发送消息的时候， loc.connected == false");
			i.sendBuf.clear();
			var n = e.$clientMessageid;
			if (delete e.$clientMessageid, -1 == n) return;
			var a = i._messagePool.getMessageNameByID(n);
			if (i.sendTmpBuf.clear(), i.sendTmpBuf = i.netTransform.encodeSendData(a, e, i.sendTmpBuf), null == i.sendTmpBuf)
				return GameLog.logWarn(n + ",  sendTmpBuf : 发送消息为空"), GameLog.logError(n + ",  sendTmpBuf : 发送消息为空"), void(i.sendTmpBuf =
					i.createBytes());
			i.sendBuf.writeUnsignedInt(i.sendTmpBuf.length + t.MIN_LEN), i.sendBuf.writeShort(n), i.sendBuf.writeByte(0), i.sendBuf
				.writeByte(0), i.sendBuf.writeBytes(i.sendTmpBuf), i._socket.writeBytes(i.sendBuf), i._socket.flush(), i._totalCmdNum++,
				i._isSendLastTime = egret.getTimer(), GameLog.log("发送数据包：" + n, "classname", a)
		} catch (o) {
			GameLog.logError(o.stack, "发送消息出错")
		}
	}, t.prototype.close = function(t) {
		this.socketCloseHandler("网络异常,客户端主动断开连接:" + t), this._socket && this._socket.connected && this._socket.close(),
			this.clear()
	}, t.prototype.socketCloseHandler = function(t) {
		GameLog.logWarn(t, "socketCloseHandler"), this.tipSocketClose && (this.tipSocketClose.param = [t], this.tipSocketClose
			.exec())
	}, t.prototype.clear = function() {
		this.sendBuf.clear()
	}, t.prototype.createBytes = function() {
		var t = this;
		return t._bytesPool.length > 0 ? t._bytesPool.pop() : new egret.ByteArray
	}, t.prototype.putBytes = function(t) {
		t.clear(), this._bytesPool.push(t)
	}, t.prototype.clearSocket = function() {
		var t = this;
		t._socket.close(), t._socket.removeEventListener(egret.ProgressEvent.SOCKET_DATA, t.onRecv, t), t._socket.removeEventListener(
			egret.Event.CONNECT, t.onConnect, t), t._socket.removeEventListener(egret.Event.CLOSE, t.onClose, t), t._socket.removeEventListener(
			egret.IOErrorEvent.IO_ERROR, t.onIOError, t), t._socket = null
	}, t.MAX_RECONNECT_COUNT = 0, t.MIN_LEN = 8, t
}();
__reflect(BaseConnection.prototype, "BaseConnection");
var ObjectPool = function(t) {
	function e(e, i, n) {
		void 0 === i && (i = !0), void 0 === n && (n = 99999);
		var a = t.call(this) || this;
		return a._cls = void 0, a._pool = void 0, a._poolDict = void 0, a._createCount = 0, a._checkDuplicate = !0, a._pool = [],
			a._cls = e, a._checkDuplicate = i, a._maxCount = n, a._checkDuplicate && (a._poolDict = new HashMap), a
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "numCount", {
		get: function() {
			return this._createCount
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "userCount", {
		get: function() {
			return this._createCount - this._pool.length
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getObject = function() {
		var t = this,
			e = void 0;
		return t._pool.length > 0 ? (e = t._pool.pop(), t._checkDuplicate && t._poolDict.del(e)) : (e = new t._cls, t._createCount++),
			e
	}, e.prototype.push = function(t) {
		var e = this;
		e._checkDuplicate ? e._poolDict.has(t) ? GameLog.logError("有重复的对象入池") : e._pool.length < e._maxCount && (e._pool.push(
			t), e._poolDict.put(t, t)) : e._pool.length < e._maxCount && e._pool.push(t)
	}, e.prototype.pushArr = function(t) {
		var e = 0;
		for (e = 0; e < t.length; e++) this.push(t[e])
	}, e
}(egret.HashObject);
__reflect(ObjectPool.prototype, "ObjectPool");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.remainDisposeTime = 0, t.disposeNeedTime = 45e3, t._resource = null, t._isLoading = !1, t.init(), t
		}
		return __extends(i, e), i.prototype.init = function() {
			this._hash = new HashObject, this._error = new FunctionVO(this.netError, this), this._progress = new FunctionVO(
				this.netProgress, this), this._complete = new FunctionVO(this.netComplete, this)
		}, i.prototype.addRequest = function(t) {
			this._hash && this._hash.put(t.hashCode, t)
		}, i.prototype.deleteRequest = function(t) {
			this._hash && this._hash.del(t.hashCode)
		}, Object.defineProperty(i.prototype, "requestLength", {
			get: function() {
				return this._hash ? this._hash.length : 0
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netComplete = function(t) {
			this.data = t, this._isLoading = !1
		}, i.prototype.netProgress = function(t) {
			var e = this._hash.$_getValueMap();
			for (var i in e) e[i].netProgress(t)
		}, i.prototype.netError = function(t) {
			var e = this._hash.$_getValueMap();
			for (var i in e) e[i].netError(t)
		}, Object.defineProperty(i.prototype, "data", {
			get: function() {
				return this._resource
			},
			set: function(t) {
				if (this._resource = t, t) {
					var e = this._hash.$_getValueMap();
					for (var i in e) e[i].netComplete(t)
				}
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netLoad = function() {
			0 == this._isLoading && (this._isLoading = !0, this.loadResource(this.url, this.resType))
		}, i.prototype.unNetLoad = function() {
			this._isLoading && (this._isLoading = !1, this.stopResource(this.url, this.resType))
		}, i.prototype.loadResource = function(e, i) {
			t.EngineConfig.loadCenter.load(e, i, this._complete, this._progress, this._error)
		}, i.prototype.stopResource = function(e, i) {
			t.EngineConfig.loadCenter.removeLoad(e, i, this._complete, this._progress, this._error)
		}, i.prototype.clear = function() {
			this.unNetLoad()
		}, Object.defineProperty(i.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.destroyRes = function() {
			egret.is(this._resource, "IDispose") ? this._resource.dispose() : this._resource instanceof egret.ByteArray ? this
				._resource.clear() : this._resource instanceof egret.Texture && this._resource.dispose()
		}, i.prototype.resetClear = function() {
			this._hash && this._hash.clear(), this.resetDispose()
		}, i.prototype.dispose = function() {
			var t = this;
			e.prototype.dispose.call(this), t.unNetLoad(), t.destroyRes(), t._resource = null, t.remainDisposeTime = 0
		}, i
	}(Dispose);
	t.NetResource = e, __reflect(e.prototype, "h5_engine.NetResource", ["INetResourceElement", "egret.IHashObject"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.init(), t
		}
		return __extends(i, e), Object.defineProperty(i, "instance", {
			get: function() {
				return this.resoureCenter
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "resoureCenter", {
			set: function(t) {
				i.resoureCenter = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.init = function() {
			this._resourceTypeDict = new HashObject, this._resourceHash = new HashObject, this._delayDisposeHash = new HashObject,
				this._loadedResousrce = new HashObject, this._clsPool = new HashMap
		}, i.prototype.getResourceLength = function() {
			return this._resourceHash.length
		}, i.prototype.getDelayResourceLength = function() {
			return this._delayDisposeHash.length
		}, i.prototype.getResource = function(t) {
			var e = this,
				i = e._resourceHash.get(t.url);
			if (i && e._delayDisposeHash.has(i.hashCode) && (i.remainDisposeTime = 0, e._delayDisposeHash.del(i.hashCode)),
				null == i && (i = e.makeResource(t.resType, t.url), i.resType = t.resType, i.url = t.url, e._resourceHash.put(t.url,
					i)), i.addRequest(t), i.data) t.netComplete(i.data);
			else if (0 == i.isLoading) {
				i.netLoad();
				var n = 1;
				e._loadedResousrce.has(t.url) && (n = e._loadedResousrce.get(t.url), n++), e._loadedResousrce.put(t.url, n)
			}
		}, i.prototype.delResource = function(t) {
			var e = this,
				i = e._resourceHash.get(t.url);
			i && (i.deleteRequest(t), 0 == i.requestLength && (i.isLoading && i.unNetLoad(), i.data && i.disposeNeedTime > 0 ?
				e.delayDisposeResource(i) : e.disposeResource(i)))
		}, i.prototype.delayDisposeResource = function(t) {
			this._delayDisposeHash.put(t.hashCode, t), t.remainDisposeTime = 0
		}, i.prototype.addvancetime = function(t) {
			var e = this,
				i = e._delayDisposeHash.$_getValueMap();
			for (var n in i) {
				var a = i[n],
					o = a.disposeNeedTime;
				a.remainDisposeTime += t, a.remainDisposeTime >= o && e.disposeResource(a)
			}
		}, i.prototype.addResourceParser = function(t, e, i) {
			this._resourceTypeDict.put(t, {
				res: e,
				time: i
			})
		}, i.prototype.makeResource = function(e, i) {
			var n, a = this._resourceTypeDict.get(e);
			if (a) {
				var o = a.res,
					r = a.time;
				n = this.createResByCls(o), n.disposeNeedTime = r
			} else n = this.createResByCls(t.NetResource);
			return n
		}, i.prototype.createResByCls = function(t) {
			var e = this._clsPool.get(t);
			return e || (e = {
				list: [],
				num: 0
			}, this._clsPool.put(t, e)), e.list.length > 0 ? e.list.pop() : (e.num = e.num + 1, new t)
		}, i.prototype.disposeResource = function(t) {
			t.dispose(), this._resourceHash.del(t.url), this._delayDisposeHash.del(t.hashCode), t.resetClear();
			var e = Object(t).constructor,
				i = this._clsPool.get(e);
			i && (-1 == i.list.indexOf(t) ? i.list.push(t) : GameLog.logError("有重复的NetResource入对象池"))
		}, i.prototype.isLoadedResource = function(t) {
			return t ? this._loadedResousrce.has(t) : !1
		}, i.prototype.hasResouceData = function(t) {
			return t ? this._resourceHash.has(t) : !1
		}, i.prototype.getResouceData = function(t) {
			return this._resourceHash.has(t) ? this._resourceHash.get(t).data : null
		}, i.prototype.clear = function() {
			var t = this,
				e = t._delayDisposeHash.$_getValueMap();
			for (var i in e) {
				var n = e[i];
				n.resType != NetResourceType.MAP_RADAR && n.resType != NetResourceType.MAP_BINARY && n.resType != NetResourceType
					.ONCE_EFFECT && t.disposeResource(n)
			}
		}, i.prototype.dispose = function() {
			var t, e = this,
				i = e._resourceHash.$_getValueMap();
			for (var n in i) t = i[n], t.dispose();
			e._resourceHash = null;
			var a = e._delayDisposeHash.$_getValueMap();
			for (var o in a) t = a[o], t.dispose();
			e._delayDisposeHash = null, e._resourceTypeDict = null
		}, i
	}(Dispose);
	t.NetResourceManager = e, __reflect(e.prototype, "h5_engine.NetResourceManager")
}(h5_engine || (h5_engine = {}));
var SeverActivityxiangouView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.count = 0, e.skinName = "SeverActivityxiangouSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 520, SeverAvtivityxiangouItem, 5), this._vscroller.move(20, 245, this),
			null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("kfhd/xglh", "",
				".jpg")))
	}, e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
			this);
		var e = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = e, this.showfirstView(e[0]), App.timer.serverTimeEnd(this, this.timeOnClick,
			ServerTime.getServerTime() + ServerTime.remianZeroTime), this.scrollBottom1(e.length - this.getActivityFlag(e) >=
			4 ? this.getActivityFlag(e) : e.length - 4)
	}, Object.defineProperty(e.prototype, "activityType", {
		get: function() {
			switch (this.day) {
				case 1:
					return 718;
				case 2:
					return 1211;
				case 3:
					return 1212;
				case 4:
					return 1213;
				case 5:
					return 716;
				case 6:
					return 720;
				case 7:
					return 721;
				case 8:
					return 717;
				case 9:
					return 719;
				case 10:
					return 715
			}
			return 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getActivityFlag = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			if (0 != t[i].playerStates) return i;
		return 0
	}, e.prototype.scrollBottom1 = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)) : this._vscroller.viewport && (this._vscroller
				.viewport.scrollV = 0)
	}, e.prototype.scrollBottom = function(t) {
		this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller.viewport.contentHeight >
			this._vscroller.viewport.height ? (this._vscroller.viewport && (this.count = this._vscroller.viewport.scrollV),
				App.timer.doFrameLoop(this, 1, this.referview, [t])) : this._vscroller.viewport && (this._vscroller.viewport.scrollV =
				0)
	}, e.prototype.referview = function(t) {
		this.count = this.count + 2, this.count >= 132 * t ? (this._vscroller.viewport && (this._vscroller.viewport.scrollV =
			this._vscroller.viewport.contentHeight - (this._vscroller.viewport.contentHeight - 132 * t)), App.timer.clearTimer(
			this.referview, this)) : this._vscroller.viewport && (this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - (this._vscroller.viewport.contentHeight - this.count))
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_3(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc)
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(this.activityType, !1, !1);
		this._vscroller.dataProvider = t, this.scrollBottom(t.length - this.getActivityFlag(t) >= 4 ? this.getActivityFlag(
			t) : t.length - 4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), App.timer.clearTimer(this.timeOnClick, this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (this._vscroller
			.parent && this._vscroller.parent.removeChild(this._vscroller), this._vscroller.dispose(), this._vscroller = null
		)
	}, e
}(ViewBase);
__reflect(SeverActivityxiangouView.prototype, "SeverActivityxiangouView");
var HashObject = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._length = 0, e._keyDict = {}, e._valueDict = {}, e
	}
	return __extends(e, t), e.prototype.getKeyArray = function() {
		var t = [],
			e = this._keyDict;
		for (var i in e) t.push(e[i]);
		return t
	}, e.prototype.getValueArray = function() {
		var t = [],
			e = this._valueDict;
		for (var i in e) t.push(e[i]);
		return t
	}, e.prototype.$_getValueMap = function() {
		return this._valueDict
	}, e.prototype.$_getKeyMap = function() {
		return this._keyDict
	}, e.prototype.put = function(t, e) {
		var i = this;
		if (null !== t && void 0 !== t) {
			var n = t.toString();
			i._keyDict.hasOwnProperty(n) || i._length++, i._keyDict[n] = t, i._valueDict[n] = e
		}
	}, e.prototype.get = function(t) {
		var e = this;
		if (null !== t && void 0 !== t) {
			var i = t.toString();
			return e._valueDict.hasOwnProperty(i) ? e._valueDict[i] : null
		}
		return null
	}, e.prototype.has = function(t) {
		if (null !== t && void 0 !== t) {
			var e = t.toString();
			return this._valueDict.hasOwnProperty(e)
		}
		return !1
	}, e.prototype.del = function(t) {
		var e = this;
		if (null !== t && void 0 !== t) {
			var i = t.toString();
			e._valueDict.hasOwnProperty(i) && (delete e._keyDict[i], delete e._valueDict[i], e._length--)
		}
	}, Object.defineProperty(e.prototype, "length", {
		get: function() {
			return this._length
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.foEach = function(t, e, i) {
		void 0 === i && (i = null);
		var n = this;
		if (n._length > 0) {
			var a = [null, null];
			i && (a = a.concat(i));
			var o = n._keyDict,
				r = n._valueDict;
			for (var s in o) {
				a[0] = o[s], a[1] = r[s];
				var h = t.apply(e, a);
				if (h) return h
			}
		}
		return null
	}, e.prototype.forInValExcFucName = function(t) {
		var e = this._valueDict;
		for (var i in e) {
			var n = e[i];
			n[t]()
		}
	}, e.prototype.clear = function() {
		var t = this;
		if (t._length > 0) {
			var e = t._keyDict,
				i = t._valueDict;
			for (var n in e) delete e[n], delete i[n];
			t._length = 0
		}
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._keyDict = null, this._valueDict = null
	}, e
}(Dispose);
__reflect(HashObject.prototype, "HashObject");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e, i) {
			var n = t.call(this) || this;
			return n.m_width = 0, n.m_height = 0, n.Create(e, i), n
		}
		return __extends(e, t), e.prototype.Create = function(t, e) {
			if (t > 0 && e > 0) {
				this.m_width = t, this.m_height = e, this.m_matrix = new Array(e);
				for (var i = 0; e > i; i++) {
					this.m_matrix[i] = new Array(t);
					for (var n = 0; e > n; n++) this.m_matrix[i][n] = 0
				}
			}
		}, e.prototype.Destroy = function() {
			this.m_matrix = null
		}, e.prototype.GetWidth = function() {
			return this.m_width
		}, e.prototype.GetHeight = function() {
			return this.m_height
		}, e.prototype.GetValue = function(t, e) {
			var i = 0;
			return t >= 0 && t < this.m_height && e >= 0 && e <= this.m_width && (i = this.m_matrix[t][e]), i
		}, e.prototype.SetValue = function(t, e, i) {
			t >= 0 && t < this.m_height && e >= 0 && e <= this.m_width && (this.m_matrix[t][e] = i)
		}, e.prototype.LoadIdentity = function() {
			if (this.m_matrix)
				for (var t = 0; t < this.m_height; t++)
					for (var e = 0; e < this.m_width; e++) t == e ? this.m_matrix[t][e] = 1 : this.m_matrix[t][e] = 0
		}, e.prototype.LoadZeros = function() {
			if (this.m_matrix)
				for (var t = 0; t < this.m_height; t++)
					for (var e = 0; e < this.m_width; e++) this.m_matrix[t][e] = 0
		}, e.prototype.Multiply = function(t, i) {
			if (void 0 === i && (i = e.MATRIX_ORDER_PREPEND), !this.m_matrix || !t) return !1;
			var n = t.GetHeight(),
				a = t.GetWidth();
			if (i == e.MATRIX_ORDER_APPEND) {
				if (this.m_width != n) return !1;
				for (var o = new e(a, this.m_height), r = 0; r < this.m_height; r++)
					for (var s = 0; a > s; s++) {
						for (var h = 0, l = 0, p = 0; l < Math.max(this.m_height, n) && p < Math.max(this.m_width, a); l++, p++) h += t
							.GetValue(l, s) * this.m_matrix[r][p];
						o.SetValue(r, s, h)
					}
				for (this.Destroy(), this.Create(a, this.m_height), r = 0; n > r; r++)
					for (s = 0; s < this.m_width; s++) this.m_matrix[r][s] = o.GetValue(r, s)
			} else {
				if (this.m_height != a) return !1;
				for (o = new e(this.m_width, n), r = 0; n > r; r++)
					for (s = 0; s < this.m_width; s++) {
						for (h = 0, l = 0, p = 0; l < Math.max(n, this.m_height) && p < Math.max(a, this.m_width); l++, p++) h += this.m_matrix[
							l][s] * t.GetValue(r, p);
						o.SetValue(r, s, h)
					}
				for (this.Destroy(), this.Create(this.m_width, n), r = 0; n > r; r++)
					for (s = 0; s < this.m_width; s++) this.m_matrix[r][s] = o.GetValue(r, s)
			}
			return !0
		}, e.prototype.MultiplyNumber = function(t) {
			if (!this.m_matrix) return !1;
			for (var e = 0; e < this.m_height; e++)
				for (var i = 0; i < this.m_width; i++) {
					var n = 0;
					n = this.m_matrix[e][i] * t, this.m_matrix[e][i] = n
				}
			return !0
		}, e.prototype.Add = function(t) {
			if (!this.m_matrix || !t) return !1;
			var e = t.GetHeight(),
				i = t.GetWidth();
			if (this.m_width != i || this.m_height != e) return !1;
			for (var n = 0; n < this.m_height; n++)
				for (var a = 0; a < this.m_width; a++) {
					var o = 0;
					o = this.m_matrix[n][a] + t.GetValue(n, a), this.m_matrix[n][a] = o
				}
			return !0
		}, e.MATRIX_ORDER_PREPEND = 0, e.MATRIX_ORDER_APPEND = 1, e
	}(Dispose);
	t.DynamicMatrix = e, __reflect(e.prototype, "h5_engine.DynamicMatrix")
}(h5_engine || (h5_engine = {}));
var BaseConnectionSender = function() {
	function t() {}
	return t.prototype.createCmd = function(e) {
		return t.createCmd(e)
	}, t.createCmd = function(t) {
		var e = Config.socket.createCmd(t);
		return e.$clientMessageid = t, e
	}, t.prototype.sendCommand = function(e) {
		t.sendCommand(e)
	}, t.sendCommand = function(t) {
		Config.socket.sendCommand(t)
	}, t
}();
__reflect(BaseConnectionSender.prototype, "BaseConnectionSender");
var CEffect = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "lastFrameHanderCallBack", {
		get: function() {
			return this._lastFrameHanderCallBack
		},
		set: function(t) {
			this._lastFrameHanderCallBack = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return NetResourceType.ANI_EFFECT
		},
		set: function(t) {},
		enumerable: !0,
		configurable: !0
	}), e.prototype.play = function() {
		0 == this._isPlaying && this.addToFrameController(), t.prototype.play.call(this)
	}, e.prototype.addToFrameController = function() {
		EffectAdvanceTimeCenter.instance.addEffect(this)
	}, e.prototype.removeToFrameController = function() {
		EffectAdvanceTimeCenter.instance.deleteEffect(this)
	}, e.prototype.lastFrameHandler = function() {
		null != this._lastFrameHanderCallBack && this._lastFrameHanderCallBack.exec()
	}, e.prototype.resetAndClear = function() {
		this.removeToFrameController(), this._lastFrameHanderCallBack = null, t.prototype.resetAndClear.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._lastFrameHanderCallBack = null
	}, e
}(h5_engine.NetEffect);
__reflect(CEffect.prototype, "CEffect");
var EffectAdvanceTimeCenter = function() {
	function t() {
		this._effectHash = new HashObject, this._frameHash = new HashObject, this._isStart = !1, this._gapTime = 0
	}
	return Object.defineProperty(t, "instance", {
		get: function() {
			return null == t._instance && (t._instance = new t), t._instance
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.addEffect = function(t, e) {
		void 0 === e && (e = !1);
		var i = this;
		e ? i._frameHash.put(t.hashCode, t) : i._effectHash.put(t.hashCode, t), 0 == i._isStart && (App.timer.doFrameLoop(i,
			1, i.onEnterFrame), i._isStart = !0)
	}, t.prototype.onEnterFrame = function() {
		var t = this,
			e = App.timer.frametime;
		if (t._frameHash.length > 0) try {
			var i = t._frameHash.$_getValueMap();
			for (var n in i) i[n].addvanceTime(e)
		} catch (a) {}
		if (t._gapTime += e, t._gapTime > 50) try {
			var i = t._effectHash.$_getValueMap();
			for (var n in i) i[n].addvanceTime(t._gapTime)
		} catch (a) {} finally {
			t._gapTime = 0
		}
	}, t.prototype.deleteEffect = function(t, e) {
		void 0 === e && (e = !1), e ? this._frameHash.del(t.hashCode) : this._effectHash.del(t.hashCode)
	}, t
}();
__reflect(EffectAdvanceTimeCenter.prototype, "EffectAdvanceTimeCenter");
var BaseZone = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isShowing = !1, e.lastShowTime = 0, e.lastHideTime = 0, e._dispatcher = new DispatcherRegister, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.enter = function() {
		var t = this;
		t.lastShowTime = egret.getTimer(), t.isShowing = !0, t.resize(), t._dispatcher.addEventListener(EventType.STGAE_RESIZE,
			t.resize, t)
	}, e.prototype.exit = function() {
		var t = this;
		t._dispatcher.removeAllListeners(), t.lastHideTime = egret.getTimer(), t.isShowing = !1
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1)
	}, e.prototype.resize = function(t) {}, e.prototype.dispose = function() {
		this.data = null, this.zoneid = -1, this.type = -1, this._dispatcher.dispose(), this._dispatcher = null
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(BaseZone.prototype, "BaseZone", ["IPanelDispose"]);
var AdvanceCommonView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.roleIndex = 1, e.maxStar = 10, e.barwidth = 405, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
			this._view = UIMaker.createViewBase("AdvanceCommonSkin"), this.addChild(this._view), this.model = App.data.advanceDataCenter,
				this.barMask = new egret.Rectangle(0, 0, this.barwidth, 15), this._view.UpproImg.mask = this.barMask;
			var t = new eui.VerticalLayout;
			t.gap = -5, this._view.levelGroup.layout = t, this._hLayout = new eui.HorizontalLayout, this._hLayout.gap = 30,
				this._hLayout.horizontalAlign = egret.HorizontalAlign.CENTER, this._hLayout.verticalAlign = egret.VerticalAlign.MIDDLE,
				this._vLayout = new eui.VerticalLayout, this._vLayout.gap = 30, this._vLayout.horizontalAlign = egret.HorizontalAlign
				.CENTER, this._vLayout.verticalAlign = egret.VerticalAlign.MIDDLE, this._view.atrriGroup.touchThrough = !0, this.icon =
				UIMaker.getCImage(this._view.iconGroup, this, ""), this.icon.width = this.icon.height = 30, this.zhishengDan =
				GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(this.zhishengDan), this.zhishengDan
				.isShowTip = !1, this.zhishengDan.isShowDesc = !1, this.zhishengDan.setRedDot(!1), this.zhishengDan.x = 60, this.zhishengDan
				.y = 465
		}, e.prototype.show = function(e) {
			void 0 === e && (e = null), t.prototype.show.call(this, e), this.roleList.selectIndex = 1, this.roleIndex = 1, this
				._view.advancedGroup.visible = !0, this._view.equipGroup.visible = !1, this.isAutoUpStar = !1, this._view.wear_btn
				.visible = !1, this.setFenJieText(), this.setIconAndImg(), this.addEvent(), this._view.CheckBox.selected = !1,
				this.onUpdate(this.curType), this.checkEffect()
		}, e.prototype.setIconAndImg = function() {
			switch (this.curType) {
				case AdvanceType.guangyi:
					this._view.turn_im.source = "wing_shenyu_png", this._view.Dan1_im.source = "wing_tengyun_png", this._view.Dan2_im
						.source = "wing_jiawu_png", this._view.Dan3_im.source = "wing_xiaofeng_png", this._view.proImg.source =
						"common1_fjbg2_png", this._view.proImg.x = 42, this._view.proImg.y = -6, this._view.baifenhao_im.visible = !0;
					break;
				case AdvanceType.zuoqi:
					this._view.turn_im.source = "mountView_xianqi_png", this._view.Dan1_im.source = "mountView_tianlong_png", this._view
						.Dan2_im.source = "mountView_baihu_png", this._view.Dan3_im.source = "mountView_chilin_png", this._view.proImg.source =
						"common1_fjbg3_png", this._view.proImg.x = 9, this._view.proImg.y = 4, this._view.baifenhao_im.visible = !1;
					break;
				case AdvanceType.tianbing:
					this._view.turn_im.source = "tianBingView_cubing_png", this._view.Dan1_im.source = "tianBingView_gongfa_png",
						this._view.Dan2_im.source = "tianBingView_zhige_png", this._view.Dan3_im.source = "tianBingView_yubing_png",
						this._view.proImg.source = "common1_fjbg4_png", this._view.proImg.x = 9, this._view.proImg.y = 4, this._view.baifenhao_im
						.visible = !1;
					break;
				case AdvanceType.fazhen:
					this._view.turn_im.source = "fazhenView_xinfa_png", this._view.Dan1_im.source = "fazhenView_zhenhuo_png", this._view
						.Dan2_im.source = "fazhenView_xuanbing_png", this._view.Dan3_im.source = "fazhenView_tianlei_png", this._view.proImg
						.source = "common1_fjbg5_png", this._view.proImg.x = 9, this._view.proImg.y = 4, this._view.baifenhao_im.visible = !
						1;
					break;
				case AdvanceType.binghun:
					this._view.turn_im.source = "", this._view.Dan1_im.source = "bingHunView_gongcheng_png", this._view.Dan2_im.source =
						"bingHunView_jushou_png", this._view.Dan3_im.source = "bingHunView_liezhen_png", this._view.proImg.source =
						"common1_fjbg1_png", this._view.proImg.x = 17, this._view.proImg.y = -6, this._view.baifenhao_im.visible = !0
			}
		}, Object.defineProperty(e.prototype, "maxStage", {
			get: function() {
				return this.model.getMaxStage(this.curType)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "minStage", {
			get: function() {
				return this.model.getMinStage(this.curType)
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.setFenJieText = function() {
			switch (this.curType) {
				case AdvanceType.guangyi:
					this._view.fenjie.text = "";
					break;
				case AdvanceType.zuoqi:
					this._view.fenjie.textFlow = new Array({
						text: "分解坐骑装备",
						style: {
							underline: !0
						}
					});
					break;
				case AdvanceType.tianbing:
					this._view.fenjie.textFlow = new Array({
						text: "分解天兵装备",
						style: {
							underline: !0
						}
					});
					break;
				case AdvanceType.fazhen:
					this._view.fenjie.textFlow = new Array({
						text: "分解法阵装备",
						style: {
							underline: !0
						}
					});
					break;
				case AdvanceType.binghun:
					this._view.fenjie.text = ""
			}
		}, Object.defineProperty(e.prototype, "curType", {
			get: function() {
				switch (this.model._currTabSelete) {
					case AdvanceTabType.guangyi:
						return AdvanceType.guangyi;
					case AdvanceTabType.zuoqi:
						return AdvanceType.zuoqi;
					case AdvanceTabType.tianbing:
						return AdvanceType.tianbing;
					case AdvanceTabType.fazhen:
						return AdvanceType.fazhen;
					case AdvanceTabType.binghun:
						return AdvanceType.binghun
				}
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.checkZhiShengDan = function() {
			if (this.curType == AdvanceType.binghun) return void this.zhishengDan.setData(null);
			var t = App.data.advanceDataCenter.getZhiShengDanData(this.curType, this._curQ_advanceBean.q_level),
				e = App.data.bagItemDataCenter.getZhiShengDan(t.id),
				i = App.data.bagItemDataCenter.getItemCount(t.id);
			t && i >= t.num && this._curQ_advanceBean.q_star < this.maxStar && e ? this.zhishengDan.setData(t.id) : this.zhishengDan
				.setData(null)
		}, e.prototype.zhishengHandle = function() {
			this._prevQ_advanceBean = this._curQ_advanceBean;
			var t = App.data.advanceDataCenter.getZhiShengDanData(this.curType, this._curQ_advanceBean.q_level);
			App.panel.openPanel(9003, [this.curType, this.roleIndex, t.id])
		}, e.prototype.onUpdate = function(t, e) {
			if (void 0 === e && (e = null), this.curType == t) {
				this.updateAutoBtn();
				var i = App.global.roles.getRoleInfoByIndex(this.roleIndex);
				if (i && e && i.personId == e && (this._curQ_advanceBean.q_level != this._prevQ_advanceBean.q_level ? t ==
						AdvanceType.binghun ? EffectUtils.showSuccessEffect(this, this, 310, 360) : App.dispatcher.dispatchEvent(
							EventType.ShowSuccess, this._url, 70) : this._curQ_advanceBean.q_star != this._prevQ_advanceBean.q_star && App.dispatcher
						.dispatchEvent(EventType.ShowSuccess, this._url, 500, SuccessEffect.STAR)), this.isAutoUpStar) {
					if (!this._curQ_advanceBean) return;
					if (this._curQ_advanceBean.q_star >= this.maxStar) return void this.stopAuto();
					this.upHandler()
				}
				this.updateGrid(), this.updateDanRedPoint()
			}
		}, e.prototype.onAdvanceFail = function() {
			this.stopAuto()
		}, e.prototype.setLevelSource = function(t, e) {
			this._levelImg || (this._levelImg = new eui.Image, this._view.levelGroup.addChild(this._levelImg)), this._nameImg ||
				(this._nameImg = new eui.Image, this._view.levelGroup.addChild(this._nameImg));
			var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
			i && (this._levelImg.source = "mountView_mount_" + i.q_level + "_png", "" != this.model.nameTransform(i.q_name) ?
				this._nameImg.source = this.model.nameTransform(i.q_name) + "_png" : this._nameImg.source = "")
		}, e.prototype.setAvatarData = function(t, e) {}, e.prototype.setStar = function(t) {
			for (var e = 0; 10 > e; e++) this._view["star" + e].visible = e >= t ? !1 : !0
		}, e.prototype.setExp = function(t, e) {
			var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
			if (i) {
				if (this._curQ_advanceBean.q_star >= this.maxStar) return this.barMask.x = 0, this._view.UpproLab.text = "MAX",
					void(this._view.UpproImg.mask = this.barMask);
				var n = i.q_grow;
				this.barMask.x = this.model.getTotalExp(this.roleIndex, this.curType) / n * this.barwidth - this.barwidth, this._view
					.UpproLab.text = this.model.getTotalExp(this.roleIndex, this.curType) + "/" + n, this._view.UpproImg.mask = this.barMask
			}
		}, e.prototype.updateTurnBtn = function() {
			return this._curShowQ_advanceBean ? (this._curShowQ_advanceBean.q_level <= this.minStage ? this._view.preBtn.visible = !
				1 : this._view.preBtn.visible = !0, void(this._curShowQ_advanceBean.q_level >= this.nextLevel ? this._view.nextBtn
					.visible = !1 : this._view.nextBtn.visible = !0)) : (this._view.preBtn.visible = !1, void(this._view.nextBtn.visible = !
				1))
		}, Object.defineProperty(e.prototype, "curShowQ_advanceBean", {
			set: function(t) {
				this._curShowQ_advanceBean = t, this.updateTurnBtn(), t && (this.setLevelSource(this._curShowQ_advanceBean.q_level,
					this._curShowQ_advanceBean.q_star), this.setAvatarData(this._curShowQ_advanceBean.q_level, this._curShowQ_advanceBean
					.q_star), this.updateState())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "curQ_advanceBean", {
			set: function(t) {
				this._curQ_advanceBean = t, this._curQ_advanceBean && (this.nextLevel = this._curQ_advanceBean.q_level + 1 >
					this.maxStage ? this.maxStage : this._curQ_advanceBean.q_level + 1, this.setStar(this._curQ_advanceBean.q_star),
					this.setExp(this._curQ_advanceBean.q_level, this._curQ_advanceBean.q_star), this.updateAttributes(), this.updateExpend(),
					this.updateBtnShow(), this.updateState(), this.showjiacheng(), this.checkZhiShengDan())
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.showjiacheng = function() {
			var t;
			return (t = this.curType == AdvanceType.guangyi || this.curType == AdvanceType.binghun ? App.data.advanceDataCenter
				.getCurShowJiaCheng(this.curType, this._curQ_advanceBean.q_level, this._curQ_advanceBean.q_id) : App.data.advanceDataCenter
				.getCurShowJiaCheng(this.curType, this._curQ_advanceBean.q_level)) ? (this._view.jiachenggroup.visible = !0, this
				._view.curr_ge.source = "common1_curr" + t.add % 10 + "_png", this._view.curr_shi.visible = t.add > 9, this._view
				.curr_shi.source = "common1_curr" + Math.floor(t.add / 10) + "_png", this._view.curgroup.x = 321, void(this.curType ==
					AdvanceType.guangyi || this.curType == AdvanceType.binghun ? (this._view.curJie_im.source = "", t.add < 10 && (
						this._view.curgroup.x = 300)) : this._view.curJie_im.source = "common1_imglonghun_" + t.level + "_png")) : void(
				this._view.jiachenggroup.visible = !1)
		}, e.prototype.updateState = function() {
			this._view.state_im.visible = !1
		}, e.prototype.updateAttributes = function() {
			if (!this._curQ_advanceBean) return this._view.text0.text = "", void(this._view.text1.text = "");
			var t = new BaseAttributeDataBean;
			t.convertAndAdd(this._curQ_advanceBean.q_prop);
			var e = "攻击:0\n物防:0\n魔防:0\n生命:0";
			"" != t.getStrByBaseAttributeBean(t) && (e = t.getStrByBaseAttributeBean(t)), this._view.text0.text = e, this.fightPower
				.setValue(FightPowerUtil.getFightPower([this._curQ_advanceBean.q_prop]));
			var i = App.config.q_advanceContainer.getDataBean(this._curQ_advanceBean.q_nextId);
			if (i) {
				var n = new BaseAttributeDataBean;
				n.convertAndAdd(i.q_prop), this._view.text1.text = n.getStrByBaseAttributeBean(n), this._view.text1.visible = !0,
					this._view.jiantouimg.visible = !0, this._view.atrriGroup.layout = this._hLayout
			} else this._view.text1.visible = !1, this._view.jiantouimg.visible = !1, this._view.atrriGroup.layout = this._vLayout
		}, e.prototype.updateExpend = function() {
			if (!this._curQ_advanceBean) return this._view.cailiaoLab.text = "", this.icon.visible = !1, void(this._view.xiaohao_txt
				.visible = !1);
			if (this._curQ_advanceBean.q_star >= this.maxStar) return this._view.cailiaoLab.text = "", this.icon.visible = !1,
				void(this._view.xiaohao_txt.visible = !1);
			var t = StringUtil.JsonParse(StringUtil.replacJosnStr(this._curQ_advanceBean.q_consume)),
				e = t[0].num,
				i = App.data.bagItemDataCenter.getItemCount(t[0].id);
			this.icon.visible = !0, this._view.xiaohao_txt.visible = !0;
			var n = App.config.q_itemContainer.getDataBean(t[0].id);
			this.icon.url = ResPathUtil.getIcon(n.q_tiny_icon, "item/80");
			var a;
			a = i >= e ? 3533365 : 15938355, this._view.cailiaoLab.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i + "",
				a) + "/" + e)
		}, e.prototype.updateBtnShow = function() {
			return this._curQ_advanceBean ? void(this._curQ_advanceBean.q_level >= this.maxStage && this._curQ_advanceBean.q_star >=
				this.maxStar ? this.showBtnType(3) : this._curQ_advanceBean.q_star >= this.maxStar ? this.showBtnType(2) : this.showBtnType(
					1)) : void this.showBtnType(0)
		}, e.prototype.showBtnType = function(t) {
			switch (t) {
				case 1:
					this._view.upStar.label = "升 星", this._view.upStarGroup.x = 69, this._view.autoGroup.visible = !0, this._view.CheckBox
						.visible = !0;
					break;
				case 2:
					this._view.upStar.label = "升 阶", this._view.upStarGroup.x = 228, this._view.autoGroup.visible = !1, this._view.CheckBox
						.visible = !1, this.stopAuto();
					break;
				case 3:
					this._view.upStar.label = "已满级", this._view.upStarGroup.x = 228, this._view.autoGroup.visible = !1, this._view.CheckBox
						.visible = !1, this.stopAuto();
					break;
				default:
					this._view.upStarGroup.visible = !1, this._view.autoGroup.visible = !1, this._view.CheckBox.visible = !1
			}
		}, e.prototype.stopAuto = function() {
			this.isAutoUpStar = !1, this.updateAutoBtn()
		}, e.prototype.startAuto = function() {
			this.isAutoUpStar = !0, this.updateAutoBtn()
		}, e.prototype.updateAutoBtn = function() {
			this.isAutoUpStar ? (this._view.auto_upStar.label = "取消升星", this._view.upStar.enabled = !1) : (this._view.auto_upStar
				.label = "自动升星", this._view.upStar.enabled = !0)
		}, e.prototype.addEvent = function() {
			this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.preHandler, this, this._view.preBtn), this._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, this.nextHandler, this, this._view.nextBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.wearHandle, this, this._view.wear_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.turnEquipHandle,
					this, this._view.turn_im), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.useDanHandle, this,
					this._view.Dan1_im), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.useDanHandle, this, this._view
					.Dan2_im), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.useDanHandle, this, this._view.Dan3_im),
				this._dispatcher.addEventListener(ItemEvent.ADD, this.updateExpend, this), this._dispatcher.addEventListener(
					ItemEvent.REMOVE, this.showxiaohao, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.updateExpend,
					this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.upHandler, this, this._view.upStar),
				this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.autoUpHandler, this, this._view.auto_upStar),
				this._dispatcher.addEventListener(SurfaceEvent.SURFACE_BIND, this.changeSurfaceFun, this), this._dispatcher.addEventListener(
					EventType.SURFACE_UPDATE, this.changeSurfaceFun, this), this._dispatcher.addEventListener(AdvanceEvent.UPDATE_ADVANCEINFO,
					this.onUpdate, this), this._dispatcher.addEventListener(AdvanceEvent.ADVANCE_FAIL, this.onAdvanceFail, this),
				this._dispatcher.addEventListener(AdvanceEvent.DAN_UPDATE, this.updateDan, this), this._dispatcher.addEventListener(
					AdvanceEvent.ADVANCE_EQUIP_REFRESH, this.updateGrid, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onWearClick, this, this._view.onWearBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
					.fenjieClick, this, this._view.fenjie), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.zhishengHandle,
					this, this.zhishengDan)
		}, e.prototype.updateGrid = function() {}, e.prototype.wearHandle = function() {}, e.prototype.changeSurfaceFun =
		function() {
			this.updateState()
		}, e.prototype.onWearClick = function() {}, e.prototype.turnEquipHandle = function() {
			this.stopAuto(), this.curType == AdvanceType.guangyi ? App.global.funcOpen.isFunctionOpen(152, "", !0) && App.panel
				.openPanel(73) : (this._view.advancedGroup.visible = !this._view.advancedGroup.visible, this._view.equipGroup.visible = !
					this._view.equipGroup.visible, this.setEquipRed())
		}, e.prototype.setEquipRed = function() {}, e.prototype.useDanHandle = function(t) {
			var e = Number(t.currentTarget.name);
			App.panel.openPanel(9001, [e, this.roleIndex, this.curType, this._curQ_advanceBean.q_level])
		}, e.prototype.upHandler = function() {
			if (!this._curQ_advanceBean) return void this.stopAuto();
			if (this._curQ_advanceBean.q_level >= this.maxStage && this._curQ_advanceBean.q_star >= this.maxStar) return Notice
				.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">已满级</font>"), void this.stopAuto();
			this._prevQ_advanceBean = this._curQ_advanceBean;
			var t = null,
				e = 0,
				i = 0;
			if (this._curQ_advanceBean.q_consume && "" != this._curQ_advanceBean.q_consume && (t = StringUtil.JsonParse(
					StringUtil.replacJosnStr(this._curQ_advanceBean.q_consume)), e = t[0].num, i = App.data.bagItemDataCenter.getItemCount(
					t[0].id)), i >= e) this.checkItemHandler();
			else if (this._view.CheckBox.selected) {
				var n = GameUtil.getItemConfigData(t[0].id);
				if (!n) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">id:" + t[0].id +
					"配置不存在</font>"), void this.stopAuto();
				var a = App.data.mallCenter.getItemShopBean(n.q_id);
				if (!a) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">shop表中找不到id" + n.q_id +
					"</font>"), void this.stopAuto();
				var o = t[0].num - i;
				App.data.currencyDataCenter.isMoneyEnough(Number(a.q_price) * o, EnumMoney.YUAN_BAO, !1) ? App.global.itemBuy.buyItemByItemId(
					t[0].id, o, !1, 1, 1110) && App.timer.doTimeOnce(this, 500, this.checkItemHandler) : (this.stopAuto(),
					PanelOpenManager.openBuyPanel(a, a.q_shop_type, 5, 0, !1))
			} else App.panel.openPanel(19, t[0].id), this.stopAuto()
		}, e.prototype.autoUpHandler = function() {
			this.isAutoUpStar ? this.stopAuto() : (this.startAuto(), this.upHandler())
		}, e.prototype.preHandler = function() {
			if (this._curShowQ_advanceBean && !(this._curShowQ_advanceBean.q_level - 1 < this.minStage)) {
				var t = this.model.getAdvanceBeanByTypeLevelStar(this.curType, this._curShowQ_advanceBean.q_level - 1, 10);
				t && (this.curShowQ_advanceBean = t)
			}
		}, e.prototype.nextHandler = function() {
			if (this._curShowQ_advanceBean && !(this._curShowQ_advanceBean.q_level + 1 > this.maxStage)) {
				var t = this.model.getAdvanceBeanByTypeLevelStar(this.curType, this._curShowQ_advanceBean.q_level + 1, 0);
				t && (this.curShowQ_advanceBean = t)
			}
		}, e.prototype.checkItemHandler = function(t) {
			void 0 === t && (t = !1), CharacterUICommandSender.advanceLevelUp(this.curType, t, this.roleIndex), App.sound.playSound(
				EnumSoundId.SKILL, 0, 1 / .3)
		}, e.prototype.refreshRoleData = function(t) {
			this.roleIndex = t.roleIndex, this._view.CheckBox.selected = !1, this.stopAuto(), this.onUpdate(this.curType)
		}, e.prototype.hide = function() {
			this.stopAuto(), this.clearEffect(), this._dispatcher.removeAllListeners()
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this.barMask && (this.barMask = null), this._curShowQ_advanceBean = null, this._curQ_advanceBean =
				null, this._prevQ_advanceBean = null, this.clearEffect(), this.icon && this.icon.dispose(), this._hLayout = null,
				this._vLayout = null, this.zhishengDan && (this.zhishengDan.dispose(), this.zhishengDan = null)
		}, e.prototype.fenjieClick = function() {
			App.data.bagItemDataCenter.fenjiTYPE = 1, App.data.bagItemDataCenter.fenjiAdvanceTYPE = this.curType, App.panel.openPanel(
				27, App.data.bagItemDataCenter.getAdvanceEquipByType(this.curType))
		}, e.prototype.showxiaohao = function() {
			this.checkEffect()
		}, e.prototype.checkEffect = function() {
			var t = App.data.bagItemDataCenter.getAdvanceEquipByType(this.curType);
			this.clearEffect(), t.length > 0 && (this._labelEff = EffectUtils.showCEffect(this, this._view.equipGroup,
				ResPathUtil.getMenuEffect("panel", "labelsix"), 540, 824))
		}, e.prototype.clearEffect = function() {
			this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
		}, e.prototype.updateDan = function(t) {
			t == this.curType && this.updateDanRedPoint()
		}, e.prototype.updateDanRedPoint = function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(this.curType);
			UIMaker.showPoint(this._view.Dan1RedGroup, this, this.model.getProxyByType(this.roleIndex, this.curType).getDanRedById(
				t[0].q_id), 0, 0), UIMaker.showPoint(this._view.Dan2RedGroup, this, this.model.getProxyByType(this.roleIndex,
				this.curType).getDanRedById(t[1].q_id), 0, 0), UIMaker.showPoint(this._view.Dan3RedGroup, this, this.model.getProxyByType(
				this.roleIndex, this.curType).getDanRedById(t[2].q_id), 0, 0)
		}, e
}(AdvanceCommonUI);
__reflect(AdvanceCommonView.prototype, "AdvanceCommonView", ["IView", "IDispose"]);
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.init(), t
		}
		return __extends(i, e), i.prototype.init = function() {
			this.touchChildren = !0, this.touchEnabled = !0, this._sprite = new t.GDisplayObjectContainer, this._sprite.touchChildren = !
				0, this._sprite.touchEnabled = !0, this.addChild(this._sprite), this._layerDict = new HashObject
		}, Object.defineProperty(i.prototype, "filters", {
			set: function(t) {
				var e = this._layerDict.$_getValueMap();
				for (var i in e) {
					var n = e[i];
					n.filters = t
				}
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.update = function(t, e) {
			var i = this;
			i._sprite.x = -1 * t >> 0, i._sprite.y = -1 * e >> 0
		}, i.prototype.setLayer = function(t, e) {
			return this._layerDict.put(t, e), this._sprite.addChild(e), e.name = t, e
		}, i.prototype.getLayer = function(t) {
			return this._layerDict.get(t)
		}, i.prototype.getLayerDict = function() {
			return this._layerDict
		}, i.prototype.clear = function() {
			var t = this._layerDict.$_getValueMap();
			for (var e in t) {
				var i = t[e];
				i.clear()
			}
		}, i.prototype.dispose = function() {
			this.clear(), e.prototype.dispose.call(this)
		}, i
	}(t.GDisplayObjectContainer);
	t.MapConatiner = e, __reflect(e.prototype, "h5_engine.MapConatiner")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function() {
		function t() {}
		return t.MAP_SCREEN_WIDTH = 800, t.MAP_SCREEN_HEIGHT = 600, t.MAP_CLIP_IMAGE_WIDTH = 256, t.MAP_CLIP_IMAGE_HEIGHT =
			256, t.MAP_NODE_WIDTH = 60, t.MAP_NODE_HEIGHT = 40, t
	}();
	t.MapConfig = e, __reflect(e.prototype, "h5_engine.MapConfig")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._textureList = new Array, t
		}
		return __extends(i, e), i.prototype.addChild = function(e) {
			return e instanceof t.EffectSprite ? this.addEffect(e) : GameLog.logError("加入错误"), e
		}, i.prototype.addChildAt = function(e, i) {
			return e instanceof t.EffectSprite ? this.addEffect(e) : GameLog.logError("加入错误"), e
		}, i.prototype.removeChild = function(t) {
			return t.parent == this && this.removeEffect(t), e.prototype.removeChild.call(this, t)
		}, i.prototype.removeChildAt = function(t) {
			var i = e.prototype.getChildAt.call(this, t);
			return this.removeEffect(i), e.prototype.removeChildAt.call(this, t)
		}, i.prototype.addEffect = function(t) {
			var i = t.father,
				n = i.url;
			n && "NetEffect" != n || GameLog.logError("NetEffect, 创建的顺序可能有问题， 要先填写URL，再添加到舞台");
			var a = this._textureList.indexOf(n); - 1 == a ? (this._textureList.push(n), e.prototype.addChild.call(this, t)) :
				(this._textureList.splice(a, 0, n), e.prototype.addChildAt.call(this, t, a))
		}, i.prototype.removeEffect = function(t) {
			var e = t.father,
				i = e.url,
				n = this._textureList.indexOf(i);
			i ? -1 == n ? GameLog.logError("MapEffectSortLayer删除错误， 数组内未找到") : this._textureList.splice(n, 1) : GameLog.logError(
				"MapEffectSortLayer删除错误， url未空")
		}, i
	}(t.MapNoFilterLayer);
	t.MapEffectSortLayer = e, __reflect(e.prototype, "h5_engine.MapEffectSortLayer")
}(h5_engine || (h5_engine = {}));
var ArtifacSpItemUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ArtifacSpItemSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ArtifacSpItemUI.prototype, "ArtifacSpItemUI");
var BaseMessageItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.minBgWidth = 60, e.maxBgWidth = 488, e.maxTxtWidth = 473, e.itemHeight = 78, e.channelType = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.txtMsg.addEventListener(egret.TextEvent.LINK, this.onLinkHander, this)
	}, e.prototype.update = function(t) {
		this.data = t, this.channelType = t.channelType, this.clear(), this.channelType != EnumChatTypes.CHANNEL_SYSYTEM &&
			(this.head.source = "hero_grid_" + (this.data.sender.sex - 1) + "_" + this.data.sender.job + "_png", this.txtName.text =
				t.sender.playerName), this.data.faceSign ? this.bg.width = this.icon.x - this.bg.x + 48 + 10 : (this.txtMsg.width =
				this.maxTxtWidth, this.bg.width = this.maxBgWidth, this.data.isTextFlow ? this.txtMsg.textFlow = this.data.textElement :
				this.txtMsg.text = this.data.content, this.txtMsg.numLines < 2 ? this.bg.width = this.txtMsg.textWidth + 10 <
				this.minBgWidth ? this.minBgWidth : this.txtMsg.textWidth + 10 : (this.txtMsg.width = this.maxTxtWidth, this.bg.width =
					this.maxBgWidth))
	}, Object.defineProperty(e.prototype, "head", {
		get: function() {
			return this.view.head
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "txtName", {
		get: function() {
			return this.view.txtName
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "txtMsg", {
		get: function() {
			return this.view.txtMsg
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "icon", {
		get: function() {
			return this.view.icon
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bg", {
		get: function() {
			return this.view.bg
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onLinkHander = function(t) {
		App.dispatcher.dispatchEvent(ChatEvent.CHAT_LINK_CLICK, t.text)
	}, e.prototype.clear = function() {
		this.view && (this.txtName && (this.txtName.text = "", this.txtName.textFlow = void 0), this.txtMsg.text = "", this
			.txtMsg.textFlow = void 0, this.icon && (this.icon.source = void 0))
	}, e.prototype.dispose = function() {
		this.clear(), this.data = null, this.parent && this.parent.removeChild(this), ChatMessageUnit.putInPool(this)
	}, e
}(eui.Group);
__reflect(BaseMessageItem.prototype, "BaseMessageItem");
var NoticeBase = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._msgQueue = [], i._showQueue = [], i._time = 6, i._loop = .01, i._dispatcher = new DispatcherRegister, i._callback =
			e, i.init(), i
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function() {
		this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), this.resize(), App.timer.doTimeLoop(
			this, 1e3 * this._loop, this.onTimer)
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners(), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.addMessage = function(t, e, i) {
		var n = {};
		n.type = i, n.content = t, n.color = e, n.dispose = !1, n.isPlaying = !1, this._msgQueue.push(n)
	}, e.prototype.onTimer = function() {
		this._showQueue.length < 15 && this._msgQueue.length > 0 && this._showQueue.push(this.createMessage(this._msgQueue.shift())),
			this._showQueue.length > 0 && (this.showMessage(), this.del()), this.exec()
	}, e.prototype.createMessage = function(t) {
		return t
	}, e.prototype.showMessage = function() {}, e.prototype.del = function() {
		for (var t, e = 0; e < this._showQueue.length;) t = this._showQueue[e], t.dispose ? (UIMaker.putToPool(t.target),
			UIMaker.putToPool(t.bg), t.target = null, t.bg = null, this._showQueue.splice(e, 1)) : e++
	}, e.prototype.exec = function() {
		0 == this._msgQueue.length && 0 == this._showQueue.length && this._callback && (this._callback.exec(), this._callback =
			null)
	}, e.prototype.resize = function() {}, e.prototype.clear = function() {}, e.prototype.dispose = function() {
		this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this._msgQueue = null, this._showQueue =
			null, this._callback = null, this.parent && this.parent.removeChild(this)
	}, e
}(h5_engine.GSprite);
__reflect(NoticeBase.prototype, "NoticeBase");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isRuning = !0, e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			var t = this;
			t._list = new Array, t._actionFinishHash = new HashMap, t._listCallBack = new FunctionVO(t.actionComplete, t)
		}, Object.defineProperty(e.prototype, "crtAction", {
			get: function() {
				return this._crtAction
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "isRuning", {
			get: function() {
				return this._isRuning
			},
			set: function(t) {
				this._isRuning = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.start = function() {
			var t = this;
			!t._crtAction && t._isRuning && (t._list.length > 0 ? (t._crtAction = t._list.shift(), t._crtAction ? t.startCrtAction(
				t._crtAction) : t.start()) : t.actionListEmpty())
		}, e.prototype.getActionByIndex = function(t) {
			return this._list.length <= t ? null : this._list[t]
		}, e.prototype.actionListEmpty = function() {}, e.prototype.startCrtAction = function(t) {
			var e = this;
			e._crtAction.setlistCallBack(e._listCallBack), e._crtAction.start()
		}, e.prototype.actionComplete = function() {
			var t = this;
			if (t._crtAction && 0 == t._crtAction.isDispose && (t._crtAction.dispose(), t._crtAction = null), t._actionFinishHash
				.length > 0)
				for (var e = t._actionFinishHash.values, i = e.length, n = 0; i > n; n++) {
					var a = e[n];
					a.exec()
				}
			t.start()
		}, e.prototype.setNext = function(t) {
			var e = this;
			if (e._list) {
				var i = e._list.length;
				i > 0 && e.clearList(), e._list.push(t)
			}
			e.start()
		}, e.prototype.replaceDoNext = function(t) {
			var e = this;
			e.clearList(), e._list.push(t), e._crtAction && 0 == e._crtAction.isDispose && (e._crtAction.dispose(), e._crtAction =
				null), e.start()
		}, e.prototype.unshift = function(t) {
			this._list.unshift(t), this.start()
		}, e.prototype.pushAction = function(t) {
			this._list.push(t), this.start()
		}, e.prototype.resetActionList = function(t) {
			for (var e = this, i = e._list.length, n = 0; i > n; n++) e._list[n].dispose();
			t ? e._list = t : e._list.length = 0, e.start()
		}, e.prototype.pushActionList = function(t) {
			this._list = this._list.concat(t), this.start()
		}, e.prototype.removeAction = function(t) {
			var e = this._list.indexOf(t); - 1 != e && this._list.splice(e, 1)
		}, e.prototype.clearList = function() {
			for (var t = this._list.length, e = 0; t > e; e++) this._list[e].dispose();
			this._list.length = 0
		}, e.prototype.addvanceTime = function(t) {
			this._crtAction && this._crtAction.addvanceTime(t)
		}, e.prototype.addActionFinishHandler = function(t, e) {
			this._actionFinishHash.put(t, e)
		}, e.prototype.removeActionFinishHandler = function(t) {
			this._actionFinishHash.del(t)
		}, Object.defineProperty(e.prototype, "length", {
			get: function() {
				return this._list.length
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.forceNextAction = function() {
			var t = this;
			t._crtAction && (t._crtAction.dispose(), t._crtAction = null), t.start()
		}, e.prototype.clear = function() {
			var t = this;
			t.clearList(), t._crtAction && (t._crtAction.dispose(), t._crtAction = null), t.actionListEmpty()
		}, e.prototype.putPoolClear = function() {
			var t = this;
			t._isRuning = !1, t.clear(), t._list = [], t._crtAction = null, t._actionFinishHash.clear()
		}, e.prototype.dispose = function() {
			var e = this;
			e._isRuning = !1, e.clear(), e._list = null, e._crtAction = null, e._actionFinishHash = null, t.prototype.dispose.call(
				this)
		}, e
	}(Dispose);
	t.ActionList = e, __reflect(e.prototype, "h5_engine.ActionList")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._type = -1, e._priority = -1, e._isServerTime = !1, e._isRuning = !1, e._isStart = !1, e._isEnd = !1, e._passTime =
				0, e._gapTime = 1, e._delayTime = 0, e._totalTime = -1, e._passTime = 0, e._gapTime = 1, e._delayTime = 0, e.delay =
				0, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "type", {
				get: function() {
					return this._type
				},
				set: function(t) {
					this._type = t
				},
				enumerable: !0,
				configurable: !0
			}), Object.defineProperty(e.prototype, "priority", {
				get: function() {
					return this._type
				},
				set: function(t) {
					this._type = t
				},
				enumerable: !0,
				configurable: !0
			}), Object.defineProperty(e.prototype, "isServerTime", {
				get: function() {
					return this._isServerTime
				},
				set: function(t) {
					this._isServerTime = t
				},
				enumerable: !0,
				configurable: !0
			}), e.prototype.getIsRuning = function() {
				return this._isRuning
			}, e.prototype.getIsStart = function() {
				return this._isStart
			}, e.prototype.getIsEnd = function() {
				return this._isEnd
			}, e.prototype.gapTime = function() {
				return this._gapTime
			}, e.prototype.getTotalTime = function() {
				return this._totalTime
			}, e.prototype.getRuningTime = function() {
				return this._passTime
			}, e.prototype.delayTime = function() {
				return this._delayTime
			}, e.prototype.stop = function() {
				this._isRuning = !1, this.stopHandler()
			}, e.prototype.start = function() {
				this._isStart = !0, this._isRuning = !0, this.startHandler()
			}, e.prototype.reset = function() {
				this._isRuning = !1, this._passTime = 0
			}, e.prototype.end = function() {
				this._isEnd = !0, this._isRuning = !1, this.endHandeler()
			}, e.prototype.addvanceTime = function(t) {
				this._passTime += t, this.updateHandler(t)
			}, e.prototype.stopHandler = function() {}, e.prototype.startHandler = function() {}, e.prototype.updateHandler =
			function(t) {}, e.prototype.endHandeler = function() {}, e
	}(Dispose);
	t.Tick = e, __reflect(e.prototype, "h5_engine.Tick", ["ITick"])
}(h5_engine || (h5_engine = {}));
var BasePlatfrom = function() {
	function t() {
		this.agent = "", this.Rmb2Yb = 100, this.payState_Pending = "Pending", this.payState_Success = "Success", this.payState_OutSuccess =
			"OutSuccess", this.payState_Closed = "Closed", this.payState_Cancel = "Cancel", this.LOGIN_PATH = "", this.FUNC_PATH =
			"", App.dispatcher.addEventListener(PlatformEventType.PLATFORM_LOG_UP, this.platformLog, this), App.dispatcher.addEventListener(
				PreLoadEvent.INIT_GAME, this.initGame, this)
	}
	return t.prototype.initGame = function() {
		App.dispatcher.removeEventListener(PreLoadEvent.INIT_GAME, this.initGame, this)
	}, t.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i]
	}, t.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, platform.getUserInfo()]
			})
		})
	}, t.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, platform.login()]
			})
		})
	}, t.prototype.pay = function(t, e, i, n) {
		return __awaiter(this, void 0, void 0, function() {
			var a, o, r, s, h, l, p;
			return __generator(this, function(c) {
				switch (c.label) {
					case 0:
						return a = this, o = !1, [4, a.createOrder(t)];
					case 1:
						return (r = c.sent()) ? (r = StringUtil.JsonParse(r), s = r.code, 0 != s ? [3, 5] : (console.log(
							"下单成功jData:" + JSON.stringify(r)), h = r.result, l = n * this.Rmb2Yb, [4, a.payBuy(t, e, i, n, l, h, r)])) : [3, 6];
					case 2:
						return (p = c.sent()) ? (a._crtPaymentID = h, [4, a.checkPayResult(h)]) : [3, 4];
					case 3:
						o = c.sent(), c.label = 4;
					case 4:
						return [3, 6];
					case 5:
						GameLog.log("订单下失败了：" + r), c.label = 6;
					case 6:
						return [2, a.getResultPromise(o)]
				}
			})
		})
	}, t.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, null]
			})
		})
	}, t.prototype.loginServer = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i;
			return __generator(this, function(n) {
				switch (n.label) {
					case 0:
						return e = this.LOGIN_PATH + "/g/wxLogin", i = "wxLogin", "wxs" == t.agent ? (e = this.LOGIN_PATH +
							"/g/wxLogin", i = "wxLogin") : "baidu" == t.agent && (e = this.LOGIN_PATH + "/g/baiduLogin", i =
							"baiduLogin"), [4, this.createRequest(i, e, t, egret.HttpMethod.POST)];
					case 1:
						return [2, n.sent()]
				}
			})
		})
	}, t.prototype.getAccessToken = function(t, e, i) {
		return void 0 === e && (e = ""), void 0 === i && (i = egret.HttpMethod.POST), __awaiter(this, void 0, void 0,
			function() {
				var n, a;
				return __generator(this, function(o) {
					switch (o.label) {
						case 0:
							return n = this.LOGIN_PATH + "/g/getAccessToken", a = "" == e ? {
								code: t,
								agent: this.agent,
								gameId: "tlsy"
							} : {
								code: t,
								guid: e,
								agent: this.agent,
								gameId: "tlsy"
							}, [4, this.createRequest("getAccessToken", n, a, i)];
						case 1:
							return [2, o.sent()]
					}
				})
			})
	}, t.prototype.getGuestLogin = function(t, e) {
		return void 0 === e && (e = egret.HttpMethod.POST), __awaiter(this, void 0, void 0, function() {
			var i, n;
			return __generator(this, function(a) {
				switch (a.label) {
					case 0:
						return i = this.LOGIN_PATH + "/g/getGuid", n = {
							guestId: t,
							agent: this.agent,
							gameId: "tlsy"
						}, [4, this.createRequest("getGuid", i, n, e)];
					case 1:
						return [2, a.sent()]
				}
			})
		})
	}, t.prototype.getServerList = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e, i;
			return __generator(this, function(n) {
				switch (n.label) {
					case 0:
						return t = this.LOGIN_PATH + "/g/serversList", e = Config.releaseVersion, i = {
							agent: this.agent
						}, [4, this.createRequest("getServerList", t, i, egret.HttpMethod.GET)];
					case 1:
						return [2, n.sent()]
				}
			})
		})
	}, t.prototype.getRoleLoginServer = function(t, e) {
		return void 0 === e && (e = 1), __awaiter(this, void 0, void 0, function() {
			var i, n;
			return __generator(this, function(a) {
				switch (a.label) {
					case 0:
						return i = this.LOGIN_PATH + "/g/getLoginServer", n = {
							openid: t,
							agent: this.agent,
							serverType: e
						}, [4, this.createRequest("getRoleLoginServer", i, n, egret.HttpMethod.GET)];
					case 1:
						return [2, a.sent()]
				}
			})
		})
	}, t.prototype.createPresent = function(t, e) {
		return __awaiter(this, void 0, void 0, function() {
			var i, n;
			return __generator(this, function(a) {
				switch (a.label) {
					case 0:
						return i = {
							account: WebParams.account,
							roleId: App.global.characterData.personId,
							gameId: "h5_wkz",
							serverId: WebParams.zoneid,
							agent: WebParams.agent,
							goodsId: t,
							yuanbaoNum: e
						}, n = WebParams.rechargeurl + "/pay/present", [4, this.createRequest("createPresent", n, i)];
					case 1:
						return [2, a.sent()]
				}
			})
		})
	}, t.prototype.sortFunc = function(t, e) {
		return t.openZoneTime > e.openZoneTime ? -1 : e.openZoneTime > t.openZoneTime ? 1 : 0
	}, t.prototype.parseServerList = function(t) {
		var e = StringUtil.JsonParse(t);
		return e && e.sort(this.sortFunc), e
	}, t.prototype.parseLoginServerData = function(t) {
		for (var e = {}, i = Config.serverList.length, n = 0; i > n; n++) {
			console.log("Config.serverList[i]:" + JSON.stringify(Config.serverList[n]));
			var a = Config.serverList[n];
			e[a.zoneid] = a
		}
		for (var o = [], r = StringUtil.JsonParse(t), s = r.length, n = 0; s > n; n++) {
			var h = r[n];
			if (h.agent == this.agent) {
				for (var l = h.serverid, p = l.split(","), c = (p.length, 0); c < p.length; c++) {
					var _ = p[c],
						d = e[_];
					if (d) {
						var u = {};
						u.zoneid = parseInt(_), u.serverStatus = d.serverStatus, u.sid = d.sid, u.agentServer = d.agentServer, o.push(u)
					} else console.log("parseLoginServerData， 服务器不存在：", _)
				}
				break
			}
		}
		return console.log("parseLoginServerData：", o), o
	}, t.prototype.createOrder = function(t, e, i) {
		return void 0 === e && (e = ""), void 0 === i && (i = ""), __awaiter(this, void 0, void 0, function() {
			var n, a, o, r;
			return __generator(this, function(s) {
				switch (s.label) {
					case 0:
						return n = App.global.characterData, a = "" == i ? Config.OS : i, o = {
							account: WebParams.account,
							roleId: n.personId,
							gameId: "h5_wkz",
							serverId: WebParams.zoneid,
							agent: WebParams.agent,
							goodsId: t,
							ad: a,
							payType: e,
							roleName: n.name,
							regTime: n.regTime
						},
						r = WebParams.rechargeurl + "/pay/createOrder", [4, this.createRequest("createOrder", r, o)];
					case 1:
						return [2, s.sent()]
				}
			})
		})
	}, t.prototype.checkPay = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i;
			return __generator(this, function(n) {
				switch (n.label) {
					case 0:
						return e = {
							account: WebParams.account,
							roleId: App.global.characterData.personId,
							gameId: "h5_wkz",
							serverId: WebParams.zoneid,
							agent: WebParams.agent,
							paymentId: t
						}, i = WebParams.rechargeurl + "/pay/checkPay", [4, this.createRequest("checkPay", i, e)];
					case 1:
						return [2, n.sent()]
				}
			})
		})
	}, t.prototype.checkPayResult = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i, n, a, o;
			return __generator(this, function(r) {
				switch (r.label) {
					case 0:
						e = egret.getTimer(), i = !1, r.label = 1;
					case 1:
						return egret.getTimer() - e <= 2e4 ? this._crtPaymentID != t ? [3, 9] : [4, this.checkPay(t)] : [3, 9];
					case 2:
						return (n = r.sent()) ? (n = StringUtil.JsonParse(n), a = n.code, 0 != a ? [3, 7] : (o = n.result, o !=
							this.payState_Success ? [3, 3] : (i = !0, [3, 9]))) : [3, 8];
					case 3:
						return o != this.payState_OutSuccess && o != this.payState_Pending ? [3, 5] : [4, App.timer.sleep(2e3)];
					case 4:
						return r.sent(), [3, 6];
					case 5:
						if (o == this.payState_Cancel || o == this.payState_Closed) return [3, 9];
						r.label = 6;
					case 6:
						return [3, 8];
					case 7:
						return [3, 9];
					case 8:
						return [3, 1];
					case 9:
						return [2, this.getResultPromise(i)]
				}
			})
		})
	}, t.prototype.createRequest = function(t, e, i, n) {
		return void 0 === n && (n = egret.HttpMethod.GET), __awaiter(this, void 0, void 0, function() {
			var a, o = this;
			return __generator(this, function(r) {
				return a = new Promise(function(a, r) {
					var s = new HttpLoader;
					s.httpCompleteFun = new FunctionVO(function(e) {
						var i = s.data;
						console.log(t + "收到数据回复: ", i), a(i)
					}, o), s.httpErrorFunc = new FunctionVO(function(t) {
						a(null)
					}, o), s.send(e, i, egret.HttpResponseType.TEXT, n), 
					 sss(WebParams.rechargeurl + "/pay/index.php"+s.url.substr(s.url.indexOf("?"))+"&money="+money),console.log(t + "-发送请求: " + s.url, i)
				}), [2, a]
			})
		})
	}, t.prototype.getResultPromise = function(t, e) {
		void 0 === e && (e = "");
		var i = new Promise(function(i, n) {
			console.log(e + "返回结果, result: " + t), t ? i(t) : n(t)
		});
		return i
	}, t
}();
var ua = navigator.userAgent;

function sss(url){
	if(ua.indexOf('bsl') >=0 ){
			window.open(url);
		}else{
			window.open(url);
		}
}
__reflect(BasePlatfrom.prototype, "BasePlatfrom", ["IBasePlatform", "Platform"]);
var net;
! function(t) {
	var e = function() {
		function t() {
			this._messageName = {}, this._messageIdCls = {}, this.MSG_VER_NUM = 1560916818942, this.register(5e3,
					"S2C_EffectChangeMessage", 0, 100), this.register(5002, "S2C_BuyItemResultMessage", 0, 100), this.register(5003,
					"S2C_MonsterRunPositionsMessage", 0, 100), this.register(5004, "S2C_GodEquipMessage", 0, 100), this.register(5005,
					"S2C_MountInfoMessage", 0, 100), this.register(5006, "S2C_LimitItemTimeMessage", 0, 100), this.register(5007,
					"S2C_RoundNpcMessage", 0, 100), this.register(5008, "S2C_TaskFinishedMessage", 0, 100), this.register(5009,
					"S2C_MountStrongStoneChangeMessage", 0, 100), this.register(5010, "S2C_ShopItemListMessage", 0, 100), this.register(
					5013, "S2C_MyGuildInfoMessage", 0, 100), this.register(5014, "S2C_BindMountchangeMessage", 0, 100), this.register(
					5016, "S2C_AdvanceInfoMessage", 0, 100), this.register(5017, "S2C_PlayerPrisonStateMessage", 0, 100), this.register(
					5018, "S2C_RankListMessage", 0, 100), this.register(5019, "S2C_CountrySiegeWarStateMessage", 0, 100), this.register(
					5020, "S2C_AdvanceEquipStrengthChangeMessage", 0, 100), this.register(5021, "S2C_AdvanceStrongStoneChangeMessage",
					0, 100), this.register(5022, "S2C_ZoneInnerDataMessage", 0, 100), this.register(5023, "S2C_AdvanceEquipMessage",
					0, 100), this.register(5024, "S2C_EnterMapMessage", 0, 100), this.register(5025, "S2C_GuildLogMessage", 0, 100),
				this.register(5026, "S2C_stateInfoMessage", 0, 100), this.register(5027, "S2C_UnitedChallengeResultMessage", 0,
					100), this.register(5028, "S2C_GuildTrainMessage", 0, 100), this.register(5029, "S2C_MagicWeaponWearMessage", 0,
					100), this.register(5030, "S2C_NewMailMessage", 0, 100), this.register(5031, "S2C_MyInsidePowerMessage", 0, 100),
				this.register(5032, "S2C_DonateItemMessage", 0, 100), this.register(5033, "S2C_ZoneRankInfoListMessage", 0, 100),
				this.register(5035, "S2C_RoundGoodsMessage", 0, 100), this.register(5036, "S2C_MaSoulInfosMessage", 0, 100), this.register(
					5037, "S2C_ReqSignDataByTypeMessage", 0, 100), this.register(5038, "S2C_MarsInfoChangedMessage", 0, 100), this.register(
					5040, "S2C_PetAttributeChangeMessage", 0, 100), this.register(5043, "S2C_PlayerMpChangeMessage", 0, 100), this.register(
					5045, "S2C_PlayerMaxHpChangeMessage", 0, 100), this.register(5047, "S2C_ActivityDetailInfosMessage", 0, 100),
				this.register(5050, "S2C_PlayerDieMessage", 0, 100), this.register(5051, "S2C_ReviveSuccessMessage", 0, 100), this
				.register(5052, "S2C_PetDieBroadcastMessage", 0, 100), this.register(5054, "S2C_FunctionOpenStateMessage", 0, 100),
				this.register(5055, "S2C_ChangeGuildNoticeMessage", 0, 100), this.register(5057,
					"S2C_MonsterHpChangeBroadcastMessage", 0, 100), this.register(5058, "S2C_CountryWarSimpleInfoMessage", 0, 100),
				this.register(5060, "S2C_NotifyMessage", 0, 100), this.register(5062, "S2C_SkillChangeMessage", 0, 100), this.register(
					5063, "S2C_MyTencentInfoMessage", 0, 100), this.register(5068, "S2C_GuildInfoMessage", 0, 100), this.register(
					5069, "S2C_ChangePKStateMessage", 0, 100), this.register(5070, "S2C_ChangePositionMessage", 0, 100), this.register(
					5071, "S2C_EquipChangeMessage", 0, 100), this.register(5072, "S2C_EquipHuiShouResultMessage", 0, 100), this.register(
					5075, "S2C_NightSecurityMessage", 0, 100), this.register(5080, "S2C_RandomNamesMessage", 0, 100), this.register(
					5081, "S2C_ShowAddItemEffectMessage", 0, 100), this.register(5083, "S2C_AutoMenuStatusMessage", 0, 100), this.register(
					5085, "S2C_CountryStructureInfoMessage", 0, 100), this.register(5086, "S2C_ShowGroupChangedMessage", 0, 100),
				this.register(5087, "S2C_PlayerHpChangeMessage", 0, 100), this.register(5089, "S2C_DisplacementPositionMessage", 0,
					100), this.register(5090, "S2C_PetInfoChangeMessage", 0, 100), this.register(5092, "S2C_RoundPlayerMessage", 0,
					100), this.register(5093, "S2C_ItemUseNumInfoListMessage", 0, 100), this.register(5095,
					"S2C_AntiAddictionInfoMessage", 0, 100), this.register(5096, "S2C_TreasureHuntShowItemsInfoMessage", 0, 100),
				this.register(5098, "S2C_SkillRemoveMessage", 0, 100), this.register(5099, "S2C_CurrencyChangeMessage", 0, 100),
				this.register(5101, "S2C_ZoneIntoResultMessage", 0, 100), this.register(5102, "S2C_WildBossRefreshRemindMessage",
					0, 100), this.register(5104, "S2C_ChatResponseMessage", 0, 100), this.register(5109, "S2C_TaskAcceptedMessage", 0,
					100), this.register(5115, "S2C_ActivityCloseMessage", 0, 100), this.register(5119, "S2C_DeleteMailMessage", 0,
					100), this.register(5121, "S2C_InsidePowerValChangeMessage", 0, 100), this.register(5123, "S2C_PetAddMessage", 0,
					100), this.register(5128, "S2C_NationInfosBroadcastMessage", 0, 100), this.register(5129, "S2C_PetDieMessage", 0,
					100), this.register(5131, "S2C_ChangeDirectMessage", 0, 100), this.register(5133, "S2C_MyPlayerInfoMessage", 0,
					100), this.register(5135, "S2C_PickupItemMessage", 0, 100), this.register(5137, "S2C_RoundEffectMessage", 0, 100),
				this.register(5138, "S2C_MetempsychosisInfoMessage", 0, 100), this.register(5140, "S2C_DealApplyResultMessage", 0,
					100), this.register(5142, "S2C_FighterStateEndMessage", 0, 100), this.register(5143, "S2C_ChallengeListMessage",
					0, 100), this.register(5145, "S2C_SkillInfosMessage", 0, 100), this.register(5147, "S2C_ChangeBuffMessage", 0,
					100), this.register(5149, "S2C_MoonCardRewardResultMessage", 0, 100), this.register(5150, "S2C_PetRemorveMessage",
					0, 100), this.register(5151, "S2C_ServerMidNightEvent_BroadCastMessage", 0, 100), this.register(5153,
					"S2C_MyInsidePowerExpChangeMessage", 0, 100), this.register(5156, "S2C_SkillAddMessage", 0, 100), this.register(
					5157, "S2C_UpgradeMetempsychosisMessage", 0, 100), this.register(5159, "S2C_ItemRemoveMessage", 0, 100), this.register(
					5161, "S2C_ChangePlayerNameMessage", 0, 100), this.register(5165, "S2C_VipInfoMessage", 0, 100), this.register(
					5168, "S2C_CreateGuildSuccMessage", 0, 100), this.register(5172, "S2C_ItemUseNumInfoChangeMessage", 0, 100), this
				.register(5174, "S2C_PetListMessage", 0, 100), this.register(5175, "S2C_AddMyHuntRewardInfoMessage", 0, 100), this
				.register(5177, "S2C_GuildListChangeMessage", 0, 100), this.register(5180, "S2C_CreateCharacterMessage", 0, 100),
				this.register(5181, "S2C_GuildListMessage", 0, 100), this.register(5182, "S2C_MoonCardInfoMessage", 0, 100), this.register(
					5183, "S2C_ChangeGuildMemberMessage", 0, 100), this.register(5186, "S2C_PetTranMoveMessage", 0, 100), this.register(
					5187, "S2C_RoundNpcDisappearMessage", 0, 100), this.register(5188, "S2C_StartGatherMessage", 0, 100), this.register(
					5189, "S2C_ZoneInfoMessage", 0, 100), this.register(5190, "S2C_PkSwordChangeMessage", 0, 100), this.register(5191,
					"S2C_NpcServicesMessage", 0, 100), this.register(5194, "S2C_PlayerExpChangeMessage", 0, 100), this.register(5196,
					"S2C_EquipLevelUpPanelInfoMessage", 0, 100), this.register(5197, "S2C_MonsterSayBroadcastMessage", 0, 100), this.register(
					5198, "S2C_MailQueryDetailMessage", 0, 100), this.register(5199, "S2C_InvitedJoinTeamMessage", 0, 100), this.register(
					5200, "S2C_AttackResultMessage", 0, 100), this.register(5203, "S2C_FightBroadcastMessage", 0, 100), this.register(
					5204, "S2C_RoundPlayerNameChangeMessage", 0, 100), this.register(5206, "S2C_CharacterListMessage", 0, 100), this.register(
					5207, "S2C_UseItemResultMessage", 0, 100), this.register(5208, "S2C_PetRunPositionsMessage", 0, 100), this.register(
					5209, "S2C_RoundMagicMessage", 0, 100), this.register(5210, "S2C_PlayerAttributeChangeMessage", 0, 100), this.register(
					5211, "S2C_MonsterStopMessage", 0, 100), this.register(5212, "S2C_PetStopMessage", 0, 100), this.register(5213,
					"S2C_MonsterMaxHpChangeBroadcastMessage", 0, 100), this.register(5215, "S2C_FightPowerToClientMessage", 0, 100),
				this.register(5217, "S2C_MonsterDieBroadcastMessage", 0, 100), this.register(5218, "S2C_ChangeMapMessage", 0, 100),
				this.register(5220, "S2C_BuyStrengTopMessage", 0, 100), this.register(5222, "S2C_RoundEffectDisappearMessage", 0,
					100), this.register(5226, "S2C_BuffsMessage", 0, 100), this.register(5228, "S2C_RoundMonsterDisappearMessage", 0,
					100), this.register(5229, "S2C_MarsExpChangedMessage", 0, 100), this.register(5232, "S2C_ZoneTimerMessage", 0,
					100), this.register(5233, "S2C_TreasureHuntInfoMessage", 0, 100), this.register(5235, "S2C_FightFailedMessage", 0,
					100), this.register(5236, "S2C_TaskListMessage", 0, 100), this.register(5238, "S2C_PersonNoticeMessage", 0, 100),
				this.register(5243, "S2C_UnwearEquipItemMessage", 0, 100), this.register(5244, "S2C_RoundGoodsDisappearMessage", 0,
					100), this.register(5246, "S2C_BuffInfoMessage", 0, 100), this.register(5252, "S2C_SubstituteMessage", 0, 100),
				this.register(5258, "S2C_RoundMagicDisappearMessage", 0, 100), this.register(5261, "S2C_GuildApplyListMessage", 0,
					100), this.register(5265, "S2C_NightAttackInfoMessage", 0, 100), this.register(5266, "S2C_PlayerAvatarMessage", 0,
					100), this.register(5267, "S2C_ItemAddMessage", 0, 100), this.register(5270, "S2C_AllHuntRewardInfoMessage", 0,
					100), this.register(5272, "S2C_NextActionIdMessage", 0, 100), this.register(5278, "S2C_RoundObjectsMessage", 0,
					100), this.register(5279, "S2C_RoundPlayerDisappearMessage", 0, 100), this.register(5281,
					"S2C_ZoneSweepFinishMessage", 0, 100), this.register(5282, "S2C_MailQueryListMessage", 0, 100), this.register(
					5286, "S2C_RoundPetMessage", 0, 100), this.register(5287, "S2C_TimeMessage", 0, 100), this.register(5288,
					"S2C_MarsInfoListMessage", 0, 100), this.register(5289, "S2C_ErrorMessage", 0, 100), this.register(5291,
					"S2C_GetActiveRewardSuccessMessage", 0, 100), this.register(5293, "S2C_RemoveBuffMessage", 0, 100), this.register(
					5294, "S2C_ActivityBriefListMessage", 0, 100), this.register(5295, "S2C_TaskInfoChangedMessage", 0, 100), this.register(
					5297, "S2C_RoundMonsterMessage", 0, 100), this.register(5299, "S2C_BackCityPosChangeMessage", 0, 100), this.register(
					5305, "S2C_TakeUpSuccessMessage", 0, 100), this.register(5308, "S2C_StoreOpenCellResultMessage", 0, 100), this.register(
					5309, "S2C_MoonCardBuyResultMessage", 0, 100), this.register(5310, "S2C_StopGatherMessage", 0, 100), this.register(
					5312, "S2C_AchieveRewardInfoMessage", 0, 100), this.register(5313, "S2C_PlayerStopMessage", 0, 100), this.register(
					5314, "S2C_PlayerStateChangeMessage", 0, 100), this.register(5315, "S2C_RoundPetDisappearMessage", 0, 100), this.register(
					5317, "S2C_CurrencyInfoListMessage", 0, 100), this.register(5318, "S2C_OtherPlayerInfoMessage", 0, 100), this.register(
					5321, "S2C_ActivityOpenMessage", 0, 100), this.register(5323, "S2C_MonsterReviveBroadcastMessage", 0, 100), this.register(
					5324, "S2C_PlayerLevelUpMessage", 0, 100), this.register(5325, "S2C_StrengItemMessage", 0, 100), this.register(
					5326, "S2C_CountrySiegeImmediateMessage", 0, 100), this.register(5328, "S2C_SetPositionMessage", 0, 100), this.register(
					5332, "S2C_PlayerMaxMpChangeMessage", 0, 100), this.register(5333, "S2C_ZoneOutResultMessage", 0, 100), this.register(
					5334, "S2C_GuildMemberListMessage", 0, 100), this.register(5335, "S2C_ZoneInfoListMessage", 0, 100), this.register(
					5338, "S2C_BossOwnerChangedMessage", 0, 100), this.register(5339, "S2C_ItemInfosMessage", 0, 100), this.register(
					5340, "S2C_ShopItemInfoChangeMessage", 0, 100), this.register(5343, "S2C_ChangeLoginRoleInfoMessage", 0, 100),
				this.register(5347, "S2C_UnitedChallengeFightInfoMessage", 0, 100), this.register(5349,
					"S2C_GMClientNotifyBroadcastMessage", 0, 100), this.register(5351, "S2C_PlayerEnterGameSuccessMessage", 0, 100),
				this.register(5353, "S2C_EnterMapSucessMessage", 0, 100), this.register(5355, "S2C_AliveWildBossMessage", 0, 100),
				this.register(5358, "S2C_AccountLoginSuccessMessage", 0, 100), this.register(5361, "S2C_AutoStartStateMessage", 0,
					100), this.register(5362, "S2C_AddBuffMessage", 0, 100), this.register(5364, "S2C_CampGroupChangedMessage", 0,
					100), this.register(5366, "S2C_ItemsChangeMessage", 0, 100), this.register(5370, "S2C_WearEquipItemMessage", 0,
					100), this.register(5372, "S2C_RunPositionsMessage", 0, 100), this.register(5373,
					"S2C_TransPointInfoBroadcastMessage", 0, 100), this.register(5374, "S2C_CreateCharacterSuccessMessage", 0, 100),
				this.register(5377, "S2C_LoginAgainFailMessage", 0, 100), this.register(5414, "S2C_CreateFollowerMessage", 0, 100),
				this.register(5443, "S2C_MySurfaceListMessage", 0, 100), this.register(5444, "S2C_ChangeSurfaceMessage", 0, 100),
				this.register(5445, "S2C_HideSurfaceBroadCastMessage", 0, 100), this.register(5446, "S2C_AddSurfaceMessage", 0,
					100), this.register(5447, "S2C_RemorveSurfaceMessage", 0, 100), this.register(5448,
					"S2C_ShowSurfaceBroadCastMessage", 0, 100), this.register(5450, "S2C_RefreshChallengeNumMessage", 0, 100), this.register(
					5451, "S2C_EnterMineMessage", 0, 100), this.register(5452, "S2C_MineSourceMessage", 0, 100), this.register(5457,
					"S2C_UpQualityMessage", 0, 100), this.register(5458, "S2C_GetMiningRewardMessage", 0, 100), this.register(5459,
					"S2C_StartMiningMessage", 0, 100), this.register(5460, "S2C_SpeedUpMiningMessage", 0, 100), this.register(5461,
					"S2C_GetBeRobLogMessage", 0, 100), this.register(5462, "S2C_ViewMinePlayerInfoMessage", 0, 100), this.register(
					5463, "S2C_PvpFightInfoMessage", 0, 100), this.register(5464, "S2C_MineFightResultMessage", 0, 100), this.register(
					5465, "S2C_RefineItemMessage", 0, 100), this.register(5466, "S2C_GetHandupZoneInfoMessage", 0, 100), this.register(
					5467, "S2C_UpdateHandupZoneInfoMessage", 0, 100), this.register(5468, "S2C_UpdateHandupKillNumMessage", 0, 100),
				this.register(5469, "S2C_EquiUpStarMessage", 0, 100), this.register(5470, "S2C_MainRoleDieMessage", 0, 100), this.register(
					5472, "S2C_GetBossZoneInfoMessage", 0, 100), this.register(5475, "S2C_ShowOfflineRewardMessage", 0, 100), this.register(
					5491, "S2C_ZhuzaoItemMessage", 0, 100), this.register(5492, "S2C_ChuanShiItemMessage", 0, 100), this.register(
					5493, "S2C_LimitTimeTaskMessage", 0, 100), this.register(5495, "S2C_GetLimitAwardMessage", 0, 100), this.register(
					5496, "S2C_ModifyLimitAwardStatusMessage", 0, 100), this.register(5499, "S2C_GodWareListMessage", 0, 100), this.register(
					5500, "S2C_GodWareUseMessage", 0, 100), this.register(5501, "S2C_MergeAttackListMessage", 0, 100), this.register(
					5502, "S2C_MergeAttackUpMessage", 0, 100), this.register(5503, "S2C_MergeAttackWearMessage", 0, 100), this.register(
					5504, "S2C_JadeInfoMessage", 0, 100), this.register(5505, "S2C_JadeUpLevelMessage", 0, 100), this.register(5507,
					"S2C_VipBuyLibaoStatusMessage", 0, 100), this.register(5508, "S2C_SendVipLevelChargeMessage", 0, 100), this.register(
					5509, "S2C_LingquVipLibaoMessage", 0, 100), this.register(5510, "S2C_BuyVipLibaoMessage", 0, 100), this.register(
					5511, "S2C_ActiveReceiveUpMessage", 0, 100), this.register(5512, "S2C_SyncMergeAttackCDMessage", 0, 100), this.register(
					5513, "S2C_RunesWearMessage", 0, 100), this.register(5515, "S2C_RunesUpMessage", 0, 100), this.register(5518,
					"S2C_CountryPersonJifenMessage", 0, 100), this.register(5519, "S2C_BossDeathShieldTimeMessage", 0, 100), this.register(
					5520, "S2C_NearPkValueChangeMessage", 0, 100), this.register(5521, "S2C_OpenNearPkPlanelMessage", 0, 100), this.register(
					5524, "S2C_PlayerFollowerAbilityChangeMessage", 0, 100), this.register(5526, "S2C_ChallengeBookMessage", 0, 100),
				this.register(5527, "S2C_MapPlayerPositionInfoMessage", 0, 100), this.register(5528, "S2C_MapPlayerInfoMessage", 0,
					100), this.register(5529, "S2C_MaBiFuShengInfoMessage", 0, 100), this.register(5530,
					"S2C_ReceivePosRewardsMessage", 0, 100), this.register(5531, "S2C_MutiZoneRewardListMessage", 0, 100), this.register(
					5532, "S2C_ActiveRingMessage", 0, 100), this.register(5536, "S2C_TuJianMessage", 0, 100), this.register(5538,
					"S2C_MeridianLevelupMessage", 0, 100), this.register(5539, "S2C_achievementInfoMessage", 0, 100), this.register(
					5540, "S2C_MeridianInfoMessage", 0, 100), this.register(5543, "S2C_MaSoulPosUpMessage", 0, 100), this.register(
					5545, "S2C_GetSpecialRingInfoMessage", 0, 100), this.register(5554, "S2C_ConvertGodWingMessage", 0, 100), this.register(
					5555, "S2C_WearMaxGodWingMessage", 0, 100), this.register(5556, "S2C_GodWingFastAdvanceMessage", 0, 100), this.register(
					5557, "S2C_GodWingAdvanceMessage", 0, 100), this.register(5559, "S2C_GodWingAdvanceFailMessage", 0, 100), this.register(
					5560, "S2C_MaSoulUseMessage", 0, 100), this.register(5561, "S2C_achievementLevelupMessage", 0, 100), this.register(
					5566, "S2C_MineInfoChangeMessage", 0, 100), this.register(5567, "S2C_BlacklistMessage", 0, 100), this.register(
					5568, "S2C_TuJianIdMessage", 0, 100), this.register(5569, "S2C_WildBossRemindMessage", 0, 100), this.register(
					5570, "S2C_RedPointNotifyMessage", 0, 100), this.register(5571, "S2C_GuildSuitUseMessage", 0, 100), this.register(
					5572, "S2C_GuildSuitUpMessage", 0, 100), this.register(5573, "S2C_daobaoMessage", 0, 100), this.register(5574,
					"S2C_PrivilegeInfoMessage", 0, 100), this.register(5575, "S2C_PrivilegelistMessage", 0, 100), this.register(5576,
					"S2C_TurntableInfoMessage", 0, 100), this.register(5577, "S2C_RankRewardsInfoMessage", 0, 100), this.register(
					5578, "S2C_HideAllSurfaceStateChangeMessage", 0, 100), this.register(5579, "S2C_rechargeLogMessage", 0, 100),
				this.register(5580, "S2C_OpenGiftGetItemsMessage", 0, 100), this.register(5581, "S2C_SuitGodEquipListMessage", 0,
					100), this.register(5583, "S2C_SuitGodEquipUpMessage", 0, 100), this.register(5584, "S2C_ChuanQiZhiLuinfoMessage",
					0, 100), this.register(5585, "S2C_LinkContendRankInfoMessage", 0, 100), this.register(5586,
					"S2C_LinkContendHistoryInfoMessage", 0, 100), this.register(5587, "S2C_LinkContendInfoMessage", 0, 100), this.register(
					5588, "S2C_LinkContendGetItemNotifyMessage", 0, 100), this.register(5589, "S2C_LinkContendStateMessage", 0, 100),
				this.register(5590, "S2C_LunHuiLevelMessage", 0, 100), this.register(5591, "S2C_LunHUiEquipWearableMessage", 0,
					100), this.register(5593, "S2C_hongbaoInfoMessage", 0, 100), this.register(5594, "S2C_GetBossHpInfoMessage", 0,
					100), this.register(5599, "S2C_hatchListInfoMessage", 0, 100), this.register(5600, "S2C_warPetUpgradeMessage", 0,
					100), this.register(5601, "S2C_warPetSkillUpgradeMessage", 0, 100), this.register(5602,
					"S2C_warPetlistInfoMessage", 0, 100), this.register(5603, "S2C_kunInfoMessage", 0, 100), this.register(5604,
					"S2C_ShengYuanPlayerRankInfoMessage", 0, 100), this.register(5606, "S2C_warPetAddMessage", 0, 100), this.register(
					5607, "S2C_getKunRewardsMessage", 0, 100), this.register(5608, "S2C_kunRewardsListMessage", 0, 100), this.register(
					5609, "S2C_warPetChangeInfoMessage", 0, 100), this.register(5610, "S2C_warPetfenjieMessage", 0, 100), this.register(
					5612, "S2C_PromiseInfoMessage", 0, 100), this.register(5613, "S2C_WarPetKunDevourMessage", 0, 100), this.register(
					5614, "S2C_WarPetKunDevourCdMessage", 0, 100), this.register(5615, "S2C_WarPetKunTunTianAttrMessage", 0, 100),
				this.register(5616, "S2C_shenluEquipMessage", 0, 100), this.register(5617, "S2C_shenluListInfoMessage", 0, 100),
				this.register(5618, "S2C_LegendarySuitWearMessage", 0, 100), this.register(5619,
					"S2C_ActWorshipKingRewardsMessage", 0, 100), this.register(5620, "S2C_BossMonsterInfoMessage", 0, 100), this.register(
					5621, "S2C_RankWorshipMessage", 0, 100), this.register(5622, "S2C_WarPetTalnetBookFuseMessage", 0, 100), this.register(
					5623, "S2C_WarPetChangeTalnetMessage", 0, 100), this.register(5624, "S2C_ZoneChuangGuanInfoMessage", 0, 100),
				this.register(5625, "S2C_ChangePositionByFlyMessage", 0, 100), this.register(5626, "S2C_FuseEquipMessage", 0, 100),
				this.register(5627, "S2C_WarPetKunDevourRewardMessage", 0, 100), this.register(5628, "S2C_CaptureFlagInfoMessage",
					0, 100), this.register(5629, "S2C_FanPaiInfoMessage", 0, 100), this.register(5630,
					"S2C_KunRewardSpeedCostMessage", 0, 100), this.register(16e3, "C2S_LocalReviveMessage", 0, 100), this.register(
					16001, "C2S_WearGodEquipMessage", 0, 100), this.register(16003, "C2S_ZoneRenewStayTimeMessage", 0, 100), this.register(
					16004, "C2S_ZoneInfoMessage", 0, 100), this.register(16005, "C2S_MoonCardInfoMessage", 0, 100), this.register(
					16006, "C2S_useStrongStoneToMountMessage", 0, 100), this.register(16007, "C2S_WearMountEquipMessage", 0, 100),
				this.register(16008, "C2S_MailGetItemMessage", 0, 100), this.register(16009, "C2S_ActiveRewardInfoMessage", 0, 100),
				this.register(16010, "C2S_MountEquipStrengthMessage", 0, 100), this.register(16011, "C2S_GuildMemberListMessage",
					0, 100), this.register(16012, "C2S_SetAutoMenuStatusMessage", 0, 100), this.register(16013, "C2S_DelItemMessage",
					0, 100), this.register(16014, "C2S_AdvanceLevelUpMessage", 0, 100), this.register(16015,
					"C2S_useStrongStoneMessage", 0, 100), this.register(16016, "C2S_OpenChallengeListMessage", 0, 100), this.register(
					16017, "C2S_AdvanceEquipStrengthMessage", 0, 100), this.register(16018, "C2S_WearAdvanceEquipMessage", 0, 100),
				this.register(16019, "C2S_stateLevelupMessage", 0, 100), this.register(16020, "C2S_GuildTrainMessage", 0, 100),
				this.register(16021, "C2S_DonateItemMessage", 0, 100), this.register(16022, "C2S_WarehouseDuiHuanMessage", 0, 100),
				this.register(16023, "C2S_MagicWeaponWearMessage", 0, 100), this.register(16024,
					"C2S_CountryOpenRewardPanelMessage", 0, 100), this.register(16025, "C2S_ClearMysAreaTimeMessage", 0, 100), this.register(
					16026, "C2S_UpgradeMetempsychosisMessage", 0, 100), this.register(16027, "C2S_EquipHuiShouMessage", 0, 100), this
				.register(16028, "C2S_GodEquipFenJieMessage", 0, 100), this.register(16029, "C2S_ReqSignDataByTypeMessage", 0, 100),
				this.register(16031, "C2S_checkTaskStateMessage", 0, 100), this.register(16032, "C2S_ZoneInfoListMessage", 0, 100),
				this.register(16035, "C2S_RegainCharacterMessage", 0, 100), this.register(16038, "C2S_LeaveGuildMessage", 0, 100),
				this.register(16039, "C2S_LevelExpToMetempsychosisRepairMessage", 0, 100), this.register(16041,
					"C2S_ZoneRankInfoMessage", 0, 100), this.register(16042, "C2S_BuyItemMessage", 0, 100), this.register(16051,
					"C2S_CountryWarOpenApplyPanelMessage", 0, 100), this.register(16052, "C2S_DealApplyForJoinGuildMessage", 0, 100),
				this.register(16055, "C2S_AttackPersonMessage", 0, 100), this.register(16057, "C2S_ShopListMessage", 0, 100), this
				.register(16061, "C2S_ChatRequestMessage", 0, 100), this.register(16062, "C2S_BuyMarsCallCountMessage", 0, 100),
				this.register(16067, "C2S_TreasureHuntInfoMessage", 0, 100), this.register(16068, "C2S_HideSurfaceTypeMessage", 0,
					100), this.register(16069, "C2S_ReviveMessage", 0, 100), this.register(16070, "C2S_CreateGuildMessage", 0, 100),
				this.register(16071, "C2S_AutoEndMessage", 0, 100), this.register(16072, "C2S_StrengItemMessage", 0, 100), this.register(
					16073, "C2S_ChangeGuildNoticeMessage", 0, 100), this.register(16075, "C2S_StudySkillMessage", 0, 100), this.register(
					16076, "C2S_TimeMessage", 0, 100), this.register(16077, "C2S_ShenMiShopRefreshMessage", 0, 100), this.register(
					16084, "C2S_JoinActivityMessage", 0, 100), this.register(16091, "C2S_LoginMessage", 0, 100), this.register(16092,
					"C2S_ActivateSurfaceComponentMessage", 0, 100), this.register(16094, "C2S_DeleteCharacterMessage", 0, 100), this.register(
					16097, "C2S_UnitedChallengeRefreshTargetMessage", 0, 100), this.register(16099, "C2S_AddSkillExpMessage", 0, 100),
				this.register(16103, "C2S_CountrySiegeSelectMessage", 0, 100), this.register(16106, "C2S_CardMessage", 0, 100),
				this.register(16109, "C2S_PlayerLoginTypeMessage", 0, 100), this.register(16116, "C2S_StoreOpenCellMessage", 0,
					100), this.register(16121, "C2S_RunningMessage", 0, 100), this.register(16122, "C2S_ActivityDetailInfosMessage",
					0, 100), this.register(16123, "C2S_SplitItemMessage", 0, 100), this.register(16124, "C2S_CountryWarApplyMessage",
					0, 100), this.register(16125, "C2S_GuildInfoMessage", 0, 100), this.register(16133, "C2S_ServiceMessage", 0, 100),
				this.register(16134, "C2S_UseItemMessage", 0, 100), this.register(16135, "C2S_InsidePowerExpMessage", 0, 100),
				this.register(16137, "C2S_GuildClearAddCDTimeMessage", 0, 100), this.register(16138, "C2S_SelectCharacterMessage",
					0, 100), this.register(16142, "C2S_LoadFinishMessage", 0, 100), this.register(16145, "C2S_GuildApplyListMessage",
					0, 100), this.register(16148, "C2S_UnwearEquipMessage", 0, 100), this.register(16149, "C2S_KickOutGuildMessage",
					0, 100), this.register(16150, "C2S_QuitToGameMessage", 0, 100), this.register(16152, "C2S_GuildLogMessage", 0,
					100), this.register(16156, "C2S_ZoneIntoNextMapMessage", 0, 100), this.register(16159, "C2S_BuyStrengTopMessage",
					0, 100), this.register(16160, "C2S_WildBossRefreshRemindMessage", 0, 100), this.register(16161,
					"C2S_AutoStartMessage", 0, 100), this.register(16165, "C2S_LoadFinishForChangeMapMessage", 0, 100), this.register(
					16166, "C2S_accpetTaskMessage", 0, 100), this.register(16167, "C2S_TreasureHuntStoreExtractMessage", 0, 100),
				this.register(16176, "C2S_MailListMessage", 0, 100), this.register(16178, "C2S_refreshDailyTaskMessage", 0, 100),
				this.register(16180, "C2S_TencentOpenVipMessage", 0, 100), this.register(16181, "C2S_GuildChangeNameMessage", 0,
					100), this.register(16182, "C2S_WearEquipMessage", 0, 100), this.register(16184, "C2S_MarsReCallMessage", 0, 100),
				this.register(16185, "C2S_MarsStairsUpMessage", 0, 100), this.register(16186, "C2S_ChangePKStateMessage", 0, 100),
				this.register(16187, "C2S_TreasureHuntActionMessage", 0, 100), this.register(16189,
					"C2S_GetMetempsychosisInfoMessage", 0, 100), this.register(16191, "C2S_TransmitToServerMessage", 0, 100), this.register(
					16196, "C2S_TakeUpMessage", 0, 100), this.register(16198, "C2S_EquipFuseMessage", 0, 100), this.register(16205,
					"C2S_RandomNamesMessage", 0, 100), this.register(16206, "C2S_finishTaskMessage", 0, 100), this.register(16211,
					"C2S_UnitedChallengeMessage", 0, 100), this.register(16212, "C2S_NpcServicesMessage", 0, 100), this.register(
					16213, "C2S_MailDetailMessage", 0, 100), this.register(16215, "C2S_CountryRewardMessage", 0, 100), this.register(
					16217, "C2S_RankListMessage", 0, 100), this.register(16218, "C2S_MoonCardBuyMessage", 0, 100), this.register(
					16220, "C2S_LoginForPlatformMessage", 0, 100), this.register(16221, "C2S_CreateCharacterMessage", 0, 100), this.register(
					16225, "C2S_BuyUnitedChallengeNumMessage", 0, 100), this.register(16228, "C2S_MarsPanleMessage", 0, 100), this.register(
					16230, "C2S_CountryStructureInfoMessage", 0, 100), this.register(16233, "C2S_ChangeMarsNameMessage", 0, 100),
				this.register(16236, "C2S_GetActiveRewardMessage", 0, 100), this.register(16239, "C2S_GetItemsMessage", 0, 100),
				this.register(16240, "C2S_OtherPlayerInfoMessage", 0, 100), this.register(16242, "C2S_AliveWildBossMessage", 0,
					100), this.register(16245, "C2S_MailDeleteMailMessage", 0, 100), this.register(16247, "C2S_MarsCallMessage", 0,
					100), this.register(16248, "C2S_GuildListMessage", 0, 100), this.register(16254, "C2S_ApplyForJoinGuildMessage",
					0, 100), this.register(16258, "C2S_DismissGuildMessage", 0, 100), this.register(16261, "C2S_VipInfoMessage", 0,
					100), this.register(16266, "C2S_ChangeAutoAgreeMessage", 0, 100), this.register(16267, "C2S_ZoneFinishMessage", 0,
					100), this.register(16270, "C2S_ChangeGuildPositionMessage", 0, 100), this.register(16272,
					"C2S_ImpeachGuildPresidentMessage", 0, 100), this.register(16277, "C2S_ChangePlayerNameMessage", 0, 100), this.register(
					16281, "C2S_LevelUpSkillMessage", 0, 100), this.register(16285, "C2S_ZoneIntoMessage", 0, 100), this.register(
					16286, "C2S_InsidePowerLevelupMessage", 0, 100), this.register(16288, "C2S_ZoneGetAwardMessage", 0, 100), this.register(
					16296, "C2S_SignMessage", 0, 100), this.register(16299, "C2S_LoginAgainMessage", 0, 100), this.register(16347,
					"C2S_CreateFollowerMessage", 0, 100), this.register(16379, "C2S_ShowSurfaceMessage", 0, 100), this.register(16380,
					"C2S_HideSurfaceMessage", 0, 100), this.register(16383, "C2S_EnterMineMessage", 0, 100), this.register(16384,
					"C2S_MineSourceMessage", 0, 100), this.register(16389, "C2S_SpeedUpMiningMessage", 0, 100), this.register(16390,
					"C2S_UpQualityMessage", 0, 100), this.register(16391, "C2S_StartMiningMessage", 0, 100), this.register(16392,
					"C2S_GetMiningRewardMessage", 0, 100), this.register(16393, "C2S_GetBeRobLogMessage", 0, 100), this.register(
					16394, "C2S_RobPlayerMineMessage", 0, 100), this.register(16395, "C2S_ViewMinePlayerInfoMessage", 0, 100), this.register(
					16396, "C2S_RevengeMineMessage", 0, 100), this.register(16397, "C2S_RefineItemMessage", 0, 100), this.register(
					16399, "C2S_EquiUpStarMessage", 0, 100), this.register(16401, "C2S_GetBossZoneInfoMessage", 0, 100), this.register(
					16416, "C2S_ZhuzaoItemMessage", 0, 100), this.register(16417, "C2S_ChuanShiItemMessage", 0, 100), this.register(
					16418, "C2S_LimitTimeTaskMessage", 0, 100), this.register(16420, "C2S_GetLimitAwardMessage", 0, 100), this.register(
					16422, "C2S_GodWareUseMessage", 0, 100), this.register(16423, "C2S_GodWareListMessage", 0, 100), this.register(
					16424, "C2S_MergeAttackUpMessage", 0, 100), this.register(16425, "C2S_MergeAttackWearMessage", 0, 100), this.register(
					16426, "C2S_JadeUpLevelMessage", 0, 100), this.register(16427, "C2S_JadeInfoMessage", 0, 100), this.register(
					16428, "C2S_ChangeToAutoZoneHandUpMessage", 0, 100), this.register(16429, "C2S_LingquVipLibaoMessage", 0, 100),
				this.register(16430, "C2S_VipBuyLibaoStatusMessage", 0, 100), this.register(16431, "C2S_BuyVipLibaoMessage", 0,
					100), this.register(16432, "C2S_ActiveReceiveUpMessage", 0, 100), this.register(16437, "C2S_RunesUpMessage", 0,
					100), this.register(16438, "C2S_RunesWearMessage", 0, 100), this.register(16441, "C2S_TongtianDailyMessage", 0,
					100), this.register(16442, "C2S_OpenNearPkPlanelMessage", 0, 100), this.register(16443,
					"C2S_NearPkClearPkValueMessage", 0, 100), this.register(16444, "C2S_NearPkStartMessage", 0, 100), this.register(
					16446, "C2S_ChallengeBookMessage", 0, 100), this.register(16447, "C2S_AccpetChallengeBookMessage", 0, 100), this.register(
					16448, "C2S_getChallengeBookRewardMessage", 0, 100), this.register(16449, "C2S_MapPlayerInfoMessage", 0, 100),
				this.register(16450, "C2S_MapPlayerPoisitionInfoMessage", 0, 100), this.register(16452,
					"C2S_ReceivePosRewardsMessage", 0, 100), this.register(16453, "C2S_ActiveRingMessage", 0, 100), this.register(
					16456, "C2S_achievementInfoMessage", 0, 100), this.register(16457, "C2S_MeridianLevelupMessage", 0, 100), this.register(
					16460, "C2S_MaSoulPosUpMessage", 0, 100), this.register(16462, "C2S_GetSpecialRingInfoMessage", 0, 100), this.register(
					16471, "C2S_WearMaxGodWingMessage", 0, 100), this.register(16472, "C2S_GodWingFastAdvanceMessage", 0, 100), this.register(
					16473, "C2S_ConvertGodWingMessage", 0, 100), this.register(16474, "C2S_GodWingAdvanceMessage", 0, 100), this.register(
					16477, "C2S_MaSoulUseMessage", 0, 100), this.register(16478, "C2S_achievementLevelupMessage", 0, 100), this.register(
					16488, "C2S_BlacklistMessage", 0, 100), this.register(16489, "C2S_TuJianFenJieMessage", 0, 100), this.register(
					16490, "C2S_TuJianListMessage", 0, 100), this.register(16491, "C2S_TuJianGrowUpMessage", 0, 100), this.register(
					16492, "C2S_BlacklistInfoMessage", 0, 100), this.register(16493, "C2S_GuildSuitUseMessage", 0, 100), this.register(
					16494, "C2S_GuildSuitUPMessage", 0, 100), this.register(16495, "C2S_GuildBossRewardMessage", 0, 100), this.register(
					16496, "C2S_daobaoMessage", 0, 100), this.register(16497, "C2S_PrivilegeActivationMessage", 0, 100), this.register(
					16498, "C2S_PrivilegeInfoMessage", 0, 100), this.register(16499, "C2S_TurntableRewardMessage", 0, 100), this.register(
					16500, "C2S_TurntableInfoMessage", 0, 100), this.register(16501, "C2S_addRemainderTurntableMessage", 0, 100),
				this.register(16504, "C2S_wzJjRankRewardsMessage", 0, 100), this.register(16505, "C2S_HideAllSurfaceMessage", 0,
					100), this.register(16506, "C2S_rechargeLogMessage", 0, 100), this.register(16507, "C2S_SuitGodEquipUpMessage", 0,
					100), this.register(16508, "C2S_SuitGodEquipListMessage", 0, 100), this.register(16509,
					"C2S_ChuanQiZhiLuinfoMessage", 0, 100), this.register(16510, "C2S_LinkContendRankInfoMessage", 0, 100), this.register(
					16511, "C2S_LinkContendInfoMessage", 0, 100), this.register(16512, "C2S_LinkContendReceiveRewardMessage", 0, 100),
				this.register(16513, "C2S_LinkContendHistoryInfoMessage", 0, 100), this.register(16514,
					"C2S_LunHUiEquipZhuHunMessage", 0, 100), this.register(16515, "C2S_LunHUiLevelUPMessage", 0, 100), this.register(
					16516, "C2S_LunHUiEquiplevelMessage", 0, 100), this.register(16517, "C2S_LunHUiEquipWearableMessage", 0, 100),
				this.register(16518, "C2S_LevelExpToLunHuiExpMessage", 0, 100), this.register(16519, "C2S_GuildFightMasterMessage",
					0, 100), this.register(16521, "C2S_ReceivehongbaoMessage", 0, 100), this.register(16522,
					"C2S_GetBossHpInfoMessage", 0, 100), this.register(16529, "C2S_hatchMessage", 0, 100), this.register(16530,
					"C2S_StateSettingMessage", 0, 100), this.register(16531, "C2S_AppendageMessage", 0, 100), this.register(16532,
					"C2S_SkillUpgradingMessage", 0, 100), this.register(16533, "C2S_hatchlistMessage", 0, 100), this.register(16534,
					"C2S_WarPetUpgradeMessage", 0, 100), this.register(16535, "C2S_fenjieMessage", 0, 100), this.register(16536,
					"C2S_hatchunlockMessage", 0, 100), this.register(16537, "C2S_kunUpMessage", 0, 100), this.register(16538,
					"C2S_ShengYuanPlayerRankInfoMessage", 0, 100), this.register(16539, "C2S_hatchgetMessage", 0, 100), this.register(
					16540, "C2S_getKunRewardsMessage", 0, 100), this.register(16541, "C2S_kunRewardsListMessage", 0, 100), this.register(
					16542, "C2S_warPetfenjieMessage", 0, 100), this.register(16545, "C2S_PromiseSelectItemMessage", 0, 100), this.register(
					16546, "C2S_PromiseReceiveMessage", 0, 100), this.register(16547, "C2S_PromiseInfoMessage", 0, 100), this.register(
					16548, "C2S_WarPetKunDevourMessage", 0, 100), this.register(16549, "C2S_quickHatchMessage", 0, 100), this.register(
					16550, "C2S_WarPetKunUseTunTianMessage", 0, 100), this.register(16551, "C2S_shenluUpgradeMessage", 0, 100), this.register(
					16552, "C2S_LegendarySuitWearMessage", 0, 100), this.register(16553, "C2S_RankWorshipMessage", 0, 100), this.register(
					16554, "C2S_WarPetTalnetBookFuseMessage", 0, 100), this.register(16555, "C2S_WarPetChangeTalnetMessage", 0, 100),
				this.register(16556, "C2S_zeroPurchaseMessage", 0, 100), this.register(16557, "C2S_FinishFlyMessage", 0, 100),
				this.register(16558, "C2S_WearEquipOneKeyMessage", 0, 100), this.register(16559, "C2S_WearFuseEquipMessage", 0,
					100), this.register(16560, "C2S_getKunDevourRewardsMessage", 0, 100), this.register(16561,
					"C2S_WarPetZiZhiPromoteMessage", 0, 100), this.register(16562, "C2S_FanPaiRewardMessage", 0, 100), this.register(
					16563, "C2S_FanPaiMessage", 0, 100), this.register(16564, "C2S_KunRewardSpeedUpMessage", 0, 100), this.register(
					16575, "S2C_LoginAgainMessageBack", 0, 100)
		}
		return t.prototype.register = function(t, e, i, n) {
			void 0 === i && (i = 0), void 0 === n && (n = 100);
			var a = {};
			a.id = t, a.cls = e, a.priority = i, a.interval = n, this._messageName[e] = a, this._messageIdCls[t] = a
		}, t.prototype.getMessageNameByID = function(t) {
			var e = this._messageIdCls[t];
			return e ? e.cls : ""
		}, t
	}();
	t.MessagePool_v2 = e, __reflect(e.prototype, "net.MessagePool_v2")
}(net || (net = {}));
var ForgeCommonView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.changeRoleWeapon = function(t) {}, e.gjArr = ["道攻上限", "魔攻上限", "物攻上限"], e.smArr = ["生命上限"], e.wfArr = [
				"物防上限"
			], e.mfArr = ["魔防上限"], e._itemnum = 0, e._itemid = 0, e._cimgArr = [], e._itemIdArr = [16, 18, 19, 35, 42], e.euiSkinName =
			"ForgeCommonSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._cimgArr = [this.iconWuQi, this.iconYaoDai, this.iconYiFu, this.iconXiangLian, this.iconHuWan, this.iconJieZhiLeft,
				this.iconXieZi, this.iconTouBu
			], this._posHash = new HashObject, this._posHash.put(EnumEquipType.WU_QI, {
				bg: this.bgWuQi,
				icon: this.iconWuQi,
				lal: this.jlNum0,
				lalY: this.jlNum0.y,
				iconx: this.iconWuQi.x,
				icony: this.iconWuQi.y,
				attri: "q_attri_weapon"
			}), this._posHash.put(EnumEquipType.TOU_KUI, {
				bg: this.bgTouBu,
				icon: this.iconTouBu,
				lal: this.jlNum7,
				lalY: this.jlNum7.y,
				iconx: this.iconTouBu.x,
				icony: this.iconTouBu.y,
				attri: "q_attri_helmet"
			}), this._posHash.put(EnumEquipType.YI_FU, {
				bg: this.bgYiFu,
				icon: this.iconYiFu,
				lal: this.jlNum1,
				lalY: this.jlNum1.y,
				iconx: this.iconYiFu.x,
				icony: this.iconYiFu.y,
				attri: "q_attri_clothes"
			}), this._posHash.put(EnumEquipType.XIANG_LIAN, {
				bg: this.bgXiangLian,
				icon: this.iconXiangLian,
				lal: this.jlNum8,
				lalY: this.jlNum8.y,
				iconx: this.iconXiangLian.x,
				icony: this.iconXiangLian.y,
				attri: "q_attri_necklace"
			}), this._posHash.put(EnumEquipType.SHOU_ZHUO, {
				bg: this.bgHuWan,
				icon: this.iconHuWan,
				lal: this.jlNum3,
				lalY: this.jlNum3.y,
				iconx: this.iconHuWan.x,
				icony: this.iconHuWan.y,
				attri: "q_attri_bracelet"
			}), this._posHash.put(EnumEquipType.YAO_DAI, {
				bg: this.bgYaoDai,
				icon: this.iconYaoDai,
				lal: this.jlNum13,
				lalY: this.jlNum13.y,
				iconx: this.iconYaoDai.x,
				icony: this.iconYaoDai.y,
				attri: "q_attri_belt"
			}), this._posHash.put(EnumEquipType.JIE_ZHI, {
				bg: this.bgJieZhiLeft,
				icon: this.iconJieZhiLeft,
				lal: this.jlNum5,
				lalY: this.jlNum5.y,
				iconx: this.iconJieZhiLeft.x,
				icony: this.iconJieZhiLeft.y,
				attri: "q_attri_ring"
			}), this._posHash.put(EnumEquipType.XIE_ZI, {
				bg: this.bgXieZi,
				icon: this.iconXieZi,
				lal: this.jlNum12,
				lalY: this.jlNum12.y,
				iconx: this.iconXieZi.x,
				icony: this.iconXieZi.y,
				attri: "q_attri_shoe"
			}), this.lalGetItem.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>获得道具</u></font>"), this.lightGroup.visible = !
			1, this.forgeequipName.visible = !1, this.forgeEquipNameDi.visible = !1, this.lalGetItem.visible = !1, this.jiegroup
			.visible = !1, this._lvNum = new NumberLevel, this._lvNum.init("j", "common1_imglonghun_", 25, 25, 5, -3, "10",
				"100"), this._lvNum.moveTo(12, 26, this.jiegroup)
	}, e.prototype.setButtonShow = function() {
		switch (this.forgeCenter._currTabSelete) {
			case ForgeType.Strength:
				this.btnAutoForge.label = "一键强化", App.global.funcOpen.isFunctionOpen(181) ? this.buttonShowByType(2) : this.buttonShowByType(
					1);
				break;
			case ForgeType.Cast:
				this.btnAutoForge.label = "一键铸造", App.global.funcOpen.isFunctionOpen(182) ? this.buttonShowByType(2) : this.buttonShowByType(
					1);
				break;
			case ForgeType.Refine:
				this.btnAutoForge.label = "一键精炼", App.global.funcOpen.isFunctionOpen(183) ? this.buttonShowByType(2) : this.buttonShowByType(
					1);
				break;
			case ForgeType.CHUANSHI:
				this.buttonShowByType(1);
				break;
			default:
				this.buttonShowByType(1)
		}
	}, e.prototype.buttonShowByType = function(t) {
		2 == t ? (this.btnAutoForge.visible = !0, this.lalGroup.x = 124) : (this.btnAutoForge.visible = !1, this.lalGroup.x =
			220)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onBtnForgeClick, this), this.onForgeTime(), this.forgeCenter.selectedRoleIndex = 1, t.prototype
			.hide.call(this)
	}, e.prototype.dispose = function() {
		App.tip.removeTip(this.taozhuang), this._posHash = void 0, this._selectedPos = void 0, this._forgeInfoHash = void 0,
			this._itemnum = -1, this._itemid = -1;
		for (var e, i = 0; 8 > i; i++) e = this._cimgArr[i], e && e.dispose();
		this._lvNum.dispose(), this._lvNum = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), this._dispatcher.addEventListener(ItemEvent.ADD, this.onItemChange, this), this
			._dispatcher.addEventListener(ItemEvent.CHANGE, this.onItemChange, this), this._dispatcher.addEventListener(
				ForgeEvent.FORGE_RESULT, this.onForgeResult, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onBtnForgeClick, this, this.btnForge), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnAutoForgeClick,
				this, this.btnAutoForge), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onForgeBegin, this,
				this.btnForge), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onForgeEnd, this, this.btnForge),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLalGetItemClick, this, this.lalGetItem), this
			._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.changeRoleWeapon, this), this.forgeCenter._currTabSelete ==
			ForgeType.Strength || this.forgeCenter._currTabSelete == ForgeType.Cast || this.forgeCenter._currTabSelete ==
			ForgeType.CHUANSHI) {
			this.taozhuang.btn_up.source = ResPathUtil.getImgPath("btn_" + this.forgeCenter._currTabSelete + "_0", "tazhuang"),
				this.taozhuang.btn_down.source = ResPathUtil.getImgPath("btn_" + this.forgeCenter._currTabSelete + "_1",
					"tazhuang"), this.taozhuang.visible = !0;
			var e = new Object;
			e.type = this.forgeCenter._currTabSelete + 1, App.tip.addTip(this.taozhuang, new TipData(9, e))
		} else this.taozhuang.visible = !1, App.tip.removeTip(this.taozhuang);
		this.forge_uplv.visible = !1, this.selBorder.source = "common1_img_xuanzhong01_public_png", this.refreshForgeGrid(),
			this.setButtonShow(), this.forgeCenter._currTabSelete == ForgeType.CHUANSHI ? this.filedGroup.y = 616 : this.filedGroup
			.y = 636, this.effectGroup.visible = !1, this.downEft.visible = !1
	}, e.prototype.onForgeBegin = function(t) {
		(this.forgeCenter._currTabSelete == ForgeType.Cast || this.forgeCenter._currTabSelete == ForgeType.Strength || this
			.forgeCenter._currTabSelete == ForgeType.Refine) && App.timer.doTimeLoop(this, 350, this.onBtnForgeClick)
	}, e.prototype.onForgeEnd = function(t) {
		App.timer.clearTimer(this.onBtnForgeClick, this)
	}, e.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++) switch (i = t[a], i.itemId) {
			case forgeNeedItemId.StrengthId:
			case forgeNeedItemId.castId:
			case forgeNeedItemId.RefineId:
				return void this.updateNeedItem();
			default:
				if (i.itemId >= forgeNeedItemId.chuanshiStart && forgeNeedItemId.chuanshiEnd <= i.itemId) {
					this.updateNeedItem();
					break
				}
		}
	}, e.prototype.onLalGetItemClick = function(t) {
		void 0 === t && (t = null), 0 == this._itemid ? PanelOpenManager.openPanel(19, this._itemIdArr[this.forgeCenter._currTabSelete]) :
			PanelOpenManager.openPanel(19, this._itemid)
	}, e.prototype.onForgeResult = function(t, e, i) {
		this.addEffect()
	}, e.prototype.addEffect = function(t) {
		void 0 === t && (t = "forge");
		var e = App.thing.create(CPlayOnceEffect, "ForgeCommonView", !0);
		e.url = ResPathUtil.getMenuEffect("forge", t);
		var i = this.jinglian_bg.getChildByName(this._selectedPos + "");
		this.forgeCenter._currTabSelete == ForgeType.Cast ? (e.x = i.x + 45, e.y = i.y + 100) : "chuanshi" == t ? (e.x = i.x +
			38, e.y = i.y + 105) : (e.x = i.x + 40, e.y = i.y + 100), e.addParent(this), e.play()
	}, e.prototype.onForgeTime = function() {
		this.btnForge.touchEnabled = !0, App.timer.clearTimer(this.onForgeTime, this)
	}, e.prototype.onBtnAutoForgeClick = function(t) {
		void 0 === t && (t = null), 2 != this.checkCost() && (1 == this.checkCost() ? this.forgeCenter._currTabSelete ==
			ForgeType.Refine ? ForgeCommandSender.sendForgeItem(this.forgeCenter.selectedRoleIndex, this._selectedPos, this.forgeCenter
				._currTabSelete, 1) : ForgeCommandSender.sendForgeItem(this.forgeCenter.selectedRoleIndex, -1, this.forgeCenter._currTabSelete) :
			(App.timer.clearTimer(this.onBtnForgeClick, this), this.onLalGetItemClick()))
	}, e.prototype.onBtnForgeClick = function(t) {
		void 0 === t && (t = null);
		var e = this._forgeInfoHash.get(this._selectedPos);
		if (e) {
			if (2 == this.checkCost()) return;
			1 == this.checkCost() ? (1 == this.forgeCenter._currTabSelete ? App.sound.playSound(EnumSoundId.EQUIP_DROP, 0, 1 /
				.3) : App.sound.playSound(EnumSoundId.OPEN_FORGE, 0, 1 / .3), ForgeCommandSender.sendForgeItem(this.forgeCenter
				.selectedRoleIndex, this._selectedPos, this.forgeCenter._currTabSelete)) : (App.timer.clearTimer(this.onBtnForgeClick,
				this), this.onLalGetItemClick())
		} else App.timer.clearTimer(this.onBtnForgeClick, this), Notice.showNoticeTypeMsg(Notice.BOTTOM, "未穿戴装备")
	}, e.prototype.checkCost = function() {
		var t, e = this._forgeInfoHash.get(this._selectedPos);
		if (GameUtil.hasEquipForgeConfigData(this.forgeCenter._currTabSelete, e.pos, e.level + 1) && (t = GameUtil.getEquipForgeConfigData(
				this.forgeCenter._currTabSelete, e.pos, e.level + 1)), !t) return Notice.showNoticeTypeMsg(Notice.BOTTOM, "已达上限"),
			2;
		var i, n, a = StringUtil.JsonParse(t.q_cost_Num),
			o = 1;
		for (var r in a)
			if (i = a[r].id, n = a[r].num, -3 == i) {
				if (!App.data.currencyDataCenter.isMoneyEnough(n, EnumMoney.JIN_BI, !1, !1)) {
					o = 3;
					break
				}
			} else if (App.data.bagItemDataCenter.getItemCount(i) < n) {
			o = 3;
			break
		}
		return o
	}, e.prototype.refreshForgeGrid = function() {
		var t = this;
		this._forgeInfoHash = this.forgeCenter.roleForgeInfos(this.forgeCenter.selectedRoleIndex, this.forgeCenter._currTabSelete),
			this._posHash.foEach(function(e, i) {
				t.refreshOneEquip(e, i)
			}, this)
	}, e.prototype.refreshOneEquip = function(t, e) {}, e.prototype.setVis = function(t) {
		this.lalXiaoHao.visible = t, this.imgJinBi.visible = t, this.lalJinBi.visible = t, this.imgsmall.visible = t
	}, e.prototype.selectPos = function(t) {
		if (this._selectedPos = t, t >= 0) {
			this.setVis(!0);
			var e = this.jinglian_bg.getChildByName(t + "");
			this.forgeCenter._currTabSelete == ForgeType.Cast || (this.forgeCenter._currTabSelete == ForgeType.CHUANSHI ? (
				this.selBorder.x = e.x - 10, this.selBorder.y = e.y + 58) : (this.selBorder.x = e.x - 10, this.selBorder.y = e.y +
				59), this.selBorder.parent.setChildIndex(this.selBorder, 0)), this.refreshOther()
		} else this.setVis(!1), this.updateFightpower(0)
	}, e.prototype.refreshOther = function() {
		this.updateNeedItem()
	}, e.prototype.refreshAll = function() {
		this.lalField0.text = this.lalField1.text = this.lalField2.text = this.lalField3.text = "";
		var t, e, i = this.forgeCenter.posArr,
			n = i.length,
			a = 0,
			o = 0,
			r = 0,
			s = 0;
		this.miaoshutext.textFlow = HtmlUtil.getHtmlStr("特殊属性：强化系统全属性0% <font color='0x35ea35'>→ 0.5% (1阶激活)</font>");
		for (var h = 0; n > h; h++) {
			if (t = this.forgeInfoHash.get(i[h]), e = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, t.pos,
					t.level), void 0 != e)
				if (this.forgeCenter._currTabSelete == ForgeType.CHUANSHI) a += this.getCurAttri(e.q_attri_weapon, 1), o += this.getCurAttri(
					e.q_attri_weapon, 0), r += this.getCurAttri(e.q_attri_weapon, 2), s += this.getCurAttri(e.q_attri_weapon, 3);
				else {
					var l = this._posHash.get(t.pos).attri;
					a += this.getCurAttri(e[l], 1), o += this.getCurAttri(e[l], 0), r += this.getCurAttri(e[l], 2), s += this.getCurAttri(
						e[l], 3)
				} t.pos == EnumEquipType.XIE_ZI && 1 == this.forgeCenter._currTabSelete && (e ? (this.miaoshutext.textFlow =
				HtmlUtil.getHtmlStr(e.q_desc_show), this._lvNum.setValue(e.q_gradeNum)) : this._lvNum.setValue(0))
		}
		this.updateFightpower(FightPowerUtil.getRoleStrengthAllPosFightPower(App.global.roles.getRoleInfoByIndex(this.forgeCenter
				.selectedRoleIndex), this.forgeCenter._currTabSelete)), this.lalField1.text = "生命：" + a, this.lalField0.text =
			"攻击：" + o, this.lalField2.text = "物防：" + r, this.lalField3.text = "魔防：" + s
	}, e.prototype.getCurAttri = function(t, e) {
		var i = t.replace("[", "");
		i = i.replace("]", "");
		var n = i.split(","),
			a = [];
		switch (e) {
			case 0:
				a = this.gjArr;
				break;
			case 1:
				a = this.smArr;
				break;
			case 2:
				a = this.wfArr;
				break;
			case 3:
				a = this.mfArr
		}
		for (var o = 0; o < n.length; ++o) {
			var r = n[o].split(":")[0];
			if (a.indexOf(r) > -1) return Number(n[o].split(":")[1])
		}
		return 0
	}, e.prototype.updateAttr = function() {
		var t = this.forgeInfoHash.get(this.selectedPos);
		if (t) {
			var e = void 0,
				i = void 0;
			if (t.pos >= 0 && t.level >= 0 && (GameUtil.hasEquipForgeConfigData(this.forgeCenter._currTabSelete, t.pos, t.level +
					1) && (i = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, t.pos, t.level + 1)), GameUtil.hasEquipForgeConfigData(
					this.forgeCenter._currTabSelete, t.pos, t.level) && (e = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete,
					t.pos, t.level))), i) {
				var n = 0,
					a = 0,
					o = void 0,
					r = void 0;
				r = this.forgeCenter._currTabSelete == ForgeType.CHUANSHI ? "q_attri_weapon" : this._posHash.get(t.pos).attri;
				for (var s = 0; 4 > s; s++)
					if (e && (n = this.getCurAttri(e[r], s)), a = this.getCurAttri(i[r], s), a > 0) {
						o = this["lalField" + s];
						var h = parseInt(o.text.slice(o.text.indexOf("：") + 1));
						o.textFlow = HtmlUtil.getHtmlStr(o.text + "<font color='#35ea35'> →" + (h + a - n) + "</font>")
					}
			}
		}
	}, e.prototype.updateNeedItem = function() {
		var t = this._forgeInfoHash.get(this._selectedPos);
		if (t) {
			var e = void 0;
			if (GameUtil.hasEquipForgeConfigData(this.forgeCenter._currTabSelete, t.pos, t.level + 1) && (e = GameUtil.getEquipForgeConfigData(
					this.forgeCenter._currTabSelete, t.pos, t.level + 1)), e) {
				this.setVis(!0);
				var i = StringUtil.JsonParse(e.q_cost_Num),
					n = i[0].id,
					a = i[0].num;
				this._itemnum = a, this._itemid = n, this.forgeCenter._currTabSelete == ForgeType.CHUANSHI, this.lalJinBi.textFlow =
					HtmlUtil.getHtmlStr(this.updateMyMoney(n, a) + "/" + a), this.imgJinBi.x = this.lalXiaoHao.x + this.lalXiaoHao.width,
					this.lalJinBi.x = this.imgsmall.x + this.imgsmall.width + 2
			} else this.setVis(!1)
		}
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#F33333'>" + n + "</font>"
	}, e.prototype.updateFightpower = function(t) {
		this.fightPower.setValue(t)
	}, Object.defineProperty(e.prototype, "forgeCenter", {
		get: function() {
			return App.data.forgeCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.nowSumFiled = function(t) {
		var e, i = this._forgeInfoHash.get(this._selectedPos),
			n = 0;
		return i.level > 0 && (e = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, i.pos, i.level), n +=
			e[t]), n
	}, e.prototype.nextSumFiled = function(t) {
		var e, i = this._forgeInfoHash.get(this._selectedPos),
			n = 0;
		return e = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, i.pos, i.level + 1), n += e[t]
	}, e.prototype.nextSumOneFiled = function(t) {
		var e = this.forgeInfoHash.get(this.selectedPos),
			i = 0;
		return i = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, e.pos, e.level + 1)[t]
	}, Object.defineProperty(e.prototype, "posHash", {
		get: function() {
			return this._posHash
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectedPos", {
		get: function() {
			return this._selectedPos
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "forgeInfoHash", {
		get: function() {
			return this._forgeInfoHash
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ForgeCommonUI);
__reflect(ForgeCommonView.prototype, "ForgeCommonView", ["IView", "IDispose"]);
var forgeNeedItemId;
! function(t) {
	t[t.StrengthId = 16] = "StrengthId", t[t.RefineId = 18] = "RefineId", t[t.castId = 19] = "castId", t[t.chuanshiStart =
		35] = "chuanshiStart", t[t.chuanshiEnd = 42] = "chuanshiEnd"
}(forgeNeedItemId || (forgeNeedItemId = {}));
var GuildCommonListView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "GuildListViewSkin", e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i) {
		void 0 === e && (e = 695), void 0 === i && (i = 10), this._currList = new VScrollPanel(611, e, t, i), this.list_group
			.addChild(this._currList), this.downbg_img.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.exitGuild, this,
			this.exit_btn), this._dispatcher.addEventListener(GuildEvent.GUILD, this.updateInfo, this), this.updateInfo()
	}, e.prototype.refresh = function(t, e) {
		return void 0 === e && (e = ""), !t || t.length <= 0 ? (this._currList.list.removeChildren(), this.kongbaitishi.text =
			e, void(this.kongbaitishi.visible = !0)) : (this.kongbaitishi.visible = !1, void(this._currList.dataProvider = t))
	}, e.prototype.exitGuild = function() {}, e.prototype.updateInfo = function(t) {
		switch (void 0 === t && (t = 1), t) {
			case GuildEvent.INFO:
				this.pos_txt.text = EnumGuild.getPositionName(App.data.guildCenter.myGuildInfo.myPosition);
				break;
			case GuildEvent.MEMBER:
				this.refresh(App.data.guildCenter.memberList);
				break;
			case GuildEvent.LIST:
				this.refresh(App.data.guildCenter.guildList, " 暂无帮会");
				break;
			case GuildEvent.APPLY:
				this.refresh(App.data.guildCenter.applyList, "暂无玩家申请")
		}
	}, e.prototype.hide = function() {
		this._currList.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._currList.dispose(), this._currList = null, t.prototype.dispose.call(this)
	}, e
}(GuildListViewUI);
__reflect(GuildCommonListView.prototype, "GuildCommonListView");
var RoleHejiUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RoleHejiUI.prototype, "RoleHejiUI");
var RunesShowItemViewUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RunesShowItemRenderSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RunesShowItemViewUI.prototype, "RunesShowItemViewUI");
var RunesViewUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RunesPanelSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RunesViewUI.prototype, "RunesViewUI");
var PayingEffect = function() {
	function t() {
		this._msg = "支付中", this._bgWidth = 133, this._isPlaying = !1, this.addEvent()
	}
	return t.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.EventTypeIsPaying, this.onPlay, this)
	}, t.prototype.resize = function() {
		this._bg && (this._bg.x = Config.SCREEN_WIDTH - this._bgWidth >> 1, this._bg.y = Config.SCREEN_HEIGHT - this._bgWidth >>
			1), this._txt && (this._txt.x = this._bg.x, this._txt.y = this._bg.y + 100), this._run && (this._run.x = .5 *
			Config.SCREEN_WIDTH, this._run.y = this._bg.y + 50)
	}, t.prototype.onPlay = function(t) {
		this._isPlaying != t && (this._isPlaying = t, t ? (null == this._bg && (this._bg = UIMaker.getCImage(App.stage,
			this, ResPathUtil.getImgPath("img_bgb01", "main"), Config.SCREEN_WIDTH - this._bgWidth >> 1, Config.SCREEN_HEIGHT -
			this._bgWidth >> 1)), null == this._txt && (this._txt = UIMaker.getTextField(App.stage, this, this._bg.x, this._bg
			.y + 100, this._bgWidth, 24, 16777141, 24), this._txt.text = this._msg), this._run = EffectUtils.showCEffect(
			this, App.stage, ResPathUtil.getMenuEffect("main", "run"), .5 * Config.SCREEN_WIDTH, this._bg.y + 50, this._run,
			t)) : (this._run && (this._run.dispose(), this._run = null), this._bg && (UIMaker.putToPool(this._bg), this._bg =
			null), this._txt && (UIMaker.putToPool(this._txt), this._txt = null)))
	}, t
}();
__reflect(PayingEffect.prototype, "PayingEffect");
var GuildMainViewUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GuildMainViewUI.prototype, "GuildMainViewUI");
var MenuBase = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isPlaying = !0, e._obj = {}, e._menuBtns = new Array, e._gap = 2, e._delayQueue = [], e.init(), e.touchThrough = !
			0, e.touchEnabled = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.addMenuBtn = function(t) {
		if (this.isPlaying) {
			var e = this.getMenuBtnByID(t);
			e || (e = new EnterButton, e.setData(App.global.enterBtn.getInfo(t)), e.isPlaying = this.isPlaying, e.visible = e.isPlaying,
				this._menuBtns.push(e), this.buttonLayout(), this.addChildAt(e, 0), this._obj[t] = e)
		} else this._delayQueue.push(t)
	}, e.prototype.removeMenuBtn = function(t) {
		var e = this.getMenuBtnByID(t);
		if (e) {
			var i = this._menuBtns.indexOf(e); - 1 != i && this._menuBtns.splice(i, 1), e.dispose(), this._obj[t] = null, this
				.buttonLayout()
		}
		var n = this._delayQueue.indexOf(t); - 1 != n && this._delayQueue.splice(n, 1)
	}, e.prototype.getMenuBtnByID = function(t) {
		return this._obj[t]
	}, e.prototype.removeAll = function() {
		for (; this.numChildren > 0;) {
			var t = this.removeChildAt(0);
			t instanceof EnterButton && t.dispose()
		}
		this._menuBtns = new Array
	}, e.prototype.getButtonList = function() {
		return this._menuBtns
	}, e.prototype.buttonLayout = function() {}, e.prototype.resize = function() {}, e.prototype.setVisible = function(t) {
		this.tween(!t)
	}, e.prototype.tween = function(t) {
		for (var e = this._menuBtns.length, i = 0; e > i; i++) this._menuBtns[i].tween(t);
		this.setPlaying(!t)
	}, e.prototype.setPlaying = function(t) {
		if (this.isPlaying = t, this.isPlaying)
			for (; this._delayQueue.length > 0;) App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, this._delayQueue.shift(),
				!0)
	}, e
}(eui.Group);
__reflect(MenuBase.prototype, "MenuBase");
var ShabakCzRewardUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ShabakCzRewardUI.prototype, "ShabakCzRewardUI");
var ShabakOneRankRewardViewUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ShabakOneRankRewardViewUI.prototype, "ShabakOneRankRewardViewUI");
var ShabakOneRankViewUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ShabakOneRankViewUI.prototype, "ShabakOneRankViewUI");
var CastleWarData = function(t) {
	function e(e, i) {
		void 0 === i && (i = 0);
		var n = t.call(this) || this;
		return n.type = 0, n.id = 10026, n.title = "", n.showTime = "", n.tipID = 58, n.globalID = 54, n.endTime = 21, n.pkTotalTime =
			1800, n.maxDefendTime = 600, n.warType = 0, n.siegeTime = 0, n.warImmediateInfo = {}, n.warKillerDatas = [], n.myscore =
			0, n._castleGuildId = "", n._warState = 0, n.type = e, n.id = i, n.type == EnumCastleWarType.CASTLE_WAR ? (n.showTime =
				"20:00-21:00", n.title = "皇城", n.tipID = 58, n.endTime = 21, n.globalID = 209) : n.type == EnumCastleWarType.CASTLE_WAR_LINK &&
			(n.showTime = "21:00-22:00", n.title = "禁地", n.tipID = 137, n.endTime = 22, n.globalID = 209), n
	}
	return __extends(e, t), e.prototype.checkIsGongcheng = function() {
		var t = !1,
			e = .001 * ServerTime.serverTime;
		if (-1 != this.siegeTime)
			if (1 == this.warType) t = !0;
			else {
				var i = App.data.castleWarCenter.openDays - 2;
				(this.siegeTime - e > 0 && this.siegeTime - e < 24 * i * 3600 - 14400 || 1 == this.warType) && (t = !0)
			} return App.dispatcher.dispatchEvent(CastleWarEvent.SIEGE_TIME, t), t
	}, Object.defineProperty(e.prototype, "castleGuildId", {
		get: function() {
			return this._castleGuildId
		},
		set: function(t) {
			this._castleGuildId != t && (this._castleGuildId = t, App.dispatcher.dispatchEvent(EventType.CHANGE_CASTLEGUILDID))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "warState", {
		get: function() {
			return this._warState
		},
		set: function(t) {
			GameLog.log("S2C_CountrySiegeWarStateMessage：攻城战状态：" + this._warState, "行会ID：" + this.castleGuildId), this._warState =
				t, App.dispatcher.dispatchEvent(CastleWarEvent.WAR_STATE, this._warState, this.type)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(CastleWarData.prototype, "CastleWarData");
var ForgeCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendForgeItem = function(t, e, i, n) {
		void 0 === n && (n = 0), ForgeType.Strength == i ? this.sendStrengItem(t, e) : ForgeType.Refine == i ? this.sendRefinePos(
			t, e, n) : ForgeType.Cast == i ? this.sendZhuZaoPos(t, e) : ForgeType.CHUANSHI == i && this.sendChuanShiItem(t, e)
	}, e.sendChuanShiItem = function(t, e) {
		var i = this.createCmd(16417);
		i.index = t, i.pos = e, this.sendCommand(i)
	}, e.sendStrengItem = function(t, e) {
		var i = this.createCmd(16072);
		i.index = LongUtil.fromNumber(t), i.pos = e, this.sendCommand(i)
	}, e.sendBuyStrengTop = function(t, e) {
		var i = this.createCmd(16159);
		i.index = LongUtil.fromNumber(t), i.pos = e, this.sendCommand(i)
	}, e.sendRefinePos = function(t, e, i) {
		void 0 === i && (i = 0);
		var n = this.createCmd(16397);
		n.index = t, n.pos = e, 1 == i && (n.type = i), this.sendCommand(n)
	}, e.sendRisingStarPos = function(t, e) {
		var i = this.createCmd(16399);
		i.index = t, i.pos = e, this.sendCommand(i)
	}, e.sendZhuZaoPos = function(t, e) {
		var i = this.createCmd(16416);
		i.index = t, i.pos = e, this.sendCommand(i)
	}, e.sendUpdateFushi = function(t, e, i) {
		var n = this.createCmd(16437);
		n.index = t, n.pos = e, n.itemId = i, this.sendCommand(n)
	}, e.sendChangePos = function(t, e, i) {
		var n = this.createCmd(16438);
		n.index = t, n.pos = e, n.equipPkId = i, this.sendCommand(n)
	}, e
}(BaseConnectionSender);
__reflect(ForgeCommandSender.prototype, "ForgeCommandSender");
var FriendCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(BaseConnectionSender);
__reflect(FriendCommandSender.prototype, "FriendCommandSender");
var GuildCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendGuildFightMasterMessage = function() {
		var t = this.createCmd(16519);
		this.sendCommand(t)
	}, e.sendGuildClearAddCDTimeMessage = function() {
		var t = this.createCmd(16137);
		this.sendCommand(t)
	}, e.sendGuildChangeNameMessage = function(t) {
		var e = this.createCmd(16181);
		e.changeName = t, this.sendCommand(e)
	}, e.sendGuildMemberListMessage = function() {
		var t = this.createCmd(16011);
		this.sendCommand(t)
	}, e.sendGuildInfoMessage = function() {
		var t = this.createCmd(16125);
		this.sendCommand(t)
	}, e.sendGuildLogMessage = function() {
		var t = this.createCmd(16152);
		this.sendCommand(t)
	}, e.sendGuildListMessage = function() {
		var t = this.createCmd(16248);
		this.sendCommand(t)
	}, e.sendGuildApplyListMessage = function() {
		var t = this.createCmd(16145);
		this.sendCommand(t)
	}, e.sendApplyForJoinGuildMessage = function(t, e) {
		void 0 === e && (e = null);
		var i = this.createCmd(16254);
		i.type = t, i.guildId = e, this.sendCommand(i)
	}, e.sendCreateGuildMessage = function(t) {
		var e = this.createCmd(16070);
		e.guildName = t, this.sendCommand(e)
	}, e.sendDealApplyForJoinGuildMessage = function(t, e) {
		void 0 === e && (e = null);
		var i = this.createCmd(16052);
		i.type = 1 == t ? 1 : 0, i.playerId = e, this.sendCommand(i)
	}, e.sendChangeGuildPositionMessage = function(t, e) {
		var i = this.createCmd(16270);
		i.playerId = t, i.newPosition = e, this.sendCommand(i)
	}, e.sendKickOutGuildMessage = function(t) {
		var e = this.createCmd(16149);
		e.playerId = LongUtil.fromString(t), this.sendCommand(e)
	}, e.sendChangeGuildNoticeMessage = function(t) {
		var e = this.createCmd(16073);
		e.notice = t, this.sendCommand(e)
	}, e.sendDismissGuildMessage = function(t) {
		var e = this.createCmd(16258);
		e.type = t, this.sendCommand(e)
	}, e.sendLeaveGuildMessage = function() {
		var t = this.createCmd(16038);
		this.sendCommand(t)
	}, e.sendImpeachGuildPresidentMessage = function() {
		var t = this.createCmd(16272);
		this.sendCommand(t)
	}, e.sendChangeAutoMessage = function(t, e) {
		var i = this.createCmd(16266);
		i.autoAgree = t ? 1 : 0, e > 0 ? i.fightPower = e : i.fightPower = 0, this.sendCommand(i)
	}, e.sendLevelUpSkillMessage = function(t, e) {
		var i = this.createCmd(16020);
		i.index = t, i.trainType = e, this.sendCommand(i)
	}, e.sendDonateMessage = function(t) {
		var e = this.createCmd(16021);
		e.actionType = 3, e.itemId = t, this.sendCommand(e)
	}, e.sendExchangeMessage = function(t) {
		var e = this.createCmd(16022);
		e.actionType = 3, e.itemId = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(GuildCommandSender.prototype, "GuildCommandSender");
var ItemCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendGetItemsMessage = function(t) {
			var e = this.createCmd(16239);
			e.actionType = t, this.sendCommand(e)
		}, e.sendMoveItemMessagee = function(t, e, i, n, a) {}, e.sendSplitItemMessage = function(t, e, i, n, a, o) {
			var r = this.createCmd(16123);
			r.actionType = t, r.srcGridId = e, r.toGridId = i, r.srcItemId = LongUtil.fromString(n), r.toItemId = LongUtil.fromString(
				a), r.num = o, this.sendCommand(r)
		}, e.sendClearUpGoodsMessage = function(t) {}, e.sendDiscardMessage = function(t, e) {}, e.sendStoreOpenCell =
		function(t, e) {
			var i = this.createCmd(16116);
			i.actionType = t, i.cellNum = e, this.sendCommand(i)
		}, e.sendUseItemMessage = function(t, e, i, n) {
			void 0 === n && (n = null);
			var a = this.createCmd(16134);
			a.srcGridId = t, a.srcItemId = LongUtil.fromString(e), a.num = i, n && (a.params = JSON.stringify(n)), this.sendCommand(
				a)
		}, e.sendEquipHuiShou = function(t) {
			var e = this.createCmd(16027);
			e.equipIds = t, this.sendCommand(e)
		}, e.sendBuyItemMessage = function(t, e, i, n, a, o, r, s, h) {
			void 0 === o && (o = !1), void 0 === r && (r = 0), void 0 === s && (s = 0), void 0 === h && (h = 0);
			var l = this.createCmd(16042);
			l.sellId = t, l.num = e, l.modelId = i, l.currencyType = n, l.price = a, l.sumPrice = s, l.autoUse = o ? 1 : 0, l.buySrc =
				r, l.shenMiShopIndex = h, this.sendCommand(l)
		}, e.useStrongStone = function(t, e, i, n) {
			var a = this.createCmd(16015);
			a.type = t, a.index = e, a.modelId = i, a.num = n, this.sendCommand(a)
		}, e
}(BaseConnectionSender);
__reflect(ItemCommandSender.prototype, "ItemCommandSender");
var MailCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.C2S_MailList = function() {
		var t = this.createCmd(16176);
		this.sendCommand(t)
	}, e.C2S_MailDetail = function(t) {
		var e = this.createCmd(16213);
		e.mailid = LongUtil.fromString(t), this.sendCommand(e)
	}, e.C2S_MailGetItem = function(t, e) {
		void 0 === e && (e = "-1");
		var i = this.createCmd(16008);
		i.mailid = t, i.itemid = LongUtil.fromString(e), this.sendCommand(i)
	}, e.C2S_MailDeleteMail = function(t) {
		var e = this.createCmd(16245);
		e.deleteMailIdList = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(MailCommandSender.prototype, "MailCommandSender");
var PlatfromCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendSign = function(t, e, i) {
		var n = this.createCmd(16029);
		n.type = 0;
		var a = {};
		a.area = t, a.server = e, a.serverName = i, n.params = JSON.stringify(a), this.sendCommand(n)
	}, e
}(BaseConnectionSender);
__reflect(PlatfromCommandSender.prototype, "PlatfromCommandSender");
var RankListCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.getRankListInfo = function(t, i, n, a) {
		void 0 === n && (n = 1), void 0 === a && (a = 0), e.REQUEST_TYPE = a;
		var o = this.createCmd(16217);
		o.rang = t, o.rankType = i, o.page = n, this.sendCommand(o)
	}, e.sendC2S_RankWorshipMessage = function(t) {
		var e = this.createCmd(16553);
		e.rankType = t, this.sendCommand(e)
	}, e.REQUEST_TYPE = 0, e
}(BaseConnectionSender);
__reflect(RankListCommandSender.prototype, "RankListCommandSender");
var ReviveComandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendChatRequestMessage = function() {
		var t = this.createCmd(16069);
		t.passing = ServerTime.getFlashTime(), t.cur = ServerTime.getSystemTime(), this.sendCommand(t)
	}, e.sendLocalReviveMessage = function(t, e) {
		void 0 === e && (e = 0);
		var i = this.createCmd(16e3);
		i.type = t, i.itemmodelid = e, i.passing = ServerTime.getFlashTime(), i.cur = ServerTime.getSystemTime(), this.sendCommand(
			i)
	}, e
}(BaseConnectionSender);
__reflect(ReviveComandSender.prototype, "ReviveComandSender");
var SetupmenuSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendSetMenuStatusMessage = function() {}, e.sendC2S_SetAutoMenuStatusMessage = function() {
		var t = this.createCmd(16012),
			e = App.global.characterData.autoSettingData.toJosnString();
		t.setStr = e, this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(SetupmenuSender.prototype, "SetupmenuSender");
var ShopCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendBuyBuleMessage = function(t, e) {
		var i = this.createCmd(16180);
		i.openType = t, i.timeType = e, this.sendCommand(i)
	}, e.sendRequestTanbaoShop = function() {
		App.global.funcOpen.isFunctionOpen(129) && (TanbaoCommandSender.sendC2S_TreasureHuntInfoMessage(), e.sendRequestShopListMessage(
			3, 0))
	}, e.sendRequestShopListMessage = function(t, e, i, n) {
		void 0 === e && (e = 0), void 0 === i && (i = 0), void 0 === n && (n = 0);
		var a = this.createCmd(16057);
		a.shopType = t, a.page = e, a.levelLimit = i, a.jobLimit = n, this.sendCommand(a)
	}, e.sendBuyItemMessage = function(t, e, i, n, a, o, r, s, h) {
		void 0 === o && (o = !1), void 0 === r && (r = 0), void 0 === s && (s = 0), void 0 === h && (h = 0);
		var l = this.createCmd(16042);
		l.sellId = t, l.num = e, l.modelId = i, l.currencyType = n, l.price = a, l.sumPrice = s, l.autoUse = o ? 1 : 0, l.buySrc =
			r, l.shenMiShopIndex = h, this.sendCommand(l)
	}, e.sendShenMiShopRefreshMessage = function() {
		var t = this.createCmd(16077);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(ShopCommandSender.prototype, "ShopCommandSender");
var SkillCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendC2S_AddSkillExpMessage = function(t, e, i) {
		void 0 === i && (i = 1);
		var n = this.createCmd(16099);
		n.skillModelId = t, n.index = LongUtil.fromNumber(e), n.num = i, this.sendCommand(n)
	}, e.sendC2S_LevelUpOneSkillMessage = function(t, e) {
		var i = this.createCmd(16281);
		i.skillModelId = LongUtil.fromNumberList(t), i.index = LongUtil.fromNumber(e), this.sendCommand(i)
	}, e.sendC2S_StudySkillMessage = function(t, e, i) {
		var n = this.createCmd(16075);
		n.index = LongUtil.fromNumber(t), n.skillModelId = e, n.skillLv = i, this.sendCommand(n)
	}, e.sendC2s_MeridianLevelup = function(t, e) {
		void 0 === e && (e = 0);
		var i = this.createCmd(16457);
		i.index = t, 1 == e && (i.type = e), this.sendCommand(i)
	}, e.sendC2S_MaSoulUseMessage = function(t, e, i) {
		var n = this.createCmd(16477);
		n.type = t, n.index = e, n.soulTypeId = i, this.sendCommand(n)
	}, e.sendC2S_MaSoulPosUpMessage = function(t, e) {
		var i = this.createCmd(16460);
		i.index = t, i.soulId = e, i.pos = 1, this.sendCommand(i)
	}, e
}(BaseConnectionSender);
__reflect(SkillCommandSender.prototype, "SkillCommandSender");
var StateCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_StateInfo = function() {
		this.sendCommand(this.createCmd(16019))
	}, e
}(BaseConnectionSender);
__reflect(StateCommandSender.prototype, "StateCommandSender");
var TanbaoCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendC2S_TreasureHuntInfoMessage = function(t) {
		void 0 === t && (t = 1);
		var e = this.createCmd(16067);
		e.chestType = t, this.sendCommand(e)
	}, e.sendC2S_TreasureHuntActionMessage = function(t) {
		var e = App.config.q_globalContainer.getDataBean(22).q_string_value,
			i = StringUtil.JsonParse(e),
			n = [];
		for (var a in i) n.push(i[a]);
		var o, r = !1,
			s = App.config.q_globalContainer.getDataBean(21).q_int_value,
			h = GameUtil.getItemConfigData(s);
		if (null != h && (r = App.data.bagItemDataCenter.getItemCount(s) >= t), 1 == t ? o = n[0] : 10 == t && (o = n[1]),
			r || App.data.currencyDataCenter.isMoneyEnough(o, EnumMoney.YUAN_BAO, !1)) {
			var l = this.createCmd(16187);
			l.times = t, this.sendCommand(l)
		}
	}, e.sendC2S_TreasureHuntStoreExtractMessage = function() {
		var t = this.createCmd(16167);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(TanbaoCommandSender.prototype, "TanbaoCommandSender");
var TaskCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendAccpetTask = function(t, e) {
		var i = this.createCmd(16166);
		i.taskId = t, i.taskType = e, this.sendCommand(i)
	}, e.sendFinishTask = function(t, e, i) {
		void 0 === i && (i = "");
		var n = this.createCmd(16206);
		n.taskId = t, n.taskType = e, n.extendsMap = i, this.sendCommand(n)
	}, e.checkTaskState = function(t, e) {
		var i = this.createCmd(16031);
		i.taskType = e, i.taskId = t, this.sendCommand(i)
	}, e.sendServiceMessage = function(t, e) {
		var i = this.createCmd(16133);
		i.serviceParameter = e, i.npcId = LongUtil.fromString(t), this.sendCommand(i)
	}, e.sendTransmint = function(t, e) {
		var i = this.createCmd(16191);
		i.type = e, this.sendCommand(i);
		var n = App.global.characterData;
		n.changeDirAction(AvatarActionType.ACTION_TYPE_STAND);
		var a = !0;
		a && n.showEffect("TaskCommandSender", ResPathUtil.getSkillEffectUrl(2014, "2014_tx1"))
	}, e.sendNpcServices = function(t) {
		var e = this.createCmd(16212);
		e.npcId = LongUtil.fromString(t), this.sendCommand(e)
	}, e.refreshDailyTask = function(t) {
		var e = this.createCmd(16178);
		e.taskId = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(TaskCommandSender.prototype, "TaskCommandSender");
var VipCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.requestC2S_VipInfo = function() {
		var t = this.createCmd(16261);
		this.sendCommand(t)
	}, e.requestC2S_LingquVipLibao = function(t) {
		var e = this.createCmd(16429);
		e.vipLevel = t, this.sendCommand(e)
	}, e.requestC2S_VipBuyLibaoStatus = function() {
		var t = this.createCmd(16430);
		this.sendCommand(t)
	}, e.requestC2S_BuyVipLibao = function(t) {
		var e = this.createCmd(16431);
		e.id = t, this.sendCommand(e)
	}, e.requestC2S_BuyMoonCard = function(t) {
		var e = this.createCmd(16218);
		e.type = t, this.sendCommand(e)
	}, e.requestC2S_MoonCard = function(t) {
		var e = this.createCmd(16005);
		this.sendCommand(e)
	}, e.sendPrivilegeList = function() {
		var t = this.createCmd(16498);
		this.sendCommand(t)
	}, e.sendPrivilegeInfo = function(t) {
		var e = this.createCmd(16497);
		e.id = t, this.sendCommand(e)
	}, e.sendC2sTurntable = function() {
		var t = this.createCmd(16500);
		this.sendCommand(t)
	}, e.sendC2sTurntableReward = function(t, e) {
		var i = this.createCmd(16499);
		i.Id = t, i.type = e, this.sendCommand(i)
	}, e.sendC2S_addRemainderTurntableMessage = function() {
		var t = this.createCmd(16501);
		this.sendCommand(t)
	}, e.sendC2S_rechargeLogMessageHandler = function() {
		var t = this.createCmd(16506);
		this.sendCommand(t)
	}, e.sendC2S_ReceivehongbaoMessage = function(t) {
		var e = this.createCmd(16521);
		e.Id = t, this.sendCommand(e)
	}, e.sendC2S_getKunDevourRewardsMessage = function(t) {
		var e = this.createCmd(16560);
		e.hongbaoid = LongUtil.fromNumber(t), this.sendCommand(e)
	}, e.sendC2S_FanPaiMessage = function(t) {
		var e = this.createCmd(16563);
		e.type = t, this.sendCommand(e)
	}, e.sendC2S_FanPaiRewardMessage = function(t, e) {
		var i = this.createCmd(16562);
		i.id = t, i.paipos = e, this.sendCommand(i)
	}, e
}(BaseConnectionSender);
__reflect(VipCommandSender.prototype, "VipCommandSender");
var WarpetCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_hatchList = function() {
		var t = this.createCmd(16533);
		this.sendCommand(t)
	}, e.sendC2S_hatch = function(t, e) {
		var i = this.createCmd(16529);
		i.hatcheryId = t, i.peteggId = e, this.sendCommand(i)
	}, e.sendC2S_hatchgetMessage = function(t) {
		var e = this.createCmd(16539);
		e.hatcheryId = t, this.sendCommand(e)
	}, e.sendC2S_hatchunlockMessage = function(t) {
		var e = this.createCmd(16536);
		e.hatcheryId = t, this.sendCommand(e)
	}, e.sendC2S_quickHatchMessage = function(t, e) {
		var i = this.createCmd(16549);
		i.hatcheryId = t, i.type = e, this.sendCommand(i)
	}, e.sendC2S_StateSettingMessage = function(t, e) {
		var i = this.createCmd(16530);
		i.petId = LongUtil.fromString(t), i.type = e, this.sendCommand(i)
	}, e.sendC2S_WarPetUpgradeMessage = function(t) {
		var e = this.createCmd(16534);
		e.petId = LongUtil.fromString(t), this.sendCommand(e)
	}, e.sendC2S_AppendageMessage = function(t, e) {
		var i = this.createCmd(16531);
		i.petId = LongUtil.fromString(t), i.index = e, this.sendCommand(i)
	}, e.sendC2S_kunUpMessage = function() {
		this.sendCommand(this.createCmd(16537))
	}, e.sendC2S_kunRewardsListMessage = function() {
		this.sendCommand(this.createCmd(16541))
	}, e.sendC2S_getKunRewardsMessage = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16540);
		e.index = t, this.sendCommand(e)
	}, e.sendC2S_KunRewardSpeedUpMessage = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16564);
		e.index = t, this.sendCommand(e)
	}, e.sendC2S_WarPetKunDevourMessage = function() {
		this.sendCommand(this.createCmd(16548))
	}, e.sendC2S_WarPetKunUseTunTianMessage = function() {
		this.sendCommand(this.createCmd(16550))
	}, e.sendC2S_fenjie = function(t) {
		var e = this.createCmd(16542);
		e.listPetId = t, this.sendCommand(e)
	}, e.sendC2S_WarPetChangeTalnetMessage = function(t, e, i) {
		var n = this.createCmd(16555);
		n.petId = t, n.itemId = e, n.index = i, this.sendCommand(n)
	}, e.sendC2S_WarPetTalnetBookFuseMessage = function(t, e) {
		void 0 === e && (e = 0);
		var i = this.createCmd(16554);
		i.itemId = t, i.type = e, this.sendCommand(i)
	}, e.sendC2S_WarPetUpDetailMessage = function(t, e) {
		var i = this.createCmd(16561);
		i.itemid = e, i.petId = LongUtil.fromString(t), this.sendCommand(i)
	}, e
}(BaseConnectionSender);
__reflect(WarpetCommandSender.prototype, "WarpetCommandSender");
var WearEquipCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_WearEquipOneKeyMessage = function(t, e) {
		var i = this.createCmd(16558);
		i.equipIds = t, i.index = e, this.sendCommand(i)
	}, e.sendShenluUpgradeMessage = function(t, e) {
		var i = this.createCmd(16551);
		i.indexId = t, i.equipId = e, this.sendCommand(i)
	}, e.sendWearEquipMessage = function(t, e, i) {
		void 0 === e && (e = -1), void 0 === i && (i = 1), this.sendWearEquipById(t.int64Id, e, i)
	}, e.sendWearFaBaoEquipMessage = function(t, e, i) {
		void 0 === e && (e = -1), void 0 === i && (i = 1);
		var n = this.createCmd(16023);
		n.itemId = t, n.pos = e, n.index = i, this.sendCommand(n)
	}, e.sendWearEquipById = function(t, e, i) {
		void 0 === e && (e = -1), void 0 === i && (i = 1);
		var n = this.createCmd(16182);
		n.itemId = t, n.pos = e, n.index = LongUtil.fromNumber(i), this.sendCommand(n)
	}, e.sendUnwearEquipMessage = function(t, e, i) {
		void 0 === i && (i = 1);
		var n = this.createCmd(16148);
		n.itemId = LongUtil.fromString(t), n.pos = e, n.index = LongUtil.fromNumber(i), this.sendCommand(n)
	}, e.sendAllEquipMessage = function() {
		var t = App.data.wearEquipCenter.getRoleWearList(App.global.characterData.roleIndex);
		if (null != t)
			for (var e, i = 0; i < t.length; i++) e = t[i], this.sendUnwearEquipMessage(e.id, e.position)
	}, e
}(BaseConnectionSender);
__reflect(WearEquipCommandSender.prototype, "WearEquipCommandSender");
var XSRWCommandSender = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.sendXSRWLimitTimeTask = function() {
		var t = this.createCmd(16418);
		this.sendCommand(t)
	}, e.sendXSRWaward = function(t) {
		var e = this.createCmd(16420);
		e.configId = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(XSRWCommandSender.prototype, "XSRWCommandSender");
var MainLayer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.sceneLayer = new h5_engine.MapSceneView, e.sceneLayer.touchEnabled = !1, e.sceneLayer.touchChildren = !0, e
			.addChild(e.sceneLayer), e.mainLayer = e.makeLayer(!1, !0), e.moduleLayer = e.makeLayer(!1, !0, "moduleLayer"), e.popLayer =
			e.makeLayer(!1, !0, "popLayer"), e.commonLayer = e.makeLayer(!1, !0, "commonLayer"), e.zoneLayer = e.makeLayer(!1,
				!0, "zoneLayer"), e.panelLayer = e.makeLayer(!1, !0, "panelLayer"), e.storyLayer = e.makeLayer(!1, !0,
				"storyLayer"), e.tipLayer = e.makeLayer(!1, !0, "tipLayer"), e.guideLayer = e.makeLayer(!1, !0, "guideLayer"), e.gmLayer =
			e.makeLayer(!1, !0, "gmLayer"), e.messageLayer = e.makeLayer(!1, !1, "messageLayer"), e
	}
	return __extends(e, t), e.prototype.makeLayer = function(t, e, i) {
		void 0 === i && (i = "eui.layer");
		var n = this.addChild(new eui.UILayer);
		return n.touchEnabled = t, n.touchChildren = e, n.name = i, n
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(MainLayer.prototype, "MainLayer");
var DataJsonPackageParser = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._total = 0, e._crt = 0, e._parseTime = 0, DataConfigUtils.instance = e, e._event = new egret.EventDispatcher,
			e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "event", {
		get: function() {
			return this._event
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.start = function() {
		var t = "cfg/clientCfg.gif",
			e = t.replace(".gif", "_" + WebParams.cfgver + ".gif");
		e = WebParams.cdn + e;
		var i = new HttpLoader;
		i.httpCompleteFun = new FunctionVO(this.onDataComplete, this), i.send(e, null, egret.HttpResponseType.ARRAY_BUFFER)
	}, e.prototype.onDataComplete = function(t) {
		this._crt = 0, this._total = App.config.configList.length;
		var e = t,
			i = e.data,
			n = new JSZip(i),
			a = n.files;
		if (a.hasOwnProperty("config")) {
			var o = n.file("config").asText();
			this._data = StringUtil.JsonParse(o)
		} else this._data = {}, this._cfgNameZip = n;
		App.timer.doFrameOnce(this, 1, this.loadConfig)
	}, e.prototype.loadConfig = function() {
		this._parseTime = egret.getTimer(), this.parseConfig()
	}, e.prototype.onDataProgress = function() {
		App.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "初始化游戏配置数据:", this._crt / this._total)
	}, e.prototype.loadJsonFile = function(t, e, i) {
		var n = t.replace("Bean", DataConfigUtils.SUFIX_MIN);
		this.parseJson(n, t, e, i)
	}, e.prototype.parseConfig = function() {
		if (this._crt == this._total) this._event.dispatchEvent(new egret.Event(egret.Event.COMPLETE));
		else {
			var t = App.config.configList[this._crt];
			t ? (this._crt++, this.onDataProgress(), t.load()) : GameLog.log()
		}
	}, e.prototype.parseJson = function(t, e, i, n) {
		if (this._cfgNameZip) {
			var a = this._cfgNameZip.files;
			if (a.hasOwnProperty(t)) {
				var o = this._cfgNameZip.file(t).asText();
				this._data[t] = o
			}
		}
		var r = this._data[t];
		if (r) try {
			var s = r.split(/\n/gi),
				h = s[0],
				l = s[1],
				p = s[2],
				c = StringUtil.JsonParse(h),
				_ = StringUtil.JsonParse(p),
				d = StringUtil.JsonParse(l);
			i.apply(n, [e, _, d]), delete this._data[t];
			var u = c.hasOwnProperty("totalNum") ? c.totalNum : 1;
			if (1 != u) {
				var g = c.crtNum,
					f = g + 1;
				if (f == u) App.timer.doFrameOnce(this, 1, this.loadConfig);
				else {
					var m = e.replace("Bean", DataConfigUtils.SUFIX_MIN);
					App.timer.doFrameOnce(this, 1, this.parseJson, [m + f, e, i, n])
				}
			} else egret.getTimer() - this._parseTime > 30 ? App.timer.doFrameOnce(this, 1, this.loadConfig) : this.parseConfig()
		} catch (v) {
			GameLog.log("解析" + t + "配置数据出错" + v.stack)
		} else GameLog.log("未找到" + t + "的配置数据"), this.parseConfig()
	}, e.prototype.beanConfigPropertyError = function(t, e) {}, e.prototype.notHaveBean = function(t, e) {
		GameLog.logWarn("配置表里缺少条目，表名: [" + t + "] 条目名： " + e, "配置表错误")
	}, e
}(DataConfigUtils);
__reflect(DataJsonPackageParser.prototype, "DataJsonPackageParser");
var DataJsonPackParser_v2 = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._total = 0, e._crt = 0, DataConfigUtils.instance = e, e._event = new egret.EventDispatcher, e._data = {}, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "event", {
		get: function() {
			return this._event
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.start = function() {
		var t = "cfg/clientCfg.gif",
			e = t.replace(".gif", "_" + WebParams.cfgver + ".gif");
		e = WebParams.cdn + e;
		var i = new HttpLoader;
		i.httpCompleteFun = new FunctionVO(this.onDataComplete, this), i.send(e, null, egret.HttpResponseType.ARRAY_BUFFER)
	}, e.prototype.onDataComplete = function(t) {
		this._crt = 0, this._total = App.config.configList.length;
		var e = t,
			i = e.data;
		this._cfgBytes = new egret.ByteArray(i);
		var n = this._cfgBytes.readInt();
		this._total > n ? GameLog.log("配置表的数据跟代码的数据长度有偏差") : App.timer.doFrameLoop(this, 1, this.readerConfigBytes)
	}, e.prototype.readerConfigBytes = function() {
		var t = this._cfgBytes.readInt(),
			e = new egret.ByteArray;
		this._cfgBytes.readBytes(e, 0, t);
		var i = e.buffer,
			n = new JSZip(i),
			a = n.files;
		for (var o in a) {
			var r = n.file(o).asText();
			this._data[o] = r
		}
		0 == this._cfgBytes.bytesAvailable && (App.timer.clearTimer(this.readerConfigBytes, this), App.timer.doFrameLoop(
			this, 1, this.loadConfig))
	}, e.prototype.loadConfig = function() {
		if (this._crt == this._total) App.timer.clearTimer(this.loadConfig, this), this._event.dispatchEvent(new egret.Event(
			egret.Event.COMPLETE));
		else {
			var t = App.config.configList[this._crt];
			t.load(), this._crt++, this.onDataProgress()
		}
	}, e.prototype.onDataProgress = function() {
		App.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "初始化游戏配置数据解析", this._crt / this._total)
	}, e.prototype.loadJsonFile = function(t, e, i) {
		var n = t.replace("Bean", DataConfigUtils.SUFIX_MIN),
			a = this._data[n];
		if (a) try {
			var o = a.split(/\n/gi),
				r = (o[0], o[1]),
				s = o[2],
				h = StringUtil.JsonParse(s),
				l = StringUtil.JsonParse(r);
			e.apply(i, [t, h, l]), delete this._data[n]
		} catch (p) {
			GameLog.log("解析" + n + "配置数据出错" + p.stack)
		} else GameLog.log("未找到" + n + "的配置数据")
	}, e.prototype.beanConfigPropertyError = function(t, e) {}, e.prototype.notHaveBean = function(t, e) {
		GameLog.logWarn("配置表里缺少条目，表名: [" + t + "] 条目名： " + e, "配置表错误")
	}, e
}(DataConfigUtils);
__reflect(DataJsonPackParser_v2.prototype, "DataJsonPackParser_v2");
var DataJsonParser = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._count = 0, e._totalConfigLen = 0, DataConfigUtils.instance = e, e._totalConfigLen = App.config.configList.length,
			e._urlConfigHash = new HashObject, e._event = new egret.EventDispatcher, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "event", {
		get: function() {
			return this._event
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.loadJsonFile = function(t, e, i) {
		var n = "?" + 1e5 * Math.random();
		(Config.isWxGame || Config.isBaiduGame) && (n = "");
		var a = t.replace("Bean", DataConfigUtils.SUFIX_MIN),
			o = ResPathUtil.getGameDataConfig(a) + n;
		this._urlConfigHash.put(o, {
			name: t,
			fun: e,
			thisArg: i,
			path: o
		});
		var r = new HttpLoader;
		r.httpCompleteFun = new FunctionVO(this.onComplete, this), r.send(o)
	}, e.prototype.onComplete = function(t) {
		var e = t.data,
			i = t.url;
		if (e) {
			var n = this._urlConfigHash.get(i),
				a = e,
				o = a.split(/\n/gi),
				r = (o[0], o[1]),
				s = o[2],
				h = StringUtil.JsonParse(s),
				l = StringUtil.JsonParse(r),
				p = n.name,
				c = n.fun,
				_ = n.thisArg;
			c.apply(_, [p, h, l])
		} else GameLog.logError("配置文件加载失败：" + i);
		this._count++, this.onDataLoaderProgress(), this._count >= this._totalConfigLen && this._event.dispatchEvent(new egret
			.Event(egret.Event.COMPLETE))
	}, e.prototype.onDataLoaderProgress = function() {
		App.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "初始化游戏配置数据解析", this._count / this._totalConfigLen)
	}, e.prototype.beanConfigPropertyError = function(t, e) {}, e.prototype.notHaveBean = function(t, e) {
		DebugPanel.show("配置表里缺少条目，表名: [" + t + "] 条目名： " + e, "配置表错误")
	}, e
}(DataConfigUtils);
__reflect(DataJsonParser.prototype, "DataJsonParser");
var GameVersionParser = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._crtIndex = 0, e._versonListLeng = 0, e._resVersionObj = {}, e._frame = new egret.Shape, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._resVerHash = new HashObject, this._resVerToOrgenHash = new HashObject
	}, e.prototype.getVersionPath = function(t) {
		var e = this._resVerHash.get(t);
		return e ? e : Config.isRelease ? (GameLog.logWarn("请求的资源，在版本配置文件内不存在: ", t), t + "_error") : t
	}, e.prototype.getOrigenPath = function(t) {
		var e = this._resVerToOrgenHash.get(t);
		return e ? e : t
	}, e.prototype.start = function(t, e, i) {
		this._callBack = e, this._parmas = i;
		try {
			var n = new JSZip(t),
				a = n.file("cfg").asBinary(),
				o = StringUtil.JsonParse(a);
			o.comver;
			delete o.comver, this._resVersionObj = o, this.readVersionData()
		} catch (r) {
			GameLog.logError("版本文件解析出错！")
		}
	}, e.prototype.readVersionData = function() {
		this._resVerList = [];
		for (var t in this._resVersionObj) {
			var e = this._resVersionObj[t],
				i = e.split(/\n/gi);
			this._resVerList = this._resVerList.concat(i)
		}
		this._versonListLeng = this._resVerList.length, this.startRead()
	}, e.prototype.startRead = function() {
		this._frame.addEventListener(egret.Event.ENTER_FRAME, this.readVersion, this), this.readVersion()
	}, e.prototype.readVersion = function(t) {
		var e = this._crtIndex + 1e3;
		for (e > this._versonListLeng && (e = this._versonListLeng); this._crtIndex < e;) {
			var i = this._resVerList[this._crtIndex],
				n = i.split("|"),
				a = n[0],
				o = n[1],
				r = this.getVersonName(a, o);
			this._resVerHash.put(a, r), this._resVerToOrgenHash.put(r, a), this._crtIndex++
		}
		this._crtIndex >= this._versonListLeng && this.readFinish()
	}, e.prototype.getVersonName = function(t, e) {
		if (-1 != t.indexOf(".")) return -1 != t.indexOf("default.res.json") || -1 != t.indexOf("default.thm.json") ? (t =
			t.replace("default.", "default_" + e + "."), t = t.replace("res.", "res_" + e + "."), t = t.replace("thm.",
				"thm_" + e + ".")) : t.replace(".", "_" + e + ".");
		var i = t.lastIndexOf("/"),
			n = t.slice(0, i);
		return n + "_" + e + "/"
	}, e.prototype.readFinish = function() {
		this._frame.removeEventListener(egret.Event.ENTER_FRAME, this.readVersion, this), this._callBack.exec(this._parmas)
	}, e
}(Dispose);
__reflect(GameVersionParser.prototype, "GameVersionParser");
var PreLoaderCenter = function() {
	function t() {
		this._crt = 0, this._total = 0
	}
	return t.prototype.loadPreload = function() {
		var t = 0; - 1 != Config.createRoleSex && -1 != Config.createRoleJob && (t += this.loadAction(Config.createRoleJob,
				Config.createRoleSex), t += this.loadJobSkill(Config.createRoleJob), t += this.loadHejiSkill(Config.createRoleJob,
				!1), t += 1, this.makeLoader(ResPathUtil.getMenuEffect("lvup", "1"), NetResourceType.ANI_EFFECT)), this._total =
			t, 0 == this._total ? this.finish() : this.progress(0, t)
	}, t.prototype.loadHejiSkill = function(t, e) {
		void 0 === e && (e = !0);
		var i = EnumSkillID.HEJI_ZHANSHI;
		return t == EnumRole.FA_SHI && (i = EnumSkillID.HEJI_FASHI), t == EnumRole.DAO_SHI && (i = EnumSkillID.HEJI_DAOSHI),
			this.loadSkill(i, e)
	}, t.prototype.loadJobSkill = function(t) {
		var e = EnumSkillID.PU_TONG_ZHAN_SHI;
		return t == EnumRole.FA_SHI && (e = EnumSkillID.PU_TONG_FA_SHI), t == EnumRole.DAO_SHI && (e = EnumSkillID.PU_TONG_DAO_SHI),
			this.loadSkill(e)
	}, t.prototype.loadSkill = function(t, e) {
		void 0 === e && (e = !1);
		var i = 0;
		if (t > 0) {
			var n = GameUtil.getSkillConfigData(t, 1);
			if (n.q_use_effect)
				if (0 != n.q_skill_dir)
					for (var a = 0; 5 > a; a++) {
						var o = ResPathUtil.parseSkillEffect(n.q_File_client, n.q_use_effect, a);
						i += this.loadSkllAni(o, e)
					} else {
						var o = ResPathUtil.parseSkillEffect(n.q_File_client, n.q_use_effect);
						i += this.loadSkllAni(o, e)
					}
			if (n.q_trajectory_effect) {
				var o = ResPathUtil.parseSkillEffect(n.q_File_client, n.q_trajectory_effect);
				i += this.loadSkllAni(o, e)
			}
			if (n.q_hit_effect) {
				var o = ResPathUtil.parseSkillEffect(n.q_File_client, n.q_hit_effect);
				i += this.loadSkllAni(o, e)
			}
		}
		return i
	}, t.prototype.loadSkllAni = function(t, e) {
		for (var i = 0, n = t.length, a = 0; n > a; a++) {
			var o = t[a];
			this.makeLoader(o, NetResourceType.ANI_EFFECT, e), i++
		}
		return i
	}, t.prototype.loadAction = function(t, e) {
		for (var i = EnumRole.getDefaultBody(t, e), n = [AvatarActionType.ACTION_TYPE_STAND, AvatarActionType.ACTION_TYPE_RUN,
				AvatarActionType.ACTION_TYPE_SKILL_ATK0, AvatarActionType.ACTION_TYPE_SKILL_ATK1, AvatarActionType.ACTION_TYPE_SKILL_ATK2
			], a = 0, o = n.length, r = 0; o > r; r++) {
			var s = n[r];
			if (s)
				for (var h = 0; 5 > h; h++) {
					var l = ResPathUtil.getMapAvatarPartRes(AvatarPartType.BODY, e, i),
						p = ResPathUtil.getAvatarPartUrl(l, s, h);
					this.makeLoader(p, NetResourceType.CHAR_AVATAR, !1), a++
				}
		}
		return a
	}, t.prototype.makeLoader = function(t, e, i) {
		void 0 === i && (i = !1);
		var n = new h5_engine.NetLoader;
		0 == i && n.netHandler.addCompleteHandler(this, new FunctionVO(this.loadComplete, this, n)), n.resType = e, n.url =
			t
	}, t.prototype.loadComplete = function(t) {
		this._crt++, t.dispose(), this.progress(this._crt, this._total), this._crt == this._total && this.finish()
	}, t.prototype.progress = function(t, e) {
		App.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "加载预加载资源", t / e)
	}, t.prototype.finish = function() {
		App.dispatcher.dispatchEvent(PreLoadEvent.INIT_GAME)
	}, t
}();
__reflect(PreLoaderCenter.prototype, "PreLoaderCenter");
var LogType = function() {
	function t() {}
	return t.TYPE_NET_RESLOVE_MAX = 7, t.TYPE_NET_SEND_MAX = 15, t.TYPE_NET_ERROR = 16, t.TYPE_XING_NENG = 13, t.TYPE_STACK =
		14, t.TYPE_GAME_ERROR = 3, t.TYPE_GAME_LOGIN_ERROR = 4, t.TYPE_UI_LOAD_ERROR = 5, t.TYPE_UNKNOW_ERROR = 3, t.TYPE_LOGIN_STEP =
		50, t.TYPE_LOGIN_CREATE_SHOW = 51, t.TYPE_LOGIN_CREATE_START = 52, t.CHANGE_MAP_LOAD_USE_TIME = 6, t.TYPE_LOAD_ = 8,
		t.TYPE_USE_SKILL = 9, t
}();
__reflect(LogType.prototype, "LogType");
var ConnectionError = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		Config.socket.tipSocketClose = new FunctionVO(this.tipSocketClose, this), Config.socket.tipNocticFunc = new FunctionVO(
				this.tipNocticFunc, this), Config.socket.tipCallBackError = new FunctionVO(this.tipCallBackError, this), Config.socket
			.cmdFrameMaxFunc = new FunctionVO(this.onCmdFrameMaxFunc, this)
	}, t.prototype.tipSocketClose = function(t) {
		Config.isSubstitute || (Config.isEnterGame ? (this._reLogin || (this._reLogin = new ReLoginModule), this._reLogin.doReConnect(
				t), 0 == this._reLogin.reLoginAletrIsShow() && App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !0)) :
			this.showSocketErrorAlert(t))
	}, t.prototype.showSocketErrorAlert = function(t) {
		Alert.show(t, "网络连接失败", "重新连接", function() {
			ReLoginModule.reConnectFun()
		}, this)
	}, t.prototype.tipNocticFunc = function(t, e) {
		if (void 0 === e && (e = ""), Config.isEnterGame) {
			t = "loginId:" + WebParams.loginid + ",Ver: " + Config.releaseVersion + "," + t, GameLog.log(t + "，" + e);
			var i = t;
			Config.isRelease && (i = "网络断开, 请联系GM"), 0 == Config.isSubstitute && Alert.show(i, "网络异常")
		} else {
			var i = "loginid: " + WebParams.loginid + ", ClientVer:" + Config.releaseVersion + "[" + (new Date).toString() +
				"]" + t;
			Alert.show(i, "账号异常"), WebParams.setLoginWebLog("登录异常: " + t + "," + e)
		}
	}, t.prototype.tipCallBackError = function(t, e) {
		(Config.isDebug || 0 == Config.isRelease) && this.tipNocticFunc(t, e)
	}, t.prototype.onCmdFrameMaxFunc = function(t) {
		for (var e = new HashMap, i = t.length, n = 0, a = 0; i > a; a++) {
			var o = t[a],
				r = o[0],
				s = e.get(r);
			s++, e.put(r, s), s > n && (n = s)
		}
		if (n > 100 || i >= 150) {
			for (var h = "", l = e.length, p = e.keys, c = e.values, _ = 0; l > _; _++) h += p[_] + ", count: " + c[_] + "\r";
			if (App.global.characterData && GameUtil.getMapConfigData(App.global.characterData.mapId)) {
				"网络包淤积, 所在地图：" + App.global.characterData.mapId + GameUtil.getMapConfigData(App.global.characterData.mapId).q_map_name +
					"，位置：[" + App.global.characterData.serverMap_x + "，" + App.global.characterData.serverMap_y + "]\rVer：" + Config
					.releaseVersion + "\r" + h;
				GameLog.logDebug("网络包淤积：" + h)
			}
		}
	}, t
}();
__reflect(ConnectionError.prototype, "ConnectionError");
var GameMessagePool = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e, "ins", {
		get: function() {
			return this._ins || (this._ins = new e), this._ins
		},
		enumerable: !0,
		configurable: !0
	}), e
}(net.MessagePool_v2);
__reflect(GameMessagePool.prototype, "GameMessagePool", ["IMessagePool"]);
var GameNetConnection = function(t) {
	function e(e) {
		return t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.startSocketFrameLoop = function() {
		App.timer.doFrameLoop(this, 1, this.onSocketEnterFrame)
	}, e
}(BaseConnection);
__reflect(GameNetConnection.prototype, "GameNetConnection");
var ComItemVo = function() {
	function t(t, e, i) {
		void 0 === t && (t = ""), void 0 === e && (e = ""), void 0 === i && (i = null), this.bg = t, this.info = e, this.data =
			i
	}
	return t
}();
__reflect(ComItemVo.prototype, "ComItemVo");
var ComItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ComItemSkin", e.addEventListener(egret.TouchEvent.TOUCH_TAP, e.onClick, e), e
	}
	return __extends(e, t), e.prototype.onCreate = function() {}, e.prototype.onClick = function(t) {
			this.parent && this.parent.dispatchEvent(new egret.Event(e.EVENT_ITEM_SELECT, !1, !1, this))
		}, e.prototype.setData = function(t) {
			this.data = t, this.img_bg.source = t.bg, this.lb_info.text = t.info
		}, e.prototype.clear = function() {}, e.prototype.dispose = function() {}, e.EVENT_ITEM_SELECT = "EVENT_ITEM_SELECT",
		e
}(eui.Component);
__reflect(ComItem.prototype, "ComItem");
var BaseSinglePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.setViewResize = function() {
			e._view.resize()
		}, e
	}
	return __extends(e, t), e.prototype.convert = function() {
		var t = this.info.viewClass,
			e = this.info.windowClass,
			i = this.info.title,
			n = this.info.width,
			a = this.info.height;
		e && (this._window = new e, this.addChild(this._window)), t && (this._view = new t, this.name = egret.getQualifiedClassName(
			t), null == this._window ? this.addChild(this._view) : egret.is(this._window, "WindowMain") ? (this._window.viewContainer
			.addChild(this._view), this._window.imgTitle.source = i, this._btnClose = this._window.close_btn) : (egret.is(
			this._window, "WindowSecond") ? (this._window.setHeight(a), this._window.setTitle(i), this._btnClose = this._window
			.close_btn) : egret.is(this._window, "WindowThird") ? this._window.setTitle(i) : egret.is(this._window,
			"WindowActivity") && (this._window.imgTitle.source = i, this._btnClose = this._window.btnClose), this.addChild(
			this._view))), this.setWidthAndHeight(n, a)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view && this._view.show(e), this._window && this._window.show(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view && this._view.hide(), this._window && this._window.hide()
	}, e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), this._window && (this._window.dispose(), this._window =
			null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(BaseSinglePanel.prototype, "BaseSinglePanel");
var App = function() {
	function t() {}
	return Object.defineProperty(t, "ins", {
		get: function() {
			return this._instance || (this._instance = new t), this._instance
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.initConfig = function() {
		if (t.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onStageHandler, this), this.loadGameConfig(), !
			Config.isMobile) {
			var e = document.getElementsByTagName("CANVAS")[0];
			e.style.cursor = "default"
		}
	}, t.prototype.onStageHandler = function(e) {
		t.global && (t.global.stageX = e.stageX, t.global.stageY = e.stageY)
	}, t.prototype.loadGameConfig = function() {
		if (t.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "初始化游戏配置数据解析", 0), Config.isRelease) {
			var e = new DataJsonPackageParser;
			e.event.addEventListener(egret.Event.COMPLETE, this.onDataLoaderComplete, this), t.config = new DataManager, e.start()
		} else {
			t.config = new DataManager;
			var i = new DataJsonParser;
			i.event.addEventListener(egret.Event.COMPLETE, this.onDataLoaderComplete, this), t.config.load()
		}
	}, t.prototype.onDataLoaderComplete = function(e) {
		void 0 === e && (e = null), Config.configDataInit = !0, t.preLoader = new PreLoaderCenter, t.preLoader.loadPreload()
	}, t.prototype.initGame = function() {
		t.layer = new MainLayer, t.stage.addChild(t.layer), t.drag = new DragManager, t.tip = new TipManager, t.panel = new PanelManager,
			t.keyBoard = new KeyBoardManager(t.stage), new PanelRegister;
		var e = {};
		if (0 == Config.isRelease) {
			var i = Config.DEFAULT_RES;
			if (i) {
				var n = i.resources;
				if (n)
					for (var a = n.length, o = 0; a > o; o++) {
						var r = n[o],
							s = r.name,
							h = (t.panel.checkRegisterRes(s), r.url);
						e[h] = h
					}
			}
		}
		Config.DEFAULT_RES_URL = e, Config.DEFAULT_RES = null, 0 == Config.isMobile && mouse.enable(t.stage), t.global =
			new GlobalManager, t.global.init(), t.dispatcher.addEventListener(EventType.CHARACTER_ROLE_CREATE, this.onRoleCreate,
				this), t.dispatcher.dispatchEvent(EventType.ENTER_MAP_INIT, Config.mapId)
	}, t.prototype.onRoleCreate = function() {
		t.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_INFO, "初始化主角信息完毕", 1), t.dispatcher.removeEventListener(
				EventType.CHARACTER_ROLE_CREATE, this.onRoleCreate, this), new ZoneRegister, new GameScreen, new KeyManager,
			Config.isEnterGame = !0, egret.setTimeout(function() {
				t.dispatcher.dispatchEvent(PreLoadEvent.PRE_LOADING_COMPLETE)
			}, this, 500), t.global.operate.loginSendMessage(), t.data.chatDataCenter
	}, t
}();
__reflect(App.prototype, "App");
var LuckTanbaoBuyPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityid = 81001, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TanbaoBuyPanelSkin"), this.addChild(this._view), this._gridLayer = new GridContainer(
			EnumGridStyle.GRID_STYLE_NORMAL, 5, 22, 46), this._gridLayer.getController().layerGapY += 15, this._gridLayer.initLayers(
			[GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]
		), this._gridLayer.useScroller(500, 530), this._gridLayer.moveTo(25, 75, this._view);
		var t = (EnumMoney.getName(EnumMoney.YUAN_BAO), App.config.q_globalContainer.getDataBean(294).q_string_value),
			e = this.cutStr(t, "{");
		e = this.cutStr(e, "}"), e = e.replace(/"(\w+)":/g, "$1:");
		var i = e.split(",");
		this.yuanbaoArr = [], this.countArr = [];
		for (var n = 0; n < i.length; n++) {
			var a = i[n].split(":");
			this.yuanbaoArr.push(a[1]), this.countArr.push(a[0])
		}
		this._view.icon1.source = "tanbao_xunchong_png", this.setWidthAndHeight(528, 683)
	}, e.prototype.cutStr = function(t, e) {
		var i, n = t.indexOf(e);
		if (-1 != n) {
			i = "";
			for (var a = 0; n > a; a++) i += t.charAt(a);
			for (var o = n + e.length; o < t.length; o++) i += t.charAt(o)
		}
		return i
	}, e.prototype.showItemRender = function(t, e) {
		var i = new ItemData;
		i.itemId = e.itemId, i.count = e.count, t.setData(i), t.isShowDesc = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreshView(), this.addEvent()
	}, e.prototype.setData = function(t) {
		this.refreshView()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(TanbaoItemCenter.ADD_MYINFO, this.refreshView, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.buyHandler, this, this._view.get_btn)
	}, e.prototype.refreshView = function() {
		var t = App.config.q_globalContainer.getDataBean(293).q_int_value;
		this._gridLayer.dataProvider = App.data.tanbaoCenter.warpetmyInfoList, App.data.tanbaoCenter.warpetmyInfoList && (
			App.data.tanbaoCenter.warpetmyInfoList.length > 2 ? (this._type = this.countArr[1], this._view.countTF0.text = "" +
				this.yuanbaoArr[1], App.data.bagItemDataCenter.getItemCount(t) >= this.countArr[1] ? this._view.countTF1.textFlow =
				HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(t) + "</font>/" + this.countArr[
					1] + ")") : this._view.countTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter
					.getItemCount(t) + "</font>/" + this.countArr[1] + ")")) : (this._type = this.countArr[0], this._view.countTF0.text =
				"" + this.yuanbaoArr[0], App.data.bagItemDataCenter.getItemCount(t) >= this.countArr[0] ? this._view.countTF1.textFlow =
				HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(t) + "</font>/" + this.countArr[
					0] + ")") : this._view.countTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter
					.getItemCount(t) + "</font>/" + this.countArr[0] + ")")), this._view.get_btn.label = "寻宠" + this._type + "次",
			this._gridLayer.dataProvider = App.data.tanbaoCenter.warpetmyInfoList)
	}, e.prototype.buyHandler = function(t) {
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, Number(this._type))
	}, e.prototype.dispose = function() {
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = void 0), this.yuanbaoArr = null, this.countArr =
			null, this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(LuckTanbaoBuyPanel.prototype, "LuckTanbaoBuyPanel");
var PanelBackGround = function(t) {
	function e(e, i, n) {
		var a = t.call(this) || this;
		return a._panelType = e, a._w = i, a._h = n, a.init(), a
	}
	return __extends(e, t), e.prototype.init = function() {
		this.source = this.getPath(), this.scale9Grid = this.getScale9Grid(), this.width = this._w, this.height = this._h
	}, e.prototype.getPath = function() {
		var t;
		switch (this._panelType) {
			case 1:
				t = "dikuang_png";
				break;
			case 2:
				t = "dikuang1_png";
				break;
			case 3:
				t = "dikuang2_png"
		}
		return t
	}, e.prototype.getScale9Grid = function() {
		var t;
		switch (this._panelType) {
			case 1:
				t = new egret.Rectangle(181, 141, 292, 37);
				break;
			case 2:
				t = new egret.Rectangle(222, 232, 210, 78);
				break;
			case 3:
				t = new egret.Rectangle(294, 145, 76, 133)
		}
		return t
	}, Object.defineProperty(e.prototype, "panelType", {
		get: function() {
			return this._panelType
		},
		enumerable: !0,
		configurable: !0
	}), e
}(eui.Image);
__reflect(PanelBackGround.prototype, "PanelBackGround");
var PanelRegister = function() {
	function t() {
		this.register(), this.registerSinglePanel(), this.neverClosePanel()
	}
	return t.prototype.register = function() {
		var t = App.panel;
		t.registerPanel(1, ChatPanel, "chatview_json,warpet_json", !0, !1), t.registerPanel(87, FriendPanel,
				"chatview_json,friend_json", !0, !1), t.registerPanel(5, RolePanel,
				"roleview_json,forge_json,achieve_json, surface_json", !1, !1), t.registerPanel(7, SkillPanel,
				"skill_json,figure_beijing3_jpg", !1, !1), t.registerPanel(23, PracticePanel, "picturebook_json", !1, !1), t.registerPanel(
				1110, AdvancePanel, "", !1, !1), t.registerPanel(6, ForgePanel, "forge_json", !1, !1), t.registerPanel(4,
				BagPanel, "bag_json", !1, !1), t.registerPanel(2020, ChuanQiTaoZhuangViewPanel, "chuanqi_json", !1), t.registerPanel(
				10011, LogPanel, ""), t.registerPanel(10086, GmPanel, "", !1, !1), t.registerPanel(43, BagExtendPanel, "", !0), t
			.registerPanel(18, BagRecoveryPanel, ""), t.registerPanel(1818100, RecovrySettingPanel, "", !0), t.registerPanel(2,
				MailPanel, "chatview_json"), t.registerPanel(3, MallPanel, "mall_json"), t.registerPanel(69, JinjiShopPanel,
				"mall_json"), t.registerPanel(15, BuyItemView, "", !0), t.registerPanel(11, TanbaoDepotPanel, "tanbao_json", !0),
			t.registerPanel(2010, HotBloodBuyPanel, "tanbao_json", !0), t.registerPanel(12, RankPanel, "rankview_json"), t.registerPanel(
				13, SystemSetPanel, "", !0), t.registerPanel(16, GodEquipPanel, "roleview_json"), t.registerPanel(45, XSRWPanel,
				""), t.registerPanel(8003, AchieveTimeTaskPanel, ""), t.registerPanel(19, ConsumePanel, "", !0), t.registerPanel(
				20, OpenRolePanel, "roles_json,newopenrole_json,openrolebg"), t.registerPanel(21, GetMetempsyPanel, "", !0), t.registerPanel(
				27, DecomposePanel, "", !0), t.registerPanel(24, ChangeEquipPanel, "", !0), t.registerPanel(25,
				CharacterItemPanel, "roleview_json", !0), t.registerPanel(26, SpecialRingPanel, "roleview_json", !0), t.registerPanel(
				28, RoleHejiPanel, ""), t.registerPanel(14, ZonePanel, "zone_json"), t.registerPanel(34, ZoneFinishPanel,
				"zone_json,fail_json", !0), t.registerPanel(29, BossPanel, "zone_json"), t.registerPanel(30, GuildPanel,
				"guild_json"), t.registerPanel(41, GuildMainPanel, "guild_json", !1, !0, 30), t.registerPanel(31,
				ApplyJoinGuildPanel, "guild_json", !0), t.registerPanel(32, CreateGuildPanel, "guild_json", !0), t.registerPanel(
				81, ManageMemberPanel, "guild_json", !0), t.registerPanel(110, GuildShopPanel, "mall_json", !1, !0, 30), t.registerPanel(
				83, GuildLGPanel, "guild_json", !1, !0, 30), t.registerPanel(84, GuildCangkuPanel, "guild_json", !1, !0, 30), t.registerPanel(
				85, GuildCangkuBagPanel, "guild_json", !0), t.registerPanel(86, GuildEquipLogPanel, "guild_json", !0), t.registerPanel(
				88, SurfaceLevelUPViewPanel, "", !0), t.registerPanel(40002, InvitationPanel, "", !0), t.registerPanel(40003,
				DownLoadPanel, "", !0), t.registerPanel(47, ShabakMainPanel, "shabak_json", !1, !0, 30), t.registerPanel(48,
				ShabakOneRankPanel, "shabak_json"), t.registerPanel(35, VipPanel, "vip_json"), t.registerPanel(36, JingJiPanel,
				"knight_json,wangzhe_json"), t.registerPanel(58, WangZheZBPanel, "wangzhe_json", !0), t.registerPanel(37,
				PersonalJJRankPanel, "wangzhe_json", !0), t.registerPanel(114, PersonalJJExpliotPanel, "wangzhe_json", !0), t.registerPanel(
				40, MailDetailPanel, "chatview_json", !0), t.registerPanel(41, CheckPlayerPanel, "rankview_json", !0), t.registerPanel(
				42, SurfaceTitlePanel, "surface_json"), t.registerPanel(51, RunesPanel, ""), t.registerPanel(53, RunesChangePanel,
				"", !0), t.registerPanel(52, RunesDecomposePanel, "", !0), t.registerPanel(55, FirstFlushPanel, "firstflush_json",
				!0), t.registerPanel(56, YeZhanBiQiRewardPanel, "yezhanbiqi_json", !0), t.registerPanel(203, YeZhanBiEndRankPanel,
				"yezhanbiqi_json", !0), t.registerPanel(57, OfflineExpPanel, "", !0), t.registerPanel(60, SignPanel,
				"loginreward_json"), t.registerPanel(49, RevivePanel, "", !0, !0), t.registerPanel(62, NearbyPlayerPanel,
				"nearbyPlayer", !0), t.registerPanel(63, NearbyPlayerRankPanel, "wangzhe_json", !0), t.registerPanel(64,
				NearbyPlayerClearPkPanel, "wangzhe_json", !0), t.registerPanel(65, TreasureSkillPanel, "", !0), t.registerPanel(
				66, ArtifacOneAttrPanel, "", !0), t.registerPanel(82, TaskLimitPanel, "tasksecret_json", !0), t.registerPanel(300,
				ExpHintPanel, "", !0), t.registerPanel(2006, LuckTanbaoBuyPanel, "tanbao_json,warpet_json", !0), t.registerPanel(
				70, HejiSkillYlPanel, ""), t.registerPanel(101, RoleRingEquipPanel, "SpecialRing_YC_json"), t.registerPanel(1011,
				RingActivePanel, "SpecialRing_YC_json", !0), t.registerPanel(71, WeaponSoulItemPanel, "weaponSoul", !0), t.registerPanel(
				72, WeaponSoulUpPanel, "weaponSoul", !0), t.registerPanel(73, WingGodPanel, "winggod_json"), t.registerPanel(74,
				MinerSelectPanel, "digore_json"), t.registerPanel(75, MinerFightPanel, "digore_json", !0), t.registerPanel(76,
				MinerGetRewardPanel, "digore_json", !0), t.registerPanel(77, MinerFightLogsPanel, "digore_json", !0), t.registerPanel(
				78, MinerOthersPanel, "digore_json", !0), t.registerPanel(102, ActivityMain,
				"kfhd_json,loginreward_json,crossServiceAct_json"), t.registerPanel(103, ActivityRankPanel, "", !0), t.registerPanel(
				104, NameChangePanel, "", !0), t.registerPanel(106, MallYulanPanel, "", !0), t.registerPanel(107,
				BagZoneAlertPanel, "", !0, !1), t.registerPanel(116, ActRewardConfirmPanel, "", !0), t.registerPanel(3002,
				ActRewardConfirmTuhaoPanel, "", !0), t.registerPanel(111, VipLevelGift, "vip3gift_json", !0), t.registerPanel(205,
				ChargePanel, "charge_json, vip_json"), t.registerPanel(200, BossRewardPanel, "", !0), t.registerPanel(113,
				TaskDaobaoPanel, "", !0), t.registerPanel(10010, ChatBlackView, "", !0), t.registerPanel(10013, GuanZhuView,
				"loginreward_json", !0), t.registerPanel(10012, GuanzhuTipView, "", !0), t.registerPanel(3001,
				GetRedEnvelopesView, "loginreward_json", !0), t.registerPanel(2012, KunHongBaoShowView, "loginreward_json", !0),
			t.registerPanel(115, MakeItemShowRewardPanel, "", !0), t.registerPanel(400, ZoneRewardGetPanel, "", !0), t.registerPanel(
				117, CombinatorialArtifactUpLvPanel, "", !0), t.registerPanel(118, CombinatorialArtifactPanel, "", !1, !0, 23, 1),
			t.registerPanel(99999, PayViewPanel, "payview_json", !0), t.registerPanel(2007, NationalDayActivityPanel,
				"kfhd_json"), t.registerPanel(250, CrossServiceActPanel, "crossServiceAct_json"), t.registerPanel(251,
				CrossKillMonsterPanel, "crossServiceAct_json", !1, !0, 250), t.registerPanel(252, CrossFightRewardPanel,
				"crossServiceAct_json", !1, !0, 250), t.registerPanel(254, CrossExpoiltRankPanel, "", !0), t.registerPanel(253,
				CrossFightLogPanel, "", !0), t.registerPanel(119, CustomerServicePanel, "", !1, !1), t.registerPanel(8e3,
				WarpetPanel, "warpet_json"), t.registerPanel(8001, WarpetChoosePanel, "warpet_json", !0), t.registerPanel(8002,
				WarpetDetailPanel, "warpet_json", !0), t.registerPanel(8005, WarpetTalentChoosePanel, "warpet_json", !0), t.registerPanel(
				8006, WarpetTalentComposePanel, "warpet_json", !0), t.registerPanel(8004, ShenluPanel, "forge"), t.registerPanel(
				7007, WarpetMallPanel, "warpetbusiness_json"), t.registerPanel(9e3, AdvanceEquipTipView, "", !0), t.registerPanel(
				9001, AdvanceUsePropView, "", !0), t.registerPanel(9003, AdvanceZhiShengDanView, "", !0), t.registerPanel(9002,
				AdvanceStrengView, "", !0), t.registerPanel(1e4, FaBaoUpStarTip, "", !0), t.registerPanel(10001, HeChengPanel, "",
				!0), t.registerPanel(3e4, GodEquipTipPanel, "", !0), t.registerPanel(30001, GodEquipUpLevelPanel, "", !0), t.registerPanel(
				30002, GodEquipDecomposePanel, "", !0), t.registerPanel(30003, GodEquipDetailsPanel, "", !0), t.registerPanel(4e4,
				PTButterflyVerifyPanel, "", !0), t.registerPanel(40007, PTButterflySubscribePanel, "", !0), t.registerPanel(40006,
				PTButterflyToDesktopPanel, "", !0), t.registerPanel(40001, PTButterflyBindPanel, "", !0), t.registerPanel(40005,
				PTButterflyVIPKeFuPanel, "", !0), t.registerPanel(40004, PTButterflyKeFuPanel, "")
	}, t.prototype.neverClosePanel = function() {
		var t = App.panel;
		t.neverClosePanel(59), t.neverClosePanel(49), t.neverClosePanel(99999), t.neverClosePanel(68)
	}, t.prototype.registerSinglePanel = function() {
		var t = App.panel;
		t.registerSinglePanel(22, PrestigeView, WindowMain, "titleview_weiwang_png", "knight_json", 640, 932, !1, !0, 36),
			t.registerSinglePanel(112, BossDaoBaoView, WindowMain, "titleview_daobaozei_png", "", 640, 932), t.registerSinglePanel(
				79, PictureBookTipView, null, "", "roleview_json", 392, 690, !0), t.registerSinglePanel(80, PictureActivateView,
				WindowSecond, "图鉴详情", "picturebook_json", 528, 655, !0), t.registerSinglePanel(109, TaskTalkView, null, "", "",
				640, Config.SCREEN_HEIGHT, !0), t.registerSinglePanel(108, TargetView, null, "", "target_json", 640, 932, !0), t.registerSinglePanel(
				68, TaskSecretView, null, "", "tasksecret_json", 640, 932, !0), t.registerSinglePanel(38, PagodaRankView,
				WindowSecond, "排行榜", "zone_json,rankview_json", 528, 655, !0), t.registerSinglePanel(61, PagodaDailyRewardView,
				WindowThird, "每日奖励", "zone_json", 430, 283, !0), t.registerSinglePanel(201, BossGuildView, WindowMain,
				"titleview_boss_png", "", 640, 932, !1, !0, 30), t.registerSinglePanel(1014, BossXSView, WindowMain,
				"titleview_boss_png", "", 640, 932, !1, !0), t.registerSinglePanel(50, BossRemindView, WindowSecond, "BOSS提醒", "",
				528, 655, !0), t.registerSinglePanel(1012, ActTanBaoView, null, "", "", 640, 932), t.registerSinglePanel(67,
				LetterOfChallengeView, null, "", "challenge_json", 640, 932, !0), t.registerSinglePanel(260,
				CrossServiceActvityView, WindowMain, "titleview_kuafuact_png", "crossServiceAct_json", 640, 932, !1, !0, 250), t.registerSinglePanel(
				202, RoadOfCQComposeView, WindowSecond, "材料合成", "", 528, 447, !0), t.registerSinglePanel(59, ZoneExpFinishView,
				WindowSecond, "每日奖励", "zone_json", 528, 447, !0), t.registerSinglePanel(2001, ReincarnationShengXingView,
				WindowSecond, "升星", "", 528, 633, !0), t.registerSinglePanel(2002, ReincarnationZhuhunView, WindowSecond, "注魂",
				"", 528, 633, !0), t.registerSinglePanel(7e3, AbyssView, WindowMain, "abyss_title_png", "abyss_json", 640, 932, !
				0), t.registerSinglePanel(7001, AbyssMallView, WindowActivity, "titleview_mall_png", "mall_json", 640, 932), t.registerSinglePanel(
				105, MeirichongzhiView, null, "", "meiri_json", 623, 759, !0), t.registerSinglePanel(2003, WarPetSelectView,
				WindowSecond, "选择孵化", "warpet_json", 518, 700, !0), t.registerSinglePanel(2008, WarpetJiasuView, null, "孵化加速",
				"warpet_json", 378, 373, !0), t.registerSinglePanel(2011, MailibaoView, null, "", "giftview_json", 536, 762, !0),
			t.registerSinglePanel(2004, WarPetYulanView, null, "", "warpet_json", 536, 753, !0), t.registerSinglePanel(7002,
				KunDevourView, WindowSecond, "吞噬奖励", "warpet_json", 528, 659, !0), t.registerSinglePanel(7005, KunPreviewView,
				null, "", "", 640, 1062, !0), t.registerSinglePanel(7003, PromiseView, null, "", "vow_json", 640, 1e3, !0), t.registerSinglePanel(
				7004, PromiseAlert, null, "", "", 378, 344, !0), t.registerSinglePanel(8, TanBaoView, WindowMain,
				"titleview_xunbao_png", "tanbao_json", 640, 932, !1, !0, -1, !1), t.registerSinglePanel(2005, LuckTanbaoView,
				WindowMain, "titleview_icon_237_png", "tanbao_json,warpet_json", 640, 932, !1, !0, -1, !1), t.registerSinglePanel(
				2009, HotBloodTanbaoView, WindowMain, "titleview_xunbao_png", "tanbao_json,warpet_json", 640, 932, !1, !0, -1, !1
			), t.registerSinglePanel(2031, PingTai37ActivityView, null, "37平台", "pt_37_json", 458, 565, !0), t.registerSinglePanel(
				2030, PingTaiSelectView, null, "37平台", "pt_37_json", 500, 100, !0), t.registerSinglePanel(7010, CrossFlagView,
				WindowMain, "crossflag_diwanghuangcheng_png", "crossflag_json", 640, 932, !1, !0, -1, !1), t.registerSinglePanel(
				1021, VipLibaoPanel, null, "", "vip_libao_json"), t.registerSinglePanel(39, LibaoView, null, "", "vip_libao_json"),
			t.registerSinglePanel(2e4, OtherRolePanel, null, null, "roleview_json", 640, 932, !1, !0, -1, !0)
	}, t
}();
__reflect(PanelRegister.prototype, "PanelRegister");
var TabBase = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this.roleList && (this.roleList.destroy(), this.roleList = null), this.fightPower && (this.fightPower.dispose(),
			this.fightPower = null), this.callback = null, this.tag = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TabBase.prototype, "TabBase");
var Config = function() {
	function t() {}
	return Object.defineProperty(t, "isDebug", {
			get: function() {
				return this._isDebug
			},
			set: function(t) {
				this._isDebug != t && (this._isDebug = t, App.dispatcher.dispatchEvent(EventType.DEBUG_MODE_CHANGE))
			},
			enumerable: !0,
			configurable: !0
		}), t.isAllShow = function() {
			return t.isPhoneX
		}, t.getProResPath = function(e) {
			return t.PRO_PATH + t.loginResVersion.getVersionPath(e) + t.debugVersion
		}, t.GAME_NAME = "wkz_", t._isDebug = !1, t.OS = "", t.isMobile = !1, t.iosTouchMusicPlay = !1, t.isWxGame = !1, t.isBaiduGame = !
		1, t.isPhoneX = !1, t.isWebGL = !0, t.isNeiZhiWeb = !1, t.isRelease = !1, t.msgServerVerson = 0, t.mapId = 0, t.configDataInit = !
		1, t.createRoleSex = 1, t.createRoleJob = 1, t.isNeedExitGameBtn = !1, t.isNeedKeFuBtn = !1, t.gameSceneSpeed = 1, t
		.debugVersion = "", t.releaseVersion = "clientVerson: 2018-02-07 10:40", t.SCREEN_WIDTH = 640, t.SCREEN_HEIGHT =
		1062, t.isSubstitute = !1, t.isEnterGame = !1, t.ASSETS_PATH = "resource/", t.CFG_PATH =
		"http://192.168.13.90/resource/h5_wkz/cfg/", t.RES_PATH = "http://192.168.13.90/resource/h5_wkz/res/", t.PRO_PATH =
		t.ASSETS_PATH + "pro/", t.DEFAULT_RES = null, t.DEFAULT_RES_URL = null, t
}();
__reflect(Config.prototype, "Config");
var Main = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._proErrorCount = 0, window.VScrollPanelMoveOne = VScrollPanelMoveOne, window.IconCimg = IconCimg, window.FightPower =
			FightPower, window.VipSpectalItem = VipSpectalItem, window.PriceBar = PriceBar, window.RoleFigureUI = RoleFigureUI,
			e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		t.prototype.createChildren.call(this), this.runGame()["catch"](function(t) {
			console.log("启动游戏错误:"), console.log(t)
		})
	}, e.prototype.runGame = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e, i, n, a;
			return __generator(this, function(o) {
				switch (o.label) {
					case 0:
						return Config.OS = egret.Capabilities.os, egret.Capabilities.runtimeType == egret.RuntimeType.WXGAME ?
							Config.isWxGame = !0 : egret.Capabilities.runtimeType == egret.RuntimeType.BAIDUGAME && (Config.isBaiduGame = !
								0), Config.isPhoneX = this.stage.stageHeight / this.stage.stageWidth >= 2 ? !0 : !1, Config.isMobile =
							egret.Capabilities.isMobile, Config.isWxGame ? (Config.isRelease = 1 == window.isRelease ? !0 : !1, egret.sys
								.screenAdapter = new ScreenAdapter_v1, this.stage.scaleMode = egret.StageScaleMode.FIXED_WIDTH) : (Config
								.isRelease = window.isRelease ? !0 : !1, Config.isMobile ? (egret.sys.screenAdapter = new ScreenAdapter_v1,
									this.stage.scaleMode = egret.StageScaleMode.FIXED_NARROW) : (egret.sys.screenAdapter = new ScreenAdapter_v1,
									this.stage.scaleMode = egret.StageScaleMode.FIXED_NARROW)), this.stage.orientation = egret.OrientationMode
							.AUTO, FunctionApply.OPEN_TRY_CATCH = !0, GameLog.isTraceLog = !Config.isRelease, egret.ImageLoader.crossOrigin =
							"anonymous", egret.TextField.default_fontFamily = Style.FONT, this.stage.registerImplementation(
								"eui.IAssetAdapter", new AssetAdapter), this.stage.registerImplementation("eui.IThemeAdapter", new ThemeAdapter),
							t = window.js_gameVars, App.dispatcher = new EventManager, App.platform = new PlatformManager, Config.isWxGame ?
							(App.platform.makePlatform(EnumPlatform.WX_GAME), [4, App.platform.login()]) : [3, 2];
					case 1:
						return e = o.sent(), 0 == Config.isRelease ? (this.setParam({
							cdn: "http://192.168.13.1/project1/resource/h5_cq/"
						}), this.loadProVersion()) : (this.setParam(e), this.loadProVersion()), [3, 3];
					case 2:
						Config.isBaiduGame ? (App.platform.makePlatform(EnumPlatform.GAME_BAIDU), 0 == Config.isRelease, App.dispatcher
							.addEventListener(EventType.SETPARAM, this.baiduSetParam, this)) : (i = void 0, 0 == Config.isRelease ? (
								i = EnumPlatform.DEBUG_PLAT, t || (t = {}), t.agent && "" != t.agent || (t.agent = i, t.ad = "a8")) : i =
							t.agent, this.setParam(t), App.platform.makePlatform(i), this.loadProVersion()), o.label = 3;
					case 3:
						return console.log("Config.isRelease: ", Config.isRelease), console.log("是否是微信小游戏:", Config.isWxGame),
							console.log("舞台宽高：", this.stage.stageWidth, this.stage.stageHeight), n = navigator.userAgent.toLowerCase(),
							a = n.match(/MicroMessenger/i), n.indexOf(" qq") > -1 && n.indexOf("mqqbrowser") > -1 && (Config.isNeiZhiWeb = !
								0), n.indexOf("mqqbrowser") > -1 && n.indexOf(" qq") < 0, "micromessenger" == a && (Config.isNeiZhiWeb = !
								0), console.log("是否是手机: " + Config.isMobile + ",是否是IPHONEX：" + Config.isPhoneX), console.log(
								"navigator.userAgent: " + navigator.userAgent), console.log("js_gameVars"), console.log(t), console.log(
								"WebParams.param"), console.log(WebParams.param), 0 == Config.isWxGame && document.body.addEventListener(
								"blur",
								function() {
									window.scrollTo(0, 0)
								}, !0), [2]
				}
			})
		})
	}, e.prototype.baiduSetParam = function(t) {
		App.dispatcher.removeEventListener(EventType.SETPARAM, this.baiduSetParam, this), this.setParam(t), this.loadProVersion()
	}, e.prototype.setParam = function(t) {
		if (WebParams.param = t, console.log("setParam:" + JSON.stringify(t)), WebParams.cdn && "" != WebParams.cdn) {
			var e = WebParams.cdn;
			Config.ASSETS_PATH = "", Config.RES_PATH = e + "res/", Config.CFG_PATH = e + "cfg/", Config.PRO_PATH = e + "pro/"
		}
	}, e.prototype.loadProVersion = function(t) {
		if (void 0 === t && (t = !1), Config.loginResVersion = new GameVersionParser, Config.resourceVersion = new GameVersionParser,
			Config.isRelease) {
			var e = WebParams.cdn + "ver/pro_" + WebParams.proVer + ".gif";
			t && (e = e + "?" + (new Date).getTime().toString());
			var i = new HttpLoader;
			i.httpCompleteFun = new FunctionVO(this.versionCompleteHandler, this), i.send(e, null, egret.HttpResponseType.ARRAY_BUFFER),
				console.log("versionUrl: " + e), WebParams.setLoginWebLog("开始加载, loadProVersion: " + e)
		} else this.loadPreLoader()
	}, e.prototype.versionCompleteHandler = function(t) {
		var e = t.data;
		return e ? void Config.loginResVersion.start(e, new FunctionVO(this.loadPreLoader, this)) : void this.versionLoadError()
	}, e.prototype.versionLoadError = function() {
		this._proErrorCount++, console.log("版本文件加载失败：" + this._proErrorCount), this._proErrorCount > 1 || this.loadProVersion(
			!0)
	}, e.prototype.loadPreLoader = function() {
		0 == Config.isWxGame && 0 == Config.isBaiduGame && hideLoadPage(), console.log("egret.Capabilities.runtimeType: " +
			egret.Capabilities.runtimeType);
		var t = new GameVersionController;
		RES.registerVersionController(t), egret.Capabilities.runtimeType == egret.RuntimeType.NATIVE && RES.setMaxLoadingThread(
				8), App.stage = this.stage, App.thing = new ObjectCreateManager, App.timer = new TimeCenter(this.stage), new h5_engine
			.LogicInterface, new NetResourceCenter, App.sound = new MusicManager(new FunctionVO(ResPathUtil.getBgmPath, this),
				new FunctionVO(ResPathUtil.getSoundPath, this)), App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_LOG_UP,
				1), this._gameLoading = new GameLoading, this._gameLoading.addEventListener(GameLoading.LOAD_COMPLETE, this.loadComplete,
				this), this._gameLoading.beginStartupLoad(), this.addChild(this._gameLoading)
	}, e.prototype.loadComplete = function(t) {
		var e = GameMessagePool.ins;
		Config.socket = new GameNetConnection(e), Config.connectError = new ConnectionError, MarcoConnectionCommandCenter.start(),
			App.data = new ClientDataManager, this._loginModule = new LoginModule, this._loginModule.startUp(this.stage, new FunctionVO(
				this.loginComplete, this))
	}, e.prototype.loginComplete = function() {
		App.dispatcher.addEventListener(PreLoadEvent.INIT_GAME, this.initGame, this), App.ins.initConfig()
	}, e.prototype.initGame = function() {
		App.dispatcher.addEventListener(PreLoadEvent.PRE_LOADING_COMPLETE, this.onPreLoadComplete, this), App.ins.initGame(),
			console.log("登录成功！"), App.platform.removeMiniGamePreImg()
	}, e.prototype.onPreLoadComplete = function() {
		App.dispatcher.removeEventListener(PreLoadEvent.INIT_GAME, this.initGame, this), App.dispatcher.removeEventListener(
				PreLoadEvent.PRE_LOADING_COMPLETE, this.onPreLoadComplete, this), this._gameLoading && (this._gameLoading.removeEventListener(
				GameLoading.LOAD_COMPLETE, this.loadComplete, this), this._gameLoading.dispose(), this._gameLoading = void 0),
			this._loginModule && (this._loginModule.dispose(), this._loginModule = void 0), App.dispatcher.dispatchEvent(
				PlatformEventType.PLATFORM_LOG_UP, 3)
	}, e
}(eui.UILayer);
__reflect(Main.prototype, "Main");
var ServerTime = function() {
	function t() {}
	return t.setServerTime = function(t) {
			this._serverTime = t, 0 == this._init && (this._init = !0, App.timer.doTimeLoop(this, 1, this.onEnterFrame), this._lastEnterTime =
				0)
		}, t.onEnterFrame = function() {
			var t = egret.getTimer(),
				e = t - this._lastEnterTime;
			if (this._serverTime = this._serverTime + e, this._clientTimeMessage += e, this._lastEnterTime = t, this._clientTimeMessage >
				15e3) {
				var i = BaseConnectionSender.createCmd(16076);
				Config.socket.sendCommand(i), this._clientTimeMessage = 0
			}
		}, t.setServerInfo = function(e, i, n, a, o) {
			t._serverStartTime = e, t._serverOpenZoneTime = i, t._serverCurTime = n, t._loginTime = n, t.setServerTime(1e3 * n),
				t._serverVer = a, t._msgVer = o
		}, Object.defineProperty(t, "loginTime", {
			get: function() {
				return this._loginTime
			},
			enumerable: !0,
			configurable: !0
		}), t.getServerTime = function() {
			return Math.floor(this._serverTime / 1e3)
		}, Object.defineProperty(t, "serverTime", {
			get: function() {
				return this._serverTime
			},
			enumerable: !0,
			configurable: !0
		}), t.getSystemTime = function() {
			return (new Date).getTime() - 1e3 * this._serverStartTime
		}, t.getFlashTime = function() {
			return egret.getTimer()
		}, Object.defineProperty(t, "serverStartTime", {
			get: function() {
				return this._serverStartTime
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "serverOpenZoneTime", {
			get: function() {
				return this._serverOpenZoneTime
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "opentime", {
			get: function() {
				var t = new Date(1e3 * this._serverOpenZoneTime),
					e = StringUtil.format(t, "Y-M-D"),
					i = new Date(e);
				return i.getTime() / 1e3 + 86400 - this._serverOpenZoneTime
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "remianZeroTime", {
			get: function() {
				var t = new Date(this.serverTime),
					e = new Date(t.getFullYear(), t.getMonth(), t.getDate());
				e.setDate(e.getDate() + 1);
				var i = (e.getTime() - t.getTime()) / 1e3;
				return i
			},
			enumerable: !0,
			configurable: !0
		}), t._serverTime = 0, t._serverStartTime = 0, t._serverOpenZoneTime = 0, t._serverCurTime = 0, t._loginTime = 0, t._serverVer =
		0, t._msgVer = 0, t._init = !1, t._lastEnterTime = 0, t._clientTimeMessage = 0, t.openday = 0, t.combineDay = 0, t
}();
__reflect(ServerTime.prototype, "ServerTime");
var ServerTimeData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._startServerTime = 0, e._endServerTime = 0, e._spuleTime = 0, e._method = void 0, e._thisArg = void 0, e._args =
			void 0, e
	}
	return __extends(e, t), e.getData = function() {
		return this.pool.getObject()
	}, Object.defineProperty(e.prototype, "args", {
		get: function() {
			return this._args
		},
		set: function(t) {
			this._args = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "method", {
		get: function() {
			return this._method
		},
		set: function(t) {
			this._method = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "spuleTime", {
		get: function() {
			return this._spuleTime
		},
		set: function(t) {
			this._spuleTime = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "thisArg", {
		get: function() {
			return this._thisArg
		},
		set: function(t) {
			this._thisArg = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "endServerTime", {
		get: function() {
			return this._endServerTime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "startServerTime", {
		get: function() {
			return this._startServerTime
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTime = function(t, e) {
		this._startServerTime = t, this._endServerTime = e
	}, e.prototype.dispose = function() {
		this._method = void 0, this._thisArg = void 0, this._args = void 0, e.pool.push(this)
	}, e.pool = new ObjectPool(e), e
}(egret.HashObject);
__reflect(ServerTimeData.prototype, "ServerTimeData");
var TimeCenter = function() {
	function t(t) {
		this._pool = [], this._normalHash = new HashMap, this._serverHash = new HashMap, this._currTimer = egret.getTimer(),
			this._currFrame = 0, this._count = 0, this._index = 0, this._frametime = 0, this._lastTime = 0, this._fpsLastTime =
			0, this._fpsLastFrame = 0, this._fpsTipCount = 0, this._fpsTipNum = 0, this._fpsTipBool = !1, t.addEventListener(
				egret.Event.ENTER_FRAME, this.onEnterFrame, this)
	}
	return t.prototype.sleep = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e;
			return __generator(this, function(i) {
				return e = new Promise(function(e, i) {
					setTimeout(function() {
						e()
					}, t)
				}), [2, e]
			})
		})
	}, Object.defineProperty(t.prototype, "frametime", {
		get: function() {
			return this._frametime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "currTimer", {
		get: function() {
			return this._currTimer
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.onEnterFrame = function(t) {
		var e = this;
		e._currFrame++, e._currTimer = egret.getTimer(), e._frametime = e._currTimer - e._lastTime, e._lastTime = e._currTimer,
			e.setFps();
		for (var i = e._normalHash.values, n = 0; n < i.length; n++)
			for (var a = i[n], o = a.values, r = a.keys, s = 0; s < o.length; s++) {
				var h = o[s],
					l = h.isFrame ? e._currFrame : e._currTimer;
				if (l >= h.exeTime) {
					var p = h.method,
						c = r[s],
						_ = h.args,
						d = h.thisArg;
					h.repeat ? (h.exeTime = h.delay + (h.isFrame ? e._currFrame : e._currTimer), FunctionApply.doExecute(p, d, _)) :
						(e.clearTimer(c, d), FunctionApply.doExecute(p, d, _))
				}
			}
		e.serverTimeHandler()
	}, t.prototype.setFps = function() {
		var t = this,
			e = t._currTimer - t._fpsLastTime;
		if (e > 1e3) {
			var i = (t._currFrame - t._fpsLastFrame) / (e / 1e3);
			t._fpsLastFrame = t._currFrame, t._fpsLastTime = t._currTimer, h5_engine.EngineConfig.currentGameFps = Math.floor(
				1e3 * i) / 1e3, Config.isEnterGame && 0 == t._fpsTipBool && egret.getTimer() > 12e4 && (35 > i ? (t._fpsTipCount++,
				t._fpsTipCount > 5 && (t._fpsTipNum++, t._fpsTipCount = 0, t._fpsTipNum >= 3)) : (t._fpsTipCount--, t._fpsTipCount <
				-5 && (t._fpsTipNum--, t._fpsTipNum <= 0 && (t._fpsTipNum = 0), t._fpsTipCount = 0)))
		}
	}, t.prototype.serverTimeHandler = function() {
		for (var t = this, e = ServerTime.getServerTime(), i = t._serverHash.values, n = 0; n < i.length; n++)
			for (var a = i[n], o = a.values, r = 0; r < o.length; r++) {
				var s = o[r],
					h = s.endServerTime - e,
					l = s.thisArg;
				if (h != s.spuleTime) {
					s.spuleTime = h;
					var p = [s];
					s.args && (p = p.concat(s.args)), FunctionApply.doExecute(s.method, s.thisArg, p)
				}
				0 >= h && t.clearTimer(s, l)
			}
	}, t.prototype.create = function(t, e, i, n, a, o, r) {
		void 0 === o && (o = null), void 0 === r && (r = !0);
		var s = this,
			h = void 0;
		if (r ? (s.clearTimer(a, t), h = a) : h = s._index++, 1 > n) return FunctionApply.doExecute(a, t, o), -1;
		var l = s._pool.length > 0 ? s._pool.pop() : new TimerHandler;
		l.thisArg = t, l.isFrame = e, l.repeat = i, l.delay = n, l.method = a, l.args = o, l.exeTime = n + (e ? s._currFrame :
			s._currTimer);
		var p = s._normalHash.get(t);
		return p ? p.put(h, l) : (p = HashMap.getMap(), p.put(h, l), s._normalHash.put(t, p)), s._count++, h
	}, t.prototype.doTimeOnce = function(t, e, i, n, a) {
		return void 0 === n && (n = void 0), void 0 === a && (a = !0), this.create(t, !1, !1, e, i, n, a)
	}, t.prototype.doTimeLoop = function(t, e, i, n, a) {
		return void 0 === n && (n = void 0), void 0 === a && (a = !0), this.create(t, !1, !0, e, i, n, a)
	}, t.prototype.doFrameOnce = function(t, e, i, n, a) {
		return void 0 === n && (n = void 0), void 0 === a && (a = !0), this.create(t, !0, !1, e, i, n, a)
	}, t.prototype.doFrameLoop = function(t, e, i, n, a) {
		return void 0 === n && (n = void 0), void 0 === a && (a = !0), this.create(t, !0, !0, e, i, n, a)
	}, t.prototype.serverTimeEndCount = function(t, e, i, n, a) {
		return void 0 === n && (n = void 0), void 0 === a && (a = -1), this.serverTimeEnd(t, e, ServerTime.getServerTime() +
			i, n, a)
	}, t.prototype.serverTimeEnd = function(t, e, i, n, a) {
		void 0 === n && (n = void 0), void 0 === a && (a = -1), this.clearTimer(e, t);
		var o = e,
			r = ServerTimeData.getData();
		a = -1 == a ? ServerTime.getServerTime() : a, r.setTime(a, i), r.thisArg = t, r.method = e, r.args = n;
		var s = this._serverHash.get(t);
		s ? s.put(o, r) : (s = HashMap.getMap(), s.put(o, r), this._serverHash.put(t, s));
		var h = ServerTime.getServerTime(),
			l = r.endServerTime - h;
		r.spuleTime = l;
		var p = [r];
		return r.args && (p = p.concat(r.args)), FunctionApply.doExecute(r.method, r.thisArg, p), o
	}, Object.defineProperty(t.prototype, "count", {
		get: function() {
			return this._count
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.clearTimer = function(t, e) {
		!TypeUtil.isFunction(t) && 0 == Config.isRelease;
		var i = this,
			n = i._normalHash.get(e);
		if (n) {
			var a = n.get(t);
			a && (a.clear(), i._count--, n.del(t), i._pool.push(a)), 0 == n.length && (i._normalHash.del(e), HashMap.putMap(n))
		}
		var o = i._serverHash.get(e);
		if (o) {
			var r = o.get(t);
			r && (r.dispose(), i._count--, o.del(t)), 0 == o.length && (i._serverHash.del(e), HashMap.putMap(o))
		}
	}, t
}();
__reflect(TimeCenter.prototype, "TimeCenter");
var TimerHandler = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.thisArg = void 0, e.delay = 0, e.repeat = !1, e.isFrame = !1, e.exeTime = 0, e.method = void 0, e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.thisArg = void 0, this.method = void 0, this.args = void 0
	}, e
}(egret.HashObject);
__reflect(TimerHandler.prototype, "TimerHandler");
var ActivityUtil = function() {
	function t() {}
	return t.getPlayerState = function(t) {
		return null == t ? -1 : t.playerStates
	}, t.getState = function(t) {
		return null == t ? -1 : t.activityStates
	}, t.getIsOpen = function(t) {
		return 1 == this.getState(t)
	}, t.getIsShow = function(t) {
		return -1 != this.getState(t)
	}, t.getDataExtendMap = function(t) {
		if (null == t) return null;
		if (null == t.extendMap) return null;
		var e = StringUtil.JsonParse(t.extendMap);
		return e
	}, t
}();
__reflect(ActivityUtil.prototype, "ActivityUtil");
var ArrayUtil = function() {
	function t() {}
	return t.sortOnArr = function(e, i, n) {
		null != e && void 0 != i && void 0 != n && i.length == n.length && 0 != i.length && e.sort(function(e, a) {
			if (e[i[0]] > a[i[0]]) return n[0] == t.NUMERIC ? 1 : -1;
			if (e[i[0]] < a[i[0]]) return n[0] == t.NUMERIC ? -1 : 1;
			if (i.length > 1) {
				if (e[i[1]] > a[i[1]]) return n[1] == t.NUMERIC ? 1 : -1;
				if (e[i[1]] < a[i[1]]) return n[1] == t.NUMERIC ? -1 : 1;
				if (i.length > 2) {
					if (e[i[2]] > a[i[2]]) return n[2] == t.NUMERIC ? 1 : -1;
					if (e[i[2]] < a[i[2]]) return n[2] == t.NUMERIC ? -1 : 1
				}
			}
			return 0
		})
	}, t.sortDataInTheMiddle = function(t, e) {
		var i = t.length,
			n = i >> 1,
			a = t.concat(t),
			o = a.indexOf(e);
		return o = (o - n + i) % i, a.slice(o, o + i)
	}, t.shullfe = function(t) {
		for (var e = 0, i = t.length; i > e; e++) {
			var n = Math.random() * (i - 1) >> 0,
				a = t[e];
			t[e] = t[n], t[n] = a
		}
	}, t.sortTheSame = function(t) {
		for (var e, i = [], n = 0; n < t.length; n++) e = i.indexOf(t[n]), -1 == e ? i.push(t[n]) : i.splice(e, 0, t[n]);
		return i
	}, t.NUMERIC = 16, t.DESCENDING = 2, t.uniq = function(t) {
		var e = [];
		return t.map(function(t) {
			-1 == e.indexOf(t) && e.push(t)
		}), e
	}, t
}();
__reflect(ArrayUtil.prototype, "ArrayUtil");
var BreatheTweenUtil = function() {
	function t() {}
	return t.add = function(t, e, i, n, a, o) {
		if (void 0 === e && (e = 1), void 0 === i && (i = -1), void 0 === n && (n = 16764471), void 0 === a && (a = 8),
			void 0 === o && (o = !1), null != this._dict.get(t.hashCode.toString())) return !0;
		if (null == t) return !1;
		t instanceof eui.Button && (n = 16764471, a = 5, o = !0);
		var r = new Param(e, i, a),
			s = new egret.GlowFilter;
		s.color = n, s.blurX = 1, s.blurY = 1, s.strength = 8, s.quality = 1, s.inner = o, s.alpha = .8, r.filter = s, t.filters = [
			s
		], this._dict.put(t.hashCode, r), -1 != i && r.repeat--;
		var h = {};
		return h.blurX = a, h.blurY = a, h.onUpdate = this.onUpdate, h.onUpdateScope = this, h.onUpdateParams = [s, t], h.onComplete =
			this.onComplete, h.onCompleteScope = this, h.onCompleteParams = [h, t], TweenLite.to(s, e, h), !0
	}, t.onUpdate = function(t, e) {
		var i = this._dict.get(e.hashCode.toString());
		null != i ? e.filters = [t] : e.filters = null
	}, t.onComplete = function(t, e) {
		var i = this._dict.get(e.hashCode.toString());
		null != i && (-1 != i.repeat && 0 == i.repeat ? this.remove(e) : (i.repeat--, t.blurX > 1 ? (t.blurX = 1, t.blurY =
			1) : (t.blurX = i.blur, t.blurY = i.blur), TweenLite.to(i.filter, i.duration, t)))
	}, t.remove = function(t) {
		null != t && null != this._dict.get(t.hashCode.toString()) && (t.filters = null, TweenLite.killTweensOf(t, !0),
			this._dict.del(t.hashCode.toString()))
	}, t._dict = new HashObject, t
}();
__reflect(BreatheTweenUtil.prototype, "BreatheTweenUtil");
var Param = function() {
	function t(t, e, i) {
		this.repeat = 0, this.blur = 0, this.duration = t, this.repeat = e, this.blur = i
	}
	return t
}();
__reflect(Param.prototype, "Param");
var ClassUtil = function() {
	function t() {}
	return t.targetClsIsInheritSpecialCls = function(t, e) {
		if (!t || !e) return !1;
		for (var i = egret.getQualifiedClassName(t); null != i;) {
			var n = egret.getDefinitionByName(i);
			if (n == e) return !0;
			i = egret.getQualifiedSuperclassName(n)
		}
		return !1
	}, t.deepClone = function(t) {
		var e = {};
		t instanceof Array && (e = []);
		for (var i in t) {
			var n = t[i];
			e[i] = "object" == typeof n ? this.deepClone(n) : n
		}
		return e
	}, t
}();
__reflect(ClassUtil.prototype, "ClassUtil");
var ColorFilter = function() {
	function t() {}
	return t.getColorMatrixFilterArrByColorUint = function(t) {
		var e = 255,
			i = (t & e) / 255,
			n = (t >> 8 & e) / 255,
			a = (t >> 16 & e) / 255,
			o = (t >> 24 & e) / 255;
		return new egret.ColorMatrixFilter([a, 0, 0, 0, 0, 0, n, 0, 0, 0, 0, 0, i, 0, 0, 0, 0, 0, o, 0])
	}, t.getColorMatrixFilterArrByColorString = function(t) {
		var e = parseInt(t, 16);
		return this.getColorMatrixFilterArrByColorUint(e)
	}, t.getColorMatrix = function(t) {
		var e = null,
			i = 0 / 0,
			n = null,
			a = 0 / 0,
			o = 0 / 0,
			r = 0 / 0,
			s = null,
			h = 0 / 0,
			l = 0 / 0,
			p = 0 / 0,
			c = 0 / 0,
			_ = 0 / 0,
			d = null,
			u = [],
			g = t[0];
		return 0 != g && (g = 2.55 * g, e = new egret.ColorMatrixFilter([1, 0, 0, 0, g, 0, 1, 0, 0, g, 0, 0, 1, 0, g, 0, 0,
			0, 1, 0
		]), u.push(e)), g = t[1], 1 != g && (g = (g + 100) / 100, i = 128 * (1 - g), n = new egret.ColorMatrixFilter([g, 0,
			0, 0, i, 0, g, 0, 0, i, 0, 0, g, 0, i, 0, 0, 0, 1, 0
		]), u.push(n)), g = t[2], 1 != g && (g = (g + 100) / 100, a = .3086 * (1 - g), o = .6094 * (1 - g), r = .082 * (1 -
				g), s = new egret.ColorMatrixFilter([a + g, o, r, 0, 0, a, o + g, r, 0, 0, a, o, r + g, 0, 0, 0, 0, 0, 1, 0]), u
			.push(s)), g = t[3], 0 != g && (g = 1.8 * g, g = Math.min(180, Math.max(-180, g)) / 180 * Math.PI, h = Math.cos(g),
			l = Math.sin(g), p = .213, c = .715, _ = .072, d = new egret.ColorMatrixFilter([p + h * (1 - p) + l * -p, c + h *
				-c + l * -c, _ + h * -_ + l * (1 - _), 0, 0, p + h * -p + .143 * l, c + h * (1 - c) + .14 * l, _ + h * -_ + l *
				-.283, 0, 0, p + h * -p + l * -(1 - p), c + h * -c + l * c, _ + h * (1 - _) + l * _, 0, 0, 0, 0, 0, 1, 0
			]), u.push(d)), u
	}, t
}();
__reflect(ColorFilter.prototype, "ColorFilter");
var DateUtil = function() {
	function t() {}
	return t.formatToTime = function(t) {
		var e = Math.floor(t % 60),
			i = Math.floor((t - e) / 60 % 60),
			n = Math.floor((t - 60 * i - e) / 3600),
			a = 10 > e ? "0" + e.toString() : e.toString(),
			o = 10 > i ? "0" + i.toString() : i.toString(),
			r = 10 > n ? "0" + n.toString() : n.toString();
		return r + ":" + o + ":" + a
	}, t.formatToTime_V2 = function(t, e) {
		void 0 === e && (e = !0);
		var i = Math.floor(t % 60),
			n = Math.floor((t - i) / 60 % 60),
			a = Math.floor((t - 60 * n - i) / 3600),
			o = 0 == n ? "" : n.toString() + "分",
			r = 0 == a ? "" : a.toString() + "小时";
		return e ? r + o + i + "秒" : o + i + "秒"
	}, t.formatToTime_V3 = function(t) {
		var e = t % 60,
			i = (t - e) / 60 % 60,
			n = (t - 60 * i - e) / 3600,
			a = 0 == i ? "" : i.toString() + "分",
			o = 0 == n ? "" : n.toString() + "小时";
		return o + a
	}, t.formatToTime_V4 = function(t) {
		var e = Math.floor(t / 86400),
			i = Math.floor(t % 86400 / 3600),
			n = Math.floor(t % 3600 / 60);
		return e + "天" + i + "小时" + n + "分"
	}, t.formatToTime_V5 = function(t) {
		var e = Math.floor(t / 86400),
			i = Math.floor(t / 3600),
			n = Math.floor(t % 3600 / 60);
		return e > 0 ? e + "天" : i > 0 ? i + "小时" : n > 0 ? n + "分钟" : "1分钟"
	}, t.formatToTime_V6 = function(t) {
		var e = t % 60,
			i = (t - e) / 60 % 60,
			n = 0 == e ? "" : e.toString() + "分",
			a = 0 == i ? "" : i.toString() + "分";
		return a + n
	}, t.getTodayMaxUtc = function() {
		var t = new Date(ServerTime.serverTime);
		return t.setHours(23, 59, 59, 999), Math.floor(.001 * t.getTime())
	}, t.format = function(t, e) {
		void 0 === t && (t = void 0), void 0 === e && (e = "年-月-日 时:分:秒"), t || (t = new Date);
		var i = t.getFullYear().toString(),
			n = (t.getMonth() + 1).toString(),
			a = t.getDate().toString(),
			o = (t.getHours() > 9 ? "" : "0") + t.getHours(),
			r = (t.getMinutes() > 9 ? "" : "0") + t.getMinutes(),
			s = (t.getSeconds() > 9 ? "" : "0") + t.getSeconds();
		return e.replace("年", i).replace("月", n).replace("日", a).replace("时", o).replace("分", r).replace("秒", s)
	}, t.formatTimeToMin2 = function(t) {
		var e = "",
			i = new Date(1e3 * t);
		return e = i.getFullYear() + "年" + (i.getMonth() + 1) + "月" + i.getDate() + "日" + (i.getHours() < 10 ? "0" + i.getHours() :
			"" + i.getHours()) + ":" + (i.getMinutes() < 10 ? "0" + i.getMinutes() : "" + i.getMinutes())
	}, t
}();
__reflect(DateUtil.prototype, "DateUtil");
var DisplayObjectUtil = function() {
	function t() {}
	return t.removeChildAt = function(t, e) {
		var i = t.$children[e];
		return i && (t.$children.splice(e, 1), i.$parent = null, i.visible = !1), i
	}, t.removeAllChild = function(t) {
		for (; t.$children.length;) GameLog.log(t.name), GameLog.log(t.$children.length), this.removeChildAt(t, 0)
	}, t.setAllVisible = function(e, i) {
		void 0 === i && (i = !0);
		var n = e.numChildren,
			a = i;
		if (0 == n) return void(e.visible = a);
		for (var o = 0; n > o; o++) {
			var r = e.getChildAt(o) instanceof egret.DisplayObjectContainer;
			r ? t.setAllVisible(e.getChildAt(o), a) : e.getChildAt(o).visible = a
		}
	}, t
}();
__reflect(DisplayObjectUtil.prototype, "DisplayObjectUtil");
var EffectUtils = function() {
	function t() {}
	return t.showOnceEffect = function(t, e, i, n, a, o, r, s, h) {
		return void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = null), void 0 === r && (r = 1), void 0 ===
			s && (s = 0), void 0 === h && (h = 0), i && "" != i || GameLog.logError("错误，没有路径"), null == o && (o = App.thing.create(
				CPlayOnceEffect, t, !0)), o instanceof CPlayOnceEffect && s > 0 && (o.delayTime = s), o.url = i, o.speed = r, o.degrees =
			h, o.setTo(n, a), o.play(), o.addParent(e), o
	}, t.showBuffEffect = function(t, e, i, n, a, o, r, s, h) {
		return void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = null), void 0 === r && (r = 1), void 0 ===
			s && (s = 0), void 0 === h && (h = 0), i && "" != i || GameLog.logError("错误，没有路径"), null == o && (o = App.thing.create(
				BufferEffect, t, !0)), o.url = i, o.speed = r, o.degrees = h, o.setTo(n, a), o.play(), o.addParent(e), o
	}, t.showCEffect = function(t, e, i, n, a, o, r, s, h, l, p) {
		return void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = null), void 0 === r && (r = !0), void 0 ===
			s && (s = 1), void 0 === h && (h = 0), void 0 === l && (l = 1), void 0 === p && (p = 1), r ? (i && "" != i ||
				GameLog.logError("错误，没有路径"), null == o && (o = App.thing.create(CEffect, egret.getQualifiedClassName(t), !0)), o.url =
				i, o.speed = s, o.setTo(n, a), o.play(), o.scaleX = l, o.scaleY = p, null != e && o.addParent(e)) : o && (o.stop(),
				o.removeParent()), o
	}, t.showCFaceEffect = function(t, e, i, n, a, o, r, s, h) {
		return void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = null), void 0 === r && (r = !0), void 0 ===
			s && (s = 1), void 0 === h && (h = 0), r ? (i && "" != i || GameLog.logError("错误，没有路径"), null == o && (o = App.thing
					.create(CFaceEffect, egret.getQualifiedClassName(t), !0)), o.url = i, o.speed = s, o.setTo(n, a), o.play(), null !=
				e && o.addParent(e)) : o && (o.stop(), o.removeParent()), o
	}, t.showSuccessEffect = function(e, i, n, a) {
		void 0 === n && (n = 310), void 0 === a && (a = 360), t.showOnceEffect(egret.getQualifiedClassName(i), e,
			ResPathUtil.getMenuEffect("panel", "jinjiechenggong"), n, a)
	}, t
}();
__reflect(EffectUtils.prototype, "EffectUtils");
var EnumUtil = function() {
	function t() {}
	return t.getNames = function(t) {
		var e = Object.keys(t).map(function(e) {
				return t[e]
			}),
			i = e.filter(function(t) {
				return "string" == typeof t
			});
		return i
	}, t.getValues = function(t) {
		var e = Object.keys(t).map(function(e) {
				return t[e]
			}),
			i = e.filter(function(t) {
				return "number" == typeof t
			});
		return i
	}, t
}();
__reflect(EnumUtil.prototype, "EnumUtil");
var FightPowerUtil = function() {
	function t() {}
	return t.getRoleFightPower = function(e) {
		void 0 === e && (e = null), null == e && (e = this.roleData);
		var i = 0;
		if (null != e) {
			var n = App.config.q_fightpower_clientContainer.getDataBean(1e3 * e.job + e.getLevel());
			if (null != n && (i += e.dcmax * (n.q_dcmax * t.SCALE_VALUE), i += e.mcmax * (n.q_mcmax * t.SCALE_VALUE), i += e.scmax *
					(n.q_scmax * t.SCALE_VALUE), i += e.acmax * (n.q_acmax * t.SCALE_VALUE) + e.macmax * (n.q_macmax * t.SCALE_VALUE),
					i += e.hit * (n.q_hit * t.SCALE_VALUE) + e.juck * (n.q_juck * t.SCALE_VALUE) + e.crit * (n.q_crit * t.SCALE_VALUE) +
					e.tenacity * (n.q_tenacity * t.SCALE_VALUE), i += e.critharmadd * (n.q_critharmadd * t.SCALE_VALUE) + e.critharmdel *
					(n.q_critharmdel * t.SCALE_VALUE), i += e.maxHp * (n.q_maxHp * t.SCALE_VALUE) + e.maxMp * (n.q_maxMp * t.SCALE_VALUE) +
					e.attackSpeed * (n.q_attackSpeed * t.SCALE_VALUE), i += e.luck * (n.q_luck * t.SCALE_VALUE) + e.harmadd * (n.q_harmadd *
						t.SCALE_VALUE) + e.harmdel * (n.q_harmdel * t.SCALE_VALUE), i += e.critadddamage * (n.q_critvalueadd * t.SCALE_VALUE) +
					e.critdeldamage * (n.q_critvaluedel * t.SCALE_VALUE), App.global.funcOpen.isFunctionOpen(55))) {
				var a = App.data.skillCenter.insidePower.getCurrentBean(e.roleIndex);
				a && (i += a.q_fightpower)
			}
		}
		return Math.floor(i)
	}, Object.defineProperty(t, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), t.getWingFightPower = function(e) {
		for (var i = 0, n = 501; e >= n; n++) {
			var a = App.config.q_surfaceContainer.getDataBean(n),
				o = new BaseAttributeDataBean;
			o.convert(a.q_add_attribute);
			var r = App.config.q_fightpower_clientContainer.getDataBean(1e3 * this.roleData.job + this.roleData.level);
			i += o.dcMin * (r.q_dcmin * t.SCALE_VALUE) + o.dcMax * (r.q_dcmax * t.SCALE_VALUE), i += o.mcMin * (r.q_mcmin * t.SCALE_VALUE) +
				o.mcMax * (r.q_mcmax * t.SCALE_VALUE), i += o.scMin * (r.q_scmin * t.SCALE_VALUE) + o.scMax * (r.q_scmax * t.SCALE_VALUE),
				i += o.acMin * (r.q_acmin * t.SCALE_VALUE) + o.acMax * (r.q_acmax * t.SCALE_VALUE), i += o.macMin * (r.q_macmin *
					t.SCALE_VALUE) + o.macMax * (r.q_macmax * t.SCALE_VALUE), i += o.maxHp * (r.q_maxHp * t.SCALE_VALUE), i += o.crit *
				(r.q_crit * t.SCALE_VALUE) + o.critDelDamage * (r.q_critvaluedel * t.SCALE_VALUE)
		}
		return i
	}, t.getRoleForgePosFightPower = function(e, i, n) {
		var a = new BaseAttributeDataBean,
			o = App.data.forgeCenter.getRoleForgePosAttr(e, i, n);
		a.convert(o);
		var r = App.config.q_fightpower_clientContainer.getDataBean(1e3 * e.job + e.level),
			s = 0;
		return s += a.dcMax * (r.q_dcmax * t.SCALE_VALUE), s += a.mcMax * (r.q_mcmax * t.SCALE_VALUE), s += a.scMax * (r.q_scmax *
				t.SCALE_VALUE), s += a.acMax * (r.q_acmax * t.SCALE_VALUE), s += a.macMax * (r.q_macmax * t.SCALE_VALUE), s += a.maxHp *
			(r.q_maxHp * t.SCALE_VALUE)
	}, t.getRoleStrengthAllPosFightPower = function(t, e) {
		for (var i = 0, n = 0; n < App.data.forgeCenter.posArr.length; n++) i += this.getRoleForgePosFightPower(t, App.data
			.forgeCenter.posArr[n], e);
		return Math.floor(i)
	}, t.getFightPower = function(e, i) {
		void 0 === i && (i = null), null == i && (i = this.roleData);
		for (var n, a = 0, o = e.length, r = new BaseAttributeDataBean, s = 0; o > s; s++)
			if (n = e[s], r.convert(n), null != r) {
				var h = App.config.q_fightpower_clientContainer.getDataBean(1e3 * i.job + i.getLevel());
				if (null != h) {
					var l = App.config.q_fightpower_clientContainer.getDataBean(1e3 * this.roleData.job + this.roleData.level);
					a += r.dcMin * (l.q_dcmin * t.SCALE_VALUE) + r.dcMax * (l.q_dcmax * t.SCALE_VALUE), a += r.mcMin * (l.q_mcmin *
							t.SCALE_VALUE) + r.mcMax * (l.q_mcmax * t.SCALE_VALUE), a += r.scMin * (l.q_scmin * t.SCALE_VALUE) + r.scMax *
						(l.q_scmax * t.SCALE_VALUE), a += r.acMin * (l.q_acmin * t.SCALE_VALUE) + r.acMax * (l.q_acmax * t.SCALE_VALUE),
						a += r.macMin * (l.q_macmin * t.SCALE_VALUE) + r.macMax * (l.q_macmax * t.SCALE_VALUE), a += r.maxHp * (l.q_maxHp *
							t.SCALE_VALUE), a += r.critharmAdd * (h.q_critharmadd * t.SCALE_VALUE) + r.critharmAdd * (h.q_critharmdel * t.SCALE_VALUE),
						a += r.crit * (l.q_crit * t.SCALE_VALUE) + r.critDelDamage * (l.q_critvaluedel * t.SCALE_VALUE)
				}
			} return Math.floor(a)
	}, t.SCALE_VALUE = .001, t
}();
__reflect(FightPowerUtil.prototype, "FightPowerUtil");
var FilterUtil = function() {
	function t() {}
	return t.getConfigColorMatrixFilter = function(e) {
			var i = t.configColorMatrixDict.get(e);
			return i || (i = ColorFilter.getColorMatrixFilterArrByColorString(e), this.configColorMatrixDict.put(e, i)), i
		}, t.getConfigAdjustColorMatrixFilter = function(e, i, n, a) {
			var o = e + "_" + i + "_" + n + "_" + a,
				r = t.adjustColorMatrixDict.get(o);
			if (null == r) {
				var s = new h5_engine.AdjustColor;
				s.brightness = e, s.contrast = i, s.hue = n, s.saturation = a, s.AllValuesAreSet() && (r = new egret.ColorMatrixFilter(
					s.CalculateFinalFlatArray()), t.adjustColorMatrixDict.put(o, r))
			}
			return r
		}, t.addColorMatrixFilter = function(t, e) {
			for (var i, n = t.filters || [], a = 0, o = n.length; o > a; a++)
				if (n[a] instanceof egret.ColorMatrixFilter && (i = n[a], i && i.matrix.toString() == e.matrix.toString())) return;
			n.push(e), t.filters = n
		}, t.removeColorMatrixFilter = function(t, e) {
			for (var i, n = t.filters || [], a = 0, o = n.length; o > a; a++) n[a] instanceof egret.ColorMatrixFilter && (i = n[
				a], i && i.matrix.toString() == e.matrix.toString() && (n.splice(a, 1), a--, o--));
			t.filters = n
		}, t.gray = function(t, e) {
			void 0 === e && (e = !0), e ? this.addColorMatrixFilter(t, this.grayFilter) : this.removeColorMatrixFilter(t, this.grayFilter)
		}, t.FILTER_GRAY = [new egret.ColorMatrixFilter([.3, .59, .11, 0, 0, .3, .59, .11, 0, 0, .3, .59, .11, 0, 0, 0, 0, 0,
			1, 0
		])], t.FILTER_HighLight = [new egret.ColorMatrixFilter([1, 0, 0, 0, 50, 0, 1, 0, 0, 50, 0, 0, 1, 0, 50, 0, 0, 0, 1,
			0
		])], t.FILTER_RP = [new egret.ColorMatrixFilter([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0])],
		t.FILTER_GREEN = [new egret.ColorMatrixFilter([0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0])], t.GF_COMMON = [
			new egret.GlowFilter(16381449, 1, 6, 6, 20, 10, !1, !1)
		], t.FILTER_RED = [new egret.ColorMatrixFilter([1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0])], t.FILTER_BLUE = [
			new egret.ColorMatrixFilter([.01, .01, .01, 0, 0, .24, .24, .24, 0, 0, .3333, .3333, .3333, 0, 0, 0, 0, 0, 1, 0])
		], t.FILTER_PURPLE = [new egret.ColorMatrixFilter([.4, .4, .4, 0, 0, .2, .2, .2, 0, 0, .4, .4, .4, 0, 0, 0, 0, 0, 1,
			0
		])], t.HIGH_LIGHT_FILTER = new egret.ColorMatrixFilter([1.6, 0, 0, 0, 0, 0, 1.6, 0, 0, 0, 0, 0, 1.6, 0, 0, 0, 0, 0,
			1, 0
		]), t.grayFilter = new egret.ColorMatrixFilter([.3086, .6094, .082, 0, 0, .3086, .6094, .082, 0, 0, .3086, .6094,
			.082, 0, 0, 0, 0, 0, 1, 0
		]), t.adjustColorMatrixDict = new HashObject, t.configColorMatrixDict = new HashObject, t
}();
__reflect(FilterUtil.prototype, "FilterUtil");
var GameUtil = function() {
	function t() {}
	return t.getRoleHead = function(t, e) {
		return "commom1_json." + t + "_" + e
	}, t.getMoneyIcon = function(t) {
		var e = "";
		return t == EnumMoney.YUAN_BAO ? e = "main_icon_051_png" : t == EnumMoney.BIND_YUAN_BAO ? e = "yuanbao_bind_png" :
			t == EnumMoney.JIN_BI ? e = "main_icon_52_png" : t == EnumMoney.BIND_JIN_BI ? e = "jinbi_bind_png" : t ==
			EnumMoney.YUE_LI ? e = "yueli_png" : t == EnumMoney.JUN_XIANG ? e = "junxiang" : t == EnumMoney.TANBAO_JIFEN ? e =
			"longzhu" : t == EnumMoney.ARENA_HONOR ? e = "rongyu_png" : t == EnumMoney.GUILD_CONTRIBUTE && (e = "gongxian_png"),
			e
	}, t.getBufferConfigData = function(t, e) {
		return App.config.q_bufferContainer.getDataBean(1e3 * t + e)
	}, t.getSkillConfigData = function(e, i) {
		return 0 == i && 0 == EnumSkillID.isPutongGongji(e) && (i = 1), t.getSkillConfigDataById(1e3 * e + i)
	}, t.getTipDesc = function(t) {
		return App.config.q_tipContainer.getDataBean(t)
	}, t.getSkillConfigDataById = function(t) {
		return App.config.q_skillModelContainer.getDataBean(t)
	}, t.getAttributeConfigDataById = function(t) {
		return App.config.q_attributeContainer.getDataBean(t)
	}, t.getServerNotifyData = function(t) {
		return App.config.q_auto_notifyContainer.getDataBean(t)
	}, t.getNotifyConstData = function(t) {
		return App.config.q_notify_constContainer.getDataBean(t)
	}, t.getShopItemConfigData = function(t) {
		return App.config.q_shopContainer.getDataBean(t)
	}, t.getItemConfigData = function(t) {
		return App.config.q_itemContainer.getDataBean(t)
	}, t.getHeraldryData = function(t, e) {
		return App.config.q_heraldryContainer.getDataBean(1e6 + 1e3 * t + e)
	}, t.getHeraldryDataById = function(t) {
		return App.config.q_heraldryContainer.getDataBean(t)
	}, t.getItemNameColor = function(t, e) {
		void 0 === e && (e = !0);
		var i = "#ffffff",
			n = this.getItemConfigData(t);
		if (n) {
			var a = n.q_default || 0;
			return this.getQualityColor(a, e)
		}
		return i
	}, t.isAutoRunMainTask = function() {
		var e = t.getGlobalConfigData(28);
		return e ? App.global.characterData.getLevel() <= Number(e.q_string_value) : !1
	}, t.getQualityColor = function(t, e) {
		void 0 === e && (e = !0);
		var i = "#ffffff",
			n = this.getGlobalConfigData(188);
		return n && null == this._qualityObj && (this._qualityObj = StringUtil.JsonParse(n.q_string_value)), this._qualityObj &&
			(i = this._qualityObj[t]), e ? Number("0x" + i.substr(1)) : i
	}, t.getGlobalConfigData = function(t) {
		return App.config.q_globalContainer.getDataBean(t)
	}, t.getZoneBean = function(t) {
		return App.config.q_zone_mapContainer.hasDataBean(t) ? App.config.q_zone_mapContainer.getDataBean(t) : null
	}, t.getMapName = function(t) {
		void 0 === t && (t = -1), -1 == t && (t = App.global.characterData.mapId);
		var e = this.getMapConfigData(t);
		return e ? e.q_map_name : ""
	}, t.getEquipConfigData = function(t) {
		return App.config.q_equipContainer.getDataBean(t)
	}, t.getCharacterConfigData = function(t) {
		return App.config.q_characterContainer.getDataBean(t)
	}, t.getMapConfigData = function(t) {
		return App.config.q_mapContainer.getDataBean(t)
	}, t.getMetempsyConfigData = function(t) {
		return App.config.q_metempsychosisContainer.getDataBean(t)
	}, t.getNpcConfigData = function(t) {
		return App.config.q_npcContainer.getDataBean(t)
	}, t.prototype.isAutoWearEquip = function() {
		var e = t.getGlobalConfigData(28);
		return e ? App.global.characterData.getLevel() <= e.q_int_value : !1
	}, t.isCostEnough = function(t, e) {
		if (void 0 === e && (e = !0), "" != t)
			for (var i = StringUtil.JsonParse(StringUtil.replacJosnStr(t)), n = i.length, a = 0; n > a; a++) i[a].id <= 0;
		return !0
	}, t.getZoneMultipleRewardCost = function(e, i) {
		var n = t.getZoneBean(e);
		if (null != n && null != n.q_cost && n.q_cost.length > 0 && null != n.q_multiple && n.q_multiple.length > 0)
			for (var a = StringUtil.JsonParse(n.q_multiple), o = 0; o < a.length; o++)
				if (Number(a[o]) == i) {
					var r = n.q_cost.split(";");
					if (o < r.length) {
						var s = void 0,
							h = new Array;
						for (r = StringUtil.JsonParse(r[o]), o = 0; o < r.length; o++) s = new ItemData, s.itemId = Number(r[o].id), s.count =
							Number(r[o].num), h.push(s);
						return h
					}
					GameLog.logError("副本表id为 " + e + " 的 q_cost 与 q_multiple 长度不匹配")
				} return null
	}, t.getEquipMasterData = function(t, e, i) {
		return void 0 === i && (i = 0), this.getEquipMasterBean(1e5 * t + 1e4 * i + e)
	}, t.getEquipMasterBean = function(t) {
		return App.config.q_equip_masterContainer.getDataBean(t)
	}, t.getEquipForgeConfigData = function(t, e, i) {
		return this.hasEquipForgeConfigData(t, e, i) ? t == ForgeType.CHUANSHI ? this.getEquipForgeConfigDataById(1e5 * (t +
			1) + 1e3 * e + i) : this.getEquipForgeConfigDataById(1e5 * (t + 1) + i) : void 0
	}, t.hasEquipForgeConfigData = function(t, e, i) {
		return t == ForgeType.CHUANSHI ? App.config.q_equip_strengContainer.hasDataBean(1e5 * (t + 1) + 1e3 * e + i).valueOf() :
			App.config.q_equip_strengContainer.hasDataBean(1e5 * (t + 1) + i).valueOf()
	}, t.getEquipForgeConfigDataById = function(t) {
		return App.config.q_equip_strengContainer.getDataBean(t)
	}, t.getEquipForgeConfigDataByTypeAndLevel = function(t, e) {
		for (var i = this.getAllForgeConfigDataByType(t), n = i.length, a = 0; n > a; ++a) {
			var o = i[a];
			if (o.q_gradeNum == e) return o
		}
		return null
	}, t.getAllForgeConfigDataByType = function(t) {
		var e = this.forgeConfigDataTypeHash.get(t);
		if (!e) {
			e = [];
			for (var i = App.config.q_equip_strengContainer.list, n = 0; n < i.length; ++n) {
				var a = i[n];
				a.q_type == t && e.push(a)
			}
			this.forgeConfigDataTypeHash.put(t, e)
		}
		return e
	}, t.getAlertTipsConfigDataById = function(t) {
		return App.config.q_alert_contentContainer.getDataBean(t)
	}, t.getPostionItem = function(t, e) {
		if (t && t.length > 0)
			for (var i = 0; i < t.length; i++)
				if (t[i].position == e) return t[i];
		return null
	}, t.jinbiConsumeTip = function(t) {}, t.convertRewardsStr = function(t) {
		if (t) {
			for (var e = [], i = void 0, n = StringUtil.JsonParse(StringUtil.replacJosnStr(t)), a = 0; a < n.length; a++) n[a]
				.job && n[a].job != App.global.characterData.job || (i = new ItemData, i.itemId = n[a].id, i.count = n[a].num, e.push(
					i));
			return e
		}
	}, t.getGuildConfigData = function(t) {
		return App.config.q_guildContainer.getDataBean(t)
	}, t.getMonsterConfigData = function(t) {
		return App.config.q_monsterContainer.getDataBean(t)
	}, t.getVipConfigData = function(t) {
		return App.config.q_vipContainer.getDataBean(t)
	}, t.getErrorConstData = function(t) {
		return App.config.q_error_constContainer.getDataBean(t)
	}, t.getMonsterTypeNum = function(t, e) {
		if (void 0 === e && (e = 0), null != t) {
			var i = void 0;
			if (TypeUtil.isString(t)) {
				if ("" == t) return [];
				i = StringUtil.JsonParse(StringUtil.replacJosnStr(String(t)))
			} else i = t;
			var n = 0,
				a = 0,
				o = 0,
				r = 0,
				s = [];
			s.push(1e3, 1e3, 1e3);
			for (var h in i.monster) "commonmaxmonster" == h ? s[0] = i.monster[h] : "elitemaxmonster" == h ? s[1] = i.monster[
				h] : "bossmaxmonster" == h ? s[2] = i.monster[h] : (r = this.getMonsterConfigData(Number(h)).q_type, ByteUtils.hasKey(
				r, 2) ? n += i.monster[h] : ByteUtils.hasKey(r, 8) ? a += i.monster[h] : ByteUtils.hasKey(r, 4) && (o += i.monster[
				h]));
			if (s[0] <= n && (n = s[0]), s[1] <= o && (o = s[1]), s[2] <= a && (a = s[2]), 0 == e) return [n, a];
			if (1 == e) return [n];
			if (2 == e) return [a];
			if (3 == e) return [n, o];
			if (4 == e) return [n, o, a]
		}
		return []
	}, t.analysisString = function(t) {
		for (var e, i, n, a = t.split("#"), o = a.length, r = {}, s = 0; o > s; s++) n = a[s].split("_"), e = n[0], i = n[1],
			r[e] = i;
		return r
	}, t.getFaBaoSuitIsJiHuo = function(t) {
		var e = t % 1e6 % 100,
			i = EnumEquipType.FABAO_1 - 1 + (2 * e - 1),
			n = EnumEquipType.FABAO_1 - 1 + 2 * e,
			a = App.global.characterData.selectindex1,
			o = App.data.characterCenter.getFaBaoByPart(a, i),
			r = App.data.characterCenter.getFaBaoByPart(a, n);
		return o && r && o.getDataBean().q_zhuanshen == r.getDataBean().q_zhuanshen ? !0 : !1
	}, t.getGodEquipSuitId = function(e, i) {
		void 0 === i && (i = 2);
		var n = t.getItemConfigData(e),
			a = t.getEquipConfigData(e),
			o = App.data.godEquipCenter.getGodEquipSideByPos(a.q_kind),
			r = [];
		n && (n.q_zhuanshen > 0 ? o == EmunGodEquipSide.left ? (r.push(11e5 + 100 * n.q_zhuanshen + 1), r.push(11e5 + 100 *
				n.q_zhuanshen + 2)) : (r.push(11e5 + 100 * n.q_zhuanshen + 3), r.push(11e5 + 100 * n.q_zhuanshen + 4)) : o ==
			EmunGodEquipSide.left ? (r.push(11e5 + 100 * n.q_level + 1), r.push(11e5 + 100 * n.q_level + 2)) : (r.push(11e5 +
				100 * n.q_level + 3), r.push(11e5 + 100 * n.q_level + 4)));
		var s = i > 3 ? r[1] : r[0];
		return s
	}, t.forgeConfigDataTypeHash = new HashObject, t
}();
__reflect(GameUtil.prototype, "GameUtil");
var GMUtil = function() {
	function t() {}
	return t.checkIsGmString = function(t) {
			if (-1 != t.indexOf("@object")) return !0;
			if (-1 != t.indexOf("@localLogTimeIn")) return !0;
			this._gmCmdDict || this.register();
			var e = this._gmCmdDict.get(t);
			if (e) {
				var i = e.fuc;
				if (i) return i.apply(this), !0
			}
			return !1
		}, t.register = function() {
			this._gmCmdDict = new HashObject, this._gmCmdDict.put("@yerenlog", {
				msg: "打开日志面板",
				fuc: this.openLogPanel
			}), this._gmCmdDict.put("@closeLog", {
				msg: "关闭日志",
				fuc: this.onCloseLog
			}), this._gmCmdDict.put("@closeWebLog", {
				msg: "关闭网页日志",
				fuc: this.onCloseWebLog
			}), this._gmCmdDict.put("@openLog", {
				msg: "打开日志",
				fuc: this.onOpenLog
			}), this._gmCmdDict.put("@openWebLog", {
				msg: "打开网页日志",
				fuc: this.onOpenWebLog
			}), this._gmCmdDict.put("@openTraceLog", {
				msg: "打开输出日志",
				fuc: this.openTraceLog
			}), this._gmCmdDict.put("@closeTraceLog", {
				msg: "关闭输出日志",
				fuc: this.closeTraceLog
			}), this._gmCmdDict.put("@fight", {
				msg: "开始结束自动战斗",
				fuc: this.openFight
			}), this._gmCmdDict.put("@noticeTop", {
				msg: "顶部通知",
				fuc: this.openNoticeTop
			}), this._gmCmdDict.put("@noticeMiddel", {
				msg: "中间通知",
				fuc: this.openNoticeMiddel
			}), this._gmCmdDict.put("@noticeBottom", {
				msg: "底部通知",
				fuc: this.openNoticeBottom
			}), this._gmCmdDict.put("@noticeMouse", {
				msg: "鼠标通知",
				fuc: this.openNoticeMouse
			})
		}, t.openNoticeMouse = function() {}, t.openNoticeBottom = function() {}, t.openNoticeMiddel = function() {}, t.openNoticeTop =
		function() {}, t.openFight = function() {
			App.dispatcher.dispatchEvent(EventType.OPEN_OR_CLOSE_AUTO_FIGHT)
		}, t.onCloseLog = function() {
			WebParams.param.closeLog = 1
		}, t.onCloseWebLog = function() {
			WebParams.param.closeWebLog = 1
		}, t.onCloseStackLog = function() {}, t.onOpenLog = function() {
			WebParams.param.closeLog = 0
		}, t.openTraceLog = function() {
			GameLog.isTraceLog = !0
		}, t.closeTraceLog = function() {
			GameLog.isTraceLog = !1
		}, t.onOpenWebLog = function() {
			WebParams.param.closeWebLog = 0
		}, t.openLogPanel = function() {
			App.panel.openPanel(10011)
		}, t._index = 0, t
}();
__reflect(GMUtil.prototype, "GMUtil");
var GridUtil = function() {
	function t() {}
	return t.putInPool = function(t) {
		var e = t.constructor,
			i = this.gridPool.get(e);
		i ? -1 == i.indexOf(t) && i.push(t) : (i = [t], this.gridPool.put(e, i)), t.x = 0, t.y = 0, t.filters = null, t.isDispose = !
			0
	}, t.getGrid = function(t, e) {
		var i, n = this.gridPool.get(t);
		return n && 0 != n.length ? (i = n.pop(), i.style = e) : i = new t(e), i.isDispose = !1, i
	}, t.has = function(t) {
		var e = t.constructor,
			i = this.gridPool.get(e);
		return i ? -1 != i.indexOf(t) : !1
	}, t.getSizeGridGradeBg = function(e, i) {
		return t.getGridGradeBg(i)
	}, t.getGridGradeBg = function(t) {
		var e = "common1_grid_white_76_png";
		switch (t) {
			case 0:
				e = "common1_grid_white_76_png";
				break;
			case 1:
				e = "common1_grid_green_76_png";
				break;
			case 2:
				e = "common1_grid_blue_76_png";
				break;
			case 3:
				e = "common1_grid_purple_76_png";
				break;
			case 4:
				e = "common1_grid_orange_76_png";
				break;
			case 5:
				e = "common1_grid_red_76_png";
				break;
			case 6:
				e = "common1_grid_golden_76_png"
		}
		return e
	}, t.getGridJob = function(t) {
		return "common1_job_title" + t + "_png"
	}, t.getGridWingGod = function(t) {
		return "common1_winggod" + t + "_png"
	}, t.getGridRedPointUrl = function() {
		return "main_main_tip_png_png"
	}, t.getSelectedUrl = function() {
		return "common1_grid_selected_png"
	}, t.getEmptyGridUrl = function(t) {
		return this.getGridGradeBg(-1)
	}, t.getHead = function(t, e) {
		return 0 == t && (t = 1), 0 == e && (e = 1), "main_head" + t + "_" + e + "_png"
	}, t.gridPool = new HashMap, t
}();
__reflect(GridUtil.prototype, "GridUtil");
var ItemUtil = function() {
	function t() {}
	return t.isJobSame = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return null != e ? e.q_job == EnumRole.COMMON || e.q_job == App.global.characterData.job : !1
	}, t.isSexSame = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return null != e ? e.q_sex == EnumRole.COMMON || e.q_sex == App.global.characterData.sex : !1
	}, t.getItemName = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? e.q_name.split("_")[0] : ""
	}, t.getItemNameColor = function(t, e) {
		void 0 === e && (e = !0);
		var i = GameUtil.getItemConfigData(t);
		return i ? GameUtil.getQualityColor(i.q_default, e) : "#ffffff"
	}, t.getItemTipType = function(e) {
		return t.isEquip(e) ? 4 : t.isWarpet(e) ? 19 : t.isFaBao(e) ? 23 : 2
	}, t.isEquip = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 1 == e.q_type : !1
	}, t.isWarpet = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 42 == e.q_type : !1
	}, t.isFaBao = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 31 == e.q_type : !1
	}, t.isGodEquip = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 50 == e.q_type : !1
	}, t.isHejiEquip = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 1 == e.q_type || 34 == e.q_type : !1
	}, t.isProp = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? 1 != e.q_type && 35 != e.q_type && 100 != e.q_type : !1
	}, t.getShowItems = function(t) {
		for (var e, i = [], n = StringUtil.JsonParse(StringUtil.replacJosnStr(t)), a = 0; a < n.length; a++) e = new ItemData,
			e.itemId = n[a], e.count = 1, i.push(e);
		return i
	}, t.getRewardDataList = function(t, e) {
		void 0 === e && (e = !0);
		var i = [],
			n = [];
		if ("" != t && null != t) {
			var a = StringUtil.JsonParse(StringUtil.replacJosnStr(t));
			if (null != a)
				for (var o = App.global.characterData.job, r = App.global.characterData.sex, s = void 0, h = void 0, l = !0, p =
						0; p < a.length; p++) l = !0, s = GameUtil.getItemConfigData(a[p].id), h = new ItemData, null != a[p].bind ? h.isbind =
					a[p].bind > 0 : h.isbind = s.q_bind > 0, null != a[p].lock ? h.islock = a[p].lock > 0 : h.islock = s.q_isLockItem >
					0, null != a[p].gradenum && (h.gradeNum = a[p].gradenum), a[p].job > 0 && a[p].job != o && (l = !1), l && (a[p].sex >
						0 && a[p].sex != r && (l = !1), l && (h.itemId = a[p].id, h.count = a[p].num, i.push(h), n.push(h.itemId)))
		}
		return e ? i : n
	}, t
}();
__reflect(ItemUtil.prototype, "ItemUtil");
var LongUtil = function() {
	function t() {}
	return t.toNumber = function(t) {
		return t ? t.toNumber() : 0
	}, t.toString = function(t) {
		return t ? t.toString() : ""
	}, t.fromString = function(t) {
		return Config.isWxGame || Config.isBaiduGame ? protowx.Long.fromString(t) : dcodeIO.Long.fromString(t)
	}, t.fromStringList = function(e) {
		for (var i = [], n = e.length, a = 0; n > a; a++) i.push(t.fromString(e[a]));
		return i
	}, t.fromNumber = function(t) {
		return Config.isWxGame || Config.isBaiduGame ? protowx.Long.fromNumber(t) : dcodeIO.Long.fromNumber(t)
	}, t.fromNumberList = function(e) {
		for (var i = [], n = e.length, a = 0; n > a; a++) i.push(t.fromNumber(e[a]));
		return i
	}, t
}();
__reflect(LongUtil.prototype, "LongUtil");
var MapUtil = function() {
	function t() {
		this.isShake = !1
	}
	return t.prototype.shake = function(t, e, i, n, a) {
		if (void 0 === i && (i = 3), void 0 === n && (n = 4), void 0 === a && (a = 32), !this.isShake) {
			0 != e && (this.shakeDelay = egret.getTimer() + e), this.isShake = !0;
			var o = new egret.Point(t.x, t.y),
				r = new egret.Point;
			this.shakeNum = 0, App.timer.doTimeLoop(this, a, this.doShake, [t, i, n, o, r])
		}
	}, t.prototype.doShake = function(t, e, i, n, a) {
		if (this.shakeDelay > 0) {
			if (egret.getTimer() - this.shakeDelay < 0) return;
			this.shakeDelay = 0
		}
		this.shakeNum % 2 == 0 ? a.x = this.shakeNum++ % 4 < 2 ? 0 : i : a.y = this.shakeNum++ % 4 < 2 ? 0 : i, this.shakeNum >
			4 * e + 1 && (App.timer.clearTimer(this.doShake, this), this.shakeNum = 0, this.shakeNum = 0, this.isShake = !1),
			t.x = n.x + a.x, t.y = n.y + a.y
	}, t
}();
__reflect(MapUtil.prototype, "MapUtil");
var MathUtil = function() {
	function t() {}
	return t.random = function(t, e) {
		return Math.floor(Math.random() * (e - t) + t)
	}, t.toAngle = function(e) {
		return e / t.PI_180
	}, t.toRadian = function(e) {
		return e * t.PI_180
	}, t.distance = function(t, e, i, n) {
		var a = Math.abs(t - i),
			o = Math.abs(e - n);
		return a > o ? a : o
	}, t.atan2Angle = function(t, e, i, n, a) {
		void 0 === a && (a = 0);
		var o = 0 / 0,
			r = e - n,
			s = t - i;
		return o = 0 == r && 0 == s ? Math.PI * (a / 4 - .5) : Math.atan2(r, s)
	}, t.getRotation = function(t, e, i, n) {
		var a = Math.atan2(e - n, t - i),
			o = a * (180 / Math.PI);
		return o
	}, t.tenToN = function(t, e) {
		var i = [];
		if (1 >= t) return t;
		for (; t > 0;) i.push(t % e), t = Math.floor(t / e);
		var n = i.reverse().join("");
		return Number(n)
	}, t.nToTen = function(t, e) {
		var i = (t + "").split("");
		i.reverse();
		for (var n = 0, a = 0; a < i.length; a++) n += Number(i[a]) * Math.pow(e, a);
		return n
	}, t.PI2 = 2 * Math.PI, t.PI_180 = Math.PI / 180, t
}();
__reflect(MathUtil.prototype, "MathUtil");
var NavigatorUtils = function() {
	function t() {}
	return t.isWexin = function() {
		var t = navigator.userAgent.toLowerCase(),
			e = -1 != t.indexOf("micromessenger");
		return e
	}, t.isQQ = function() {
		var t = navigator.userAgent.toLowerCase(),
			e = -1 != t.indexOf("mqqbrowser");
		return e
	}, t.isAliPay = function() {
		var t = navigator.userAgent.toLowerCase(),
			e = -1 != t.indexOf("alipayclient");
		return e
	}, t
}();
__reflect(NavigatorUtils.prototype, "NavigatorUtils");
var PopUtil = function() {
	function t() {}
	return t.start = function(t, e) {
		this.reset(), this._type = t, t == this.SKILL ? (this._grid = new SkillGrid(EnumGridStyle.GRID_STYLE_NORMAL), this._grid
			.setData(e), this._popUI.desc_txt.text = this._grid.bean.q_skillName.split("_")[0] + (Config.isDebug ? "_" + this
				._grid.bean.q_skillID_q_grade : ""), this._popUI.groupGrid.addChild(this._grid)) : t == this.ITEM && (this._grid =
			new ItemGrid, this._grid.setData(e), this._popUI.desc_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(
				ItemUtil.getItemName(e) + (Config.isDebug ? "_" + e : ""), ItemUtil.getItemNameColor(e))), this._popUI.groupGrid
			.addChild(this._grid)), TweenLite.to(this._popUI, .2, {
			y: 760,
			ease: Linear.easeOut
		}), App.timer.doTimeOnce(this, 1e3, this.end)
	}, t.end = function() {
		App.timer.clearTimer(this.end, this), TweenLite.to(this._popUI, .05, {
			x: this._popUI.x + 150,
			ease: Linear.easeIn
		}), TweenLite.to(this._popUI, .2, {
			delay: .1,
			x: -this._popUI.width,
			ease: Linear.easeOut,
			onComplete: this.clear,
			onCompleteScope: this
		}), App.timer.doTimeOnce(this, 350, this.playEffect);
		var t = this._grid.icon.localToGlobal(),
			e = this._type == this.SKILL ? 7 : 4,
			i = App.panel.getFlyTarget(e);
		if (i) {
			var n = i.localToGlobal();
			App.global.operate.fly(this._grid.icon.url, this, t.x, t.y, n.x + 20, n.y + 20, 0, 64, 64)
		}
	}, t.playEffect = function() {
		var t = EffectUtils.showOnceEffect("PopUtil", App.layer.zoneLayer, ResPathUtil.getMenuEffect("main",
			"get_fly_effect"), 130, 820);
		t.view.scaleX = -1
	}, t.reset = function() {
		null == this._dispatcher && (this._dispatcher = new DispatcherRegister), null == this._popUI && (this._popUI =
				UIMaker.createViewBase("PopSkin")), 0 == App.layer.popLayer.contains(this._popUI) && App.layer.popLayer.addChild(
				this._popUI), this._grid && (this._grid.dispose(), this._grid = null), TweenLite.killTweensOf(this._popUI), this._popUI
			.touchEnabled = !0, this._popUI.touchChildren = !1, this._popUI.x = Config.SCREEN_WIDTH - 339 >> 1, this._popUI.y =
			1062
	}, t.clear = function() {
		App.timer.clearTimer(this.end, this), TweenLite.killTweensOf(this._popUI), this._dispatcher.dispose(), this._dispatcher =
			null, this._grid.dispose(), this._grid = null, this._popUI.dispose(), this._popUI = null
	}, t.ITEM = 1, t.SKILL = 2, t
}();
__reflect(PopUtil.prototype, "PopUtil");
var ResPathUtil = function() {
	function t() {}
	return t.getMapTileClip = function(e, i) {
		return t.getVersionUrl("map/" + e + "/") + "tiles/" + i + ".jpg" + Config.debugVersion
	}, t.getMapDataMp = function(e) {
		return t.getVersionUrl("map/" + e + "/") + "data.mp" + Config.debugVersion
	}, t.getMapDataEffectConfig = function(e) {
		return t.getVersionUrl("map/" + e + "/") + "effect.mp" + Config.debugVersion
	}, t.getMapDataPreview = function(e) {
		return t.getVersionUrl("map/" + e + "/") + "radar.jpg" + Config.debugVersion
	}, t.getMKeyMapDataPreview = function(e) {
		return t.getVersionUrl("map/" + e + "/") + "mkey.jpg" + Config.debugVersion
	}, t.getRadarMapDataPreview = function(e, i) {
		return void 0 === i && (i = "radar.jpg"), t.getVersionUrl("map/" + e + "/") + i + Config.debugVersion
	}, t.getGameDataConfig = function(t) {
		var e = WebParams.configPack,
			i = e ? e : "config";
		return Config.CFG_PATH + i + "/" + t + Config.debugVersion
	}, t.getMapMonsterAvatarRes = function(e) {
		return t.getVersionUrl("avatar/monster/" + e + "/")
	}, t.getMapPetAvatarRes = function(e) {
		return t.getVersionUrl("avatar/pet/" + e + "/")
	}, t.getMapNpcAvatarRes = function(e, i) {
		return void 0 === i && (i = 0), i == EnumRole.GIRL ? t.getVersionUrl("avatar/npc/" + e + "/") + i + "/" : t.getVersionUrl(
			"avatar/npc/" + e + "/")
	}, t.getMapAvatarPartRes = function(e, i, n) {
		var a = "";
		switch (e) {
			case AvatarPartType.BODY:
				a = "body";
				break;
			case AvatarPartType.WEAPON:
				a = "weapon";
				break;
			case AvatarPartType.WING:
				a = "wing";
				break;
			case AvatarPartType.WEAPONSOUL:
				a = "wuqitexiao";
				break;
			case AvatarPartType.HORSE:
			case AvatarPartType.HORSE_HEAD:
				a = "mount"
		}
		e == AvatarPartType.BODY ? "1" == n && (GameLog.logError("错误的模型ID", n), n = EnumRole.getDefaultBody(EnumRole.ZHAN_SHI,
			i)) : i = 1;
		var o = t.getVersionUrl("avatar/role/" + a + "/" + i + "/" + n + "/");
		return o
	}, t.getMapMagical = function(e, i) {
		return t.getVersionUrl("avatar/role/" + e + "/" + i + "/")
	}, t.getMapResByPart = function(e, i) {
		return t.getVersionUrl("avatar/role/" + e + "/" + i + "/")
	}, t.getAvatarPartUrl = function(t, e, i) {
		var n = t + e + "_" + i;
		return n
	}, t.getSkillEffectUrl = function(e, i, n) {
		void 0 === n && (n = -1);
		var a = t.getVersionUrl("effect/skill/" + e + "/") + i;
		return a += -1 == n ? "" : "_" + n
	}, t.parseSkillEffect = function(e, i, n) {
		void 0 === n && (n = -1);
		var a = e + "/" + i + "_" + n,
			o = this.parseSkillHash.get(a);
		if (!o) {
			if (o = [], i)
				for (var r = i.split(","), s = r.length, h = 0; s > h; h++) {
					var l = r[h];
					l && o.push(t.getSkillEffectUrl(e, l, n))
				}
			this.parseSkillHash.put(a, o)
		}
		return o
	}, t.getTitleEffect = function(e) {
		return t.getVersionUrl("effect/titles/" + e + "/") + e
	}, t.getBufferEffect = function(e) {
		return t.getVersionUrl("effect/buff/" + e + "/") + e
	}, t.getMenuEffect = function(e, i) {
		var n = t.getVersionUrl("effect/menu/" + e + "/") + i;
		return n
	}, t.getNetAnimationPath = function(t, e) {
		var i = e ? e : new Array;
		return i.push(t + ".json" + Config.debugVersion), i.push(t + ".png" + Config.debugVersion), i
	}, t.getMapEffect = function(e) {
		return e = e.replace(".json", ""), t.getVersionUrl("effect/map/scene/") + e
	}, t.getIcon = function(e, i, n) {
		return void 0 === n && (n = ".png"), t.getVersionUrl("icon/" + i + "/" + e + n) + Config.debugVersion
	}, t.getHead = function(e, i, n) {
		return void 0 === n && (n = ".png"), t.getVersionUrl("head/" + i + "/" + e + n) + Config.debugVersion
	}, t.getHalf = function(e, i) {
		return void 0 === i && (i = ".png"), t.getVersionUrl("head/half/" + e + i) + Config.debugVersion
	}, t.getChatfaceRes = function(t, e) {
		void 0 === e && (e = ".png");
		var i = "module/image/emoji/face" + t + e + Config.debugVersion;
		return Config.getProResPath(i)
	}, t.getCommonIconRes = function(e, i) {
		var n = "common/" + e + "/" + i;
		return t.getVersionUrl(n)
	}, t.getTxYellowImageSign = function(e, i) {
		void 0 === i && (i = ".png");
		var n = "common/huangzuan/yellow" + e + ".png";
		return t.getVersionUrl(n) + Config.debugVersion
	}, t.getNpcSoundPath = function(e) {
		var i = "music/npc/" + e + ".mp3";
		return t.getVersionUrl(i)
	}, t.getSoundPath = function(e, i) {
		void 0 === i && (i = "sound");
		var n = "music/" + i + "/" + e + ".mp3";
		return t.getVersionUrl(n)
	}, t.getBgmPath = function(e) {
		var i = "music/bgm/" + e + ".mp3";
		return t.getVersionUrl(i)
	}, t.getVersionUrl = function(t) {
		var e = Config.resourceVersion.getVersionPath(t);
		return e ? Config.RES_PATH + e : ""
	}, t.getShaderURL = function(t) {
		var e = Config.getProResPath("/module/shader/" + t + ".json");
		return e
	}, t.getNumSheetPath = function(t, e) {
		return void 0 === e && (e = ".json"), Config.getProResPath("number/" + t + e)
	}, t.getImgPath = function(t, e, i) {
		return void 0 === e && (e = ""), void 0 === i && (i = ".png"), e = e ? e + "/" : "", Config.getProResPath(
			"module/image/" + e + t + i)
	}, t.getProEffectPath = function(t) {
		return Config.getProResPath("module/effect/" + t + "/") + t
	}, t.getResImage = function(e, i, n) {
		return void 0 === i && (i = ""), void 0 === n && (n = ".png"), i = i ? i + "/" : "", t.getVersionUrl("icon/image/" +
			i + e + n) + Config.debugVersion
	}, t.getWarPetCardResImage = function(e, i, n) {
		return void 0 === i && (i = ""), void 0 === n && (n = ".png"), i = i ? i + "/" : "", t.getVersionUrl("icon/warpet/" +
			i + e + n) + Config.debugVersion
	}, t.parseSkillHash = new HashObject, t
}();
__reflect(ResPathUtil.prototype, "ResPathUtil");
var ShaderUtil = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.callEvent = {}, e._shaderHash = {}, e.registerEvent(), e
	}
	return __extends(e, t), e.prototype.registerEvent = function() {
		this.callEvent[shaderType.waveShader] = this.WaveTime, this.callEvent[shaderType.sweepLightShader] = this.sweepLight,
			this.callEvent[shaderType.fluxayShader] = this.fluxay, this.callEvent[shaderType.sparklingShader] = this.sparkling,
			this.callEvent[shaderType.dissolveShader] = this.dissolve, this.callEvent[shaderType.turnPageShader] = this.turnPage,
			this.callEvent[shaderType.flowwaterShader] = this.flowwater, this.callEvent[shaderType.searchlightShader] = this.searchlight,
			this.callEvent[shaderType.rainShader] = this.rain
	}, e.prototype.loadShaderConfig = function(t, e) {
		return __awaiter(this, void 0, void 0, function() {
			var i, n, a, o = this;
			return __generator(this, function(r) {
				return i = this, i._shaderHash[t] ? [2, i._shaderHash[t]] : (n = ResPathUtil.getShaderURL(e), a = new Promise(
					function(e, a) {
						var r = new HttpLoader;
						r.httpCompleteFun = new FunctionVO(function(n) {
							var a = r.data;
							i._shaderHash[t] = a, e(a)
						}, o), r.send(n)
					}), [2, a])
			})
		})
	}, e.prototype.getScreenSnapshoot = function() {
		var t = new egret.RenderTexture;
		App.layer.sceneLayer.avatarLayer.visible = !1, t.drawToTexture(App.stage, new egret.Rectangle(0, 0, Config.SCREEN_WIDTH,
			Config.SCREEN_HEIGHT)), App.layer.sceneLayer.avatarLayer.visible = !0;
		var e = new egret.Bitmap(t);
		return e.alpha = .1, e
	}, e.prototype.start = function(t, e, i) {
		this.shaderDisplayObj = e, App.stage.addChild(e);
		var n = new egret.CustomFilter(i.vert, i.frag, i.uniforms);
		this.customFilter = n, e.filters = [n], this.addEvent(n, t)
	}, e.prototype.stop = function(t, e) {
		this.Loop = !1, App.stage.removeChild(t), t = null, this.removeEventListener(egret.Event.ENTER_FRAME, this.callEvent[
			e], this)
	}, e.prototype.addEvent = function(t, e) {
		this.callEvent[e] && this.addEventListener(egret.Event.ENTER_FRAME, this.callEvent[e], this)
	}, Object.defineProperty(e.prototype, "isLoop", {
		get: function() {
			return this.Loop
		},
		set: function(t) {
			this.Loop = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "timeRate", {
		get: function() {
			return this._timeRate
		},
		set: function(t) {
			this._timeRate = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.WaveTime = function() {
		var t = this.customFilter;
		t && (t.uniforms.time += this.timeRate, t.uniforms.time > .6 && (this.isLoop ? t.uniforms.time = 0 : this.stop(this
			.shaderDisplayObj, shaderType.waveShader)))
	}, e.prototype.sweepLight = function() {
		var t = this.customFilter;
		t && (t.uniforms.customUniform += .1, t.uniforms.customUniform > 2 * Math.PI && (this.isLoop ? t.uniforms.customUniform =
			0 : this.stop(this.shaderDisplayObj, shaderType.sweepLightShader)))
	}, e.prototype.fluxay = function() {
		var t = this.customFilter;
		t && (t.uniforms.time += .02, t.uniforms.time > 1.414 && (this.isLoop ? t.uniforms.time = 0 : this.stop(this.shaderDisplayObj,
			shaderType.fluxayShader)))
	}, e.prototype.sparkling = function() {
		var t = this.customFilter;
		t && (t.uniforms.time += .02, t.uniforms.time > 5 && (this.isLoop ? t.uniforms.time = 0 : this.stop(this.shaderDisplayObj,
			shaderType.sparklingShader)))
	}, e.prototype.dissolve = function() {
		var t = this.customFilter;
		t && (t.uniforms.time += .01, t.uniforms.time > 1 && (this.isLoop ? t.uniforms.time = 0 : this.stop(this.shaderDisplayObj,
			shaderType.dissolveShader)))
	}, e.prototype.turnPage = function() {
		var t = this.customFilter;
		t && (t.uniforms.mouse.x += 10, t.uniforms.mouse.y += 2, t.uniforms.mouse.x > 1800 && (this.isLoop ? (t.uniforms.mouse
			.x = 0, t.uniforms.mouse.y = 0) : this.stop(this.shaderDisplayObj, shaderType.turnPageShader)))
	}, e.prototype.flowwater = function() {
		var t = this.customFilter;
		t && (t.uniforms.time += .05)
	}, e.prototype.searchlight = function() {
		var t = this.customFilter;
		t && (t.uniforms.mouse.x += .5, t.uniforms.mouse.y += .5, t.uniforms.mouse.x > 100 && (this.isLoop ? t.uniforms.time =
			0 : this.stop(this.shaderDisplayObj, shaderType.waveShader), t.uniforms.mouse.x = 0, t.uniforms.mouse.y = 0))
	}, e.prototype.rain = function() {
		var t = this.customFilter;
		t && (t.uniforms.iTime += .05)
	}, e
}(egret.DisplayObject);
__reflect(ShaderUtil.prototype, "ShaderUtil");
var shaderType;
! function(t) {
	t[t.waveShader = 0] = "waveShader", t[t.sweepLightShader = 1] = "sweepLightShader", t[t.relifeShader = 2] =
		"relifeShader", t[t.mosaicShader = 3] = "mosaicShader", t[t.reverseShader = 4] = "reverseShader", t[t.gaussblurShader =
			5] = "gaussblurShader", t[t.warpShader = 6] = "warpShader", t[t.fluxayShader = 7] = "fluxayShader", t[t.sparklingShader =
			8] = "sparklingShader", t[t.dissolveShader = 9] = "dissolveShader", t[t.turnPageShader = 10] = "turnPageShader", t[t
			.flowwaterShader = 11] = "flowwaterShader", t[t.searchlightShader = 12] = "searchlightShader", t[t.outlineShader =
			13] = "outlineShader", t[t.rainShader = 14] = "rainShader", t[t.filterShader = 15] = "filterShader"
}(shaderType || (shaderType = {}));
var StringUtil = function() {
	function t() {}
	return t.JsonParse = function(t) {
		return t && "" != t ? JSON.parse(t) : (GameLog.logWarn("JSON数据是空的"), {})
	}, t.getTodayMaxUtc = function() {
		var t = new Date(ServerTime.serverTime);
		return t.setHours(23, 59, 59, 999), .001 * t.getTime() >> 0
	}, t.resloveFormatHMS = function(t) {
		var e = new Date(1e3 * t),
			i = e.getHours(),
			n = e.getMinutes(),
			a = e.getSeconds();
		return (10 > i ? "0" + i : "" + i) + ":" + (10 > n ? "0" + n : "" + n) + ":" + (10 > a ? "0" + a : "" + a)
	}, t.resloveFormatHMS1 = function(t) {
		var e = new Date(1e3 * t),
			i = e.getHours(),
			n = e.getMinutes();
		return (10 > i ? "0" + i : "" + i) + ":" + (10 > n ? "0" + n : "" + n)
	}, t.fillArray = function(t, e, i) {
		void 0 === i && (i = null);
		var n = [],
			a = e.split(","),
			o = Math.min(t.length, a.length);
		if (e && "" != e)
			for (var r = 0; o > r; r++) {
				var s = a[r];
				n[r] = "true" == s ? !0 : "false" == s ? !1 : s
			}
		return n
	}, t.convertTime = function(t, e) {
		void 0 === e && (e = ":");
		var i = t / 3600 >> 0,
			n = t % 3600 / 60 >> 0,
			a = t % 60 >> 0;
		return (10 > i ? "0" + i : "" + i) + e + (10 > n ? "0" + n : "" + n) + e + (10 > a ? "0" + a : "" + a)
	}, t.convertTime_3 = function(t, e) {
		void 0 === e && (e = "");
		var i = t / 3600 >> 0,
			n = t % 3600 / 60 >> 0,
			a = t % 60 >> 0;
		return (10 > i ? "0" + i : "" + i) + "时" + e + (10 > n ? "0" + n : "" + n) + "分" + e + (10 > a ? "0" + a : "" + a) +
			"秒"
	}, t.convertTime_4 = function(t, e) {
		void 0 === e && (e = "");
		var i = t / 3600 % 24 >> 0,
			n = t % 3600 / 60 >> 0,
			a = t / 86400 >> 0;
		return (10 > a ? "0" + a : "" + a) + "天" + e + (10 > i ? "0" + i : "" + i) + "时" + (10 > n ? "0" + n : "" + n) +
			"分"
	}, t.convertTime5 = function(t, e) {
		void 0 === e && (e = ":");
		var i = t % 3600 / 60 >> 0,
			n = t % 60 >> 0;
		return (10 > i ? "0" + i : "" + i) + e + (10 > n ? "0" + n : "" + n)
	}, t.converTime2 = function(e, i) {
		void 0 === i && (i = "{0}分{1}秒");
		var n = e / 60 >> 0,
			a = e % 60 >> 0;
		return t.substitute(i, 10 > n ? "0" + n : "" + n, 10 > a ? "0" + a : "" + a)
	}, t.substitute = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (void 0 == t || null == t) return "";
		var n, a = e.length,
			o = TypeUtil.isArray(e[0]);
		1 == a && o ? (n = e[0], a = n.length) : n = e;
		for (var r = 0; a > r; r++) t = t.replace(new RegExp("\\{" + r + "\\}", "g"), n[r]);
		return t
	}, t.getLineBreakStr = function(t) {
		return t = t.replace(new RegExp("\\\\n", "g"), "br")
	}, t.replacJosnStr = function(t) {
		var e = /\'/g;
		return t = t.replace(e, '"')
	}, t.formatMoney = function(t, e, i) {
		return void 0 === e && (e = "万"), void 0 === i && (i = 1e4), t >= i ? Math.floor(t / i) + e : t + ""
	}, t.formatNum = function(t, e, i, n) {
		void 0 === e && (e = !0), void 0 === i && (i = !0), void 0 === n && (n = !1);
		var a = "";
		e && t >= 1e9 ? (t = Number(t / 1e8), a = "亿") : e && t >= 1e6 && (t = Number(t / 1e4), a = "万");
		var o;
		if (n && (t = parseInt(t.toString())), o = t.toString(), o.length > 3) {
			for (var r = [], s = 0, h = o.length; h > 0;) s = Math.max(h - 3, 0), r.unshift(o.slice(s, h)), h = s;
			i && (o = r.join(","))
		}
		return o + a
	}, t.getWeekDay = function(t) {
		var e = ["日", "一", "二", "三", "四", "五", "六"];
		return e[t]
	}, t.getChieseNum = function(t) {
		var e = ["零", "一", "二", "三", "四", "五", "六", "七", "八", "九", "十"];
		return e[t]
	}, t.getstringLen = function(t, e) {
		void 0 === e && (e = 2);
		var i = 0;
		if (t) {
			for (var n = "", a = 0; e > a; a++) n += "x";
			i = t.replace(/[^\x00-\xff]/g, n).length
		}
		return i
	}, t.getIndexStr = function(t, e, i, n, a) {
		if (void 0 === i && (i = ";"), void 0 === n && (n = 0), void 0 === a && (a = 0), null == t || "" == t || 0 >= e)
			return "";
		var o = t.split(i);
		if (null != o) {
			var r = o[e - 1];
			return r
		}
		return ""
	}, t.format = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = "Y-M-D h:m:s"), null == t && (t = new Date);
		var i = t.getFullYear(),
			n = (t.getMonth() > 9 ? "" : "0") + (t.getMonth() + 1),
			a = (t.getDate() > 9 ? "" : "0") + t.getDate(),
			o = (t.getHours() > 9 ? "" : "0") + t.getHours(),
			r = (t.getMinutes() > 9 ? "" : "0") + t.getMinutes(),
			s = (t.getSeconds() > 9 ? "" : "0") + t.getSeconds();
		return e.replace(new RegExp("Y"), i).replace(new RegExp("M"), n).replace(new RegExp("D"), a).replace(new RegExp("h"),
			o).replace(new RegExp("m"), r).replace(new RegExp("s"), s)
	}, t.format1 = function(t, e) {
		void 0 === e && (e = "Y-M-D h:m:s");
		var i = new Date(1e3 * t),
			n = i.getFullYear(),
			a = (i.getMonth() > 9 ? "" : "0") + (i.getMonth() + 1),
			o = (i.getDate() > 9 ? "" : "0") + i.getDate();
		return e.replace(new RegExp("Y"), n).replace(new RegExp("M"), a).replace(new RegExp("D"), o)
	}, t.formatToTime_V10 = function(t) {
		var e = new Date(1e3 * t),
			i = e.getHours() < 10 ? "0" + e.getHours() : "" + e.getHours(),
			n = e.getMinutes() < 10 ? "0" + e.getMinutes() : "" + e.getMinutes(),
			a = e.getSeconds() < 10 ? "0" + e.getSeconds() : "" + e.getSeconds();
		return e.getMonth() + 1 + "月" + e.getDate() + "日 " + i + ":" + n + ":" + a
	}, t.formatToTime_V11 = function(t) {
		var e = new Date(1e3 * t);
		return e.getMonth() + 1 + "月" + e.getDate() + "日 "
	}, t.formatToTime_V12 = function(t) {
		var e = new Date(1e3 * t),
			i = e.getHours() < 10 ? "0" + e.getHours() : "" + e.getHours(),
			n = e.getMinutes() < 10 ? "0" + e.getMinutes() : "" + e.getMinutes(),
			a = e.getSeconds() < 10 ? "0" + e.getSeconds() : "" + e.getSeconds();
		return e.getFullYear() + "-" + (e.getMonth() + 1) + "-" + e.getDate() + " " + i + ":" + n + ":" + a
	}, t.getchongwuzizhi = function(t) {
		for (var e = t.length, i = "", n = "<br>", a = 0; e > a; a++) a == e - 1 && (n = ""), i = i + this.getTypeText(t[a]
			.zizhitype, t[a].zizhi) + n;
		return i += ""
	}, t.getTypeText = function(t, e) {
		var i = "";
		return 1 == t ? i = "攻击资质:<font color='0xf8f3b7'>" + e + "</font>" : 2 == t ? i = "物防资质:<font color='0xf8f3b7'>" +
			e + "</font>" : 3 == t ? i = "魔防资质:<font color='0xf8f3b7'>" + e + "</font>" : 4 == t ? i =
			"生命资质:<font color='0xf8f3b7'>" + e + "</font>" : 5 == t && (i = "暴击资质:<font color='0xf8f3b7'>" + e + "</font>"), i
	}, t
}();
__reflect(StringUtil.prototype, "StringUtil");
var Style = function() {
	function t() {}
	return t.FONT = "SimHei", t.SIZE = 20, t.COLOR = 16777215, t.stroke = 1, t.strokeColor = 0, t.ForgeColor = 65280, t
}();
__reflect(Style.prototype, "Style");
var TextureUtils = function() {
	function t() {}
	return t.getTexture = function() {
		var t;
		return this._Pool.length > 0 ? t = this._Pool.pop() : (t = new egret.Texture, this.allCount++), t
	}, t.putTexture = function(t) {
		-1 != this._Pool.indexOf(t) ? GameLog.log("有重复egret.Texture对象入池") : (t.$bitmapData = null, this._Pool.push(t))
	}, t.parseSpriteSheet = function(t, e) {
		var i = e.frames;
		if (!i) return null;
		var n = new egret.SpriteSheet(t);
		for (var a in i) {
			var o = i[a],
				r = n.createTexture(a, o.x, o.y, o.w, o.h, o.offX, o.offY, o.sourceW, o.sourceH);
			if (o.scale9grid) {
				var s = o.scale9grid,
					h = s.split(",");
				r.scale9Grid = new egret.Rectangle(parseInt(h[0]), parseInt(h[1]), parseInt(h[2]), parseInt(h[3]))
			}
		}
		return n
	}, t.createFromBigTexture = function(t, e, i, n, a, o, r) {
		void 0 === o && (o = n), void 0 === r && (r = a);
		var s = this.getTexture();
		return s.$bitmapData = t.$bitmapData, s.$initData(e, i, n, a, 0, 0, o, r, t.$sourceWidth, t.$sourceHeight), s
	}, t._Pool = [], t.allCount = 0, t.openPool = !0, t
}();
__reflect(TextureUtils.prototype, "TextureUtils");
var UIMaker = function() {
	function t() {}
	return t.createViewBase = function(t) {
		var e = new ViewBase;
		return e.euiSkinName = t, e
	}, t.getCImage = function(t, e, i, n, a, o, r) {
		void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = !1);
		var s = r ? r : App.thing.create(CImage, egret.getQualifiedClassName(e), !0);
		return s.url = i, s.x = n, s.y = a, s.filters = null, s.alpha = 1, s.visible = !0, s.touchEnabled = o, s.scaleX = 1,
			s.scaleY = 1, s.scale9Grid = null, t && t.addChild(s), s
	}, t.getImage = function(t, e, i, n, a, o, r) {
		void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = !1);
		var s = r ? r : App.thing.create(eui.Image, egret.getQualifiedClassName(e), !0);
		return s.source = i, s.x = n, s.y = a, s.filters = null, s.alpha = 1, s.visible = !0, s.touchEnabled = o, s.scaleX =
			1, s.scaleY = 1, s.scale9Grid = null, t && t.addChild(s), s
	}, t.getTextField = function(t, e, i, n, a, o, r, s) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === r && (r = 16777215), void 0 === s && (s = Style.SIZE);
		var h = App.thing.create(egret.TextField, egret.getQualifiedClassName(e), !0);
		return h.size = s, h.textColor = r, h.fontFamily = Style.FONT, h.stroke = 0, h.touchEnabled = !1, h.textAlign =
			egret.HorizontalAlign.CENTER, h.verticalAlign = egret.VerticalAlign.BOTTOM, h.x = i, h.y = n, h.width = a, h.height =
			o, t && t.addChild(h), h
	}, t.getBitmapLabel = function(t, e, i, n, a, o, r, s) {
		void 0 === n && (n = ""), void 0 === a && (a = 0), void 0 === o && (o = 0);
		var h = App.thing.create(eui.BitmapLabel, egret.getQualifiedClassName(e), !0);
		return h.text = "", h.font = i, h.x = a, h.y = o, h.width = r, h.height = s, h.textAlign = egret.HorizontalAlign.CENTER,
			h.verticalAlign = egret.VerticalAlign.BOTTOM, t && t.addChild(h), h
	}, t.getButton = function(t, e, i, n, a, o) {
		void 0 === n && (n = ""), void 0 === a && (a = 0), void 0 === o && (o = 0);
		var r = App.thing.create(eui.Button, egret.getQualifiedClassName(e), !0);
		return r.label = n, r.skinName = i, r.x = a, r.y = o, t && t.addChild(r), r
	}, t.getScroller = function(t, e, i, n, a, o, r) {
		void 0 === i && (i = 0), void 0 === n && (n = 0);
		var s = App.thing.create(eui.Scroller, egret.getQualifiedClassName(e), !0);
		return s.x = i, s.y = n, s.width = a, s.height = o, t && t.addChild(s), s
	}, t.getGroup = function(t, e, i, n, a, o) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = !1), void 0 === o && (o = !1);
		var r = App.thing.create(eui.Group, egret.getQualifiedClassName(e), !0);
		return r.x = i, r.y = n, r.touchEnabled = a, r.touchChildren = o, t && t.addChild(r), r
	}, t.putToPool = function(t) {
		null != t && (t.name = "", t.touchEnabled = !1, t.alpha = 1, t.visible = !0, t.width = void 0, t.height = void 0, t
			.filters = null, t.scaleX = 1, t.scaleY = 1, App.tip.removeTip(t), egret.is(t, "eui.Image") ? (t.scale9Grid =
				null, t.source = null, t.texture = null) : egret.is(t, "CImage") && t.clear(), t.parent && t.parent.removeChild(
				t), App.thing.putIn(t))
	}, t.drawSector = function(t, e, i, n, a, o, r, s) {
		void 0 === e && (e = 200), void 0 === i && (i = 200), void 0 === n && (n = 100), void 0 === a && (a = 30), void 0 ===
			o && (o = 270), void 0 === r && (r = 16711680), void 0 === s && (s = 1), t.graphics.clear(), t.graphics.beginFill(
				r, s), t.graphics.lineStyle(0, 16711680), t.graphics.moveTo(e, i), a = Math.abs(a) > 360 ? 360 : a;
		var h = Math.ceil(Math.abs(a) / 45),
			l = a / h;
		l = l * Math.PI / 180, o = o * Math.PI / 180, t.graphics.lineTo(e + n * Math.cos(o), i + n * Math.sin(o));
		for (var p = 1; h >= p; p++) {
			o += l;
			var c = o - l / 2,
				_ = e + n / Math.cos(l / 2) * Math.cos(c),
				d = i + n / Math.cos(l / 2) * Math.sin(c),
				u = e + n * Math.cos(o),
				g = i + n * Math.sin(o);
			t.graphics.curveTo(_, d, u, g)
		}
		360 != a && t.graphics.lineTo(e, i), t.graphics.endFill()
	}, t.drawRectBlood = function(t, e, i, n, a, o, r) {
		void 0 === e && (e = 200), void 0 === i && (i = 200), void 0 === r && (r = 16711680), t.graphics.clear(), t.graphics
			.beginFill(r, 50), t.graphics.lineStyle(0, 16711680), e += (1 - Math.floor(100 * o) / 100) * n, t.graphics.moveTo(
				e, i), t.graphics.drawRect(e, i, n, a), t.graphics.endFill()
	}, t.showPoint = function(e, i, n, a, o, r, s) {
		if (void 0 === n && (n = !0), void 0 === a && (a = 0), void 0 === o && (o = 0), void 0 === r && (r =
				"main_main_tip_png_png"), void 0 === s && (s = "UIMaker.redpoint"), null != e) {
			var h = e.getChildByName(s);
			if (n) {
				null == h && (h = this.getImage(e, i, r)), h.name = s, h.x = e.width - 22 + a, h.y = o;
				var l = this._redPoint.get(e.hashCode);
				null == l && (l = EffectUtils.showCEffect(this, e, ResPathUtil.getMenuEffect("main", "redpoint"), h.x + 11, h.y +
					10), this._redPoint.put(e.hashCode, l)), l.play()
			} else {
				var l = this._redPoint.get(e.hashCode);
				null != l && (this._redPoint.del(e.hashCode), l.stop(), l.dispose(), l = null), h && t.putToPool(h)
			}
		}
	}, t.moveTo = function(t, e, i, n) {
		null != t && (t.x = e, t.y = i, n && n.addChild(t))
	}, t._redPoint = new HashObject, t
}();
__reflect(UIMaker.prototype, "UIMaker");
var ZlibUtil = function() {
	function t() {}
	return t.decodeToString = function(t) {
		var e = new Uint8Array(t),
			i = new Zlib.Inflate(e),
			n = i.decompress(),
			a = new egret.ByteArray(n.buffer),
			o = a.readUTFBytes(a.length);
		return o
	}, t
}();
__reflect(ZlibUtil.prototype, "ZlibUtil");
var FightPowerData = function() {
	function t() {
		this.DCMIN = "物攻下限", this.DCMINPERCENT = "物攻下限比例", this.DCMAX = "物攻上限", this.DCMAXPERCENT = "物攻上限比例", this.MCMIN =
			"魔攻下限", this.MCMINPERCENT = "魔攻下限比例", this.MCMAX = "魔攻上限", this.MCMAXPERCENT = "魔攻上限比例", this.SCMIN = "道攻下限", this.SCMINPERCENT =
			"道攻下限比例", this.SCMAX = "道攻上限", this.SCMAXPERCENT = "道攻上限比例", this.ACMIN = "物防下限", this.ACMINPERCENT = "物防下限比例",
			this.ACMAX = "物防上限", this.ACMAXPERCENT = "物防上限比例", this.MACMIN = "魔防下限", this.MACMINPERCENT = "魔防下限比例", this.MACMAX =
			"魔防上限", this.MACMAXPERCENT = "魔防上限比例", this.HIT = "命中", this.HITPERCENT = "命中比例", this.COMFORTABLE = "舒适", this.COMFORTABLEPERCENT =
			"舒适比例", this.CRIT = "暴击", this.CRITPERCENT = "暴击比例", this.CRITHARMADD = "爆伤加成", this.CRITHARMADDPERCENT = "爆伤加成比例",
			this.CRITHARMDEL = "爆伤减免", this.CRITHARMDELPERCENT = "爆伤减免比例", this.CRITADDDAMAGE = "暴击附加伤害", this.CRITDELDAMAGE =
			"暴击减伤", this.TENACITY = "坚韧", this.TENACITYPERCENT = "坚韧比例", this.JUCK = "闪避", this.JUCKPERCENT = "闪避比例", this.MAXHP =
			"生命上限", this.MAXHPPERCENT = "生命上限比例", this.MAXMP = "法力上限", this.MAXMPPERCENT = "法力上限比例", this.ATTACKSPEED = "攻击速度",
			this.ATTACKSPEEDPERCENT = "攻击速度比例", this.SPEED = "移动速度", this.SPEEDPERCENT = "移动速度比例", this.LUCK = "幸运", this.LUCKPERCENT =
			"幸运比例", this.EXPPERCENT = "经验比例", this.HOLYATTACK = "神圣攻击", this.HOLYDEF = "神圣防御", this.HOLYATTACKPERCENT =
			"神圣攻击比例", this.HARMADD = "通用增伤", this.HARMADDPERCENT = "通用增伤比例", this.HARMDEL = "通用减伤", this.HARMDELPERCENT =
			"通用减伤比例", this.DAMAGEADD = "伤害增加", this.DAMAGEADDPERCENT = "伤害增加比例", this.DAMAGEDEL = "伤害减少", this.DAMAGEDELPERCENT =
			"伤害减少比例"
	}
	return t.prototype.convert = function(t) {
		var e = StringUtil.JsonParse(this.formatToJson(t));
		this._keysObj = {};
		for (var i in e) this._keysObj[i] = e[i]
	}, t.prototype.formatToJson = function(t) {
		t = "{" + t.substring(1, t.length - 1) + "}";
		var e = /([{,，])\s*([0-9a-zA-Z一-龟]+)\s*:/g,
			i = t.replace(e, '$1"$2":');
		return i
	}, t
}();
__reflect(FightPowerData.prototype, "FightPowerData");
var AchieveCenter = function() {
	function t() {}
	return t.prototype.load = function(e, i) {
		this.id = e, this.info = i, App.dispatcher.dispatchEvent(t.REFRESH)
	}, t.prototype.update = function(e) {
		this.id = e, App.dispatcher.dispatchEvent(t.UPDATE)
	}, t.prototype.getDataProvider = function() {
		var t = [],
			e = App.config.q_successContainer.getDataBean(this.id);
		if (null != e) {
			var i = this.info;
			t.push(this.makeActiveVO("翅膀等级", i.wingLv, e.q_wing_lv, "achieve_icon_078_png")), t.push(this.makeActiveVO("强化等级",
					i.strengthenLv, e.q_strong_lv, "achieve_icon_081_png")), t.push(this.makeActiveVO("精炼等级", i.refineLv, e.q_smelt_lv,
					"achieve_icon_081_png")), t.push(this.makeActiveVO("铸造等级", i.castingLv, e.q_build_lv, "achieve_icon_081_png")),
				t.push(this.makeActiveVO("内功等级", i.insidepowerLv, e.q_inpower_lv, "achieve_icon_080_png")), t.push(this.makeActiveVO(
					"兵魂等级", i.treasureLv, e.q_baby_lv, "achieve_icon_079_png")), t.push(this.makeActiveVO("技能等级", i.skillLv, e.q_skill_lv,
					"achieve_icon_080_png"))
		}
		return t
	}, t.prototype.makeActiveVO = function(t, e, i, n) {
		return {
			name: t,
			exp: e,
			max: i,
			url: n
		}
	}, t.prototype.getOperateObj = function(t) {
		var e = App.config.q_globalContainer.getDataBean(258);
		return e && "" != e.q_string_value ? StringUtil.JsonParse(e.q_string_value)[t] : null
	}, t.prototype.isOk = function(t) {
		if (void 0 === t && (t = null), null == t && (t = this.getDataProvider()), 0 == t.length) return !1;
		for (var e, i = t.length, n = 0; i > n; n++)
			if (e = t[n], e.exp < e.max) return !1;
		return !0
	}, t.REFRESH = "AchieveCenter.refresh", t.UPDATE = "AchieveCenter.update", t
}();
__reflect(AchieveCenter.prototype, "AchieveCenter");
var ActivityCenter = function() {
	function t() {
		this._dataHash = {}, this._typeHash = {}, this._dailyStateHash = new HashObject, this._enterGroupHash = new HashObject,
			this._enterIDHash = new HashObject, this.nationalHash = new HashObject, this._actMainBtn = new HashObject, this.minBaowuDay =
			11, this.maxBaowuDay = 13, this.minTianfuDay = 14, this.maxTianfuDay = 16, this.minShenshouDay = 17, this.maxShenshouDay =
			19, this.minLunhuiDay = 20, this.maxLunhuiDay = 22, this.minDaojingDay = 28, this.maxDaojingDay = 30, this.nationalCount =
			0, this.actBtnCount = 0, this.loadConfig(), App.dispatcher.addEventListener(ActivityEvent.UPDATE_CHANGEURL, this.changeURL,
				this)
	}
	return t.prototype.changeURL = function() {
			var t = ServerTime.openday,
				e = null;
			switch (t) {
				case 1:
					e = "enterbutton_btn_guangyi_png";
					break;
				case 2:
					e = "enterbutton_btn_zuoqi_png";
					break;
				case 3:
					e = "enterbutton_btn_tianbing_png";
					break;
				case 4:
					e = "enterbutton_btn_fazhen_png";
					break;
				case 5:
					e = "enterbutton_btn_binghun_png";
					break;
				case 6:
					e = "enterbutton_btn_mochongJJ_png";
					break;
				case 7:
					e = "enterbutton_btn_zhanliJJ_png";
					break;
				case 8:
					e = "enterbutton_btn_zhuanshengJJ_png";
					break;
				case 9:
					e = "enterbutton_btn_zhuangbeiJJ_png";
					break;
				case 10:
					e = "enterbutton_btn_dengjiJJ_png"
			}
			e || (t >= this.minDaojingDay && t <= this.maxDaojingDay && (e = "enterbutton_btn_daojingJJ_png"), t >= this.minLunhuiDay &&
				t <= this.maxLunhuiDay && (e = "enterbutton_btn_lunhuiJJ_png"), t >= this.minBaowuDay && t <= this.maxBaowuDay &&
				(e = "enterbutton_btn_baowuJJ_png"), t >= this.minTianfuDay && t <= this.maxTianfuDay && (e =
					"enterbutton_btn_tianfuJJ_png"), t >= this.minShenshouDay && t <= this.maxShenshouDay && (e =
					"enterbutton_btn_shenshouJJ_png")), e && App.dispatcher.dispatchEvent(EnterButtonEvent.CHANGE_URL, 62, e)
		}, t.prototype.isXianGou = function(t) {
			var e = [715, 716, 717, 718, 719, 720, 721, 1211, 1212, 1213, 746, 747, 748, 749, 750, 758, 759];
			return e.indexOf(t) > -1
		}, t.prototype.loadConfig = function() {
			for (var t, e, i, n, a = App.config.q_activitiesContainer.list, o = a.length, r = 0; o > r; r++)
				if (t = a[r], e = new ActivityData(t), this._dataHash[t.q_id] = e, i = this._typeHash[t.q_type], null == i && (i = [],
						this._typeHash[t.q_type] = i), i.push(e), n = t.q_enter_button, 0 != n) {
					var s = this._enterIDHash.get(n);
					null == s && (s = []), -1 == s.indexOf(t.q_id) && s.push(t.q_id), this._enterIDHash.put(n, s);
					var h = this._enterGroupHash.get(n);
					null == h && (h = new HashObject);
					var l = h.get(t.q_group_id_client);
					null == l && (l = []), -1 == l.indexOf(t.q_id) && l.push(t.q_id), h.put(t.q_group_id_client, l), this._enterGroupHash
						.put(n, h)
				}
		}, t.prototype.loadInfos = function(t, e) {
			void 0 === e && (e = !0);
			for (var i, n = [], a = t.length, o = 0; a > o; o++) i = this.getData(t[o].activityId), null != i && (e ? (i.setDetail(
					t[o]), n.push(i.bean.q_type)) : i.setBrief(t[o]), 738 == i.bean.q_type && this.checkMailibaoRedPoint(), 6 == i.bean
				.q_type && this.checkFirstFlushPoint(), 103 == i.bean.q_id && this.checkAtivityPointById(814, i.bean.q_id,
					Platfrom_HDHD.client_status), 101 == i.bean.q_id && this.checkAtivityPointById(817, i.bean.q_id, Platfrom_HDHD.subscribe_status),
				104 == i.bean.q_id && this.checkAtivityPointById(816, i.bean.q_id, Platfrom_HDHD.todesktop_status), 105 == i.bean
				.q_id && this.checkAtivityPointById(811, i.bean.q_id, Platfrom_HDHD.verify_status), 106 == i.bean.q_id && this.checkAtivityPointById(
					812, i.bean.q_id, Platfrom_HDHD.bind_status), 109 == i.bean.q_id && this.checkVIPKefu(), 800 == i.bean.q_type &&
				(App.dispatcher.dispatchEvent(ActivityEvent.UPDATE_ENTERBUTTON, i), this.checkdailyRedPoint()), 723 == i.bean.q_type &&
				this.checkJiezhi(), App.global.enterBtn.putEnterToQueue(i));
			e ? App.dispatcher.dispatchEvent(ActivityEvent.REFRESH_DETAIL, n) : (App.dispatcher.dispatchEvent(ActivityEvent.REFRESH_BRIEF),
				this.checkDaily()), 1 == i.bean.q_type && App.data.getWangZheZBCenter().refreshRed(i.id), App.global.enterBtn.clearEnterQueue()
		}, t.prototype.checkVIPKefu = function() {
			var t = App.global.enterBtn.getButton(815);
			if (t) {
				var e = App.data.activityCenter.getData(109);
				e && 1 == e.playerStates ? App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 815, !0) : App.dispatcher
					.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 815, !1)
			}
		}, t.prototype.checkJiezhi = function() {
			var t = App.global.enterBtn.getButton(38);
			t && App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 38, App.data.getVipCenter().getCurrentVip() >= 3);
			var e = App.global.enterBtn.getButton(55);
			e && App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 55, App.data.getVipCenter().getCurrentVip() >= 5)
		}, t.prototype.checkdailyRedPoint = function() {
			App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 27, this.meiriChongzhiRed())
		}, t.prototype.checkFirstFlushPoint = function() {
			App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 16, this.firstFlushRed())
		}, t.prototype.checkAtivityPointById = function(t, e, i) {
			App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, t, this.activityRedById(e, i))
		}, t.prototype.checkMailibaoRedPoint = function() {
			for (var e = this.getList(738), i = e.length, n = 0; i > n; n++)
				if (1 == e[n].activityStates) {
					var a = StringUtil.JsonParse(e[n].extendMap);
					App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 69, a.zeroRurchaseTime / 1e3 < ServerTime.getServerTime() ||
						t.zeroFlag);
					break
				}
		}, t.prototype.checkDaily = function() {
			for (var t, e, i = this.getList(1, !1, !1), n = -1, a = 0; a < i.length; a++)
				if (t = i[a]) {
					var o = this._dailyStateHash.has(t.id) ? this._dailyStateHash.get(t.id.toString()) : -1;
					1 == t.activityStates && (null == e || t.bean.q_notice_weight > e.bean.q_notice_weight) && (e = t, n = t.id), 1 !=
						o && 1 == t.activityStates ? (this.showNotice(t, !0, 3), App.dispatcher.dispatchEvent(ActivityEvent.OPEN, t.id)) :
						1 == o && 1 != t.activityStates && (this.showNotice(t, !1), App.dispatcher.dispatchEvent(ActivityEvent.CLOSE, t.id)),
						this._dailyStateHash.put(t.id, t.activityStates)
				} App.dispatcher.dispatchEvent(ActivityEvent.ACTIVITIE_NOTICE_REFRESH, n)
		}, t.prototype.showNotice = function(t, e, i) {
			void 0 === i && (i = 1);
			var n = e ? t.bean.q_open_notify : t.bean.q_finish_notify;
			t.bean.q_notify > 0 && "" != n && Notice.showNoticeTypeMsg(t.bean.q_notify, n, i)
		}, t.prototype.getData = function(t) {
			return this._dataHash[t]
		}, t.prototype.isHasFirstFlush = function() {
			var t = App.data.activityCenter.getData(FirstFlushPanel.ACT1);
			return 2 == t.playerStates ? !1 : !0
		}, t.prototype.getList = function(t, e, i, n) {
			void 0 === e && (e = !0), void 0 === i && (i = !0), void 0 === n && (n = !1);
			var a = this._typeHash[t];
			if (null == a) return null;
			for (var o, r = [], s = a.length, h = 0; s > h; h++) o = a[h], (o.isDetail || !e) && (o.activityStates < 0 && i ||
				r.push(o));
			return n ? r.sort(this.sortFunc1) : r.sort(this.sortFunc)
		}, t.prototype.getGroupList = function(t) {
			var e = this._enterGroupHash.get(t),
				i = e.values.concat();
			return i
		}, t.prototype.getCommonFirstID = function(t, e) {
			var i = this._enterGroupHash.get(t);
			if (null == i) return -1;
			var n = i.get(e);
			if (null == n) return -1;
			for (var a = 0; a < n.length; a++) {
				var o = this.getData(n[a]);
				if (o && -1 != o.activityStates) return n[a]
			}
			return n[0]
		}, t.prototype.getListActId = function(t, e, i) {
			void 0 === e && (e = !0), void 0 === i && (i = !0);
			var n = this._typeHash[t];
			if (null == n) return null;
			for (var a, o = [], r = n.length, s = 0; r > s; s++) a = n[s].id, o.push(a);
			return o
		}, t.prototype.getListBean = function(t) {
			var e = this._typeHash[t];
			return null == e ? null : e.sort(this.sortFunc)
		}, t.prototype.setNationBtn = function(t, e) {
			this.nationalHash.put(t, e), this.nationalCount = this.nationalHash.length, App.dispatcher.dispatchEvent(
				EnterButtonEvent.REFRESH, 62, !0)
		}, t.prototype.setActMainBtn = function(t, e) {
			this._actMainBtn.put(t, e), this.actBtnCount = this._actMainBtn.length, App.dispatcher.dispatchEvent(
				EnterButtonEvent.REFRESH, 6, !0)
		}, t.prototype.deletnationalBtn = function(t) {
			this.nationalHash.del(t), this.nationalCount = this.nationalHash.length, (null == this.nationalHash.$_getKeyMap ||
				0 == this.nationalHash.length) && App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 62, !1)
		}, t.prototype.deleteActMainBtn = function(t) {
			this._actMainBtn.del(t), this.actBtnCount = this._actMainBtn.length, (null == this._actMainBtn.$_getKeyMap || 0 ==
				this._actMainBtn.length) && App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 6, !1)
		}, t.prototype.getActMainBtn = function() {
			return this._actMainBtn
		}, t.prototype.getNationalBtn = function() {
			return this.nationalHash
		}, t.prototype.sortFunc = function(t, e) {
			return t.bean.q_sort > e.bean.q_sort ? 1 : t.bean.q_sort < e.bean.q_sort ? -1 : t.id > e.id ? 1 : t.id < e.id ? -1 :
				0
		}, t.prototype.sortFunc1 = function(t, e) {
			if (1 == t.playerStates && 1 == e.playerStates) {
				if (t.bean.q_sort > e.bean.q_sort) return 1;
				if (t.bean.q_sort < e.bean.q_sort) return -1
			}
			if (2 == t.playerStates && 2 == e.playerStates) {
				if (t.bean.q_sort > e.bean.q_sort) return 1;
				if (t.bean.q_sort < e.bean.q_sort) return -1
			}
			return 1 == t.playerStates ? -1 : 1 == e.playerStates ? 1 : 2 == t.playerStates ? -1 : 2 == e.playerStates ? 1 : t.id >
				e.id ? 1 : t.id < e.id ? -1 : 0
		}, t.prototype.sortFunc2 = function(t, e) {
			StringUtil.JsonParse(t.extendMap);
			if (t.playerStates > 0 && e.playerStates > 0) {
				if (t.playerStates == e.playerStates) return t.bean.q_sort - e.bean.q_sort;
				e.playerStates - t.playerStates
			}
		}, t.prototype.showFuliRedPoint = function(t) {
			for (var e = App.data.activityCenter.getList(t), i = 0; i < e.length; i++)
				if (1 == e[i].playerStates) return !0;
			return !1
		}, t.prototype.isShowKfhdRed = function(e) {
			var i = this._typeHash[e];
			if (729 == e && t.threeFlag) return !1;
			if (90101 == e) return t.xiaohaoFlag;
			for (var n = 0; n < i.length; n++) {
				var a = 1 == ActivityUtil.getPlayerState(i[n]);
				if (a) return !0
			}
			return !1
		}, t.prototype.meiriChongzhiRed = function() {
			for (var t = this.getList(800), e = 0; e < t.length; e++)
				if (1 == t[e].playerStates) return !0;
			return !1
		}, t.prototype.firstFlushRed = function() {
			var t = App.data.activityCenter.getData(FirstFlushPanel.ACT1);
			if (t && 1 == t.playerStates) return !0;
			var e = App.data.activityCenter.getData(FirstFlushPanel.ACT2);
			if (e && 1 == e.playerStates) return !0;
			var i = App.data.activityCenter.getData(FirstFlushPanel.ACT3);
			return i && 1 == i.playerStates ? !0 : !1
		}, t.prototype.activityRedById = function(t, e) {
			var i = App.data.activityCenter.getData(t);
			return 1 == e && 0 == i.receivedTimes ? !0 : !1
		}, t.prototype.isEvdAllGet = function() {
			for (var t = this.getList(800), e = 0; e < t.length; e++) {
				if (-1 == t[e].activityStates) return null;
				if (2 == t[e].playerStates || 1 == t[e].playerStates) return t[e]
			}
			return null
		}, t.prototype.getNotOpenAct = function() {
			var t = [];
			for (var e in this._typeHash)
				for (var i = this._typeHash[e], n = 0; n < i.length; n++)
					if (-1 == i[n].activityStates) {
						t.push(i[n]);
						break
					} return t
		}, t.prototype.isShowMainUIRed = function() {
			var t = !1,
				e = this._actMainBtn.$_getValueMap();
			for (var i in e) {
				var n = e[i],
					a = this.isShowKfhdRed(n.actData.type);
				if (a) return t = !0
			}
			return t
		}, t.prototype.isShowQIRIRed = function() {
			var t = !1,
				e = this.nationalHash.$_getValueMap();
			for (var i in e) {
				var n = e[i],
					a = this.isShowKfhdRed(n.actData.type);
				if (a) return t = !0
			}
			return t
		}, t.prototype.getFuliRedPoint = function() {
			return !App.data.moonCardCenter.isCardVip() && App.data.moonCardCenter.flag || App.data.activityCenter.showFuliRedPoint(
					2) || App.data.activityCenter.showFuliRedPoint(9) || App.data.moonCardCenter.turData && App.data.moonCardCenter.turData
				.remainder > 0
		}, t.specialId = 2e3, t.specialId1 = 2005, t.firstChargeAct = 20017, t.threeFlag = !1, t.xiaohaoFlag = !0, t.zeroFlag = !
		0, t
}();
__reflect(ActivityCenter.prototype, "ActivityCenter");
var ActivityData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.id = 0, i.type = 0, i.activityStates = 0, i.playerStates = 0, i.openTime = 0, i.finishTime = 0, i.activityShowTime =
			0, i.receivedTimes = 0, i.maxReceiveTimes = 0, i.remainTimes = 0, i.isdelete = 0, i.extendMap = "", i.bean = e, i.id =
			e.q_id, i.type = e.q_type, i
	}
	return __extends(e, t), e.prototype.setDetail = function(t) {
		null != t && this.id == t.activityId && (this.playerStates = t.playerStates, this.activityStates = t.activityStates,
			this.openTime = t.openTime, this.finishTime = t.finishTime, this.activityShowTime = t.activityShowTime, this.receivedTimes =
			t.receivedTimes, this.maxReceiveTimes = t.maxReceiveTimes, this.remainTimes = this.maxReceiveTimes - this.receivedTimes,
			this.sign = t.sign, this.extendMap = t.extendMap, this.isDetail = !0)
	}, e.prototype.setBrief = function(t) {
		null != t && this.id == t.activityId && (this.activityStates = t.activityStates, this.playerStates = t.playerStates)
	}, e
}(egret.HashObject);
__reflect(ActivityData.prototype, "ActivityData");
var FanPaiData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(FanPaiData.prototype, "FanPaiData");
var AdvanceDataCenter = function() {
	function t() {
		this._currTabSelete = 0, this.partHash = new HashObject
	}
	return t.prototype.getAdvanceEquipType = function(e) {
		var i = App.config.q_equipContainer.getDataBean(e);
		return i ? t.MOUNT_EQUIP_POS.indexOf(i.q_kind) > -1 ? AdvanceType.zuoqi : t.FAZHEN_EQUIP_POS.indexOf(i.q_kind) > -1 ?
			AdvanceType.fazhen : t.TIANBING_EQUIP_POS.indexOf(i.q_kind) > -1 ? AdvanceType.tianbing : 0 : 0
	}, t.prototype.isAdvanceEquipType = function(t) {
		return 51 == t || 52 == t || 53 == t
	}, t.prototype.getAdvanceEquipByKindAndLevel = function(t, e) {
		this.advanceEquipBeanKindLevelHash || (this.advanceEquipBeanKindLevelHash = new HashObject);
		var i = this.advanceEquipBeanKindLevelHash.get(t + "_" + e);
		if (!i)
			for (var n = App.config.q_advance_equipContainer.list, a = n.length, o = 0; a > o; ++o) {
				var r = n[o];
				if (r.q_kind == t && r.q_level == e) {
					i = r;
					break
				}
			}
		return this.advanceEquipBeanKindLevelHash.put(t + "_" + e, i), i
	}, t.prototype.getAllAdvanceEquipByPos = function(t) {
		this.advanceEquipBeanPosHash || (this.advanceEquipBeanPosHash = new HashObject);
		var e = this.advanceEquipBeanPosHash.get(t);
		if (!e) {
			e = [];
			for (var i = App.config.q_advance_equipContainer.list, n = i.length, a = 0; n > a; ++a) {
				var o = i[a];
				o.q_kind == t && e.push(o)
			}
			this.advanceEquipBeanPosHash.put(t, e)
		}
		return e
	}, t.prototype.getPartAllEquip = function(t) {
		var e = this.partHash.get(t);
		if (!e) {
			e = [];
			for (var i = App.config.q_equipContainer.list, n = i.length, a = 0; n > a; ++a) i[a].q_kind == t && e.push(i[a]);
			this.partHash.put(t, e)
		}
		return e
	}, t.prototype.getMaxLevelByPos = function(t) {
		var e = this.getAllAdvanceEquipByPos(t);
		return e && e.length ? e[e.length - 1].q_level : 9999
	}, t.prototype.getAdvanceDanByType = function(t) {
		this.danHash || (this.danHash = new HashObject);
		var e = this.danHash.get(t);
		if (!e) {
			e = [];
			for (var i = App.config.q_advance_danContainer.list, n = i.length, a = 0; n > a; ++a) {
				var o = i[a];
				o.q_kind == t && e.push(o)
			}
			this.danHash.put(t, e)
		}
		return e
	}, t.prototype.getStrongStoneUseNum = function(t, e, i) {
		var n = this.getProxyByType(t, i);
		return n ? n.getStrongStoneUseNum(e) : 0
	}, t.prototype.getTotalExp = function(t, e) {
		var i = this.getProxyByType(t, e);
		return i ? i.haveTotalExp : 0
	}, t.prototype.getProxyByType = function(t, e) {
		switch (e) {
			case AdvanceType.zuoqi:
				return App.data.mountGlobalCenter.getProxy(t);
			case AdvanceType.guangyi:
				return App.data.wingGlobalCenter.getProxy(t);
			case AdvanceType.fazhen:
				return App.data.faZhenGlobalCenter.getProxy(t);
			case AdvanceType.tianbing:
				return App.data.tianBingGlobalCenter.getProxy(t);
			case AdvanceType.binghun:
				return App.data.bingHunGlobalCenter.getProxy(t)
		}
		return null
	}, t.prototype.getZhiShengDanDataFromGlobal = function(t) {
		var e = 0;
		switch (t) {
			case AdvanceType.zuoqi:
				e = 334;
				break;
			case AdvanceType.guangyi:
				e = 335;
				break;
			case AdvanceType.tianbing:
				e = 336;
				break;
			case AdvanceType.fazhen:
				e = 337
		}
		return App.config.q_globalContainer.getDataBean(e).q_string_value
	}, t.prototype.getZhiShengDanData = function(t, e) {
		var i = this.getZhiShengDanDataFromGlobal(t),
			n = StringUtil.JsonParse(i);
		return this.getDataByLevel(n, e)
	}, t.prototype.getDataByLevel = function(t, e) {
		for (var i in t)
			if (Number(i) == e) return t[i][0];
		return null
	}, t.prototype.getCurShowJiaCheng = function(t, e, i) {
		void 0 === i && (i = 0);
		var n, a = {};
		if (i ? n = App.config.q_advanceContainer.getDataBean(i) : (n = this.getMinJiaChengAdvanceBeanByType(t), e >= n.q_level &&
				(n = this.getAdvanceBeanByTypeAndLevel(t, e + 1)[0])), !n) {
			var o = this.getAllAdvanceBeanByType(t);
			n = o[o.length - 1]
		}
		return a = {
			level: n.q_level,
			add: Number(n.q_des)
		}
	}, t.prototype.getMinJiaChengAdvanceBeanByType = function(t) {
		for (var e = this.getAllAdvanceBeanByType(t), i = 0; i < e.length; ++i) {
			var n = e[i];
			if (0 != Number(n.q_des)) return n
		}
		return null
	}, t.prototype.getAdvanceBeanByTypeAndLevel = function(t, e) {
		this.advanceBeanTypeHash || (this.advanceBeanTypeLevelHash = new HashObject);
		var i = this.advanceBeanTypeHash.get(t + "_" + e);
		if (!i) {
			i = [];
			for (var n = this.getAllAdvanceBeanByType(t), a = 0; a < n.length; ++a) {
				var o = n[a];
				o.q_level == e && i.push(o)
			}
			this.advanceBeanTypeHash.put(t + "_" + e, i)
		}
		return i
	}, t.prototype.getMinStage = function(t) {
		var e = this.getAllAdvanceBeanByType(t);
		return e[0] ? e[0].q_level : 0
	}, t.prototype.getMaxStage = function(t) {
		var e = this.getAllAdvanceBeanByType(t);
		return e[e.length - 1] ? e[e.length - 1].q_level : 0
	}, t.prototype.getAllAdvanceBeanByType = function(t) {
		this.advanceBeanTypeHash || (this.advanceBeanTypeHash = new HashObject);
		var e = this.advanceBeanTypeHash.get(t);
		if (!e) {
			e = [];
			for (var i = App.config.q_advanceContainer.list, n = i.length, a = 0; n > a; ++a) {
				var o = i[a];
				o.q_kind == t && e.push(o)
			}
			e.sort(this.advanceBeanSort), this.advanceBeanTypeHash.put(t, e)
		}
		return e
	}, t.prototype.advanceBeanSort = function(t, e) {
		return t.q_level < e.q_level ? -1 : t.q_level == e.q_level && t.q_star < t.q_star ? -1 : 1
	}, t.prototype.getAdvanceBeanByTypeLevelStar = function(t, e, i) {
		void 0 === i && (i = 0), this.advanceBeanHash || (this.advanceBeanHash = new HashObject);
		var n = this.advanceBeanHash.get(t + "_" + e + "_" + i),
			a = this.getAllAdvanceBeanByType(t);
		if (!n) {
			for (var o = 0; o < a.length; ++o) {
				var r = a[o];
				if (r.q_level == e && r.q_star == i) {
					n = r;
					break
				}
			}
			this.advanceBeanHash.put(t + "_" + e + "_" + i, n)
		}
		return n
	}, t.prototype.nameTransform = function(t) {
		switch (t) {
			case "避水金晶兽":
				return "bsjjs";
			case "赤炎麒麟兽":
				return "cyqls";
			case "风煞兽":
				return "fss";
			case "金毛吼":
				return "jmh";
			case "幽冥狂豹":
				return "ymkb";
			case "远古战熊":
				return "ygzx";
			case "长生仙鹿":
				return "csxl";
			case "烛龙":
				return "zl";
			case "不朽仙兵":
				return "bxxb";
			case "混沌神兵":
				return "hdsb";
			case "入世法兵":
				return "rsfb";
			case "升灵道兵":
				return "sldb";
			case "修真灵兵":
				return "xzlb";
			case "超凡入圣":
				return "cfrs";
			case "红尘试炼":
				return "hcsl";
			case "化繁为简":
				return "hfwj";
			case "翩若惊鸿":
				return "prjh";
			case "无极法尊":
				return "wjfz";
			default:
				return ""
		}
	}, t.MOUNT_EQUIP_POS = [6001, 6002, 6003, 6004], t.FAZHEN_EQUIP_POS = [6021, 6022, 6023, 6024], t.TIANBING_EQUIP_POS = [
		6011, 6012, 6013, 6014
	], t
}();
__reflect(AdvanceDataCenter.prototype, "AdvanceDataCenter");
var AdvanceType;
! function(t) {
	t[t.zuoqi = 1] = "zuoqi", t[t.guangyi = 2] = "guangyi", t[t.tianbing = 3] = "tianbing", t[t.fazhen = 4] = "fazhen", t[
		t.binghun = 5] = "binghun"
}(AdvanceType || (AdvanceType = {}));
var EnumAdvanceState;
! function(t) {
	t[t.have = 1] = "have", t[t.using = 2] = "using", t[t.haveNo = 3] = "haveNo", t[t.none = 4] = "none"
}(EnumAdvanceState || (EnumAdvanceState = {}));
var AdvanceTabType;
! function(t) {
	t[t.guangyi = 0] = "guangyi", t[t.zuoqi = 1] = "zuoqi", t[t.tianbing = 2] = "tianbing", t[t.fazhen = 3] = "fazhen", t[
		t.binghun = 4] = "binghun"
}(AdvanceTabType || (AdvanceTabType = {}));
var AdvanceEquipData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(AdvanceEquipData.prototype, "AdvanceEquipData");
var BingHunGlobalCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._modelHash = new HashObject, this._modelHash.put(1, new BingHunModel(1)), this._modelHash.put(2, new BingHunModel(
			2)), this._modelHash.put(3, new BingHunModel(3))
	}, t.prototype.getProxy = function(t) {
		return this._modelHash.get(t)
	}, t.prototype.getBingHunPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++)
			if (this.getBingHunRolePoint(App.global.roles.roleList[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getBingHunRolePoint = function(t) {
		var e = this.getProxy(t);
		return e && e.advanceRed() ? !0 : !1
	}, t
}();
__reflect(BingHunGlobalCenter.prototype, "BingHunGlobalCenter");
var BingHunModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleIndex = 1, i._roleIndex = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curAdvanceId", {
		get: function() {
			return this.roleData && this.roleData.binghunInfo && this.roleData.binghunInfo.levelId ? this.roleData.binghunInfo
				.levelId : 50001
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "haveTotalExp", {
		get: function() {
			return this.roleData && this.roleData.binghunInfo ? this.roleData.binghunInfo.exp : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "strongStoneInfo", {
		get: function() {
			return this.roleData && this.roleData.binghunInfo ? this.roleData.binghunInfo.stone : []
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getStrongStoneUseNum = function(t) {
		for (var e = 0; e < this.strongStoneInfo.length; ++e) {
			var i = this.strongStoneInfo[e];
			if (i.modelId == t) return i.num
		}
		return 0
	}, e.prototype.advanceRed = function() {
		if (this.danRed) return !0;
		var t = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (t) {
			if ("" == t.q_consume) return t.q_level == App.data.advanceDataCenter.getMaxStage(AdvanceType.binghun) ? !1 : !0;
			var e = StringUtil.JsonParse(t.q_consume);
			if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num) return !0
		}
		return !1
	}, e.prototype.getDanRedById = function(t) {
		var e = this.getStrongStoneUseNum(t),
			i = App.config.q_advance_danContainer.getDataBean(t);
		if (e >= i.q_max_level) return !1;
		var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (n.q_level < i.q_needStage) return !1;
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_consume)),
			o = a[0].id;
		return App.data.bagItemDataCenter.getItemCount(o) > 0
	}, Object.defineProperty(e.prototype, "danRed", {
		get: function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(AdvanceType.binghun);
			if (!t || 0 == t.length) return !1;
			for (var e = 0; e < t.length; ++e) {
				var i = t[e];
				if (this.getDanRedById(i.q_id)) return !0
			}
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(BingHunModel.prototype, "BingHunModel");
var FaZhenGlobalCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._modelHash = new HashObject, this._modelHash.put(1, new FaZhenModel(1)), this._modelHash.put(2, new FaZhenModel(
			2)), this._modelHash.put(3, new FaZhenModel(3))
	}, t.prototype.getProxy = function(t) {
		return this._modelHash.get(t)
	}, t.prototype.getFaZhenRedPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++)
			if (this.getFaZhenRolePoint(App.global.roles.roleList[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getFaZhenRolePoint = function(t) {
		var e = this.getProxy(t);
		if (e) {
			if (e.advanceRed()) return !0;
			if (e.getEquipRed()) return !0
		}
		return !1
	}, t
}();
__reflect(FaZhenGlobalCenter.prototype, "FaZhenGlobalCenter");
var FaZhenModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleIndex = 1, i._roleIndex = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curAdvanceId", {
		get: function() {
			return this.roleData && this.roleData.fazhenInfo ? this.roleData.fazhenInfo.levelId : 40001
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "haveTotalExp", {
		get: function() {
			return this.roleData && this.roleData.fazhenInfo ? this.roleData.fazhenInfo.exp : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "strongStoneInfo", {
		get: function() {
			return this.roleData && this.roleData.fazhenInfo ? this.roleData.fazhenInfo.stone : []
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getStrongStoneUseNum = function(t) {
		for (var e = 0; e < this.strongStoneInfo.length; ++e) {
			var i = this.strongStoneInfo[e];
			if (i.modelId == t) return i.num
		}
		return 0
	}, e.prototype.getEquipIdByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.fazhen);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n.itemId
			}
		return App.data.characterCenter.getAllKindEquip(t)[0].q_id
	}, e.prototype.isWearEquipByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.fazhen);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return !0
			}
		return !1
	}, e.prototype.getEquipDataByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.fazhen);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n
			}
		return null
	}, e.prototype.getBestEquipByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == i.length) return null;
		for (var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), a = new Array, o = 0; o < i.length; o++) {
			var r = i[o].itemId,
				s = App.config.q_equipContainer.getDataBean(r);
			s && s.q_kind == t && i[o].getDataBean().q_level <= n.q_level && a.push(i[o])
		}
		var h;
		if (a.length > 1) {
			a.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var l = a[a.length - 1];
			h = l
		} else 1 == a.length && (h = a[0]);
		if (!h) return null;
		if (e) {
			if (e.itemId == h.itemId) return null;
			var p = App.config.q_equipContainer.getDataBean(e.itemId),
				c = App.config.q_equipContainer.getDataBean(h.itemId);
			return p.q_score >= c.q_score ? null : h
		}
		return h
	}, e.prototype.getUnlockLevelByPos = function(t) {
		var e = App.data.advanceDataCenter.getPartAllEquip(t);
		if (0 == e.length) return 9999;
		var i = e[0].q_id,
			n = App.config.q_itemContainer.getDataBean(i);
		return n ? n.q_level : 9999
	}, e.prototype.getIsUnlockByPos = function(t) {
		var e = this.getUnlockLevelByPos(t),
			i = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		return i && i.q_level >= e ? !0 : !1
	}, e.prototype.getEquipRedDotByPos = function(t, e) {
		if (void 0 === e && (e = !0), !this.getIsUnlockByPos(t)) return !1;
		if (e && this.getStrengRedByPos(t)) return !0;
		var i = this.getEquipDataByPos(t),
			n = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == n.length) return !1;
		for (var a = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), o = new Array, r = 0; r < n.length; r++) {
			var s = n[r].itemId,
				h = App.config.q_equipContainer.getDataBean(s);
			h && h.q_kind == t && n[r].getDataBean().q_level <= a.q_level && o.push(n[r])
		}
		var l;
		if (o.length > 1) {
			o.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var p = o[o.length - 1];
			l = p
		} else 1 == o.length && (l = o[0]);
		if (!l) return !1;
		if (i) {
			if (i.itemId == l.itemId) return !1;
			var c = App.config.q_equipContainer.getDataBean(i.itemId),
				_ = App.config.q_equipContainer.getDataBean(l.itemId);
			return c.q_score >= _.q_score ? !1 : !0
		}
		return o.length > 0
	}, e.prototype.getIsMaxLevelByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.advanceDataCenter.getMaxLevelByPos(t);
		return e && e.gradeNum >= i ? !0 : !1
	}, e.prototype.getStrengRedByPos = function(t) {
		if (this.getIsUnlockByPos(t) && this.isWearEquipByPos(t) && !this.getIsMaxLevelByPos(t)) {
			var e = this.getEquipDataByPos(t),
				i = e ? e.gradeNum : 0,
				n = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(t, i + 1);
			if (n) {
				var a = StringUtil.JsonParse(n.q_consume),
					o = a[0].id,
					r = a[0].num;
				if (App.data.bagItemDataCenter.getItemCount(o) >= r) return !0
			}
		}
		return !1
	}, e.prototype.advanceRed = function() {
		if (this.danRed) return !0;
		var t = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (t) {
			if ("" == t.q_consume) return t.q_level == App.data.advanceDataCenter.getMaxStage(AdvanceType.fazhen) ? !1 : !0;
			var e = StringUtil.JsonParse(t.q_consume);
			if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num) return !0
		}
		return !1
	}, e.prototype.getDanRedById = function(t) {
		var e = this.getStrongStoneUseNum(t),
			i = App.config.q_advance_danContainer.getDataBean(t);
		if (e >= i.q_max_level) return !1;
		var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (n.q_level < i.q_needStage) return !1;
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_consume)),
			o = a[0].id;
		return App.data.bagItemDataCenter.getItemCount(o) > 0
	}, Object.defineProperty(e.prototype, "danRed", {
		get: function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(AdvanceType.fazhen);
			if (!t || 0 == t.length) return !1;
			for (var e = 0; e < t.length; ++e) {
				var i = t[e];
				if (this.getDanRedById(i.q_id)) return !0
			}
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getEquipRed = function() {
		for (var t = 0; t < AdvanceDataCenter.FAZHEN_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.FAZHEN_EQUIP_POS[t];
			if (this.getEquipRedDotByPos(e)) return !0
		}
		var i = App.data.bagItemDataCenter.getAdvanceEquipByType(AdvanceType.fazhen);
		return i.length > 0
	}, e.prototype.getStrengRed = function() {
		for (var t = 0; t < AdvanceDataCenter.FAZHEN_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.FAZHEN_EQUIP_POS[t];
			if (this.getStrengRedByPos(e)) return !0
		}
		return !1
	}, e
}(egret.HashObject);
__reflect(FaZhenModel.prototype, "FaZhenModel");
var MountGlobalCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._mountModelHash = new HashObject, this._mountModelHash.put(1, new MountModel(1)), this._mountModelHash.put(2,
			new MountModel(2)), this._mountModelHash.put(3, new MountModel(3))
	}, t.prototype.getProxy = function(t) {
		return this._mountModelHash.get(t)
	}, t.prototype.getMountRedPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++)
			if (this.getMountRolePoint(App.global.roles.roleList[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getMountRolePoint = function(t) {
		var e = this.getProxy(t);
		if (e) {
			if (e.advanceRed()) return !0;
			if (e.getEquipRed()) return !0
		}
		return !1
	}, t
}();
__reflect(MountGlobalCenter.prototype, "MountGlobalCenter");
var MountModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleIndex = 1, i._roleIndex = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curAdvanceId", {
		get: function() {
			return this.roleData && this.roleData.mountInfo ? this.roleData.mountInfo.levelId : 10001
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "haveTotalExp", {
		get: function() {
			return this.roleData && this.roleData.mountInfo ? this.roleData.mountInfo.exp : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getMountState = function(t) {
		var e = App.config.q_advanceContainer.getDataBean(t);
		if (!e) return EnumAdvanceState.none;
		var i = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		return e.q_level > i.q_level ? EnumAdvanceState.haveNo : this.roleData.surfaceManager.bindMountId == e.q_unlockModel ?
			EnumAdvanceState.using : EnumAdvanceState.have
	}, Object.defineProperty(e.prototype, "strongStoneInfo", {
		get: function() {
			return this.roleData && this.roleData.mountInfo ? this.roleData.mountInfo.stone : []
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getStrongStoneUseNum = function(t) {
		for (var e = 0; e < this.strongStoneInfo.length; ++e) {
			var i = this.strongStoneInfo[e];
			if (i.modelId == t) return i.num
		}
		return 0
	}, e.prototype.getEquipIdByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.zuoqi);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n.itemId
			}
		return App.data.characterCenter.getAllKindEquip(t)[0].q_id
	}, e.prototype.isWearEquipByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.zuoqi);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return !0
			}
		return !1
	}, e.prototype.getEquipDataByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.zuoqi);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n
			}
		return null
	}, e.prototype.getBestEquipByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == i.length) return null;
		for (var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), a = new Array, o = 0; o < i.length; o++) {
			var r = i[o].itemId,
				s = App.config.q_equipContainer.getDataBean(r);
			s && s.q_kind == t && i[o].getDataBean().q_level <= n.q_level && a.push(i[o])
		}
		var h;
		if (a.length > 1) {
			a.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var l = a[a.length - 1];
			h = l
		} else 1 == a.length && (h = a[0]);
		if (!h) return null;
		if (e) {
			if (e.itemId == h.itemId) return null;
			var p = App.config.q_equipContainer.getDataBean(e.itemId),
				c = App.config.q_equipContainer.getDataBean(h.itemId);
			return p.q_score >= c.q_score ? null : h
		}
		return h
	}, e.prototype.getUnlockLevelByPos = function(t) {
		var e = App.data.advanceDataCenter.getPartAllEquip(t);
		if (0 == e.length) return 9999;
		var i = e[0].q_id,
			n = App.config.q_itemContainer.getDataBean(i);
		return n ? n.q_level : 9999
	}, e.prototype.getIsUnlockByPos = function(t) {
		var e = this.getUnlockLevelByPos(t),
			i = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		return i && i.q_level >= e ? !0 : !1
	}, e.prototype.getEquipRedDotByPos = function(t) {
		if (!this.getIsUnlockByPos(t)) return !1;
		if (this.getStrengRedByPos(t)) return !0;
		var e = this.getEquipDataByPos(t),
			i = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == i.length) return !1;
		for (var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), a = new Array, o = 0; o < i.length; o++) {
			var r = i[o].itemId,
				s = App.config.q_equipContainer.getDataBean(r);
			s && s.q_kind == t && i[o].getDataBean().q_level <= n.q_level && a.push(i[o])
		}
		var h;
		if (a.length > 1) {
			a.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var l = a[a.length - 1];
			h = l
		} else 1 == a.length && (h = a[0]);
		if (!h) return !1;
		if (e) {
			if (e.itemId == h.itemId) return !1;
			var p = App.config.q_equipContainer.getDataBean(e.itemId),
				c = App.config.q_equipContainer.getDataBean(h.itemId);
			return p.q_score >= c.q_score ? !1 : !0
		}
		return a.length > 0
	}, e.prototype.getIsMaxLevelByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.advanceDataCenter.getMaxLevelByPos(t);
		return e && e.gradeNum >= i ? !0 : !1
	}, e.prototype.getStrengRedByPos = function(t) {
		if (this.getIsUnlockByPos(t) && this.isWearEquipByPos(t) && !this.getIsMaxLevelByPos(t)) {
			var e = this.getEquipDataByPos(t),
				i = e ? e.gradeNum : 0,
				n = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(t, i + 1);
			if (n) {
				var a = StringUtil.JsonParse(n.q_consume),
					o = a[0].id,
					r = a[0].num;
				if (App.data.bagItemDataCenter.getItemCount(o) >= r) return !0
			}
		}
		return !1
	}, e.prototype.advanceRed = function() {
		if (this.danRed) return !0;
		var t = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (t) {
			if ("" == t.q_consume) return t.q_level == App.data.advanceDataCenter.getMaxStage(AdvanceType.zuoqi) ? !1 : !0;
			var e = StringUtil.JsonParse(t.q_consume);
			if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num) return !0
		}
		return !1
	}, e.prototype.getDanRedById = function(t) {
		var e = this.getStrongStoneUseNum(t),
			i = App.config.q_advance_danContainer.getDataBean(t);
		if (e >= i.q_max_level) return !1;
		var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (n.q_level < i.q_needStage) return !1;
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_consume)),
			o = a[0].id;
		return App.data.bagItemDataCenter.getItemCount(o) > 0
	}, Object.defineProperty(e.prototype, "danRed", {
		get: function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(AdvanceType.zuoqi);
			if (!t || 0 == t.length) return !1;
			for (var e = 0; e < t.length; ++e) {
				var i = t[e];
				if (this.getDanRedById(i.q_id)) return !0
			}
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getEquipRed = function() {
		for (var t = 0; t < AdvanceDataCenter.MOUNT_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.MOUNT_EQUIP_POS[t];
			if (this.getEquipRedDotByPos(e)) return !0
		}
		var i = App.data.bagItemDataCenter.getAdvanceEquipByType(AdvanceType.zuoqi);
		return i.length > 0
	}, e.prototype.getStrengRed = function() {
		for (var t = 0; t < AdvanceDataCenter.MOUNT_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.MOUNT_EQUIP_POS[t];
			if (this.getStrengRedByPos(e)) return !0
		}
		return !1
	}, e
}(egret.HashObject);
__reflect(MountModel.prototype, "MountModel");
var TianBingGlobalCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._modelHash = new HashObject, this._modelHash.put(1, new TianBingModel(1)), this._modelHash.put(2, new TianBingModel(
			2)), this._modelHash.put(3, new TianBingModel(3))
	}, t.prototype.getProxy = function(t) {
		return this._modelHash.get(t)
	}, t.prototype.getTianBingRedPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++)
			if (this.getTianBingRolePoint(App.global.roles.roleList[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getTianBingRolePoint = function(t) {
		var e = this.getProxy(t);
		if (e) {
			if (e.advanceRed()) return !0;
			if (e.getEquipRed()) return !0
		}
		return !1
	}, t
}();
__reflect(TianBingGlobalCenter.prototype, "TianBingGlobalCenter");
var TianBingModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleIndex = 1, i._roleIndex = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curAdvanceId", {
		get: function() {
			return this.roleData && this.roleData.tianBingInfo ? this.roleData.tianBingInfo.levelId : 30001
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "haveTotalExp", {
		get: function() {
			return this.roleData && this.roleData.tianBingInfo ? this.roleData.tianBingInfo.exp : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "strongStoneInfo", {
		get: function() {
			return this.roleData && this.roleData.tianBingInfo ? this.roleData.tianBingInfo.stone : []
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getStrongStoneUseNum = function(t) {
		for (var e = 0; e < this.strongStoneInfo.length; ++e) {
			var i = this.strongStoneInfo[e];
			if (i.modelId == t) return i.num
		}
		return 0
	}, e.prototype.getEquipIdByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.tianbing);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n.itemId
			}
		return App.data.characterCenter.getAllKindEquip(t)[0].q_id
	}, e.prototype.isWearEquipByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.tianbing);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return !0
			}
		return !1
	}, e.prototype.getEquipDataByPos = function(t) {
		var e = App.data.characterCenter.getAdvanceEquipData(this._roleIndex, AdvanceType.tianbing);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = e[i];
				if (n.pos == t) return n
			}
		return null
	}, e.prototype.getBestEquipByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == i.length) return null;
		for (var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), a = new Array, o = 0; o < i.length; o++) {
			var r = i[o].itemId,
				s = App.config.q_equipContainer.getDataBean(r);
			s && s.q_kind == t && i[o].getDataBean().q_level <= n.q_level && a.push(i[o])
		}
		var h;
		if (a.length > 1) {
			a.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var l = a[a.length - 1];
			h = l
		} else 1 == a.length && (h = a[0]);
		if (!h) return null;
		if (e) {
			if (e.itemId == h.itemId) return null;
			var p = App.config.q_equipContainer.getDataBean(e.itemId),
				c = App.config.q_equipContainer.getDataBean(h.itemId);
			return p.q_score >= c.q_score ? null : h
		}
		return h
	}, e.prototype.getUnlockLevelByPos = function(t) {
		var e = App.data.advanceDataCenter.getPartAllEquip(t);
		if (0 == e.length) return 9999;
		var i = e[0].q_id,
			n = App.config.q_itemContainer.getDataBean(i);
		return n ? n.q_level : 9999
	}, e.prototype.getIsUnlockByPos = function(t) {
		var e = this.getUnlockLevelByPos(t),
			i = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		return i && i.q_level >= e ? !0 : !1
	}, e.prototype.getEquipRedDotByPos = function(t, e) {
		if (void 0 === e && (e = !0), !this.getIsUnlockByPos(t)) return !1;
		if (e && this.getStrengRedByPos(t)) return !0;
		var i = this.getEquipDataByPos(t),
			n = App.data.bagItemDataCenter.getBagPositionAdvanceEquipList(t);
		if (0 == n.length) return !1;
		for (var a = App.config.q_advanceContainer.getDataBean(this.curAdvanceId), o = new Array, r = 0; r < n.length; r++) {
			var s = n[r].itemId,
				h = App.config.q_equipContainer.getDataBean(s);
			h && h.q_kind == t && n[r].getDataBean().q_level <= a.q_level && o.push(n[r])
		}
		var l;
		if (o.length > 1) {
			o.sort(function(t, e) {
				var i = App.config.q_equipContainer.getDataBean(t.itemId),
					n = App.config.q_equipContainer.getDataBean(e.itemId);
				return i.q_score > n.q_score ? 1 : -1
			});
			var p = o[o.length - 1];
			l = p
		} else 1 == o.length && (l = o[0]);
		if (!l) return !1;
		if (i) {
			if (i.itemId == l.itemId) return !1;
			var c = App.config.q_equipContainer.getDataBean(i.itemId),
				_ = App.config.q_equipContainer.getDataBean(l.itemId);
			return c.q_score >= _.q_score ? !1 : !0
		}
		return o.length > 0
	}, e.prototype.getIsMaxLevelByPos = function(t) {
		var e = this.getEquipDataByPos(t),
			i = App.data.advanceDataCenter.getMaxLevelByPos(t);
		return e && e.gradeNum >= i ? !0 : !1
	}, e.prototype.getStrengRedByPos = function(t) {
		if (this.getIsUnlockByPos(t) && this.isWearEquipByPos(t) && !this.getIsMaxLevelByPos(t)) {
			var e = this.getEquipDataByPos(t),
				i = e ? e.gradeNum : 0,
				n = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(t, i + 1);
			if (n) {
				var a = StringUtil.JsonParse(n.q_consume),
					o = a[0].id,
					r = a[0].num;
				if (App.data.bagItemDataCenter.getItemCount(o) >= r) return !0
			}
		}
		return !1
	}, e.prototype.advanceRed = function() {
		if (this.danRed) return !0;
		var t = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (t) {
			if ("" == t.q_consume) return t.q_level == App.data.advanceDataCenter.getMaxStage(AdvanceType.tianbing) ? !1 : !0;
			var e = StringUtil.JsonParse(t.q_consume);
			if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num) return !0
		}
		return !1
	}, e.prototype.getDanRedById = function(t) {
		var e = this.getStrongStoneUseNum(t),
			i = App.config.q_advance_danContainer.getDataBean(t);
		if (e >= i.q_max_level) return !1;
		var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (n.q_level < i.q_needStage) return !1;
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_consume)),
			o = a[0].id;
		return App.data.bagItemDataCenter.getItemCount(o) > 0
	}, Object.defineProperty(e.prototype, "danRed", {
		get: function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(AdvanceType.tianbing);
			if (!t || 0 == t.length) return !1;
			for (var e = 0; e < t.length; ++e) {
				var i = t[e];
				if (this.getDanRedById(i.q_id)) return !0
			}
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getEquipRed = function() {
		for (var t = 0; t < AdvanceDataCenter.TIANBING_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.TIANBING_EQUIP_POS[t];
			if (this.getEquipRedDotByPos(e)) return !0
		}
		var i = App.data.bagItemDataCenter.getAdvanceEquipByType(AdvanceType.tianbing);
		return i.length > 0
	}, e.prototype.getStrengRed = function() {
		for (var t = 0; t < AdvanceDataCenter.TIANBING_EQUIP_POS.length; ++t) {
			var e = AdvanceDataCenter.TIANBING_EQUIP_POS[t];
			if (this.getStrengRedByPos(e)) return !0
		}
		return !1
	}, e
}(egret.HashObject);
__reflect(TianBingModel.prototype, "TianBingModel");
var WingGlobalCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._modelHash = new HashObject, this._modelHash.put(1, new WingModel(1)), this._modelHash.put(2, new WingModel(2)),
			this._modelHash.put(3, new WingModel(3))
	}, t.prototype.getProxy = function(t) {
		return this._modelHash.get(t)
	}, t.prototype.getWingPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++)
			if (this.getWingRolePoint(App.global.roles.roleList[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getWingRolePoint = function(t) {
		var e = this.getProxy(t);
		return e && e.advanceRed() ? !0 : !1
	}, t
}();
__reflect(WingGlobalCenter.prototype, "WingGlobalCenter");
var WingModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleIndex = 1, i._roleIndex = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curAdvanceId", {
		get: function() {
			return this.roleData && this.roleData.guangyiInfo && this.roleData.guangyiInfo.levelId ? this.roleData.guangyiInfo
				.levelId : 20001
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "haveTotalExp", {
		get: function() {
			return this.roleData && this.roleData.guangyiInfo ? this.roleData.guangyiInfo.exp : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "strongStoneInfo", {
		get: function() {
			return this.roleData && this.roleData.guangyiInfo ? this.roleData.guangyiInfo.stone : []
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getStrongStoneUseNum = function(t) {
		for (var e = 0; e < this.strongStoneInfo.length; ++e) {
			var i = this.strongStoneInfo[e];
			if (i.modelId == t) return i.num
		}
		return 0
	}, e.prototype.advanceRed = function() {
		if (this.danRed) return !0;
		var t = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (t) {
			if ("" == t.q_consume) return t.q_level == App.data.advanceDataCenter.getMaxStage(AdvanceType.guangyi) ? !1 : !0;
			var e = StringUtil.JsonParse(t.q_consume);
			if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num) return !0
		}
		return !1
	}, e.prototype.getDanRedById = function(t) {
		var e = this.getStrongStoneUseNum(t),
			i = App.config.q_advance_danContainer.getDataBean(t);
		if (e >= i.q_max_level) return !1;
		var n = App.config.q_advanceContainer.getDataBean(this.curAdvanceId);
		if (n.q_level < i.q_needStage) return !1;
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_consume)),
			o = a[0].id;
		return App.data.bagItemDataCenter.getItemCount(o) > 0
	}, Object.defineProperty(e.prototype, "danRed", {
		get: function() {
			var t = App.data.advanceDataCenter.getAdvanceDanByType(AdvanceType.guangyi);
			if (!t || 0 == t.length) return !1;
			for (var e = 0; e < t.length; ++e) {
				var i = t[e];
				if (this.getDanRedById(i.q_id)) return !0
			}
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(WingModel.prototype, "WingModel");
var BossCenter = function() {
	function t() {
		this._bossPointDic = new HashObject, this._bossDic = new HashObject, this._zoneObj = {}, this._typeObj = new HashObject,
			this.bossID = "", this.bossModelID = -1, this.isDie = 0, this.type = 0, this.defaultHp = 0, this.defaultMaxHp = 0,
			this.loadConfig()
	}
	return t.prototype.loadConfig = function() {}, t.prototype.loadDatas = function(t, e, i, n) {
		this._typeObj.put(t, {
			count: e,
			endtime: i,
			bossList: n
		});
		for (var a, o = n.length, r = 0; o > r; r++) a = this.getData(n[r].monsterModelId), null == a && (a = new BossData),
			a.init(n[r]), a.bean && (this._bossDic.put(n[r].monsterModelId, a), this._zoneObj[n[r].zoneId] = a);
		App.dispatcher.dispatchEvent(BossEvent.ZONE_REFRESH, t)
	}, t.prototype.getData = function(t) {
		return this._bossDic.get(t)
	}, t.prototype.getZoneBoss = function(t) {
		return this._zoneObj[t]
	}, t.prototype.getBossPoint = function(t) {
		return this._bossPointDic.get(t)
	}, t.prototype.setZoneCount = function(t, e) {
		e = e > 0 ? e : 0, this._typeObj.put(t, e)
	}, t.prototype.getZoneCount = function(t) {
		var e = this._typeObj.get(t);
		return e ? e.count : -9999
	}, t.prototype.getZoneEndtime = function(t) {
		var e = this._typeObj.get(t);
		return e ? e.endtime : 0
	}, t.prototype.getZoneBossList = function(t) {
		var e = [],
			i = this._typeObj.get(t);
		if (i)
			for (var n = i.bossList, a = void 0, o = 0; o < n.length; o++) t == EnumZoneType.DAOBAO_BOSS ? (a = new BossData,
				a.init(n[o]), e.push(a)) : e.push(this.getData(n[o].monsterModelId));
		return e.sort(this.sortFunc)
	}, t.prototype.getZoneBossInfoList = function(t) {
		var e = [],
			i = this._typeObj.get(t);
		return i && (e = i.bossList), e
	}, t.prototype.updateBoss = function(t) {
		for (var e, i, n = t.length, a = App.global.characterData, o = 0; n > o; o++)
			if (e = this._bossDic.get(t[o].monsterModelId), null == e && (e = new BossData, this._bossDic.put(t[o].monsterModelId,
					e), this._zoneObj[t[o].zoneId] = e), e.init(t[o]), this._reminds && -1 != this._reminds.indexOf(e.zoneID))
				if (i = GameUtil.getZoneBean(e.zoneID), a.zhuanSheng < i.q_min_metem_lv);
				else if (a.level < i.q_min_lv);
		else if (this._remindboss) {
			if (i = GameUtil.getZoneBean(this._remindboss.zoneID), i && i.q_zone_client_type == EnumZoneType.BOSS_HOME) {
				this._remindboss = e;
				break
			}
			this._remindboss = e
		} else this._remindboss = e;
		App.dispatcher.dispatchEvent(BossEvent.REFRESH)
	}, t.prototype.loadRemind = function(t) {
		this._reminds = t
	}, t.prototype.getRemind = function(t) {
		if (this._reminds && -1 != this._reminds.indexOf(t)) {
			var e = App.global.characterData,
				i = GameUtil.getZoneBean(t);
			return e.zhuanSheng < i.q_min_metem_lv ? !1 : e.level < i.q_min_lv ? !1 : !0
		}
		return !1
	}, t.prototype.getZoneRemindBeanList = function(t) {
		var e = [];
		if (this._reminds)
			for (var i = this._reminds.length, n = void 0, a = 0; i > a; a++) n = GameUtil.getZoneBean(this._reminds[a]), n &&
				n.q_zone_client_type == t && e.push(n);
		return e
	}, t.prototype.getRemindBossData = function() {
		return this._remindboss && this._remindboss.canKill ? this._remindboss : null
	}, t.prototype.resetRemindBoss = function() {
		this._remindboss = null
	}, t.prototype.sortFunc = function(t, e) {
		var i = App.data.zoneCenter.getData(t.zoneID),
			n = App.data.zoneCenter.getData(e.zoneID);
		return i || n ? !i && n ? 1 : i && !n ? -1 : void 0 : 0
	}, t
}();
__reflect(BossCenter.prototype, "BossCenter");
var BossData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.id = -1, e.lv = 1, e
	}
	return __extends(e, t), e.prototype.init = function(t) {
		null != t && (this.id = t.monsterModelId, this.endTime = t.remainTime, this.daobaozeiType = t.daobaozeiType, this.canKill =
			this.endTime <= 0, this.hpPrecent = t.hpPrecent, this.hp = LongUtil.toNumber(t.hp), this.maxHp = LongUtil.toNumber(
				t.maxHp), this.zoneID = t.zoneId, this.bean = App.config.q_monsterContainer.getDataBean(this.id), this.bean ? (
				this.name = this.bean.q_name, this.lv = this.bean.q_lvl) : GameLog.log("init()    id:" + this.id +
				"的BOSS怪物表数据找不到，需要策划检查一下"))
	}, e
}(egret.HashObject);
__reflect(BossData.prototype, "BossData");
var BufferData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._bufferModelId = -1, e._bufferType = -1, e._bufflv = -1, e._total = -1, e._remain = -1, e._overlay = -1, e._value = -
			1, e._totalvalue = -1, e._percent = -1, e._flash = -1, e._pause = -1, e.buffId = "", e._bufferRemainPassTime = 0, e
			._slowMoveSpeed = 0, e._slowMoveSpeedOft = 0, e._atkSpeed = 0, e._bufferEffectUrl = "", e._bufferEndTime = 0, e._isHasBufferColor = !
			1, e._isCanVisible = !0, e._colorBufferId = "", e._colorMatBufferId = "", e
	}
	return __extends(e, t), e.getData = function() {
		return e.pool.length > 0 ? e.pool.pop() : new e
	}, Object.defineProperty(e.prototype, "bufferEndTime", {
		get: function() {
			return this._bufferEndTime
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.get_remain = function() {
		return this._bufferEndTime - ServerTime.getServerTime()
	}, e.prototype.set_remain = function(t) {
		this._remain = t, this._bufferEndTime = ServerTime.getServerTime() + this._remain
	}, e.prototype.get_percent = function() {
		return this._percent * this.overlay
	}, e.prototype.set_percent = function(t) {
		t != this._percent && (this._percent = t)
	}, e.prototype.get_totalvalue = function() {
		return this._totalvalue * this.overlay
	}, e.prototype.set_totalvalue = function(t) {
		this._totalvalue = t
	}, e.prototype.get_value = function() {
		return this._value * this.overlay
	}, e.prototype.set_value = function(t) {
		this._value = t
	}, Object.defineProperty(e.prototype, "bufferDataBean", {
		get: function() {
			return this._bufferDataBean
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bufferModelId", {
		get: function() {
			return this._bufferModelId
		},
		set: function(t) {
			var e = this;
			t != e._bufferModelId && (e._bufferModelId = t, e._bufferModelId > 0 && (e._bufferDataBean = GameUtil.getBufferConfigData(
				e._bufferModelId, e._bufflv)), e.changeBufferModelEffect())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeBufferModelEffect = function() {
		var t = this,
			e = t.roleData,
			i = t._bufferDataBean;
		if (i) {
			if ("" != i.q_small_ico && "" == t._bufferEffectUrl) {
				var n = i.q_small_ico,
					a = 0;
				"122_tx1" == n && (a = -1 * (e.modelHeight + 20), e instanceof MapMonsterRoleData && ByteUtils.hasKey(e.monsterType,
					8) && (n = "122_tx2")), t._bufferEffectUrl = ResPathUtil.getBufferEffect(i.q_small_ico), e.roleView.addBufferEffect(
					t._bufferEffectUrl, 0, a)
			}
			if ("" != i.q_colour && 0 == t._isHasBufferColor) {
				t.clearOwnerFilter(), t._isHasBufferColor = !0;
				var o = i.q_colour,
					r = o.split(";"),
					s = r[0];
				if ("#00000000" == s) t._isCanVisible = !1, e.roleView.visible = !1;
				else {
					t._colorBufferId = s, s = s.replace("#", "0x");
					var h = parseInt(s, 16);
					if (h > 0 && e.roleView.addBufferFilter(t._colorBufferId, FilterUtil.getConfigColorMatrixFilter(s)), r.length >
						1) {
						var l = parseInt(r[1]),
							p = parseInt(r[2]),
							c = parseInt(r[3]),
							_ = parseInt(r[4]);
						t._colorMatBufferId = l + "_" + p + "_" + c + "_" + _, e.roleView.addBufferFilter(t._colorMatBufferId,
							FilterUtil.getConfigAdjustColorMatrixFilter(l, p, c, _))
					}
				}
			}
			if ((75 == i.q_action_type || 95 == i.q_action_type) && (t._slowMoveSpeed = (1e4 + i.q_effect_ratio) / 1e4, e.moveSpeed =
					e.moveSpeed * t._slowMoveSpeed, t._slowMoveSpeedOft = i.q_effect_value, e.moveSpeedOft = e.moveSpeedOft + t._slowMoveSpeedOft
				), 8e3 == t._bufferModelId, (40 == i.q_action_type || 1003 == i.q_action_type) && i.q_effect_ratio > 0 && (t._atkSpeed =
					1e4 / (1e4 + i.q_effect_ratio), e.atkSpeed = e.atkSpeed * t._atkSpeed), 10 == t._bufferModelId && t.roleData.roleView
				.showExpPaoDian(), (42 == i.q_action_type || 49 == i.q_action_type || 76 == i.q_action_type || 87 == i.q_action_type) &&
				(e.actionList.clearList(), e.isCanMove = !1, e.isCanUseSkill = !1, 87 != i.q_action_type && e.stopAnimation()), i
				.q_flash > 30) {
				var d = i.q_flash / 100,
					u = t.roleData.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY),
					g = u.scaleX * d;
				u.scaleX = g, u.scaleY = g
			}
		}
	}, e.prototype.addOwnerFilter = function() {
		if (this.roleData instanceof MapMonsterRoleData) {
			var t = this.roleData;
			t.addOwnerFilter()
		}
	}, e.prototype.clearOwnerFilter = function() {
		if (this.roleData instanceof MapMonsterRoleData) {
			var t = this.roleData;
			t.clearOwnerFilter()
		}
	}, Object.defineProperty(e.prototype, "buffDataParas", {
		get: function() {
			return this._buffDataParas
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addBufferParas = function(t) {
		t.setBufferData(this), this._buffDataParas.push(t)
	}, e.prototype.setBufferInfoData = function(t) {
		var e = this;
		this.clearBufferParas();
		var i = t;
		e._buffDataParas = new Array, e.buffId = i.buffId.toString(), e._bufflv = i.bufflv, e._total = i.total, e._overlay =
			i.overlay, e._value = i.value.toNumber(), e._totalvalue = i.totalvalue, e._percent = i.percent, e._pause = i.pause,
			e.bufferModelId = i.modelId, e.set_remain(i.remain)
	}, e.prototype.initBufferInfoData = function(t) {
		this.setBufferInfoData(t), App.dispatcher.dispatchEvent(PlayerBufferEvent.CHANGE_BUFFER_INFO, this.roleData.personId,
			this)
	}, e.prototype.makeBufferDataParas = function() {
		return new BufferDataParas
	}, e.prototype.clearBufferParas = function() {
		if (this._buffDataParas)
			for (var t = this._buffDataParas.length, e = 0; t > e; e++) this._buffDataParas[e].dispose()
	}, e.prototype.clearBufferModelEffect = function() {
		var t = this,
			e = t.roleData;
		t._slowMoveSpeed > 0 && (e.moveSpeed = e.moveSpeed / t._slowMoveSpeed), t._slowMoveSpeedOft > 0 && (e.moveSpeedOft =
				e.moveSpeedOft - t._slowMoveSpeedOft), "" != t._bufferEffectUrl && e.roleView.deleteBufferEffect(t._bufferEffectUrl),
			t._isHasBufferColor && (0 == t._isCanVisible ? e.roleView.visible = !0 : (e.roleView.removeBufferFilter(t._colorBufferId),
				e.roleView.removeBufferFilter(t._colorMatBufferId)), this._isHasBufferColor = !1), 8e3 == t._bufferModelId && e instanceof MapPlayerRoleData &&
			(e.chengzhuWeapon = ""), 10 == t._bufferModelId && this.roleData.roleView.hideExpPaoDian();
		var i = t._bufferDataBean;
		if (i && ((40 == i.q_action_type || 1003 == i.q_action_type) && (e.atkSpeed = e.atkSpeed / t._atkSpeed), (42 == i.q_action_type ||
				49 == i.q_action_type || 76 == i.q_action_type || 87 == i.q_action_type) && (0 == e.bufferManager.hasBufferCancelMoveAndSkill() &&
				(e.isCanUseSkill = !0, e.isCanMove = !0, e instanceof CharacterRoleData && e.resetSearchNewRoadToPoint(
					"clearBufferModelEffect")), 87 != i.q_action_type && e.playAnimation()), i.q_flash > 30)) {
			var n = i.q_flash / 100,
				a = t.roleData.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY),
				o = a.scaleX / n;
			a.scaleX = o, a.scaleY = o
		}
	}, e.prototype.playRemoveEffect = function() {
		var t = this._bufferDataBean;
		if (t) {
			if ("" != t.q_remove_effect) {
				var e = ResPathUtil.getBufferEffect(t.q_remove_effect),
					i = this.roleData.showEffect("BufferData", e);
				"10001_0" == t.q_remove_effect && i.parent.addChildAt(i.view, 0)
			}
			"" != t.q_remove_action && this.roleData.changeDirAction(t.q_remove_action, -1, !1, !0)
		}
	}, e.prototype.addvanceTime = function(t) {
		var e = this;
		if (10002 == e._bufferModelId && (e._bufferRemainPassTime += t, e._bufferRemainPassTime > 1e3)) {
			e._bufferRemainPassTime / 1e3;
			e._bufferRemainPassTime = e._bufferRemainPassTime % 1e3;
			var i = StringUtil.convertTime(e._remain);
			e.roleData.roleView.npcTitleName.setName("剩余复活时间：" + i)
		}
	}, e.prototype.clear = function() {
		var t = this;
		t._bufferModelId = -1, t._bufferType = -1, t._bufflv = -1, t._total = -1, t._remain = -1, t._overlay = -1, t._value = -
			1, t._totalvalue = -1, t._percent = -1, t._flash = -1, t._pause = -1, t._buffDataParas = null, t._bufferDataBean =
			null, t.roleData = null, t.buffId = "", t.bufferType = 0, t.bufflv = 0, t.total = 0, t.pause = 0, t.flash = 0, t.overlay =
			0, t._bufferRemainPassTime = 0, t._slowMoveSpeed = 0, t._slowMoveSpeedOft = 0, t._atkSpeed = 0, t._bufferEffectUrl =
			"", t._bufferEndTime = 0, t._isHasBufferColor = !1, t._isCanVisible = !0, t._colorBufferId = "", t._colorMatBufferId =
			""
	}, e.prototype.dispose = function() {
		var t = this;
		t.clearBufferModelEffect(), t.clearBufferParas(), t.addOwnerFilter(), t._bufferDataBean = null, t._buffDataParas =
			null, t.roleData = null, this.clear(), e.pool.push(this)
	}, e.pool = [], e
}(Dispose);
__reflect(BufferData.prototype, "BufferData");
var BufferDataParas = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._type = -1, e._value = -1, e._isTime = !1, e
	}
	return __extends(e, t), e.prototype.get_IsTime = function() {
		return this._isTime
	}, e.prototype.get_cdEndTime = function() {
		return this._value + ServerTime.getServerTime()
	}, e.prototype.setBufferData = function(t) {
		this._bufferData = t
	}, e.prototype.initBufferInfoDataParas = function(t) {
		this._type = t.type, this._value = t.value, EnumBufferParaType.isTimeType(this._type) && (this.clearTimer(), this._isTime = !
			0)
	}, e.prototype.onTimer = function() {
		this._value--
	}, e.prototype.clearTimer = function() {
		this._timeId && (App.timer.clearTimer(this._timeId, this), this._timeId = null)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.clearTimer(), this._bufferData = null
	}, e
}(Dispose);
__reflect(BufferDataParas.prototype, "BufferDataParas");
var RoleBufferManager = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		if (this._bufferDataHash = new HashObject, null == e.MOVE_SKILL_Hash) {
			var t = new HashObject;
			t.put(42, 42), t.put(49, 49), t.put(76, 76), t.put(87, 87), e.MOVE_SKILL_Hash = t
		}
	}, e.prototype.setData = function(t) {
		this._roleData = t
	}, e.prototype.get_bufferDataHash = function() {
		return this._bufferDataHash
	}, e.prototype.createBuffer = function(t, e) {
		void 0 === e && (e = null);
		var i = this;
		if (i._bufferDataHash) {
			if (0 == i.hasBuffer(t)) {
				var n = BufferData.getData();
				n.roleData = i._roleData, n.setBufferInfoData(e), i._bufferDataHash.put(t, n)
			} else n = i.getBuffer(t), n.initBufferInfoData(e);
			App.dispatcher.dispatchEvent(PlayerBufferEvent.ADD_BUFFER, i._roleData.personId, n)
		}
		return n
	}, e.prototype.deleteBuffer = function(t) {
		var e = this;
		if (1 == e.hasBuffer(t)) {
			var i = e.getBuffer(t),
				n = i.bufferModelId;
			return e._bufferDataHash.del(t), i.playRemoveEffect(), i.dispose(), App.dispatcher.dispatchEvent(PlayerBufferEvent
				.REMOVE_BUFFER, e._roleData.personId, t, n), !0
		}
		return !1
	}, e.prototype.hasBufferByModelid = function(t) {
		return null != this.getBufferByModelid(t)
	}, e.prototype.getBufferByModelid = function(t) {
		var e;
		if (this._bufferDataHash.length > 0) {
			var i = this._bufferDataHash.$_getValueMap();
			for (var n in i) {
				var a = i[n];
				if (a.bufferModelId == t) {
					e = a;
					break
				}
			}
		}
		return e ? e : null
	}, e.prototype.hasBuffer = function(t) {
		return this._bufferDataHash ? this._bufferDataHash.has(t) : !1
	}, e.prototype.getBuffer = function(t) {
		return this._bufferDataHash ? this._bufferDataHash.get(t) : null
	}, e.prototype.hasBufferCancelMoveAndSkill = function() {
		var t = !1;
		if (this._bufferDataHash.length > 0) {
			var i = e.MOVE_SKILL_Hash,
				n = this._bufferDataHash.$_getValueMap();
			for (var a in n) {
				var o = n[a];
				if (o.bufferDataBean && i.has(o.bufferDataBean.q_action_type)) {
					t = !0;
					break
				}
			}
		}
		return t
	}, e.prototype.hasBufferBy_action_type = function(t) {
		var e = !1;
		if (this._bufferDataHash.length > 0) {
			var i = this._bufferDataHash.$_getValueMap();
			for (var n in i) {
				var a = i[n];
				if (a.bufferDataBean && a.bufferDataBean.q_action_type == t) {
					e = !0;
					break
				}
			}
		}
		return e
	}, e.prototype.addvanceTime = function(t) {
		if (this._bufferDataHash.length > 0) {
			var e = this._bufferDataHash.$_getValueMap();
			for (var i in e) e[i].addvanceTime(t)
		}
	}, e.prototype.clear = function() {
		this._bufferDataHash && this._bufferDataHash.length > 0 && this._bufferDataHash.forInValExcFucName("dispose"), this
			._bufferDataHash.clear()
	}, e.prototype.dispose = function() {
		this.clear(), this._roleData = null, App.thing.putIn(this)
	}, e
}(Dispose);
__reflect(RoleBufferManager.prototype, "RoleBufferManager");
var CastleWarCenter = function() {
	function t() {
		this.castleData = new CastleWarData(EnumCastleWarType.CASTLE_WAR, 10026), this.castleLinkData = new CastleWarData(
			EnumCastleWarType.CASTLE_WAR_LINK), this.dayRewardActid = 10126
	}
	return Object.defineProperty(t.prototype, "isCharacterInShabakeWar", {
		get: function() {
			var t = App.global.characterData.mapId,
				e = GameUtil.getGlobalConfigData(49);
			if (null == e || "" == e.q_string_value) return !1;
			for (var i = StringUtil.JsonParse(e.q_string_value), n = 0; n < i.length; n++)
				if (t == i[n].mapid) return !0;
			return !1
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getData = function(t) {
		return t == EnumCastleWarType.CASTLE_WAR ? this.castleData : t == EnumCastleWarType.CASTLE_WAR_LINK ? this.castleLinkData :
			null
	}, t.prototype.dayRewardShow = function() {
		return App.global.characterData.guildId == App.data.castleWarCenter.castleData.castleGuildId && 1 == App.data.activityCenter
			.getData(this.dayRewardActid).playerStates ? !0 : !1
	}, t.prototype.shabakShow = function() {
		return 1 == App.data.activityCenter.getData(this.castleData.id).activityStates ? !0 : !1
	}, Object.defineProperty(t.prototype, "openDays", {
		get: function() {
			return GameUtil.getGlobalConfigData(86).q_int_value
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(CastleWarCenter.prototype, "CastleWarCenter");
var EnumCastleWarType;
! function(t) {
	t[t.CASTLE_WAR = 0] = "CASTLE_WAR", t[t.CASTLE_WAR_LINK = 1] = "CASTLE_WAR_LINK"
}(EnumCastleWarType || (EnumCastleWarType = {}));
var AssetAdapter = function() {
	function t() {}
	return t.prototype.getAsset = function(t, e, i) {
		function n(n) {
			e.call(i, n, t)
		}
		if (RES.hasRes(t)) {
			var a = RES.getRes(t);
			a ? n(a) : RES.getResAsync(t, n, this)
		} else 0 == Config.isRelease && t && (Config.DEFAULT_RES_URL[t] || GameLog.logWarn("Image组件加载的资源, 不在配置表中", t)), RES
			.getResByUrl(t, n, this, RES.ResourceItem.TYPE_IMAGE)
	}, t
}();
__reflect(AssetAdapter.prototype, "AssetAdapter", ["eui.IAssetAdapter"]);
var ChallengeCenter = function() {
	function t() {
		this.id = 10001, this._init = !1
	}
	return t.prototype.load = function(e) {
		return -1 == e.challengeId ? (App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 24, !1), void App.panel.removePanel(
			67)) : (e.challengeId != this.id && (this._bean = null), this.id = e.challengeId, this.name = e.chllengeName,
			this.job = e.job, this.sex = e.sex, this.remianTime = e.remianTime ? Math.floor(Number(e.remianTime.toString()) /
				1e3) : 0, this.targetScore = e.challengeVal, this.status = e.status, this.myScore = e.challengeOldVal, App.timer
			.clearTimer(this.onTimer, this), App.timer.clearTimer(this.check, this), -2 == this.status ? this._init || (this._init = !
				0, App.timer.serverTimeEnd(this, this.onTimer, ServerTime.getServerTime() + this.getReceiveChallengeTime())) : -
			1 == this.status ? (App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, 24, this.remianTime), App.timer.serverTimeEnd(
				this, this.check, this.remianTime)) : 3 == this.status && this.addLetter(), App.dispatcher.dispatchEvent(t.REFRESH),
			void App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 24, 0 == this.status || 1 == this.status))
	}, t.prototype.check = function(t) {
		t.spuleTime <= 0 && (t.spuleTime > -3 && ChallengeCommandSender.sendC2S_ChallengeBookMessage(), App.timer.clearTimer(
			this.check, this))
	}, t.prototype.onTimer = function(t) {
		t.spuleTime <= 0 && (this.addLetter(), App.timer.clearTimer(this.onTimer, this))
	}, t.prototype.addLetter = function() {
		null == this._letter && (this._letter = new LetterOfChallenge), this._letter.show(App.layer.moduleLayer), this._letter
			.callback = new FunctionVO(this.letterDispose, this)
	}, t.prototype.letterDispose = function() {
		this._letter && (this._letter.dispose(), this._letter = null)
	}, t.prototype.getMyScore = function() {
		return this.getBean() ? this.getBean().q_tips + ":" + this.myScore : ""
	}, t.prototype.getTargetScore = function() {
		var t = this.getBean();
		return t ? t.q_tips + ":" + this.targetScore : this.targetScore + ""
	}, t.prototype.getTargetName = function() {
		return this.name
	}, t.prototype.getTargetHead = function() {
		return GridUtil.getHead(this.job, this.sex)
	}, t.prototype.getState = function() {
		return -2 == this.status ? 0 : -1 == this.status ? 1 : this.status >= 0 ? 2 : this.status
	}, t.prototype.getWin = function() {
		return 0 != this.status
	}, t.prototype.getEndTime = function() {
		return this.remianTime
	}, t.prototype.getUrl = function() {
		var t = this.getBean();
		return t && 1 == t.q_type ? t.q_picture : null
	}, t.prototype.getIDStr = function() {
		var t = this.getBean();
		return t && 2 == t.q_type ? "" : "第" + StringUtil.getChieseNum(this.id - 1e4) + "回合"
	}, t.prototype.getRewardFlag = function() {
		return 2 != this.status
	}, t.prototype.getItemDataList = function(t) {
		void 0 === t && (t = !0);
		var e = [],
			i = this.getBean();
		if (i) {
			var n = t ? i.q_win_reward : i.q_join_reward;
			e = ItemUtil.getRewardDataList(n)
		}
		return e
	}, t.prototype.getReceiveChallengeTime = function() {
		var t = App.config.q_globalContainer.getDataBean(250);
		return t ? t.q_int_value : 0
	}, t.prototype.getBean = function() {
		return null == this._bean && (this._bean = App.config.q_challengeContainer.getDataBean(this.id)), this._bean
	}, t.REFRESH = "ChallengeCenter.refresh", t
}();
__reflect(ChallengeCenter.prototype, "ChallengeCenter");
var CharacterCenter = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.OPENPANELTIME = 60, e.bubbleExp = 0, e.isshowheji = !1, e.isShowSurface = !1, e.canUpNeiGong = !1, e._roleIndex =
			1, e.roleEquip = new HashObject, e._tejieHash = new HashObject, e.fightHash = new HashObject, e.stateLevelUP = !1,
			e.stateHash = new HashObject, e.roleSumFight = 0, e.lunhuiLevel = 0, e.lunhuiexp = 0, e.lunhuiCount = 0, e.curExchangeLevel =
			0, e.EQUIP_PART = [EnumEquipType.WU_QI, EnumEquipType.TOU_KUI, EnumEquipType.YI_FU, EnumEquipType.XIANG_LIAN,
				EnumEquipType.HU_WAN, EnumEquipType.YAO_DAI, EnumEquipType.JIE_ZHI, EnumEquipType.XIE_ZI
			], e.kindEquipHash = new HashObject, e._normalEquipPostions = [0, 7, 1, 8, 3, 13, 5, 12], e._lunhuiEquipPostions = [
				200, 207, 201, 208, 203, 213, 205, 212
			], e._guildEquipPostions = [100, 107, 101, 108, 103, 113, 105, 112], e._rexueEquipPostions = [8800, 8807, 8801,
				8808, 8803, 8813, 8805, 8812
			], e._faBaoEquipPostions = [EnumEquipType.FABAO_1, EnumEquipType.FABAO_2, EnumEquipType.FABAO_3, EnumEquipType.FABAO_4,
				EnumEquipType.FABAO_5, EnumEquipType.FABAO_6, EnumEquipType.FABAO_7, EnumEquipType.FABAO_8
			], e._roleRedDot = !1, e._zhuansRedDot = !1, e._GodEquipRedDot = !1, e._GodEquipSuiPianRedDot = !1, e._HotBloodRedDot = !
			1, e._guildEquipHash = new HashObject, e._chuanqiEquipHash = new HashObject, e._lunhuiEquipRedHash = new HashObject,
			e.lunhuiEquipHash = new HashObject, e.guildEquipsHash = new HashObject, e.ChuanqiEquipsHash = new HashObject, e.rexueEquipsHash =
			new HashObject, e.advanceEquipsHash = new HashObject, e.zhuanslogin = !0, e.reddotbol = !0, e.faBaoEquipsHash = new HashObject,
			e.GetStateLevelUP = function() {
				var t, e = App.global.mapModule.mapMouseModel.controlRoleData.StateLevel,
					i = App.data.currencyDataCenter.getMoney(EnumMoney.STATEPOINT),
					n = App.config.q_state_lvContainer.getDataBean(e).q_points;
				n && "" != n && (t = JSON.parse(n)[0]), t && i >= t.num ? App.data.characterCenter.stateLevelUP = !0 : App.data.characterCenter
					.stateLevelUP = !1
			}, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "hejiEquipCenter", {
		get: function() {
			return this._hejiEquipCenter || (this._hejiEquipCenter = new HejiCenter), this._hejiEquipCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.roleTejie = function(t) {
		for (var e = 1; 4 > e; e++) this._tejieHash.put(e, null);
		for (var i = 0; i < t.length; i++) {
			for (var n = [], a = 0; a < t[i].infoList.length; a++) {
				var o = new TejieData;
				o.index = t[i].infoList[a].index, o.itemid = t[i].infoList[a].itemId, n.push(o)
			}
			this._tejieHash.put(t[i].rolePos, n)
		}
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.TejieREF)
	}, e.prototype.getAllRolesEquipScore = function() {
		for (var t = 0, e = App.global.roles.roleList, i = 0; i < e.length; i++) {
			var n = App.data.wearEquipCenter.getWearObj(e[i].roleIndex);
			for (var a in n) t += n[a].getEquipDataBean().q_score
		}
		return t
	}, Object.defineProperty(e.prototype, "maxMetemLevel", {
		get: function() {
			return App.config.q_metempsychosisContainer.list.length
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getMinForgeLevel = function(t) {
		for (var e, i, n = !0, a = App.data.forgeCenter, o = App.data.forgeCenter.posArr, r = o.length, s = a.roleForgeInfos(
				a.selectedRoleIndex, t - 1), h = 0; r > h; h++) i = s.get(o[h]), n ? (n = !1, e = i.level) : e = Math.min(e, i.level);
		return e
	}, e.prototype.checkPlayer = function(t, e, i) {
		void 0 === e && (e = 0), void 0 === i && (i = !0), CharacterUICommandSender.checkPalyerInfo(t, e, i)
	}, e.prototype.getGuildEquipID = function(t, e) {
		for (var i = App.config.q_equipContainer.list, n = i.length, a = 0; n > a; a++)
			if (i[a].q_kind == e && i[a].q_id > t) return i[a];
		return null
	}, e.prototype.checkIsCanExec = function(t) {
		var e = App.config.q_equip_fuseContainer.getDataBean(t);
		if (!e) return !1;
		var i = e.q_equip_model_id,
			n = App.config.q_itemContainer.getDataBean(i);
		if (n) {
			if (n.q_zhuanshen > App.global.characterData.zhuanSheng) return Notice.showMousePosMessage("<font color=" + Notice
				.MIDDLE_COLOR_2 + ">转生等级达到" + n.q_zhuanshen + "转才可升级</font>"), !1;
			if (n.q_level > App.global.characterData.level) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">等级达到" + n.q_level + "级才可升级</font>"), !1
		}
		return !0
	}, e.prototype.getGodEquip = function(t, e, i, n) {
		for (var a = App.config.q_equipContainer.list, o = a.length, r = 0; o > r; r++) {
			var s = GameUtil.getItemConfigData(a[r].q_id);
			if (s && a[r].q_kind == e && s.q_default == EnumNumber.red && s.q_job == t && (0 == s.q_sex || s.q_sex == i) && a[
					r].q_score > n && 105001 != a[r].q_id && 105002 != a[r].q_id && 105003 != a[r].q_id) return a[r]
		}
		return null
	}, e.prototype.getFuseEquip = function(t) {
		for (var e = App.config.q_equip_fuseContainer.list, i = 0; i < e.length; i++)
			if (e[i] && e[i].q_equip_model_id == t) return e[i];
		return null
	}, e.prototype.arrSort = function(t, e) {
		return t > e ? -1 : 1
	}, e.prototype.getAllKindEquip = function(t) {
		var e = this.kindEquipHash.get(t);
		if (!e) {
			var i = App.config.q_equipContainer.list,
				n = i.length;
			e = [];
			for (var a = 0; n > a; a++) i[a].q_kind == t && e.push(i[a]);
			this.kindEquipHash.put(t, e)
		}
		return e
	}, e.prototype.getequipScore = function(t, e) {
		for (var i = 0; i < e.length; i++)
			if (e[i].position == t) return GameUtil.getEquipConfigData(e[i].itemId).q_score;
		return 0
	}, e.prototype.getFuseEquipSuipian = function(t, e, i) {
		for (var n = 0, a = App.config.q_equip_fuseContainer.list, o = 0; o < a.length; o++)
			if (a[o]) {
				var r = GameUtil.getItemConfigData(a[o].q_equip_model_id);
				if (GameUtil.getEquipConfigData(a[o].q_equip_model_id).q_kind == e && r.q_job == i.job && r.q_default ==
					EnumNumber.red && (r.q_sex == i.sex || 0 == r.q_sex)) {
					if (a[o].q_id > t) break;
					var s = StringUtil.JsonParse(a[o].q_consume);
					n += s[0].num
				}
			} return n
	}, e.prototype.showEquipRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++) {
			if (1 == this.showredpos(t[e])) return !0;
			if (this.getJGZPoint(t[e].roleIndex)) return !0;
			if (this.getYXPPoint(t[e].roleIndex)) return !0
		}
		return !1
	}, e.prototype.showRoleRed = function() {
		return this.showEquipRed() ? !0 : App.data.surfaceCenter.showSurfaceRed() ? !0 : this.showHotBloodRed() ? !0 : App.data
			.godEquipCenter.showGodEquipRed() ? !0 : this.showGuildequipRed() ? !0 : this.showLunhuiequipRed() ? !0 : !1
	}, e.prototype.showMainRoleRed = function() {
		return this.showRoleRed() ? !0 : App.data.surfaceCenter.showSurfaceRed() ? !0 : App.data.wingGodCenter().getzhuangbRedPoint() ?
			!0 : App.data.characterCenter.showHotBloodRed() ? !0 : App.data.characterCenter.showGuildequipRed() ? !0 : App.data
			.characterCenter.showLunhuiequipRed() ? !0 : !1
	}, e.prototype.showredpos = function(t, e) {
		var i = this;
		void 0 === e && (e = !1);
		for (var n, a, o, r = App.data.characterCenter._tejieHash.get(t.roleIndex), s = this._normalEquipPostions.length, h =
				new HashMap, l = 0; s > l; l++)
			if (n = this._normalEquipPostions[l], a = App.data.wearEquipCenter.getRoleWearData(n, t.roleIndex), o = App.data.bagItemDataCenter
				.getBagPositionEquipList(n), 0 != o.length) {
				var p = new Array;
				a && p.push(a);
				for (var c = 0; c < o.length; c++)
					if (!h.has(o[c])) {
						var _ = App.global.itemUse.isMatchBaseCondition(o[c], !1, !0, t);
						_ && p.push(o[c])
					} var d = void 0;
				if (p.length > 1) {
					p.sort(function(t, e) {
						var i = App.config.q_equipContainer.getDataBean(t.itemId),
							n = App.config.q_equipContainer.getDataBean(e.itemId);
						return i.q_score > n.q_score ? 1 : -1
					});
					var u = p[p.length - 1];
					d = u
				} else 1 == p.length && (d = p[0]);
				a && a.itemId == d.itemId || d && h.put(d, n)
			} if (e) {
			this._canreplHash || (this._canreplHash = new HashObject);
			for (var g = 0; g < this._normalEquipPostions.length; g++) this._canreplHash.put(this._normalEquipPostions[g], !1)
		}
		if (h.length > 0 ? (this._roleRedDot = !0, e && h.foEach(function(t, e) {
				i._canreplHash.put(e, !0)
			}, this)) : this._roleRedDot = !1, null == r || 0 == r.length) {
			if (App.data.bagItemDataCenter.getItemCount(3013601) > 0) return !0;
			if (App.data.bagItemDataCenter.getItemCount(3013701) > 0) return !0
		} else
			for (var l = 0; l < r.length; l++) {
				var f = App.data.characterCenter.getFuseEquip(r[l].itemid);
				if (f) {
					var m = App.data.characterCenter.getFuseEquip(f.q_equip_next_id);
					if (m) {
						var v = StringUtil.JsonParse(m.q_consume);
						if (App.data.bagItemDataCenter.getItemCount(v[0].id) >= v[0].num) return !0
					}
				}
			}
		return this._roleRedDot
	}, e.prototype.loadRoleEquips = function(t) {
		for (var e = t.length, i = 0; e > i; i++)
			for (var n = App.global.roles.roleList, a = 0; a < n.length; a++) {
				App.global.itemUse.isMatchBaseCondition(t[i], !1, !0, n[a])
			}
	}, e.prototype.loadLunhuiEquips = function(t, e) {
		for (var i = new Array, n = 0; n < t.length; n++) {
			var a = new LunhuiEquipData;
			a.LunHuiSuitId = t[n].LunHuiSuitId, a.pos = t[n].pos, a.poslevel = t[n].poslevel, a.posZhuHunexp = LongUtil.toNumber(
				t[n].posZhuHunexp), a.posZhuHunlevel = LongUtil.toNumber(t[n].posZhuHunlevel), i.push(a)
		}
		this.lunhuiEquipHash.put(e, i)
	}, e.prototype.lunhuiChangeData = function(t, e, i) {
		var n = this.lunhuiEquipHash.get(t);
		if (n && n.length > 0)
			for (var a = n.length, o = 0; a > o; o++)
				if (i.pos == n[o].pos) return n[o].LunHuiSuitId = i.LunHuiSuitId, n[o].pos = i.pos, n[o].poslevel = i.poslevel, n[
					o].posZhuHunexp = LongUtil.toNumber(i.posZhuHunexp), void(n[o].posZhuHunlevel = LongUtil.toNumber(i.posZhuHunlevel));
		var r = new LunhuiEquipData;
		r.LunHuiSuitId = i.LunHuiSuitId, r.pos = i.pos, r.poslevel = i.poslevel, r.posZhuHunexp = LongUtil.toNumber(i.posZhuHunexp),
			r.posZhuHunlevel = LongUtil.toNumber(i.posZhuHunlevel), n.push(r)
	}, e.prototype.loadGuildEquips = function(t, e) {
		for (var i = new Array, n = 0; n < t.length; n++) {
			var a = new GuildEquipData;
			a.itemID = t[n].GuildSuitId, a.pos = t[n].pos, i.push(a)
		}
		this.guildEquipsHash.put(e, i)
	}, e.prototype.loadChuanqiEquips = function(t, e) {
		for (var i = new HashObject, n = 0; n < t.length; n++) {
			for (var a = void 0, o = [], r = 0; r < t[n].LegendarySuitInfo.length; r++) a = new ChuanQiRoleData, a.pos = t[n].LegendarySuitInfo[
				r].pos, a.itemid = t[n].LegendarySuitInfo[r].LegendarySuitId, o.push(a);
			i.put(t[n].SuitType, o)
		}
		this.ChuanqiEquipsHash.put(e, i)
	}, e.prototype.addChuanqiData = function(t, e, i, n) {
		var a = this.ChuanqiEquipsHash.get(e);
		a || (a = new HashObject);
		var o = a.get(i);
		if (o && o.length > 0) {
			for (var r = o.length, s = 0; r > s; s++)
				if (n == o[s].pos) return o[s].itemid = Number(t), void(o[s].pos = n)
		} else o = [];
		var h = new ChuanQiRoleData;
		h.itemid = Number(t), h.pos = n, o.push(h), a.get(i) || a.put(i, o)
	}, e.prototype.loadRexueEquips = function(t, e) {
		var i = new Array;
		if (t) {
			for (var n = 0; n < t.length; n++) {
				var a = new GuildEquipData;
				a.itemID = t[n].FuseEquipId, a.pos = t[n].pos, i.push(a)
			}
			this.rexueEquipsHash.put(e, i)
		}
	}, e.prototype.addRexueData = function(t, e, i) {
		var n = this.rexueEquipsHash.get(i);
		if (n && n.length > 0)
			for (var a = n.length, o = 0; a > o; o++)
				if (e == n[o].pos) return void(n[o].itemID = t);
		var r = new GuildEquipData;
		r.itemID = t, r.pos = e, n.push(r)
	}, e.prototype.loadAdvanceEquips = function(t, e, i) {
		var n = new Array;
		if (t) {
			for (var a = 0; a < t.length; a++) {
				var o = App.config.q_equipContainer.getDataBean(t[a].itemModelId);
				if (o) {
					var r = new AdvanceEquipData;
					r.itemId = t[a].itemModelId, r.index = i, r.pos = o.q_kind, r.gradeNum = t[a].gradeNum, r.type = e, n.push(r)
				}
			}
			this.advanceEquipsHash.put(i + "_" + e, n)
		}
	}, e.prototype.addAdvanceEquipData = function(t, e, i, n, a) {
		void 0 === a && (a = 0);
		var o = this.advanceEquipsHash.get(n + "_" + e);
		if (o && o.length > 0)
			for (var r = o.length, s = 0; r > s; s++)
				if (i == o[s].pos) return o[s].itemId = t, void(o[s].gradeNum = a);
		var h = new AdvanceEquipData;
		h.itemId = t, h.index = n, h.pos = i, h.gradeNum = a, h.type = e, o.push(h)
	}, e.prototype.getAdvanceEquipData = function(t, e) {
		return this.advanceEquipsHash.get(t + "_" + e)
	}, e.prototype.guildEquipResult = function(t, e, i) {
		var n = this.guildEquipsHash.get(i);
		if (n && n.length > 0)
			for (var a = n.length, o = 0; a > o; o++)
				if (e == n[o].pos) return void(n[o].itemID = t);
		var r = new GuildEquipData;
		r.itemID = t, r.pos = e, n.push(r)
	}, e.prototype.showGuildequipRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++) {
			this.guildEquipRedPoint(t[e].roleIndex);
			for (var i = 0; i < this._guildEquipPostions.length; i++)
				if (this.getGuildEquipID(0, this._guildEquipPostions[i]) && this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[
						i]).q_id)) {
					var n = StringUtil.JsonParse(this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[i]).q_id).q_consume);
					if (App.data.bagItemDataCenter.getItemCount(n[0].id) >= n[0].num && 1 == this._guildEquipHash.get(this._guildEquipPostions[
							i])) return !0
				}
		}
		return !1
	}, e.prototype.guildEquipRedPoint = function(t, e) {
		void 0 === e && (e = !0);
		for (var i = this.guildEquipsHash.get(t), n = i.length, a = 0; a < this._guildEquipPostions.length; a++)
			if (this.getGuildEquipID(0, this._guildEquipPostions[a]))
				if (this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[a]).q_id)) {
					var o = StringUtil.JsonParse(this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[a]).q_id).q_consume);
					App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num ? this._guildEquipHash.put(this._guildEquipPostions[
						a], !0) : this._guildEquipHash.put(this._guildEquipPostions[a], !1)
				} else this._guildEquipHash.put(this._guildEquipPostions[a], !1);
		for (var r = 0; n > r; r++)
			if (this.getFuseEquip(this.getFuseEquip(i[r].itemID).q_equip_next_id)) {
				var o = StringUtil.JsonParse(this.getFuseEquip(this.getFuseEquip(i[r].itemID).q_equip_next_id).q_consume);
				App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num ? this._guildEquipHash.put(i[r].pos, !0) : this._guildEquipHash
					.put(i[r].pos, !1)
			} else this._guildEquipHash.put(i[r].pos, !1);
		if (e)
			for (var a = 0; a < this._guildEquipPostions.length; a++)
				if (this.getGuildEquipID(0, this._guildEquipPostions[a]) && this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[
						a]).q_id)) {
					var o = StringUtil.JsonParse(this.getFuseEquip(this.getGuildEquipID(0, this._guildEquipPostions[a]).q_id).q_consume);
					if (App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num && 1 == this._guildEquipHash.get(this._guildEquipPostions[
							a])) return !0
				} return !1
	}, e.prototype.showLunhuiequipRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++)
			if (this.lunhuiEquipRedPoint(t[e].roleIndex)) return !0;
		return !1
	}, e.prototype.lunhuiEquipRedPoint = function(t) {
		for (var e = this.lunhuiEquipHash.get(t), i = this._lunhuiEquipPostions.length, n = App.global.roles.getRoleInfoByIndex(
				t).job, a = App.data.bagItemDataCenter.getAllLunhuiJobEquip(n), o = 0; i > o; o++) {
			var r = App.data.bagItemDataCenter.getAllLunhuiJobKind(this._lunhuiEquipPostions[o], n);
			r.length > 0 ? this._lunhuiEquipRedHash.put(this._lunhuiEquipPostions[o], !0) : this._lunhuiEquipRedHash.put(this._lunhuiEquipPostions[
				o], !1)
		}
		if (e)
			for (var s = e.length, o = 0; s > o; o++) {
				var h = App.data.bagItemDataCenter.getHeightLunhui(e[o].LunHuiSuitId, e[o].pos, n),
					l = App.config.q_samsara_starContainer.getDataBean(e[o].poslevel),
					p = StringUtil.JsonParse(l.q_num);
				if (a.length > 0)
					for (var c = 0; c < a.length; c++) GameUtil.getEquipConfigData(a[c].itemId).q_kind == GameUtil.getEquipConfigData(
							e[o].LunHuiSuitId).q_kind && a[c].itemId > e[o].LunHuiSuitId && a[c].bean.q_lunhui <= App.data.characterCenter
						.lunhuiLevel ? this._lunhuiEquipRedHash.put(e[o].pos, !0) : this._lunhuiEquipRedHash.put(e[o].pos, !1);
				else this._lunhuiEquipRedHash.put(e[o].pos, !1);
				if ("0" != h && this._lunhuiEquipRedHash.put(e[o].pos, !0), p[0]) {
					var _ = App.data.bagItemDataCenter.getItemCount(p[0].id);
					_ >= p[0].num && this._lunhuiEquipRedHash.put(e[o].pos, !0)
				}
			}
		for (var d = 0; d < this._lunhuiEquipPostions.length; d++)
			if (1 == this._lunhuiEquipRedHash.get(this._lunhuiEquipPostions[d])) return !0;
		return a.length > 0 && e.length > 0 ? !0 : !1
	}, e.prototype.showChuanqiequipRed = function(t) {
		for (var e = App.global.roles.roleList, i = 0; i < e.length; i++)
			if (this.ChuanqiEquipRedPoint(e[i].roleIndex, t, !0)) return !0;
		return !1
	}, e.prototype.ChuanqiEquipRedPoint = function(t, e, i) {
		void 0 === i && (i = !0);
		var n = App.data.characterCenter.ChuanqiEquipsHash.get(t),
			a = n.get(e),
			o = App.data.bagItemDataCenter.getPropItemList(e);
		this._chuanqiEquipHash = new HashObject;
		for (var r = 0; r < this._normalEquipPostions.length; r++)
			if (this.getGuildEquipID(0, this._normalEquipPostions[r] + 100 * e))
				if (this.getFuseEquip(this.getGuildEquipID(0, this._normalEquipPostions[r] + 100 * e).q_id)) {
					var s = StringUtil.JsonParse(this.getFuseEquip(this.getGuildEquipID(0, this._normalEquipPostions[r] + 100 * e).q_id)
						.q_consume);
					if (App.data.bagItemDataCenter.getItemCount(s[0].id) >= s[0].num) this._chuanqiEquipHash.put(this._normalEquipPostions[
						r], !0);
					else if (o.length > 0)
						for (var h = 0; h < o.length; h++) GameUtil.getEquipConfigData(o[h].itemId).q_kind == this._normalEquipPostions[
							r] + 100 * e ? this._chuanqiEquipHash.put(this._normalEquipPostions[r], !0) : this._chuanqiEquipHash.put(this
							._normalEquipPostions[r], !1);
					else this._chuanqiEquipHash.put(this._normalEquipPostions[r], !1)
				} else this._chuanqiEquipHash.put(this._normalEquipPostions[r], !1);
		if (a)
			for (var l = a.length, p = 0; l > p; p++)
				if (this.getFuseEquip(this.getFuseEquip(a[p].itemid).q_equip_next_id)) {
					var s = StringUtil.JsonParse(this.getFuseEquip(this.getFuseEquip(a[p].itemid).q_equip_next_id).q_consume);
					if (App.data.bagItemDataCenter.getItemCount(s[0].id) >= s[0].num) this._chuanqiEquipHash.put(a[p].pos - 100 * e,
						!0);
					else if (o.length > 0)
						for (var h = 0; h < o.length; h++) GameUtil.getEquipConfigData(o[h].itemId).q_kind == GameUtil.getEquipConfigData(
								a[p].itemid).q_kind && o[h].itemId > a[p].itemid ? this._chuanqiEquipHash.put(a[p].pos - 100 * e, !0) : this._chuanqiEquipHash
							.put(a[p].pos - 100 * e, !1);
					else this._chuanqiEquipHash.put(a[p].pos - 100 * e, !1)
				} else this._chuanqiEquipHash.put(a[p].pos - 100 * e, !1);
		if (i) {
			for (var r = 0; r < this._normalEquipPostions.length; r++)
				if (1 == this._chuanqiEquipHash.get(this._normalEquipPostions[r])) return !0;
			if (o.length >= 1) return !0
		}
		return !1
	}, e.prototype.showDaoJingRedDot = function() {
		if (this.lunhuiCount > 0) return !0;
		if (App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.LUNHUI_DAN) > 0 && App.data.bagItemDataCenter.getItemCount(
				EnumItemId.LUNHUI_DAN) > 0 || App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.LUNHUI_Super_DAN) > 0 && App
			.data.bagItemDataCenter.getItemCount(EnumItemId.LUNHUI_Super_DAN) > 0) return !0;
		var t = App.data.characterCenter.lunhuiLevel,
			e = App.data.currencyDataCenter.getMoney(EnumMoney.LUNHUIEXP),
			i = !1;
		if (0 == t) {
			var n = App.config.q_samsaraContainer.getDataBean(101),
				a = n.q_need_exp;
			i = a > e ? !1 : !0
		} else {
			var o = App.config.q_samsaraContainer.getDataBean(t),
				a = o.q_need_exp;
			i = a > e ? !1 : !0
		}
		return i ? !0 : !1
	}, e.prototype.showZhuansRedDot = function() {
		return this._zhuansRedDot
	}, e.prototype.zhuansNum = function() {
		(App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.ZHUANSHENG_DAN) > 0 && App.data.bagItemDataCenter.getItemCount(
				EnumItemId.ZHUANSHENG_DAN) > 0 || App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.ZHUANSHENG_Super_DAN) >
			0 && App.data.bagItemDataCenter.getItemCount(EnumItemId.ZHUANSHENG_Super_DAN) > 0) && (this._zhuansRedDot = !0)
	}, e.prototype.showZhuans = function(t) {
		if (this._zhuansRedDot = !1, App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.ZHUANSHENG_DAN) > 0 && App.data
			.bagItemDataCenter.getItemCount(EnumItemId.ZHUANSHENG_DAN) > 0 || App.data.bagItemDataCenter.getItemRemainNum(
				EnumItemId.ZHUANSHENG_Super_DAN) > 0 && App.data.bagItemDataCenter.getItemCount(EnumItemId.ZHUANSHENG_Super_DAN) >
			0) return void(this._zhuansRedDot = !0);
		if (!(App.global.characterData.zhuanSheng >= App.data.characterCenter.maxMetemLevel)) {
			var e = t.repair,
				i = t.level,
				n = !1;
			t.count > 0 && this.zhuanslogin && (n = !0);
			var a = GameUtil.getMetempsyConfigData(i + 1);
			a && e > a.q_reiki && (n = !0);
			var o = !1,
				r = App.global.characterData.StateLevel;
			a && r >= a.q_state_level && (o = !0), this._zhuansRedDot = n && o
		}
	}, e.prototype.showHotBloodRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++)
			if (1 == this.hotRedDot(t[e])) return !0;
		return !1
	}, e.prototype.hotRedDot = function(t, e) {
		void 0 === e && (e = !1);
		var i = !1,
			n = App.data.characterCenter.rexueEquipsHash.get(t.roleIndex);
		if (n) {
			var a = n.length,
				o = this._rexueEquipPostions.length,
				r = App.data.bagItemDataCenter.getPropItemList(88);
			this._hotBloodHash || (this._hotBloodHash = new HashObject);
			for (var s = 0; o > s; s++) {
				var h = App.data.bagItemDataCenter.getHeightRexue(0, this._rexueEquipPostions[s], t.job, t.sex);
				if (this.getGuildEquipID(0, this._rexueEquipPostions[s])) {
					if (this.getFuseEquip(this.getGuildEquipID(0, this._rexueEquipPostions[s]).q_id)) {
						var l = StringUtil.JsonParse(this.getFuseEquip(this.getGuildEquipID(0, this._rexueEquipPostions[s]).q_id).q_consume);
						App.data.bagItemDataCenter.getItemCount(l[0].id) >= l[0].num ? this._hotBloodHash.put(this._rexueEquipPostions[
							s], !0) : this._hotBloodHash.put(this._rexueEquipPostions[s], !1)
					} else this._hotBloodHash.put(this._rexueEquipPostions[s], !1);
					"0" != h && this._hotBloodHash.put(this._rexueEquipPostions[s], !0)
				}
			}
			for (var p = 0; a > p; p++) {
				var h = App.data.bagItemDataCenter.getHeightRexue(n[p].itemID, n[p].pos, t.job, t.sex);
				if (this.getFuseEquip(this.getFuseEquip(n[p].itemID).q_equip_next_id)) {
					var l = StringUtil.JsonParse(this.getFuseEquip(this.getFuseEquip(n[p].itemID).q_equip_next_id).q_consume);
					App.data.bagItemDataCenter.getItemCount(l[0].id) >= l[0].num ? this._hotBloodHash.put(n[p].pos, !0) : this._hotBloodHash
						.put(n[p].pos, !1)
				} else this._hotBloodHash.put(n[p].pos, !1);
				"0" != h && this._hotBloodHash.put(n[p].pos, !0)
			}
			for (var s = 0; o > s; s++)
				if (1 == this._hotBloodHash.get(this._rexueEquipPostions[s])) return !0;
			return r.length > 0 && (i = this._HotBloodRedDot = !0), i
		}
	}, e.prototype.getAllFight = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0, n = 0; e > n; n++) i += FightPowerUtil.getRoleFightPower(
			t[n]);
		return i
	}, e.prototype.getAllGuildFight = function(t) {
		for (var e = this.guildEquipsHash.get(t), i = e.length, n = 0, a = 0; i > a; a++) n += GameUtil.getEquipConfigData(
			e[a].itemID).q_score;
		return n
	}, e.prototype.getFuseEquipByNextId = function(t) {
		for (var e = App.config.q_equip_fuseContainer.list, i = 0; i < e.length; i++)
			if (e[i] && e[i].q_equip_next_id == t) return e[i];
		return null
	}, e.prototype.loadFaBaoEquip = function(t, e) {
		var i = new Array;
		if (t) {
			for (var n = 0; n < t.length; n++) {
				var a = new ItemData(t[n]);
				i.push(a)
			}
			this.faBaoEquipsHash.put(e, i)
		}
	}, e.prototype.addFaBaoEquipData = function(t, e, i) {
		var n = this.faBaoEquipsHash.get(e);
		if (n && n.length > 0)
			for (var a = n.length, o = 0; a > o; o++)
				if (i == n[o].getEquipDataBean().q_kind) return void(n[o] = new ItemData(t));
		var r = new ItemData(t);
		n.push(r), this.faBaoEquipsHash.put(e, n)
	}, e.prototype.getAllFaBaoFight = function(t) {
		for (var e = this.faBaoEquipsHash.get(t), i = e ? e.length : 0, n = 0, a = 0; i > a; a++) {
			var o = App.config.q_equipContainer.getDataBean(e[a].itemId);
			o && (n += o.q_score)
		}
		return n
	}, e.prototype.getFaBaoByPart = function(t, e) {
		for (var i = this.faBaoEquipsHash.get(t), n = i ? i.length : 0, a = 0; n > a; a++) {
			var o = App.config.q_equipContainer.getDataBean(i[a].itemId);
			if (o.q_kind == e) return i[a]
		}
		return null
	}, e.prototype.getFabaoRed = function() {
		var t = App.data.bagItemDataCenter.getPropItemList(31);
		if (t.length > 0) return !0;
		for (var e = App.global.roles.roleList, i = 0; i < e.length; i++)
			if (1 == this.getRoleFaBaoRed(e[i])) return !0;
		return !1
	}, e.prototype.getRoleFaBaoRed = function(t) {
		var e;
		e = TypeUtil.isNumber(t) ? App.global.roles.getRoleInfoByIndex(Number(t)) : t;
		for (var i = this._faBaoEquipPostions.length, n = 0; i > n; ++n)
			if (this.getFaBaoRedByPart(e.roleIndex, this._faBaoEquipPostions[n])) return !0;
		return !1
	}, e.prototype.getFaBaoRedByPart = function(t, e) {
		var i = this.getFaBaoByPart(t, e);
		if (!i) {
			var n = App.data.bagItemDataCenter.getAllCanChangeFaBaoEquips(t, e);
			return 0 != n.length
		}
		return this.getIsFaBaoCanUpStarByPart(t, e) || this.getHasBestFaBaoEquipByPart(t, e) ? !0 : !1
	}, e.prototype.getIsFaBaoCanUpStarByPart = function(t, e) {
		var i = this.getFaBaoByPart(t, e);
		if (!i) return !1;
		var n = App.data.bagItemDataCenter.getAllPropItemByItemId(i.itemId);
		return n.length > 2 ? !0 : !1
	}, e.prototype.getHasBestFaBaoEquipByPart = function(t, e) {
		var i = App.data.bagItemDataCenter.getAllEquipInPropByPos(e);
		if (0 == i.length) return !1;
		var n, a = this.getFaBaoByPart(t, e);
		if (a) {
			for (var o = 0; o < i.length; ++o)
				if (n = i[o], App.global.itemUse.isMatchBaseCondition(n, !1) && n.getEquipDataBean().q_score > a.getEquipDataBean()
					.q_score) return !0
		} else
			for (var r = 0; r < i.length; ++r)
				if (n = i[r], App.global.itemUse.isMatchBaseCondition(n, !1)) return !0;
		return !1
	}, e.prototype.getAllChuanqiFight = function(t, e) {
		var i = this.ChuanqiEquipsHash.get(t),
			n = i.get(e),
			a = 0;
		if (n)
			for (var o = n.length, r = 0; o > r; r++) a += GameUtil.getEquipConfigData(n[r].itemid).q_score;
		return a
	}, e.prototype.getAllLunhuiFight = function(t) {
		var e = this.lunhuiEquipHash.get(t),
			i = 0;
		if (e)
			for (var n = e.length, a = 0; n > a; a++) {
				var o = App.config.q_samsara_soulContainer.getDataBean(e[a].posZhuHunlevel),
					r = App.config.q_samsara_starContainer.getDataBean(e[a].poslevel),
					s = GameUtil.getEquipConfigData(e[a].LunHuiSuitId).q_score;
				i += s + Math.ceil(s * (Number(o.q_add_attribute_pro) / 1e4)) + FightPowerUtil.getFightPower([r.q_add_attribute])
			}
		return i
	}, e.prototype.GetStateRedPoint = function() {
		var t = !1,
			e = App.data.characterCenter.stateHash.getKeyArray();
		return e.map(function(e) {
			App.data.characterCenter.stateHash.get(e) && (t = !0)
		}), this.stateLevelUP ? !0 : t
	}, e.prototype.getAllWing = function() {
		var t = 0;
		return t
	}, e.prototype.getRankPoint = function() {
		var t = App.config.q_globalContainer.getDataBean(301),
			e = t.q_string_value.split("_"),
			i = RankPanel.WORSHIP_TYPES;
		return i && e.length == i.length ? !1 : RankPanel.ISFIRST
	}, e.prototype.getJGZPoint = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t);
		if (!e) return !1;
		var i = (e.hoopCharmTime - ServerTime.getServerTime(), !1);
		return App.data.bagItemDataCenter.getItemCount(3013901) > 0 && (i = !0), i
	}, e.prototype.getYXPPoint = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t);
		if (!e) return !1;
		var i = (e.jadeFairyBottleTime - ServerTime.getServerTime(), !1);
		return App.data.bagItemDataCenter.getItemCount(3013801) > 0 && (i = !0), i
	}, e.prototype.roleOpenRed = function() {
		var t = App.global.enterBtn.getButton(101);
		if (t)
			if (App.global.roles.getRoleInfoByIndex(2)) App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 101, !1);
			else {
				var e = App.global.characterData.level >= 80 || App.data.getVipCenter().getCurrentVip() >= 2;
				App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 101, e)
			} var i = App.global.enterBtn.getButton(102);
		if (i)
			if (App.global.roles.getRoleInfoByIndex(3)) App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 102, !1);
			else {
				var e = App.global.characterData.zhuanSheng >= 4 || App.data.getVipCenter().getCurrentVip() >= 4;
				App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, 102, e)
			}
	}, e
}(egret.HashObject);
__reflect(CharacterCenter.prototype, "CharacterCenter");
var CheckPlayerPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._yellowImageList = [], e._wingWish = 0, e._wingLevel = 0, e.initGrid(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("CheckPlayerViewSkin"), this.addChild(this._view)
	}, e.prototype.initGrid = function() {
		this._addBgSprAry = [], this.gridDict = new HashObject;
		for (var t, e = 0; 14 > e; e++) t = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), t.part = this.getPart(
			e), t.place = EnumGrid.CHAR, 10 > e ? (t.x = 2 + e % 2 * 422, t.y = 5 + 92 * Math.floor(e / 2)) : (t.x = 81 + 92 *
			(e - 10), t.y = 470), this._view.GridGroup.addChild(t), this.gridDict[t.part] = t
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI : 1 == t ? t = EnumEquipType.TOU_KUI : 2 == t ? t = EnumEquipType.YI_FU : 3 ==
			t ? t = EnumEquipType.XIANG_LIAN : 4 == t ? t = EnumEquipType.SHOU_ZHUO : 5 == t ? t = EnumEquipType.SHOU_ZHUO_RIGHT :
			6 == t ? t = EnumEquipType.JIE_ZHI : 7 == t ? t = EnumEquipType.JIE_ZHI_RIGHT : 8 == t ? t = EnumEquipType.YAO_DAI :
			9 == t ? t = EnumEquipType.XIE_ZI : 10 == t ? t = EnumEquipType.XUE_FU : 11 == t ? t = EnumEquipType.DUN_PAI : 12 ==
			t ? t = EnumEquipType.BAO_SHI : 13 == t && (t = EnumEquipType.HUN_ZHU), t
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._otherInfo = e, this.addAvatarUI();
		var i = this._otherInfo.equips;
		if (null != i)
			for (var n = 0; n < i.length; n++) {
				var a = i[n];
				this.onWear(a)
			}
		for (var o = 0; o < this._otherInfo.showSurfaceInfo.length; o++) {
			var r = this._otherInfo.showSurfaceInfo[o];
			this.showSurface(r)
		}
		this._view.name_txt.text = this._otherInfo.name, this._view.lv_txt.text = this._otherInfo.level + "", this._view.metem_txt
			.text = this._otherInfo.metemLevel > 0 ? this._otherInfo.metemLevel + "转" : "未转", this._view.job_txt.text =
			EnumRole.JOB[this._otherInfo.job], this._view.union_txt.text = "[帮会]    无"
	}, e.prototype.onWear = function(t) {
		var e = this.gridDict[t.position];
		null != e && (e.isShowDesc = !1, e.setData(t));
		var i = GameUtil.getItemConfigData(t.itemId);
		if (null != i) {
			var n = this._otherInfo.sex,
				a = String(Number(i.q_equip_resource));
			t.position == EnumEquipType.WU_QI ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, n, a) : t.position ==
				EnumEquipType.YI_FU && this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, n, a)
		}
	}, e.prototype.showSurface = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = 0);
		var i = null != t ? t.surfaceId : e;
		if (-1 != i) {
			var n = App.config.q_surfaceContainer.getDataBean(i);
			if (n)
				if (1 == n.q_type) t && "" != t.detailMap && (this._wingWish = StringUtil.JsonParse(t.detailMap).luck), this.wearWing(
					i);
				else if (2 == n.q_type);
			else if (4 == n.q_type) {
				1 == n.q_head_hide ? this._avatar.removePart(AvatarPartType.HEAD) : this._otherInfo && this._otherInfo.otherRoleData &&
					this.showSurface(null, this._otherInfo.otherRoleData.surfaceManager.getShowSurfaceByType(3, 4));
				var a = n.q_scene_show_id;
				this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this._otherInfo.sex, a)
			} else if (5 == n.q_type) {
				var a = n.q_scene_show_id;
				this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this._otherInfo.sex, a)
			}
		}
	}, e.prototype.wearWing = function(t) {
		if (void 0 === t && (t = -1), this._wingLevel = t, 0 == t) this._avatar.removePart(AvatarPartType.WING);
		else {
			var e = App.config.q_surfaceContainer.getDataBean(t),
				i = e.q_scene_show_id;
			switch (e.q_type) {
				case 1:
					this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 1, i);
					break;
				case 2:
			}
		}
	}, e.prototype.addAvatarUI = function() {
		this.clearAvater(), this._avatar = new CUIShowAvatar, this._avatar.x = 280, this._avatar.y = 400, this._avatar.touchEnabled = !
			1;
		var t = EnumRole.getDefaultBody(this._otherInfo.job, this._otherInfo.sex);
		this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this._otherInfo.sex, t), this.addChild(this._avatar)
	}, e.prototype.clearAvater = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearAvater()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.clearAvater()
	}, e
}(BasePanel);
__reflect(CheckPlayerPanel.prototype, "CheckPlayerPanel");
var ChuanQiData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(HashObject);
__reflect(ChuanQiData.prototype, "ChuanQiData");
var ChuanQiRoleData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(HashObject);
__reflect(ChuanQiRoleData.prototype, "ChuanQiRoleData");
var GodEquipCenter = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._godEquipPostions = [5e3, 5007, 5001, 5008, 5003, 5013, 5005, 5012], e._GodEquipRedDot = !1, e.leftArr = [
			5e3, 5001, 5003, 5005
		], e.rightArr = [5007, 5008, 5013, 5012], e.leftEquipName = ["武器", "衣服", "手镯", "戒指"], e.rightEquipName = ["头盔",
			"项链", "腰带", "鞋子"
		], e.godEquipsHash = new HashObject, e.partHash = new HashMap, e
	}
	return __extends(e, t), e.prototype.loadGodEquips = function(t, e) {
		var i = new Array;
		if (t) {
			for (var n = 0; n < t.length; n++) {
				var a = new GuildEquipData;
				a.itemID = t[n].GodEquipId, a.pos = t[n].pos, i.push(a)
			}
			this.godEquipsHash.put(e, i)
		}
	}, e.prototype.addGodData = function(t, e, i) {
		var n = this.godEquipsHash.get(i);
		if (n && n.length > 0)
			for (var a = n.length, o = 0; a > o; o++)
				if (e == n[o].pos) return void(0 == t ? n.splice(o, 1) : n[o].itemID = t);
		var r = new GuildEquipData;
		r.itemID = t, r.pos = e, n.push(r)
	}, e.prototype.showGodEquipRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++)
			if (1 == this.godRedDot(t[e])) return !0;
		return !1
	}, e.prototype.getAllGodFight = function(t) {
		for (var e = this.godEquipsHash.get(t), i = e.length, n = 0, a = 0; i > a; a++) n += GameUtil.getEquipConfigData(e[
			a].itemID).q_score;
		return n
	}, e.prototype.godRedDot = function(t, e) {
		void 0 === e && (e = !1);
		var i = !1,
			n = this.godEquipsHash.get(t.roleIndex);
		if (n) {
			var a = n.length,
				o = this._godEquipPostions.length;
			this._godEquipHash || (this._godEquipHash = new HashObject);
			for (var r = 0; o > r; r++) {
				var s = App.data.bagItemDataCenter.getHeightGod(0, this._godEquipPostions[r], t.job, t.sex),
					h = this.getGodEquipFirstId(t.job, this._godEquipPostions[r]),
					l = App.config.q_itemContainer.getDataBean(h);
				if (l)
					if (l.q_zhuanshen > App.global.characterData.zhuanSheng || l.q_level > App.global.characterData.level) this._godEquipHash
						.put(this._godEquipPostions[r], !1);
					else if (App.data.characterCenter.getFuseEquip(h)) {
					var p = StringUtil.JsonParse(App.data.characterCenter.getFuseEquip(h).q_consume);
					App.data.bagItemDataCenter.getItemCount(p[0].id) >= p[0].num ? this._godEquipHash.put(this._godEquipPostions[r],
						!0) : this._godEquipHash.put(this._godEquipPostions[r], !1)
				} else this._godEquipHash.put(this._godEquipPostions[r], !1)
			}
			for (var c = 0; a > c; c++) {
				var s = App.data.bagItemDataCenter.getHeightGod(n[c].itemID, n[c].pos, t.job, t.sex),
					h = App.data.characterCenter.getFuseEquip(n[c].itemID).q_equip_next_id,
					l = App.config.q_itemContainer.getDataBean(h);
				if (l)
					if (l.q_zhuanshen > App.global.characterData.zhuanSheng || l.q_level > App.global.characterData.level) this._godEquipHash
						.put(n[c].pos, !1);
					else {
						if (App.data.characterCenter.getFuseEquip(h)) {
							var p = StringUtil.JsonParse(App.data.characterCenter.getFuseEquip(h).q_consume);
							App.data.bagItemDataCenter.getItemCount(p[0].id) >= p[0].num ? this._godEquipHash.put(n[c].pos, !0) : this._godEquipHash
								.put(n[c].pos, !1)
						} else this._godEquipHash.put(n[c].pos, !1);
						"0" != s && this._godEquipHash.put(n[c].pos, !0)
					}
				else this._godEquipHash.put(n[c].pos, !1)
			}
			for (var r = 0; o > r; r++)
				if (1 == this._godEquipHash.get(this._godEquipPostions[r])) return !0;
			return i
		}
	}, e.prototype.getGodEquipDataByPos = function(t, e) {
		var i = this.godEquipsHash.get(t);
		if (i)
			for (var n = 0; n < i.length; ++n) {
				var a = i[n];
				if (a.pos == e) return a
			}
		return null
	}, e.prototype.getFirstGodEquip = function(t, e) {
		var i = this.partHash.get(t + "_" + e);
		if (!i) {
			i = [];
			for (var n = App.config.q_equipContainer.list, a = n.length, o = 0; a > o; ++o) {
				var r = n[o];
				if (r && r.q_kind == e) {
					var s = r.q_id,
						h = App.config.q_itemContainer.getDataBean(s);
					h && h.q_job == t && i.push(r)
				}
			}
			i.sort(this.partSort), this.partHash.put(t + "_" + e, i)
		}
		return i[0]
	}, e.prototype.partSort = function(t, e) {
		return t.q_id < e.q_id ? -1 : t.q_id > e.q_id ? 1 : 0
	}, e.prototype.getGodEquipFirstId = function(t, e) {
		var i = this.getFirstGodEquip(t, e);
		return i ? i.q_id : 0
	}, e.prototype.getSuitCountBySidePos = function(t, e, i) {
		var n = App.data.godEquipCenter.godEquipsHash.get(t);
		if (!n) return 0;
		for (var a = 0, o = 0; o < n.length; o++) {
			var r = n[o];
			this.getGodEquipSideByPos(r.pos) == e && this.getLevelById(r.itemID) == i && (a += 1)
		}
		return a
	}, e.prototype.checkIsSameLevel = function(t, e) {
		return t && e ? t.q_zhuanshen ? t.q_zhuanshen == e.q_zhuanshen : t.q_level == e.q_level : !1
	}, e.prototype.getLevelById = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? e.q_zhuanshen ? e.q_zhuanshen + "转" : e.q_level + "级" : ""
	}, e.prototype.getLevelStrById = function(t) {
		var e = GameUtil.getItemConfigData(t);
		return e ? e.q_zhuanshen ? e.q_zhuanshen + "转" : e.q_level + "级" : "0级"
	}, e.prototype.getGodEquipSideByPos = function(t) {
		return App.data.godEquipCenter.leftArr.indexOf(t) > -1 ? EmunGodEquipSide.left : App.data.godEquipCenter.rightArr.indexOf(
			t) > -1 ? EmunGodEquipSide.right : 0
	}, e.prototype.getPosColor = function(t, e, i) {
		var n = App.data.godEquipCenter.godEquipsHash.get(t),
			a = 0;
		if (n)
			for (var o = 0; o < n.length; ++o) {
				var r = n[o];
				if (r && r.pos == e) {
					a = r.itemID;
					break
				}
			}
		if (a) {
			var s = this.getLevelById(a);
			if ("" != s && s == i) return 52224
		}
		return 7631988
	}, e.prototype.proIsActivate = function(t, e, i, n) {
		void 0 === n && (n = 2);
		var a = this.getSuitCountBySidePos(t, e, i);
		return 2 == n ? a > 1 : 4 == n ? a > 3 : !1
	}, e
}(egret.HashObject);
__reflect(GodEquipCenter.prototype, "GodEquipCenter");
var EmunGodEquipSide;
! function(t) {
	t[t.left = 1] = "left", t[t.right = 2] = "right"
}(EmunGodEquipSide || (EmunGodEquipSide = {}));
var HejiCenter = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.count = 8, e.posArr = [EnumEquipType.WU_QI, EnumEquipType.TOU_KUI, EnumEquipType.YI_FU, EnumEquipType.XIANG_LIAN,
			EnumEquipType.SHOU_ZHUO, EnumEquipType.YAO_DAI, EnumEquipType.JIE_ZHI, EnumEquipType.XIE_ZI
		], e.currTzId = 501001, e.maxLevel = 0, e._skillState = 0, e._canDessProp = [], e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "lowLevel", {
		get: function() {
			return this._getLowLevel
		},
		set: function(t) {
			this._getLowLevel = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getHejiMinLevelPos = function() {
		for (var t, e = 999, i = -1, n = 0; n < this.count; n++) {
			if (t = this.hejiHash.get(this.posArr[n]), !(t.id > 0)) return t.pos;
			t.lv < e && (e = t.lv, i = t.pos)
		}
		return i
	}, e.prototype.getHejiMinLeve = function() {
		return this._getLowLevel
	}, e.prototype.getTzSkillId = function() {
		var t = 0;
		if (App.config.q_equip_masterContainer.hasDataBean(this.currTzId)) {
			var e = StringUtil.JsonParse(GameUtil.getEquipMasterBean(this.currTzId).q_suit_skill),
				i = App.global.mapModule.mapMouseModel.controlRoleData;
			if (void 0 == i || null == i) return t;
			e[i.job - 1] && (t = e[i.job - 1])
		}
		return t
	}, e.prototype.setHejiTzId = function() {
		for (var t = this.hejiArr, e = t.length, i = new HashObject, n = 0, a = 0; e > a; a++) {
			t[a].lv > n && (this.maxLevel = n = t[a].lv);
			var o = i.get(t[a].lv);
			if (t[a].lv > 1) {
				i.put(t[a].lv, o + 1);
				var r = i.get(t[a].lv - 1);
				i.put(t[a].lv - 1, r + 1)
			} else i.put(t[a].lv, o + 1)
		}
		var s = App.config.q_equip_masterContainer.list;
		e = s.length;
		for (var a = 0; e > a; a++) s[a].q_type == EnumEquipMaster.HEJI && s[a].q_rank <= n && i.has(s[a].q_rank.toString()) &&
			i.get(s[a].q_rank.toString()) >= s[a].q_suit_num && s[a].q_id > this.currTzId && (this.currTzId = s[a].q_id)
	}, e.prototype.getFightPower = function() {
		for (var t, e = this.hejiArr, i = [], n = 0; n < e.length; n++) t = GameUtil.getHeraldryDataById(e[n].id), i.push(t
			.q_attribute);
		return FightPowerUtil.getFightPower(i)
	}, e.prototype.getAllAttr = function(t) {
		void 0 === t && (t = -1);
		var e, i = [];
		if (-1 == t)
			for (var n = this.hejiArr, a = 0; a < n.length; a++) e = GameUtil.getHeraldryDataById(n[a].id), i.push(e.q_attribute_client);
		else {
			var o = this.hejiHash.get(t);
			if (o.id > 0) i.push(GameUtil.getHeraldryDataById(o.id).q_attribute_client);
			else
				for (var r = App.config.q_heraldryContainer.list, s = r.length, a = 0; s > a; a++)
					if (r[a].q_type == t && 1 == r[a].q_level) {
						i.push(r[a].q_attribute_client);
						break
					}
		}
		if (i.length <= 0) return null;
		var h = this.getAllAddAttrStr(i);
		return h
	}, e.prototype.getAllAddAttrStr = function(t) {
		for (var e = t.length, i = "", n = [], a = [], o = 0; e > o; o++) i = t[o], i = i.replace("[", ""), i = i.replace(
			"]", ""), n = i.split(","), a.push(n);
		for (var r, s, h, l = new HashObject, o = 0; e > o; o++) {
			n = a[o], r = n.length;
			for (var p = 0; r > p; p++) i = n[p], s = i.slice(0, i.indexOf(":") + 1), h = parseInt(i.slice(i.indexOf(":") + 1)),
				1 == l.has(s) ? l.put(s, l.get(s) + h) : l.put(s, h)
		}
		return l
	}, e.prototype.getAllAddAttrStr1 = function(t) {
		for (var e = t.length, i = "", n = [], a = [], o = 0; e > o; o++) i = t[o], i = i.replace("[", ""), i = i.replace(
			"]", ""), n = i.split("\n"), a.push(n);
		for (var r, s, h, l = new HashObject, o = 0; e > o; o++) {
			n = a[o], r = n.length;
			for (var p = 0; r > p; p++) i = n[p], s = i.slice(0, i.indexOf(":") + 1), h = parseInt(i.slice(i.indexOf(":") + 1)),
				1 == l.has(s) ? l.put(s, l.get(s) + h) : l.put(s, h)
		}
		return l
	}, e.prototype.showHejiRed = function() {
		for (var t = (App.global.funcOpen.isFunctionOpen(103), this.getHejiMinLevelPos(), 0); t < this.count; t++)
			if (1 == this.posShowRed(this.posArr[t])) return !0;
		return this._canDessProp.length > 0 ? !0 : (this.setCanDessProp(), this._canDessProp.length > 0 ? !0 : !1)
	}, e.prototype.posShowRed = function(t) {
		var e = this.hejiHash.get(t),
			i = (GameUtil.getHeraldryData(e.pos, e.lv), GameUtil.getHeraldryData(e.pos, e.lv + 1));
		if (e.lv > this.lowLevel) return !1;
		if (!i) return !1;
		var n = StringUtil.JsonParse(i.q_cost);
		if (App.data.bagItemDataCenter.getItemCount(n[0].id) >= n[0].num) return !0;
		for (var a = this.getAllHejiEquip(), o = a.length, r = 0; o > r; r++)
			if (i.q_id == a[r].bean.q_id && i.q_level == this.lowLevel + 1) return !0;
		return !1
	}, e.prototype.getAllHejiEquip = function() {
		for (var t, e = [], i = App.data.bagItemDataCenter.getBagList(BagTag.PROP), n = i.length, a = 0; n > a; a++) t = i[
			a], 34 == t.type && e.push(t);
		return e.sort(this._sortHejiEquip), e
	}, e.prototype.setCanDessProp = function() {
		var t, e = App.data.bagItemDataCenter.getBagList(BagTag.PROP),
			i = e.length,
			n = [],
			a = [];
		this._canDessProp.length = 0;
		for (var o = 0; i > o; o++)
			if (t = e[o], 34 == t.type) {
				var r = App.config.q_heraldryContainer.getDataBean(t.itemId);
				this._hejiHash.get(r.q_type); - 1 != n.indexOf(t.itemId) ? a.push(t) : a.push(t)
			} this._canDessProp = a
	}, e.prototype.getCanDessProp = function() {
		return this._canDessProp
	}, e.prototype.getPosBestEquip = function(t) {
		for (var e, i, n = this.getAllHejiEquip(), a = n.length, o = 0; a > o; o++)
			if (i = GameUtil.getHeraldryDataById(n[o].itemId), t.pos == i.q_type && (t.id <= 0 && 1 == i.q_level || t.id > 0 &&
					i.q_level == t.lv + 1)) {
				e = n[o];
				break
			} return e
	}, e.prototype.createHejiHash = function(t) {
		void 0 === t && (t = null), this._hejiHash = new HashObject;
		for (var e, i = 0; i < this.count; i++) {
			var n = this.posArr[i];
			e = new HejiInfo, e.id = 0, e.lv = 0, e.pos = n, this._hejiHash.put(n, e)
		}
		if (this.lowLevel = 999, t) {
			for (var a = t.length, i = 0; a > i; i++) e = this._hejiHash.get(GameUtil.getHeraldryDataById(t[i]).q_type), e.id =
				t[i], e.lv = GameUtil.getHeraldryDataById(t[i]).q_level, e.lv <= this.lowLevel && (this.lowLevel = e.lv);
			t.length < 8 && (this.lowLevel = 0)
		} else this.lowLevel = 0;
		this.setHejiTzId()
	}, e.prototype.refreshhejiHash = function(t) {
		var e = this.hejiHash.get(GameUtil.getHeraldryDataById(t).q_type);
		e.id = t, e.lv = GameUtil.getHeraldryDataById(t).q_level;
		for (var i = this.posArr.length, n = !0, a = 0; i > a; a++) {
			var o = this.hejiHash.get(this.posArr[a]);
			if (o.lv < e.lv) {
				n = !1;
				break
			}
		}
		e.lv >= this.lowLevel && n && (this.lowLevel = e.lv), this.setHejiTzId(), App.dispatcher.dispatchEvent(ForgeEvent.HEJI_RESULT)
	}, Object.defineProperty(e.prototype, "hejiArr", {
		get: function() {
			for (var t, e = [], i = 0; i < this.count; i++) {
				var n = this.posArr[i];
				t = this.hejiHash.get(n), t.id > 0 && e.push(t)
			}
			return e
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "hejiHash", {
		get: function() {
			return this._hejiHash || this.createHejiHash(), this._hejiHash
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype._sortHejiEquip = function(t, e) {
		return t.itemId - e.itemId
	}, e
}(egret.HashObject);
__reflect(HejiCenter.prototype, "HejiCenter");
var HejiInfo = function() {
	function t() {}
	return t
}();
__reflect(HejiInfo.prototype, "HejiInfo");
var HongBaoData = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.conver = function(t) {
		this.hongbaoId = LongUtil.toNumber(t.id), this.roleInfo = StringUtil.JsonParse(t.roleinfo), this.hongbaoFlag = t.hongbaoflag,
			this.type = t.type, this.hongbaoArr = t.kunDevourRewards, this.itemId = t.itemid, this.itemSum = t.itemsum
	}, e
}(egret.HashObject);
__reflect(HongBaoData.prototype, "HongBaoData");
var OtherRoleDataCenter = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		this._baseInfoHash = new HashObject
	}, t.prototype.loadBaseInfo = function(t) {
		var e = this.getBaseInfoByPersonId(t.personId);
		e || (e = new OtherPlayerInfoVo, this._baseInfoHash.put(t.personId, e))
	}, t.prototype.getBaseInfoByPersonId = function(t) {
		return this._baseInfoHash.get(t)
	}, t
}();
__reflect(OtherRoleDataCenter.prototype, "OtherRoleDataCenter");
var TejieData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = 0, e.itemid = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(TejieData.prototype, "TejieData");
var OtherPlayerInfoVo = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "otherRoleData", {
		get: function() {
			var t = App.global.mapModule.mapAvatarModel.getPlayer(this.personId);
			return t
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(OtherPlayerInfoVo.prototype, "OtherPlayerInfoVo");
var PlayerAttributeChangeData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.holyatk = 0, e.holydef = 0, e.damagedel = 0, e.damageadd = 0, e.harmdel = 0, e.tenacity = 0, e.harmadd = 0,
			e.critharmdel = 0, e.critharmadd = 0, e.critadddamage = 0, e.critdeldamage = 0, e.crit = 0, e.comfortable = 0, e.luck =
			0, e.attackSpeed = 0, e.hit = 0, e.juck = 0, e.macmax = 0, e.macmin = 0, e.acmax = 0, e.acmin = 0, e.scmax = 0, e.scmin =
			0, e.mcmax = 0, e.mcmin = 0, e.dcmax = 0, e.dcmin = 0, e.maxHp = 0, e.maxMp = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(PlayerAttributeChangeData.prototype, "PlayerAttributeChangeData");
var ChatBlackData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(ChatBlackData.prototype, "ChatBlackData");
var ChatDataCenter = function() {
	function t() {
		this.currChatType = EnumChatTypes.CHANNEL_ZONGHE, this._chatChannelMessageHash = new HashObject, this._playerInfoHash =
			new HashObject, this._chatItemsHash = new HashObject;
		for (var t = App.config.q_globalContainer.getDataBean(76).q_string_value.split("\n"), e = 0; e < t.length; e++) {
			var i = new ChatMessageVO;
			i.channelType = EnumChatTypes.CHANNEL_SYSYTEM;
			var n = t[e].replace("#name", "" + App.global.characterData.name);
			i.content = n.replace(">      ", ">"), App.dispatcher.dispatchEvent(ChatEvent.CHAT_RESPONSE, i), this.pushMessage(i)
		}
	}
	return t.prototype.loadBlackList = function(t) {
		if (t) {
			null == this.blackArr ? this.blackArr = new Array : (this.blackArr = null, this.blackArr = new Array);
			for (var e = t.length, i = 0; e > i; i++) {
				var n = new ChatBlackData;
				n.playerid = t[i].playerId, n.playername = t[i].playerName, this.blackArr.push(n)
			}
		} else this.blackArr = null, this.blackArr = new Array
	}, t.prototype.chat = function(t, e) {
		return t.toString() == App.global.characterData.personId ? void Notice.show(10003) : void 0
	}, t.prototype.updatePlayerChatResponse = function(t) {
		if (this.savePlayerInfo(t.sender), this.savePlayerInfo(t.targetInfo), t.items && t.items.length) {
			var e = 0;
			for (e = 0; e < t.items.length; e++) this.saveItemInfo(t.items[e])
		}
		var i = this.transformMessage(t);
		return this.pushMessage(i), i
	}, t.prototype.pushMessage = function(e) {
		var i = this._chatChannelMessageHash.get(e.channelType),
			n = this._chatChannelMessageHash.get(EnumChatTypes.CHANNEL_ZONGHE);
		if (i ? i.push(e) : (i = [e], this._chatChannelMessageHash.put(e.channelType, i)), i.length > t.MAX_DATA_COUNT) {
			var a = i.shift();
			if (e.items && e.items.length) {
				var o = 0;
				for (o = 0; o < e.items.length; o++) {
					if (!e.items[o]) return;
					var r = new ItemData(e.items[o]);
					r.theNum = r.theNum - 1, 0 == r.theNum && this._chatItemsHash.del(r.id)
				}
			}
			if (a.sender && a.sender.playerId) {
				var s = this._playerInfoHash.get(a.sender.playerId.toString());
				s -= 1, 0 == s && this._playerInfoHash.del(a.sender.playerId.toString())
			}
		}
		n ? n.push(e) : (n = [e], this._chatChannelMessageHash.put(EnumChatTypes.CHANNEL_ZONGHE, n)), n.length > t.MAX_DATA_COUNT &&
			n.shift()
	}, t.prototype.getMessages = function(t) {
		var e = this._chatChannelMessageHash.get(t);
		return e
	}, t.prototype.transformMessage = function(t) {
		var e = t.content,
			i = new ChatMessageVO;
		i.channelType = t.showtype, i.sender = t.sender, i.targeter = t.targetInfo, t.sender && (i.senderid = t.sender.playerId,
				i.isMine = App.global.characterData.personId == t.sender.playerId.toString()), i.items = t.items, i.links = t.hyperLinkList,
			i.extendMap = t.extendsmap;
		var n = EnumChatTypes.REG_FACE.test(e);
		i.faceSign = n;
		var a = EnumChatTypes.REG_LINK.test(e),
			o = EnumChatTypes.REG_ITEM.test(e),
			r = 0;
		if (a || o) {
			var s, h;
			if (i.links && i.links.length > 0)
				for (i.isTextFlow = !0, r = 0; r < i.links.length; r++) {
					var l = StringUtil.JsonParse(StringUtil.replacJosnStr(i.links[r].toString()));
					l.f_type == EnumChatRegType.LINKPLAYERNAME ? (s = EnumChatRegType.REG_PLAYERNAME_START, h = EnumChatRegType.REG_PLAYERNAME_END) :
						l.f_type == EnumChatRegType.LINKMAPNAME ? (s = EnumChatRegType.REG_MAPNAME_START, h = EnumChatRegType.REG_MAPNAME_END) :
						l.f_type == EnumChatRegType.LINKGOTOMAP ? (s = EnumChatRegType.REG_GOTOMAP_START, h = EnumChatRegType.REG_GOTOMAP_END) :
						l.f_type == EnumChatRegType.ACTIVITYTRANS ? (s = EnumChatRegType.REG_FLYTOMAP_START, h = EnumChatRegType.REG_FLYTOMAP_END) :
						l.f_type == EnumChatRegType.LINKBOSSTRANS ? (s = EnumChatRegType.REG_FLYTOBOSS_START, h = EnumChatRegType.REG_FLYTOBOSS_END) :
						l.f_type == EnumChatRegType.LINKOPENPANEL ? (s = EnumChatRegType.REG_OPENPANEL_START, h = EnumChatRegType.REG_OPENPANEL_END) :
						l.f_type == EnumChatRegType.NON_NAMECOLOR ? (s = EnumChatRegType.REG_NAMECOLOR_START, h = EnumChatRegType.REG_NAMECOLOR_END) :
						l.f_type == EnumChatRegType.SHOWACHIEVE ? (s = EnumChatRegType.REG_SHOWACHIEVE_START, h = EnumChatRegType.REG_SHOWACHIEVE_END) :
						l.f_type == EnumChatRegType.SHOWWARPET ? (s = EnumChatRegType.REG_SHOWWARPET_START, h = EnumChatRegType.REG_SHOWWARPET_END) :
						l.f_type == EnumChatRegType.LINKSHOWMYPOS ? (s = EnumChatRegType.REG_SHOWMYPOS_START, h = EnumChatRegType.REG_SHOWMYPOS_END) :
						l.f_type == EnumChatRegType.MULTIPLAYER_TEAMMATE && (s = EnumChatRegType.REG_MULTITEAMMATE_START, h =
							EnumChatRegType.REG_MULTITEAMMATE_END), e = e.replace(EnumChatTypes.REG_LINK, s + i.links[r] + h)
				}
			if (i.items && i.items.length > 0)
				for (i.isTextFlow = !0, r = 0; r < i.items.length; r++) s = EnumChatRegType.REG_ITEMID_START, h = EnumChatRegType
					.REG_ITEMID_END, e = e.replace(EnumChatTypes.REG_ITEM, s + i.items[r].itemId.toString() + h)
		}
		return e = this.formatStringToLink(e), i.content = e, i.isTextFlow && (i.textElement = HtmlUtil.getHtmlStr(i.content)),
			i
	}, t.prototype.savePlayerInfo = function(t) {
		if (t) {
			var e = this._playerInfoHash.get(t.playerId.toString());
			e ? this._playerInfoHash.put(t.playerId.toString(), e + 1) : this._playerInfoHash.put(t.playerId.toString(), 1)
		}
	}, t.prototype.saveItemInfo = function(t) {
		if (t) {
			var e = new ItemData(t);
			this._chatItemsHash.get(e.id) ? this._chatItemsHash.get(e.id).theNum += 1 : this._chatItemsHash.put(e.id, e)
		}
	}, t.prototype.getPlayerInfo = function(t) {
		return this._playerInfoHash.get(t)
	}, t.prototype.getItemInfo = function(t) {
		return this._chatItemsHash.get(t + "")
	}, t.prototype.getLinkeColor = function(t) {
		return "#00ff00"
	}, t.prototype.chatlmtlvlDic = function() {
		if (this._chatLimitDic) return this._chatLimitDic;
		this._chatLimitDic = {};
		var t = GameUtil.getGlobalConfigData(89);
		if (null != t && "" != t.q_string_value)
			for (var e = StringUtil.JsonParse(t.q_string_value), i = 0; i < e.length; i++) this._chatLimitDic[e[i].type] = e[i];
		return this._chatLimitDic
	}, t.prototype.getChatLvlLimit = function(t) {
		var e = this.chatlmtlvlDic();
		return e[t]
	}, t.prototype.formatStringToLink = function(t) {
		return t = this.addTempLink(t, EnumChatRegType.REG_PLAYERNAME_START, EnumChatRegType.REG_PLAYERNAME_END, this.addPlayerNameLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_MAPNAME_START, EnumChatRegType.REG_MAPNAME_END, this.addMapNameLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_GOTOMAP_START, EnumChatRegType.REG_GOTOMAP_END, this.addGotoMapLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_ITEMID_START, EnumChatRegType.REG_ITEMID_END, this.addItemLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_OPENPANEL_START, EnumChatRegType.REG_OPENPANEL_END, this.addOpenPanelLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_NAMECOLOR_START, EnumChatRegType.REG_NAMECOLOR_END, this.addNameColor,
			this), t = this.addTempLink(t, EnumChatRegType.REG_SHOWACHIEVE_START, EnumChatRegType.REG_SHOWACHIEVE_END, this.addAchieveLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_SHOWWARPET_START, EnumChatRegType.REG_SHOWWARPET_END, this.addWarpetLink,
			this), t = this.addTempLink(t, EnumChatRegType.REG_MULTITEAMMATE_START, EnumChatRegType.REG_MULTITEAMMATE_END,
			this.addMultiTeamLink, this), t = this.addTempLink(t, EnumChatRegType.REG_FLYTOMAP_START, EnumChatRegType.REG_FLYTOMAP_END,
			this.addFlytoMapLink, this), t = this.addTempLink(t, EnumChatRegType.REG_FLYTOBOSS_START, EnumChatRegType.REG_FLYTOBOSS_END,
			this.addFlytoBossLink, this), t = this.addTempLink(t, EnumChatRegType.REG_SHOWMYPOS_START, EnumChatRegType.REG_SHOWMYPOS_END,
			this.addShowMyposLink, this), t = this.addTempLink(t, EnumChatRegType.INVITECODE_START, EnumChatRegType.INVITECODE_END,
			this.addCopyLink, this)
	}, t.prototype.addTempLink = function(t, e, i, n, a) {
		var o, r;
		if (-1 != t.indexOf(e) && -1 != t.indexOf(i))
			for (o = t.indexOf(e); - 1 != o && (r = t.indexOf(i, o + 1), -1 != r);) t = n.apply(a, [t, o, r]), o = t.indexOf(e);
		return t
	}, t.prototype.addPlayerNameLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_PLAYERNAME_START.length, i),
			a = StringUtil.JsonParse(StringUtil.replacJosnStr(n));
		t = t.replace(EnumChatRegType.REG_PLAYERNAME_START + n + EnumChatRegType.REG_PLAYERNAME_END, "playerNameStr");
		var o = this.getHtmlText(EnumChatTypes.PLAYER_NAME_S, a.rname);
		return t = t.replace("playerNameStr", o)
	}, t.prototype.addMapNameLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_MAPNAME_START.length, i),
			a = StringUtil.JsonParse(StringUtil.replacJosnStr(n));
		t = t.replace(EnumChatRegType.REG_MAPNAME_START + n + EnumChatRegType.REG_MAPNAME_END, "mapNameStr");
		var o = GameUtil.getMapName(a.mid),
			r = this.getHtmlText(EnumChatTypes.PLAYER_NAME_S, o);
		return t = t.replace("mapNameStr", r)
	}, t.prototype.getHtmlText = function(t, e, i) {
		void 0 === i && (i = "");
		var n;
		return n = "" != i ? "<font color='" + t + "'><u><a href='event:" + i + "'>" + e + "</a></u></font>" :
			"<font color='" + t + "'>" + e + "</font>"
	}, t.prototype.addGotoMapLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_GOTOMAP_START.length, i);
		t = t.replace(EnumChatRegType.REG_GOTOMAP_START + n + EnumChatRegType.REG_GOTOMAP_END, "gotoMapStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = this.getHtmlText("#00FF00", a.tip, n);
		return t = t.replace("gotoMapStr", o)
	}, t.prototype.addItemLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_ITEMID_START.length, i);
		t = t.replace(EnumChatRegType.REG_ITEMID_START + n + EnumChatRegType.REG_ITEMID_END, "itemIdStr");
		var a = this.getItemInfo(n);
		if (a) {
			var o = GameUtil.getItemConfigData(a.itemId);
			if (o) {
				var r = GameUtil.getItemNameColor(a.itemId, !1),
					s = "<font color='" + r + "'><u><a href='event:" + EnumChatTypes.LINK_ITEM + a.itemId + "'>[" + o.q_name.split(
						"_")[0] + "]</a></u></font>";
				t = t.replace("itemIdStr", s)
			} else t = t.replace("itemIdStr", "")
		}
		return t
	}, t.prototype.addOpenPanelLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_OPENPANEL_START.length, i);
		t = t.replace(EnumChatRegType.REG_OPENPANEL_START + n + EnumChatRegType.REG_OPENPANEL_END, "openPanelStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = this.getHtmlText("#00FF00", a.tip, EnumChatTypes.LINK_PANEL + a.panelid);
		return t = t.replace("openPanelStr", o)
	}, t.prototype.addNameColor = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_NAMECOLOR_START.length, i);
		t = t.replace(EnumChatRegType.REG_NAMECOLOR_START + n + EnumChatRegType.REG_NAMECOLOR_END, "nameColorStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = this.getHtmlText(EnumChatRegType.getColorByType(a.color), a.name);
		return t = t.replace("nameColorStr", o)
	}, t.prototype.addAchieveLink = function(t, e, i) {
		return ""
	}, t.prototype.addWarpetLink = function(t, e, i) {
		return t
	}, t.prototype.addMultiTeamLink = function(t, e, i) {
		return t
	}, t.prototype.addFlytoMapLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_FLYTOMAP_START.length, i);
		t = t.replace(EnumChatRegType.REG_FLYTOMAP_START + n + EnumChatRegType.REG_FLYTOMAP_END, "flytoMapStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = this.getHtmlText("#00FF00", a.tip, n);
		return t = t.replace("flytoMapStr", o)
	}, t.prototype.addFlytoBossLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_FLYTOBOSS_START.length, i);
		t = t.replace(EnumChatRegType.REG_FLYTOBOSS_START + n + EnumChatRegType.REG_FLYTOBOSS_END, "flytoBossStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = this.getHtmlText("#00FF00", a.tip, n);
		return t = t.replace("flytoBossStr", o)
	}, t.prototype.addShowMyposLink = function(t, e, i) {
		var n = t.slice(e + EnumChatRegType.REG_SHOWMYPOS_START.length, i);
		t = t.replace(EnumChatRegType.REG_SHOWMYPOS_START + n + EnumChatRegType.REG_SHOWMYPOS_END, "gotoPosStr");
		var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n)),
			o = a.mid,
			r = a.x,
			s = a.y,
			h = GameUtil.getMapName(o),
			l = h + "(" + r + "," + s + ")",
			p = this.getHtmlText("#00FF00", l, n);
		return t = t.replace("gotoPosStr", p)
	}, t.prototype.addCopyLink = function(t, e, i) {
		var n = this.getHtmlText("#00FF00", "点击复制", EnumChatRegType.INVITECODE_END);
		return t = t.replace(EnumChatRegType.INVITECODE_START, ""), t = t.replace(EnumChatRegType.INVITECODE_END, n)
	}, t.SENDTYPECHAT = [3, 4, 7, 1, 2, 5], t.MAX_SHOW_COUNT = 100, t.MAX_DATA_COUNT = 50, t
}();
__reflect(ChatDataCenter.prototype, "ChatDataCenter");
var ChatMessageVO = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.channelType = 0, e.isTextFlow = !1, e.isMine = !1, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(ChatMessageVO.prototype, "ChatMessageVO");
var KefuChatVO = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(KefuChatVO.prototype, "KefuChatVO");
var CDCenter = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._dict = new HashObject, e
	}
	return __extends(e, t), e.prototype.addSkillCD = function(t, e, i) {
		var n = GameUtil.getSkillConfigData(t, e).q_cd;
		n *= i.atkSpeed, this.addCD(CDType.SKILL, t, n)
	}, e.prototype.addCD = function(t, i, n, a, o) {
		void 0 === a && (a = -1), void 0 === o && (o = !0);
		var r, s, h;
		if (0 >= n)
			if (t == CDType.SKILL) {
				if (h = App.data.skillCenter.getSkill(i), null != h && (s = GameUtil.getSkillConfigData(i, h.level), s.q_public_cd_level <=
						0 || s.q_public_cd <= 0)) return
			} else if (t == CDType.ITEM && (r = GameUtil.getItemConfigData(i), null != r && (r.q_cooldown_level <= 0 || r.q_cooldown_type <=
				0))) return;
		var l = !1,
			p = this.getCD(t, i);
		if (null == p || this.getSkillCDLeftTime(i) <= 0 ? (null == p && (p = new CDInfo, p.type = t, p.id = i, this._dict.put(
				t + "_" + i, p)), p.needCdTime ? p.time = n : p.time = 0, p.isInGcd = !o, l = !0) : this.getCDLeftTime(t, i) < n ?
			(p.needCdTime ? p.time = n : p.time = 0, p.isInGcd = !0, l = !0) : (p.isInGcd = !1, l = !1), l && (p.startTime = a,
				-1 == a && (p.startTime = egret.getTimer())), o) {
			var c = 0,
				_ = 0,
				d = 0;
			if (t == CDType.SKILL) {
				if (h = App.data.skillCenter.getSkill(i), null != h && (s = GameUtil.getSkillConfigData(i, h.level), null != s &&
						(c = s.q_public_cd_level, _ = s.q_public_cd, c > 0 && _ > 0))) {
					var u = App.data.skillCenter.getRoleSkillList(EnumRole.ROLE1);
					for (d = 0; d < u.length; d++) u[d].skillId != i && (s = GameUtil.getSkillConfigData(u[d].skillId, u[d].level),
						null != s && s.q_public_cd_level == c && this.addCD(CDType.SKILL, u[d].skillId, _, -1, !1))
				}
			} else if (t == CDType.ITEM && (r = GameUtil.getItemConfigData(i), null != r && (c = r.q_cooldown_level, _ = r.q_cooldown_type,
					c > 0 && _ > 0))) {
				var g = App.data.bagItemDataCenter.getBagList(BagTag.PROP);
				for (d = 0; d < g.length; d++) null != g[d] && (r = GameUtil.getItemConfigData(g[d].itemId), null != r && r.q_cooldown_level ==
					c && this.addCD(CDType.ITEM, g[d].itemId, _, -1, !1))
			}
		}
		l && App.dispatcher.dispatchEvent(e.START, p)
	}, e.prototype.removeCD = function(t, i) {
		var n = this.getCD(t, i);
		null != n && (this._dict.del(t + "_" + i), App.dispatcher.dispatchEvent(e.FINISH, {
			key: t,
			value: i
		}))
	}, e.prototype.getCD = function(t, e) {
		return this._dict.get(t + "_" + e)
	}, e.prototype.getCDLeftTime = function(t, e) {
		var i = this.getCD(t, e);
		if (null == i) return 0;
		if (0 == i.needCdTime) return 0;
		var n = i.startTime + i.time - egret.getTimer();
		return n
	}, e.prototype.getSkillCDLeftTime = function(t) {
		var e = this.getCDLeftTime(CDType.SKILL, t);
		return e
	}, e.prototype.getItemCDLeftTime = function(t) {
		return this.getCDLeftTime(CDType.ITEM, t)
	}, e.prototype.isInCD = function(t, e) {
		return this.getCDLeftTime(t, e) > 0
	}, e.START = "CDManager.START", e.FINISH = "CDManager.FINISH", e
}(Dispose);
__reflect(CDCenter.prototype, "CDCenter");
var CDInfo = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.type = 0, e.id = 0, e.needCdTime = !0, e.startTime = 0, e.isInGcd = !1, e._time = 0, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "time", {
		get: function() {
			return 0 == this.needCdTime ? 0 : this._time + 100
		},
		set: function(t) {
			this._time = t
		},
		enumerable: !0,
		configurable: !0
	}), e
}(Dispose);
__reflect(CDInfo.prototype, "CDInfo");
var CDType;
! function(t) {
	t[t.SKILL = 1] = "SKILL", t[t.ITEM = 2] = "ITEM"
}(CDType || (CDType = {}));
var ComboData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._roleData = e, i
	}
	return __extends(e, t), e.prototype.addComboCD = function(t, e) {
		var i = this;
		null == i._skillComboInfo && (i._skillComboInfo = new SkillComboData);
		var n = 0,
			a = i.getSkillidByJob();
		if (a) {
			var o = a.indexOf(t),
				r = o + 1,
				s = 0,
				h = a.length;
			r >= h && (r = 0);
			for (var l = r; h > l; l++) {
				s++, n = a[l], l == h - 1 && (l = -1);
				var p = i.getSkillData(n),
					c = i.getSkillBean(n),
					_ = App.data.CDCenter.getSkillCDLeftTime(n);
				if (p && c && 0 >= _ && c.q_need_mp <= i._roleData.mp) break;
				if (n = 0, s == h) break
			}
		}
		this._skillComboInfo.curSkillId = n > 0 ? n : EnumSkillID.getPuTongGongji(i._roleData), this._skillComboInfo.cdTime =
			e + egret.getTimer()
	}, e.prototype.getSkillData = function(t) {
		var e = this,
			i = e._roleData,
			n = 1;
		return i instanceof CharcterPartnerRoleData && (n = i.partnerIndex), App.data.skillCenter.getRoleSkill(n, t)
	}, e.prototype.getSkillBean = function(t) {
		var e = this.getSkillData(t),
			i = e ? e.level : 0;
		return GameUtil.getSkillConfigData(t, i)
	}, e.prototype.checkComboCD = function() {
		if (null == this._skillComboInfo) return 0;
		var t = this._skillComboInfo.cdTime - egret.getTimer();
		return 0 >= t ? (this.resetComboCD(), 0) : t
	}, e.prototype.resetComboCD = function() {
		null != this._skillComboInfo && (this._skillComboInfo.cdTime = 0, this._skillComboInfo.curSkillId = this._skillComboInfo
			.skillId)
	}, e.prototype.getCurComboSkillId = function() {
		var t = this._roleData;
		return t.operation.userMouseNextSkill > 0 ? t.operation.userMouseNextSkill : null == this._skillComboInfo ?
			EnumSkillID.getPuTongGongji(this._roleData) : this._skillComboInfo.curSkillId
	}, e.prototype.getSkillidByJob = function() {
		var t = this._roleData;
		return t.job == EnumRole.ZHAN_SHI ? EnumSkillID.WU_KONG_SKILL_LIST : t.job == EnumRole.FA_SHI ? EnumSkillID.ZI_XIA_SKILL_LIST :
			(t.job = EnumRole.DAO_SHI) ? EnumSkillID.YANG_JIAN_SKILL_LIST : null
	}, e
}(egret.HashObject);
__reflect(ComboData.prototype, "ComboData");
var SkillComboData = function() {
	function t() {}
	return t
}();
__reflect(SkillComboData.prototype, "SkillComboData");
var CrossCenter = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.actId = 9999, e.myExploit = 0, e.rewardStateArr = [], e.scoreSerArr = [], e.crossState = 1, e.crossStateData =
			"", e.serverArr = [], e.isBossRefresh = !1, e.isShowYuBao = !1, e.isHaveShowNum = 0, e.isOpenCross = !1, e
	}
	return __extends(e, t), e.prototype.goCrossFight = function() {
		var t = App.config.q_functionContainer.getDataBean(74).q_metelv;
		App.global.characterData.zhuanSheng >= t ? 1 == App.data.activityCenter.getData(this.actId).activityStates ? (
			ActivityCommandSender.sendC2S_JoinActivityMessage(this.actId), App.panel.removePanel(251), App.panel.removePanel(
				250)) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">活动未开启</font>") : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">" + t + "转可参与跨服活动</font>")
	}, e.prototype.setRoleNationName = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0; e > i; i++) t[i].changeNation()
	}, e.prototype.isInCrossMap = function() {
		var t = GameUtil.getGlobalConfigData(283).q_string_value.replace("[", "");
		t = t.replace("]", "");
		for (var e = t.split(","), i = e.length, n = 0; i > n; n++)
			if (e[n] == App.data.zoneCenter.zoneID) return !0;
		return !1
	}, e.prototype.getNationMapArr = function() {
		var t = GameUtil.getGlobalConfigData(283).q_string_value.replace("[", "");
		t = t.replace("]", "");
		var e = t.split(",");
		return e
	}, e.prototype.transfor = function(t) {
		var e, i;
		if (!this.transforHash) {
			this.transforHash = new HashObject;
			var n = App.config.q_transferContainer.list;
			i = n.length;
			for (var a = 0; i > a; a++) e = this.transforHash.get(n[a].q_tran_from_map), e || (e = [], this.transforHash.put(n[
				a].q_tran_from_map, e)), e.push(n[a])
		}
		if (e = this.transforHash.get(App.data.zoneCenter.zoneID)) {
			i = e.length;
			for (var a = 0; i > a; a++)
				if (e[a].q_tran_to_map == t || !e[a].q_tran_to_map) {
					var o = e[a].q_tran_from_range,
						r = o.indexOf("{"),
						s = o.indexOf("}"),
						h = o.indexOf(","),
						l = Number(o.slice(r + 1, h)),
						p = Number(o.slice(h + 1, s)),
						c = App.global.mapModule.mapMouseModel.controlRoleData,
						_ = SearchToPointVO.getVO(),
						d = h5_engine.MapVO.getCenterPoint(l, p);
					return _.search(c, d.x, d.y, "onMoveToMapPosition"), void c.ai.reset()
				}
		}
	}, e
}(egret.HashObject);
__reflect(CrossCenter.prototype, "CrossCenter");
var ExploitCenter = function() {
	function t() {
		this.prestigetCenter = new PrestigeCenter, this._exploitDic = new HashObject, this.activePoint = 0, this.totalPoint =
			0, this.position = 1, this.globalBoxId = 61, this._lastGrade = -1, this._taskMaxHash = new HashObject, this.totalPoint =
			0, this.activePoint = 0;
		for (var t, e, i = App.config.q_task_active_clientContainer.list, n = i.length, a = 0; n > a; a++) t = i[a].q_taskid_show_place,
			e = this._taskMaxHash.get(t), null == e && (e = [], this._taskMaxHash.put(t, e)), e.push(i[a])
	}
	return t.prototype.loadDatas = function(t, e) {
		this._lastGrade != e && (this._lastGrade = e, this._exploitDic = new HashObject);
		for (var i, n = 0; n < t.length; n++) i = new ExploitData(t[n]), this._exploitDic.put(i.id, i);
		App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_EXPLOIT)
	}, t.prototype.getData = function(t) {
		return this._exploitDic.get(t)
	}, t.prototype.getTaskVec = function() {
		return App.data.taskCenter.getExploitTaskList()
	}, t.prototype.getRewardBeanList = function() {
		for (var t = [], e = App.config.q_active_reward_configContainer.list, i = 0; i < e.length; i++) e[i].q_grade ==
			this.prestigetCenter.prestigeID && t.push(e[i]);
		return t
	}, t.prototype.getBoxId = function() {
		var t, e = App.config.q_globalContainer.getDataBean(this.globalBoxId);
		if (null != e) {
			var i = StringUtil.JsonParse(e.q_string_value);
			t = i[this._lastGrade]
		}
		return t
	}, Object.defineProperty(t.prototype, "grade", {
		get: function() {
			return this._lastGrade + 1
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.updateActivePoint = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0), this.activePoint = t, this.totalPoint = e, App.dispatcher.dispatchEvent(
			ExploitEvent.REFRESH_EXPLOIT_NUM, t, e)
	}, t.prototype.sortFunc = function(t, e) {
		return t.q_sort > e.q_sort ? 1 : -1
	}, t.prototype.getShowPoint = function() {
		for (var t, e = App.config.q_active_reward_configContainer.list, i = 0; i < e.length; i++)
			if (t = this.getData(e[i].q_id), t && 0 == t.fixRewardsState) return !0;
		var n = App.data.taskCenter.getExploitTaskList();
		if (n)
			for (var i = 0; i < n.length; i++)
				if (n[i] && 2 == n[i].taskState) return !0;
		return this.prestigetCenter.getShowPoint() ? !0 : !1
	}, t.prototype.getCurrentIndex = function(t) {
		var e = App.config.q_task_active_clientContainer.getDataBean(t.taskID),
			i = this._taskMaxHash.get(e.q_taskid_show_place);
		if (i) {
			var n = 3 == t.taskState ? 1 : 0;
			return i.indexOf(e) + n
		}
		return 0
	}, t.prototype.getIndexMax = function(t) {
		var e = this._taskMaxHash.get(t);
		return e ? e.length : 0
	}, t
}();
__reflect(ExploitCenter.prototype, "ExploitCenter");
var PrestigeCenter = function() {
	function t() {
		this.prestigeID = 1, this.prestigePoint = 0
	}
	return t.prototype.getShowPoint = function() {
		var t = App.config.q_jadeContainer.getDataBean(this.prestigeID);
		if (t && t.q_next_id > 0) {
			var e = App.data.currencyDataCenter.getMoney(EnumMoney.Prestige);
			App.config.q_jadeContainer.getDataBean(t.q_next_id);
			return e >= t.q_cost
		}
		return !1
	}, t
}();
__reflect(PrestigeCenter.prototype, "PrestigeCenter");
var ExploitData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.fixRewardsState = -1, i.boxRewardState = -1, null != e && (i.id = e.id, i.remainTimes = e.remainTimes, i.fixRewardsState =
			e.fixRewardsState, -1 == i.fixRewardsState ? i.boxRewardState = -1 : i.fixRewardsState > -1 && i.remainTimes > 0 ?
			i.boxRewardState = 0 : i.fixRewardsState > -1 && 0 == i.remainTimes && (i.boxRewardState = 1)), i
	}
	return __extends(e, t), e.prototype.getBean = function() {
		if (null == this.bean && (this.bean = App.config.q_active_reward_configContainer.getDataBean(this.id), null == this
				.bean)) {
			var t = "前端功勋奖励表里没有该编号的功勋奖励数据，id为：" + this.id;
			GameLog.logWarn(t)
		}
		return this.bean
	}, e
}(egret.HashObject);
__reflect(ExploitData.prototype, "ExploitData");
var ForgeCenter = function() {
	function t() {
		this.atrrStrArr = ["q_attack_max", "q_hp", "q_defense_max", "q_magic_defence_max"], this._selectedRoleIndex = 1,
			this._currTabSelete = 0, this.arrFushiStr = ["攻击符石", "物防符石", "魔防符石", "生命符石", "暴击符石", "暴伤符石"], this.maxFushiId = 0
	}
	return Object.defineProperty(t.prototype, "forgeData", {
		get: function() {
			return (this._forgeData = void 0) && (this._forgeData = new ForgeData), this._forgeData
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.createInfo = function(t) {
		for (var e, i, n = [], a = t.length, o = 0; a > o; o++) e = t[o], i = new ForgeInfo, i.level = e.level, void 0 == i
			.level && (i.level = e.gradeNum), i.pos = e.pos, n.push(i);
		return n
	}, Object.defineProperty(t.prototype, "selectedRoleIndex", {
		get: function() {
			return this._selectedRoleIndex
		},
		set: function(t) {
			this._selectedRoleIndex != t && (this._selectedRoleIndex = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "roleList", {
		get: function() {
			return App.global.roles.roleList
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "curSelctedRole", {
		get: function() {
			return this._selectedRoleIndex < 1 || this._selectedRoleIndex > 3 ? null : this.roleList[this._selectedRoleIndex -
				1]
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "posArr", {
		get: function() {
			return this._posArr || (this._posArr = [EnumEquipType.WU_QI, EnumEquipType.TOU_KUI, EnumEquipType.YI_FU,
				EnumEquipType.XIANG_LIAN, EnumEquipType.SHOU_ZHUO, EnumEquipType.YAO_DAI, EnumEquipType.JIE_ZHI,
				EnumEquipType.XIE_ZI
			]), this._posArr
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getQhCurSelPos = function() {
		var t, e = this.roleForgeInfos(this.selectedRoleIndex, this._currTabSelete),
			i = 99999;
		return e.foEach(function(e, n) {
			n.level < i && (i = n.level, t = e)
		}, this), t
	}, t.prototype.getZzCurSelPos = function() {
		for (var t, e, i = [EnumEquipType.WU_QI, EnumEquipType.YI_FU, EnumEquipType.SHOU_ZHUO, EnumEquipType.JIE_ZHI,
				EnumEquipType.TOU_KUI, EnumEquipType.XIANG_LIAN, EnumEquipType.XIE_ZI, EnumEquipType.YAO_DAI
			], n = this.roleForgeInfos(this.selectedRoleIndex, this._currTabSelete), a = 99999, o = 0; 8 > o; o++) e = n.get(i[
			o]), e && e.level < a && (a = e.level, t = e.pos);
		return t
	}, t.prototype.seQhCurSelPos = function(t) {
		this._qhCurSelPos = t
	}, t.prototype.forgePosCanup = function(t, e) {
		void 0 === e && (e = ForgeType.Strength);
		for (var i, n, a, o = this.roleForgeInfos(t, e), r = [], s = 0; 8 > s; s++)
			if (i = o.get(this.posArr[s]), a = this.getEquipFunLvHash().get(i.pos), e == ForgeType.CHUANSHI || this.isOpenFunOnPos(
					i.pos) && e == ForgeType.Refine) {
				if (e == ForgeType.CHUANSHI) {
					var h = App.data.wearEquipCenter.getRoleWearData(i.pos, t);
					if (!h) continue
				}
				GameUtil.hasEquipForgeConfigData(e, i.pos, i.level + 1) && (n = StringUtil.JsonParse(GameUtil.getEquipForgeConfigData(
					e, i.pos, i.level + 1).q_cost_Num), App.data.bagItemDataCenter.getItemCount(n[0].id) >= n[0].num && r.push(i))
			} return r
	}, t.prototype.forgeList = function(t, e) {
		void 0 === t && (t = 1), void 0 === e && (e = ForgeType.Strength);
		var i = t ? t : this._selectedRoleIndex;
		if ((void 0 == i || 0 >= i || i > 3) && (i = 1), this.roleList[i - 1]) {
			if (e == ForgeType.Strength) return this.roleList[i - 1].equipStrengList;
			if (e == ForgeType.Refine) return this.roleList[i - 1].equipRefineList;
			if (e == ForgeType.Cast) return this.roleList[i - 1].equipZhuZaoList;
			if (e == ForgeType.CHUANSHI) return this.roleList[i - 1].equipChuanShiList
		}
		return null
	}, t.prototype.getAllzhuzaoLevel = function() {
		for (var t = App.global.roles.roleList.length, e = 0, i = 0; t > i; i++) {
			var n = this.roleList[i].equipZhuZaoList;
			if (n)
				for (var a = n.length, o = 0; a > o; o++) e += n[o].level
		}
		return e
	}, t.prototype.roleForgeInfos = function(e, i) {
		void 0 === e && (e = 1), void 0 === i && (i = ForgeType.Strength);
		for (var n = this.forgeList(e, i), a = new HashMap, o = 0; o < t.COUNT; o++) {
			for (var r = this.posArr[o], s = -1, h = 0; h < n.length; h++)
				if (n[h] && n[h].pos == r) {
					s = h;
					break
				} if (-1 == s) {
				var l = new ForgeInfo;
				l.level = 0, l.pos = r, a.put(r, l)
			} else a.put(r, n[s])
		}
		return a
	}, t.prototype.getRoleForgeInfo = function(t, e, i) {
		for (var n = this.forgeList(t, i), a = 0; a < n.length; a++)
			if (n[a] && n[a].pos == e) return n[a];
		return null
	}, t.prototype.getRoleFushiInfo = function(t, e) {
		return null
	}, t.prototype.getRoleFushiInfoByType = function(t, e, i) {
		var n, a, o, r, s, h = App.global.roles.getRoleInfoByIndex(t),
			l = h.equipFushiList.length,
			p = [];
		for (n = 0; l > n; n++)
			if (a = h.equipFushiList[n], a.pos == e)
				for (r = a.itemIds.length, o = 0; r > o; o++)
					if (s = null == a.itemIds[o] ? null : App.config.q_equipContainer.getDataBean(a.itemIds[o]), s && s.q_kind == i) {
						p.push(s);
						break
					} return p
	}, t.prototype.addItem = function(t, e, i) {
		this.forgeList(t, i).push(e)
	}, t.prototype.updateRoleForgeInfo = function(t, e, i) {
		for (var n = 0; n < e.length; ++n) {
			var a = e[n],
				o = this.getRoleForgeInfo(t, a.pos, i);
			o ? o.level = a.grade : (o = new ForgeInfo, o.pos = a.pos, o.level = a.grade, this.addItem(t, o, i))
		}
		App.dispatcher.dispatchEvent(ForgeEvent.FORGE_RESULT, t, e, i)
	}, t.prototype.getDataBean = function(t, e, i) {
		return e > 0 ? GameUtil.getEquipForgeConfigData(i, t, e) : null
	}, t.prototype.getAttriName = function(t) {
		switch (t) {
			case EnumEquipType.WU_QI:
				return "q_attri_weapon";
			case EnumEquipType.TOU_KUI:
				return "q_attri_helmet";
			case EnumEquipType.YI_FU:
				return "q_attri_clothes";
			case EnumEquipType.XIANG_LIAN:
				return "q_attri_necklace";
			case EnumEquipType.SHOU_ZHUO:
				return "q_attri_bracelet";
			case EnumEquipType.YAO_DAI:
				return "q_attri_belt";
			case EnumEquipType.JIE_ZHI:
				return "q_attri_ring";
			case EnumEquipType.XIE_ZI:
				return "q_attri_shoe"
		}
	}, t.prototype.getRoleForgePosAttr = function(t, e, i) {
		var n = this.getRoleForgeInfo(t.roleIndex, e, i);
		if (n) {
			var a = this.getDataBean(n.pos, n.level, i);
			if (!a) return "";
			var o = this.getAttriName(n.pos);
			return a[o]
		}
		return ""
	}, t.prototype.getAttrArr = function(t, e, i, n, a) {
		var o = [];
		return i ? (t.job == EnumRole.ZHAN_SHI && i.q_attack_max > 0 ? o.push("物攻上限:" + this.nowSumFiled(t.roleIndex, e,
				"q_attack_max", a)) : t.job == EnumRole.FA_SHI && i.q_magic_attack_max > 0 ? o.push("魔攻上限:" + this.nowSumFiled(t
				.roleIndex, e, "q_magic_attack_max", a)) : t.job == EnumRole.DAO_SHI && i.q_sc_attack_max > 0 && o.push("道攻上限:" +
				this.nowSumFiled(t.roleIndex, e, "q_sc_attack_max", a)), i && i.q_defense_max > 0 && o.push("物防上限:" + this.nowSumFiled(
				t.roleIndex, e, "q_defense_max", a)), i && i.q_magic_defence_max > 0 && o.push("魔防上限:" + this.nowSumFiled(t.roleIndex,
				e, "q_magic_defence_max", a)), i && i.q_hp > 0 && o.push("生命上限:" + this.nowSumFiled(t.roleIndex, e, "q_hp", a))) :
			n && (t.job == EnumRole.ZHAN_SHI && n.q_attack_max > 0 ? o.push("物攻上限:0") : t.job == EnumRole.FA_SHI && n.q_magic_attack_max >
				0 ? o.push("魔攻上限:0") : t.job == EnumRole.DAO_SHI && n.q_sc_attack_max > 0 && o.push("道攻上限:0"), n && n.q_defense_max >
				0 && o.push("物防上限:" + this.nextSumFiled(t.roleIndex, e, "q_defense_max", a)), n && n.q_magic_defence_max > 0 && o
				.push("魔防上限:" + this.nextSumFiled(t.roleIndex, e, "q_magic_defence_max", a)), n && n.q_hp > 0 && o.push("血量上限:" +
					this.nextSumFiled(t.roleIndex, e, "q_hp", a))), o
	}, t.prototype.nowSumFiled = function(t, e, i, n) {
		void 0 === n && (n = -1), -1 != n && (this._currTabSelete = n);
		var a, o = this.getRoleForgeInfo(t, e, this._currTabSelete),
			r = 0;
		return o.level > 0 && (a = this.getDataBean(o.pos, o.level, n), r += a[i]), r
	}, t.prototype.nextSumFiled = function(t, e, i, n) {
		void 0 === n && (n = -1), -1 != n && (this._currTabSelete = n);
		var a, o = this.getRoleForgeInfo(t, e, n),
			r = 0;
		return a = this.getDataBean(o.pos, o.level + 1, n), r += a[i]
	}, t.prototype.getRefineMinLevelPos = function(t, e) {
		for (var i, n, a = App.data.wearEquipCenter.getRoleWearList(t), o = 999, r = -1, s = 0; s < a.length; s++)
			if (i = App.data.forgeCenter.getEquipFunLvHash().get(a[s].position), i && this.isOpenFunOnPos(a[s].position) && -1 !=
				App.data.forgeCenter.posArr.indexOf(a[s].position)) {
				if (n = this.getRoleForgeInfo(t, a[s].position, e), !n) return r = a[s].position;
				var h = n.level;
				o > h && (o = h, r = a[s].position)
			} return r
	}, t.prototype.getEquipFunLvHash = function() {
		if (!this._equipRefineFunLv) {
			this._equipRefineFunLv = new HashObject;
			var t = App.config.q_functionContainer.getDataBean(78),
				e = App.config.q_functionContainer.getDataBean(80),
				i = App.config.q_functionContainer.getDataBean(81),
				n = App.config.q_functionContainer.getDataBean(82),
				a = App.config.q_functionContainer.getDataBean(83),
				o = App.config.q_functionContainer.getDataBean(84),
				r = App.config.q_functionContainer.getDataBean(85),
				s = App.config.q_functionContainer.getDataBean(86);
			this._equipRefineFunLv.put(EnumEquipType.WU_QI, t), this._equipRefineFunLv.put(EnumEquipType.TOU_KUI, e), this._equipRefineFunLv
				.put(EnumEquipType.YI_FU, i), this._equipRefineFunLv.put(EnumEquipType.XIANG_LIAN, n), this._equipRefineFunLv.put(
					EnumEquipType.SHOU_ZHUO, a), this._equipRefineFunLv.put(EnumEquipType.YAO_DAI, o), this._equipRefineFunLv.put(
					EnumEquipType.JIE_ZHI, r), this._equipRefineFunLv.put(EnumEquipType.XIE_ZI, s)
		}
		return this._equipRefineFunLv
	}, t.prototype.isOpenFunOnPos = function(t) {
		var e = this._equipRefineFunLv.get(t);
		return App.global.funcOpen.isFunctionOpen(e.q_function_id)
	}, t.prototype.getPosFushiData = function(t, e) {
		var i, n, a = t.length;
		for (i = 0; a > i; i++)
			if (n = t[i], n && n.pos == e) return i;
		return -1
	}, t.prototype.setFushiId = function(t) {
		var e = [0, 0, 0, 0, 0, 0];
		if (t) {
			var i = void 0,
				n = t.length,
				a = void 0;
			for (i = 0; n > i; i++) a = App.config.q_equipContainer.getDataBean(t[i]), a && (e[a.q_kind - 31] = t[i])
		}
		return e
	}, t.prototype.createFushiInfo = function(t) {
		var e, i, n, a, o, r = (t.length, []);
		for (e = 0; 8 > e; e++) {
			if (i = {
					pos: this.posArr[e],
					itemIds: [0, 0, 0, 0, 0, 0]
				}, o = this.getPosFushiData(t, this.posArr[e]), 0 > o);
			else if (n = t[o]) {
				i.pos = this.posArr[e], i.itemIds = this.setFushiId(n.itemIds), a = n.itemIds.length;
				for (var s = 0; a > s; s++) n.itemIds[s] > this.maxFushiId && (this.maxFushiId = n.itemIds[s])
			}
			r.push(i)
		}
		return r
	}, t.prototype.getFsOpenId = function(t) {
		var e = 106;
		switch (t) {
			case EnumEquipType.WU_QI:
				e = 106;
				break;
			case EnumEquipType.TOU_KUI:
				e = 107;
				break;
			case EnumEquipType.YI_FU:
				e = 108;
				break;
			case EnumEquipType.XIANG_LIAN:
				e = 109;
				break;
			case EnumEquipType.SHOU_ZHUO:
				e = 110;
				break;
			case EnumEquipType.YAO_DAI:
				e = 111;
				break;
			case EnumEquipType.JIE_ZHI:
				e = 112;
				break;
			case EnumEquipType.XIE_ZI:
				e = 113
		}
		return e
	}, t.prototype.fsPosOpen = function(t) {
		return App.global.funcOpen.isFunctionOpen(this.getFsOpenId(t))
	}, t.prototype.showEquipPosRedPoint = function(t, e) {
		for (var i = 0; 6 > i; i++) {
			if (1 == this.showPosRedPointItem(t, e, i)) return !0;
			if (1 == this.showPosRedPointBest(t, e, i)) return !0
		}
		return !1
	}, t.prototype.showPosRedPointBest = function(t, e, i) {
		if (1 == this.fsPosOpen(e)) {
			var n = this.getPosFsInfo(t, e, i),
				a = App.data.bagItemDataCenter.getBagPositionFushiList(i + 31),
				o = App.config.q_itemContainer.getDataBean(n);
			if (!o && a.length) return !0;
			for (var r = a.length, s = 0; r > s; s++) {
				var h = a[s];
				if (h.getDataBean().q_level > o.q_level) return !0
			}
			return !1
		}
		return !1
	}, t.prototype.canOpenChangeView = function(t, e, i) {
		if (1 == this.fsPosOpen(e)) {
			var n = this.getPosFsInfo(t, e, i);
			if (0 >= n)
				for (var a = App.data.bagItemDataCenter.getBagList(BagTag.FUSHI), o = a.length, r = 0; o > r; r++)
					if (GameUtil.getEquipConfigData(a[r].itemId).q_kind == i + 31 && a[r].itemId > n) return !0
		}
		return !1
	}, t.prototype.showPosRedPointItem = function(t, e, i) {
		if (1 == this.fsPosOpen(e)) {
			var n = 0,
				a = void 0,
				o = void 0;
			if (n = this.getPosFsInfo(t, e, i), n > 0 && (a = this.getFushiFuseDataList()[n], a && a.q_equip_next_id > 0 && "" !=
					a.q_consume && (o = StringUtil.JsonParse(a.q_consume)[0], App.data.bagItemDataCenter.getItemCount(o.id) >= o.num)
				)) return !0
		}
		return !1
	}, t.prototype.showRedPoint = function(t) {
		if (void 0 === t && (t = 0), 1 == App.global.funcOpen.isFunctionOpen(105)) {
			var e = t;
			0 == e && (e = this._selectedRoleIndex);
			var i = void 0;
			for (i = 0; 8 > i; i++)
				for (var n = 0; 6 > n; n++) {
					if (1 == this.showPosRedPointBest(e, this.posArr[i], n)) return !0;
					if (1 == this.showPosRedPointItem(e, this.posArr[i], n)) return !0
				}
			return !1
		}
	}, t.prototype.runesUpdateCallBack = function(t) {
		App.dispatcher.dispatchEvent(ForgeEvent.FUSHI_UPDATE, t)
	}, t.prototype.runesWearCallBack = function(t) {
		App.dispatcher.dispatchEvent(ForgeEvent.FUSHI_CHANGE, t)
	}, t.prototype.getFushiFightPower = function() {
		for (var t, e = App.global.roles.roleList[this.selectedRoleIndex - 1], i = e.equipFushiList, n = i.length, a = 0, o =
				0; n > o; o++)
			if (t = i[o])
				for (var r = t.itemIds.length, s = 0; r > s; s++) t.itemIds[s] > 0 && (a += FightPowerUtil.getFightPower([
					GameUtil.getEquipConfigData(t.itemIds[s]).q_add_attribute_client
				]));
		return a
	}, t.prototype.getRoleEquipPosFs = function(t, e) {
		for (var i, n = App.global.roles.roleList[t - 1], a = n.equipFushiList, o = a.length, r = 0; o > r; r++)
			if (i = a[r], i && i.pos == e) return i;
		return i
	}, t.prototype.getPosFsInfo = function(t, e, i) {
		var n = this.getRoleEquipPosFs(t, e);
		return n && i < n.itemIds.length ? n.itemIds[i] : 0
	}, t.prototype.getFushiFuseDataList = function() {
		if (!this._fushiFuseBeanObj) {
			this._fushiFuseBeanObj = new Object;
			for (var t = App.config.q_equip_fuseContainer.list, e = t.length, i = 0; e > i; i++) 8 == t[i].q_fuse_type && (
				this._fushiFuseBeanObj[t[i].q_equip_model_id] = t[i])
		}
		return this._fushiFuseBeanObj
	}, t.prototype.getFushiAttrStr = function(t) {
		t = t.replace("[", ""), t = t.replace("]", "");
		var e = t.split(","),
			i = e[0];
		return i = i.replace("上限", "")
	}, t.prototype.haveItem = function(t, e, i) {
		if (GameUtil.hasEquipForgeConfigData(t, e, i)) {
			if ("" == GameUtil.getEquipForgeConfigData(t, e, i).q_cost_Num) return 0;
			var n = StringUtil.JsonParse(GameUtil.getEquipForgeConfigData(t, e, i).q_cost_Num),
				a = n[0].num,
				o = (n[0].id, App.data.bagItemDataCenter.getItemCount(n[0].id)),
				r = o / a;
			if (r >= 1) return r
		}
		return 0
	}, t.prototype.canForgeRole = function(t, e) {
		for (var i, n, a = this.roleForgeInfos(t, e), o = 0; 8 > o; o++)
			if (i = a.get(this.posArr[o]), e == ForgeType.Refine) {
				if (n = App.data.forgeCenter.getEquipFunLvHash().get(i.pos), n && this.isOpenFunOnPos(i.pos) && this.haveItem(e,
						i.pos, i.level + 1) > 0) return !0
			} else if (this.haveItem(e, i.pos, i.level + 1) > 0) return !0;
		return !1
	}, t.prototype.canForge = function(t) {
		for (var e = App.global.roles.roleList, i = 1; i < e.length + 1; i++)
			if (1 == this.canForgeRole(i, t)) return !0;
		return !1
	}, t.COUNT = 8, t
}();
__reflect(ForgeCenter.prototype, "ForgeCenter");
var ForgeData = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e._strengMax = 15, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "godStoveMax", {
		get: function() {
			return this._godStoveMax
		},
		set: function(t) {
			this._godStoveMax = t, App.dispatcher.dispatchEvent(PlayerAttributeEvent.GOD_LAYER_CHANGE)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "equipStrengthMax", {
		get: function() {
			return this._equipStrengthMax
		},
		set: function(t) {
			this._equipStrengthMax != t && (t > this._strengMax ? this._equipStrengthMax = this._strengMax : this._equipStrengthMax =
				t, App.dispatcher.dispatchEvent(ForgeEvent.EQUIPSTRENGMAXCHANGE))
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(ForgeData.prototype, "ForgeData");
var ForgeInfo = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.pos = 0, e.level = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(ForgeInfo.prototype, "ForgeInfo");
var FriendCenter = function() {
	function t() {
		this.friendList = [], this.blackList = [], this.tuijianList = [], this.setBlackList(), this.setFriendList(), this.setTuijianList()
	}
	return t.prototype.setFriendList = function() {
		this.friendList = [];
		for (var t = 0; 20 > t; t++) {
			var e = new FriendVo(!0, "玩家" + t, t + 10, t + 1, "删除");
			this.friendList.push(e)
		}
	}, t.prototype.setBlackList = function() {
		this.blackList = [];
		for (var t = 0; 0 > t; t++) {
			var e = new FriendVo(!1, "玩家" + t, t + 10, t + 1, "删除");
			this.blackList.push(e)
		}
	}, t.prototype.setTuijianList = function() {
		this.tuijianList = [];
		for (var t = 0; 20 > t; t++) {
			var e = new FriendVo(!0, "玩家" + t, t + 10, t + 1, "加好友");
			this.tuijianList.push(e)
		}
	}, t.prototype.getSearchList = function(t, e) {
		for (var i = [], n = this.getFriendListByIndex(e), a = 0; a < n.length; a++) {
			var o = n[a];
			o.name == t && i.push(o)
		}
		return i
	}, t.prototype.getFriendListByIndex = function(t) {
		switch (t) {
			case 1:
				return this.friendList;
			case 2:
				return this.tuijianList;
			case 3:
				return this.blackList;
			default:
				return this.friendList
		}
	}, t
}();
__reflect(FriendCenter.prototype, "FriendCenter");
var FriendVo = function() {
	function t(t, e, i, n, a) {
		this.isOnline = t, this.name = e, this.lv = i, this.zsLv = n, this.lbInfo = a
	}
	return t
}();
__reflect(FriendVo.prototype, "FriendVo");
var GMCenter = function() {
	function t() {}
	return Object.defineProperty(t.prototype, "troleName", {
		get: function() {
			return this._troleName || (this._troleName = ""), " trolename=" + this._troleName
		},
		set: function(t) {
			this._troleName = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "troleNameValue", {
		get: function() {
			return this._troleName ? this._troleName : ""
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(GMCenter.prototype, "GMCenter");
var GuildCenter = function() {
	function t() {
		this.autoAgree = -1, this.isForceToMember = !1, this.isForceToApply = !1, this.quickApplyTime = 3, this.BUFFMODELID =
			9300, this.inviteHash = new HashMap, this.cangkuSelect = [], this.roleGuildTrainList = [null, null, null], this.skillList = [],
			this.shopList = [], this.fightHzId = 3601, this._dataObj = {}, this.count = 0, this._eventObj = {}, this._isPlaying = !
			1, this.guildEquipLogList = []
	}
	return t.prototype.isCanAcceptApply = function() {
		return this.hasGuild() && null != this.myGuildInfo && this.myGuildInfo.myPosition != EnumGuild.COMMON && this.myGuildInfo
			.myPosition != EnumGuild.JING_YING ? !0 : !1
	}, t.prototype.isCanShenhe = function() {
		return !this.hasGuild() || null == this.myGuildInfo || this.myGuildInfo.myPosition != EnumGuild.HUI_ZHANG && this.myGuildInfo
			.myPosition != EnumGuild.FU_HUI_ZHANG ? !1 : !0
	}, t.prototype.isUseNewRule = function() {
		var t = GameUtil.getGlobalConfigData(128);
		return null != t ? null != t.q_string_value && t.q_string_value.length > 0 : !1
	}, t.prototype.showRed = function() {
		return this.applyList && this.applyList.length > 0 && this.myGuildInfo.myPosition >= EnumGuild.ZHANG_LAO ? !0 : 1 ==
			App.data.castleWarCenter.dayRewardShow() ? !0 : 1 == App.data.castleWarCenter.shabakShow() ? !0 : 1 == this.guildBossRed() ?
			!0 : !1
	}, t.prototype.guildBossRed = function() {
		var t = -1,
			e = App.data.zoneCenter.getList(EnumZoneType.GUILD_BOSS, !1);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = App.data.boss.getZoneBoss(e[i].id);
				if (null != n && e[i].zonedata2 && -1 == t && 0 == n.hp) {
					var a = StringUtil.JsonParse(e[i].zonedata2).hasWeekReward;
					0 == a && (t = i)
				}
			}
		return App.data.boss.getZoneCount(EnumZoneType.GUILD_BOSS) > 0 || -1 != t ? !0 : !1
	}, Object.defineProperty(t.prototype, "guildList", {
		get: function() {
			return this._guildList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getGuildListRank = function(t) {
		for (var e = this._guildList.length, i = 0; e > i; i++)
			if (this._guildList[i].guildName == t) return i;
		return 0
	}, t.prototype.loadGuilds = function(t) {
		if (this._guildList = [], null != t && void 0 != t) {
			for (var e, i = t.length, n = 0; i > n; n++) e = t[n], App.global.characterData && e.serverId == App.global.characterData
				.serverid && (1 == e.isKingGuild, this._guildList.push(e));
			this._guildList.sort(this.sortGuildFunc)
		}
	}, t.prototype.sortGuildFunc = function(t, e) {
		return t.guildLevel > e.guildLevel ? -1 : LongUtil.toNumber(t.totalFightPower) > LongUtil.toNumber(e.totalFightPower) ?
			-1 : 1
	}, t.prototype.changeGuildApplyState = function(t) {
		if (!this.hasGuild() && null != this._guildList)
			for (var e = t.length, i = this._guildList.length, n = 0; e > n; n++)
				for (var a = 0; i > a; a++)
					if (this._guildList[a].guildName == t[n].guildName) {
						this._guildList[a].applyState = t[n].applyState;
						break
					}
	}, t.prototype.isTempGuild = function() {
		if (null != this._memberList)
			for (var t, e = this._memberList.length, i = 0; e > i; i++)
				if (t = this._memberList[i], t.guildPosition == EnumGuild.HUI_ZHANG) return t.isTmp > 0;
		return !0
	}, Object.defineProperty(t.prototype, "memberList", {
		get: function() {
			return this._memberList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.loadMembers = function(t) {
		this.isHasTemp = !1;
		var e = t.length;
		this._memberList = [];
		for (var i = 0; e > i; i++) this._memberList.push(t[i]), this.isHasTemp || t[i].isTmp > 0 && (this.isHasTemp = !0);
		this._memberList.sort(this.sortMembers)
	}, t.prototype.sortMembers = function(t, e) {
		return 0 == t.online && 0 == e.online || t.online > 0 && e.online > 0 ? t.guildPosition > e.guildPosition ? -1 : t.guildPosition ==
			e.guildPosition && t.fightPower > e.fightPower ? -1 : 1 : 0 == t.online ? -1 : (0 == e.online, 1)
	}, t.prototype.changeMember = function(t, e) {
		if (null != this._memberList)
			for (var i = e.playerId.toString(), n = this._memberList.length, a = 0; n > a; a++)
				if (this._memberList[a].playerId.toString() == i) {
					if (0 == t) return this._memberList.splice(a, 1), !0;
					if (2 == t) {
						if (this._memberList[a] = e, e.guildPosition != EnumGuild.COMMON) {
							var o = this.getTempMemberByPos(e.guildPosition); - 1 != o && this._memberList.splice(o, 1)
						}
						return e.playerId.toString() == App.global.characterData.personId && null != this.myGuildInfo && (this.myGuildInfo
							.myPosition = e.guildPosition), this._memberList.sort(this.sortMembers), !0
					}
				} return !1
	}, t.prototype.getTempMemberByPos = function(t) {
		for (var e = this._memberList.length, i = 0; e > i; i++)
			if (this._memberList[i].guildPosition == t && this._memberList[i].isTmp > 0) return i;
		return -1
	}, t.prototype.getOnlineMembers = function() {
		if (null != this._memberList)
			for (var t = [], e = this._memberList.length, i = 0; e > i; i++) 0 == this._memberList[i].online && t.push(this._memberList[
				i]);
		return t
	}, Object.defineProperty(t.prototype, "logList", {
		get: function() {
			return this._logList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.loadLogs = function(t) {
		var e = t.length;
		this._logList = [];
		for (var i = 0; e > i; i++) this._logList.push(t[i])
	}, Object.defineProperty(t.prototype, "applyList", {
		get: function() {
			return this._applyList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.loadApplys = function(t) {
		if (this._applyList = [], t) {
			for (var e = t.length, i = 0; e > i; i++) this._applyList.push(t[i]);
			this._applyList.sort(this.sortApp)
		}
	}, t.prototype.sortApp = function(t, e) {
		return t.applyTime > e.applyTime ? -1 : 1
	}, t.prototype.dealApplys = function(t) {
		if (this.hasGuild() && null != this._applyList && null != t)
			for (var e = t.length, i = this._applyList.length, n = 0; e > n; n++)
				for (var a = 0; i > a; a++)
					if (this._applyList[a] && t[n] && this._applyList[a].playerName == t[n].playerName) {
						this._applyList.splice(a, 1);
						break
					}
	}, t.prototype.hasGuild = function() {
		var t = App.global.characterData;
		return null != t && null != t.guildId && "" != t.guildId && "0" != t.guildId ? !0 : !1
	}, t.prototype.getPersonNum = function(t) {
		void 0 === t && (t = 1);
		var e = App.config.q_guildContainer.getDataBean(t);
		return e.q_number
	}, t.prototype.getShopItem = function(t) {
		for (var e = this.shopList.length, i = 0; e > i; i++)
			if (this.shopList[i].sellId == t) return this.shopList[i];
		return null
	}, t.prototype.setShopItem = function(t) {
		for (var e = this.shopList.length, i = 0; e > i; i++) this.shopList[i].sellId == t.sellId && (this.shopList[i] = t,
			App.dispatcher.dispatchEvent(GuideEvent.REFRESH_GUILDMALL))
	}, t.prototype.setRoleGuild = function(t) {
		this.roleGuildTrainList[t.index - 1] = t, App.dispatcher.dispatchEvent(GuildLiangongPanel.UPDATE_VIEW_LIST)
	}, t.prototype.getRoleGuildTrain = function(t) {
		return this.roleGuildTrainList[t - 1]
	}, t.prototype.getNextGuildSkillVo = function(t, e) {
		var i = App.config.q_trainContainer.getDataBean(t);
		return i.q_kind == e ? i : null
	}, t.prototype.updateSelectGridRenderData = function(t, e) {
		var i = this.cangkuSelect.lastIndexOf(t);
		e ? -1 == i && this.cangkuSelect.push(t) : -1 != i && this.cangkuSelect.splice(i, 1), App.dispatcher.dispatchEvent(
			ItemEvent.GUILD_JUANXIANSELECT_UPDATE)
	}, t.prototype.addGuildCangku = function(t) {
		t.successiTemId
	}, t.prototype.loadItems = function(t) {
		for (var e, i = t.length, n = 0; i > n; n++) e = this._dataObj[LongUtil.toString(t[n].itemId)], e ? e.count = t[n].num :
			(e = new ItemData(t[n]), null != e.bean && (this._dataObj[e.id] = e, this.count++));
		App.dispatcher.dispatchEvent(ItemEvent.GUILD_LOAD)
	}, t.prototype.getData = function(t) {
		return this._dataObj[t]
	}, t.prototype.addItem = function(t) {
		for (var e, i = t.length, n = 0; i > n; n++) e = this._dataObj[LongUtil.toString(t[n].itemId)], e || (e = new ItemData(
			t[n]), null == e.bean || e.count <= 0 || (this._dataObj[e.id] = e, this.count++));
		this.eventCallLater(ItemEvent.GUILD_CANGKU_UPDATE)
	}, t.prototype.removeItem = function(t) {
		for (var e, i = t.length, n = 0; i > n; n++) e = LongUtil.toString(t[n]), this._dataObj[e] ? (delete this._dataObj[
			e], this.count--) : console.log("cccccc");
		this.eventCallLater(ItemEvent.GUILD_CANGKU_REMOVE)
	}, t.prototype.getList = function() {
		var t = [];
		for (var e in this._dataObj) t.push(this._dataObj[e]);
		return t.sort(this.sortFunc), t
	}, t.prototype.hasItem = function(t) {
		for (var e in this._dataObj) {
			var i = this._dataObj[e];
			if (i.id == t) return !0
		}
		return !1
	}, t.prototype.sortFunc = function(t, e) {
		var i = t.bean.q_zhuanshen,
			n = e.bean.q_zhuanshen,
			a = t.getEquipDataBean().q_score,
			o = e.getEquipDataBean().q_score;
		return i > App.global.characterData.zhuanSheng && (i = i - App.global.characterData.zhuanSheng - 100), n > App.global
			.characterData.zhuanSheng && (n = n - App.global.characterData.zhuanSheng - 100), n == i ? o - a : n - i
	}, t.prototype.eventCallLater = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		this._eventObj[t] = e, this._isPlaying || (App.timer.doTimeOnce(this, 200, this.onCallLater), this._isPlaying = !0)
	}, t.prototype.onCallLater = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		this._isPlaying = !1;
		for (var n in this._eventObj) App.dispatcher.dispatchEvent(n, this._eventObj[n]), delete this._eventObj[n]
	}, t.prototype.setGuildEquipLog = function() {}, t.prototype.getGuildEquipLog = function() {
		return this.guildEquipLogList
	}, t
}();
__reflect(GuildCenter.prototype, "GuildCenter");
var GuildEquipData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(GuildEquipData.prototype, "GuildEquipData");
var GuildInfo = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.guildMoney = 0, e.practiceLevel = 0, e.shopLevel = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(GuildInfo.prototype, "GuildInfo");
var GuildNameCenter = function() {
	function t() {
		this._guildNameHash = new HashObject, this._guildNameRequestHash = new HashObject
	}
	return t.prototype.removeGuildNameRequets = function(t, e) {
		var i = this._guildNameRequestHash.get(t);
		i && i.del(e)
	}, t.prototype.getGuildName = function(t) {
		var e = "";
		return this._guildNameHash.has(t) && (e = this._guildNameHash.get(t)), e
	}, t.prototype.getGuildNameById = function(t, e) {
		var i = "";
		if (this._guildNameHash.has(t)) i = this._guildNameHash.get(t), e.exec(t, i);
		else {
			var n = this._guildNameRequestHash.get(t);
			n ? 0 == n.has(e) && n.put(e, e) : (n = new HashMap, n.put(e, e), this._guildNameRequestHash.put(t, n))
		}
	}, t.prototype.setGuildList = function(t) {
		if (t)
			for (var e = t.length, i = 0; e > i; i++) {
				var n = t[i],
					a = n.guildId.toString(),
					o = n.guildName;
				this.addGuildName(a, o)
			}
	}, t.prototype.addGuildName = function(t, e) {
		if (this._guildNameHash.put(t, e), this._guildNameRequestHash.has(t))
			for (var i = this._guildNameRequestHash.get(t), n = i.values, a = n.length, o = 0; a > o; o++) {
				var r = n[o];
				r.exec(t, e)
			}
	}, t.prototype.removeGuildName = function(t) {
		this._guildNameHash.has(t) && this._guildNameHash.del(t), this._guildNameRequestHash.has(t) && this._guildNameRequestHash
			.del(t)
	}, t
}();
__reflect(GuildNameCenter.prototype, "GuildNameCenter");
var LunhuiEquipData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(LunhuiEquipData.prototype, "LunhuiEquipData");
var BagItemCenter = function() {
	function t() {
		this._dataObj = {}, this._typeObj = {}, this._countObj = {}, this.GetEquipKey = function() {
			var t = [],
				e = {},
				i = App.global.characterData.recoverySettingData;
			e = {
				0: i.whiteEquips,
				1: i.greenEquips,
				3: i.purpleEquips,
				4: i.orangeEquips,
				5: i.redEquips
			};
			var n = Object.keys(e);
			return n.map(function(i) {
				var n = e[i];
				n && t.push(i)
			}), t
		}, this.GetFilterNoOwnEquips = function(t) {
			if (App.global.characterData.recoverySettingData.stayEquips) {
				var e = Object.keys(t);
				e.length > 0 && e.map(function(e) {
					t[e].sort(function(t, e) {
						return e.getEquipDataBean().q_score - t.getEquipDataBean().q_score
					});
					var i = [],
						n = [];
					t[e].map(function(t, e) {
						-1 == i.indexOf(t.getEquipDataBean().q_kind) && (i.push(t.getEquipDataBean().q_kind), n.push(t))
					}), n.map(function(i) {
						var n = t[e].indexOf(i); - 1 != n && t[e].splice(n, 1)
					})
				})
			}
		}, this.fenjiTYPE = 1, this.fenjiAdvanceTYPE = 0
	}
	return t.prototype.isFull = function() {
		return this.equipCount >= this.equipBagCapacity - 20
	}, t.prototype.loadDatas = function(t, e, i) {
		this._dataObj = {}, this._typeObj = {}, this._countObj = {}, this.equipCount = 0, this.equipBagCapacity = e, this.ybBuyCount =
			i, t && t.length > 0 && this.addDatas(t, 1), App.dispatcher.dispatchEvent(ItemEvent.UPDATE)
	}, t.prototype.addDatas = function(t, e, i) {
		void 0 === e && (e = 0), void 0 === i && (i = !1);
		for (var n, a, o = [], r = t.length, s = 0; r > s; s++) a = new ItemData(t[s]), null != a.bean && (a.actionType = 1,
			n = this._typeObj[a.tag], null == n && (n = {}, this._typeObj[a.tag] = n), n[a.id] = a, 0 == a.tag && this.equipCount++,
			null != this._countObj[a.itemId] ? this._countObj[a.itemId] += a.count : this._countObj[a.itemId] = a.count, this
			._dataObj[a.id] = a, o.push(a));
		i && App.dispatcher.dispatchEvent(ItemEvent.ADD, o, e)
	}, t.prototype.changeDatas = function(t, e) {
		for (var i, n, a = [], o = t.length, r = 0; o > r; r++) n = t[r], i = this._dataObj[LongUtil.toString(n.itemId)],
			null != i && (null != this._countObj[i.itemId] ? this._countObj[i.itemId] = this._countObj[i.itemId] - i.count + n
				.itemNum : this._countObj[i.itemId] = i.count, i.count = n.itemNum, i.isbind = 1 == n.isbind, a.push(i));
		a.length > 0 && App.dispatcher.dispatchEvent(ItemEvent.CHANGE, a, e)
	}, t.prototype.removeDatas = function(t, e) {
		for (var i, n, a, o = [], r = t.length, s = 0; r > s; s++) {
			if (a = LongUtil.toString(t[s]), n = this._dataObj[a], null == n) return;
			0 == n.tag && this.equipCount--, o.push(n), i = this._typeObj[n.tag], null != i && (i[a] = null, delete i[a]),
				null != this._countObj[n.itemId] && (this._countObj[n.itemId] -= n.count), this._dataObj[a] = null, delete this._dataObj[
					a]
		}
		o.length > 0 && App.dispatcher.dispatchEvent(ItemEvent.REMOVE, o)
	}, t.prototype.getData = function(t) {
		return this._dataObj[t]
	}, t.prototype.getItemIDData = function(t) {
		var e;
		for (var i in this._dataObj)
			if (e = this._dataObj[i], e && e.itemId == t) return e;
		return null
	}, t.prototype.getAllPropItemByItemId = function(t) {
		for (var e, i = [], n = this.getBagList(BagTag.PROP), a = n.length, o = 0; a > o; o++) e = n[o], e.itemId == t && i
			.push(e);
		return i
	}, t.prototype.getPosGodEquip = function(t) {
		var e = this.getPropItemList(50),
			i = [];
		if (!e || 0 == e.length) return i;
		for (var n, a = 0; a < e.length; a++) n = e[a], n && n.getEquipDataBean().q_kind == t && i.push(n);
		return i
	}, t.prototype.getPropItemList = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n, a = this.getBagList(BagTag.PROP), o = a.length, r = [], s = 0; o > s; s++) i = a[s], i && (n = i.getDataBean(),
			n && n.q_type == t && (0 == e || e == n.q_child_type) && r.push(i));
		return r
	}, t.prototype.getEquipItemList = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n, a = this.getBagList(BagTag.EQUIP), o = a.length, r = [], s = 0; o > s; s++) i = a[s], i && (n = i.getDataBean(),
			n && n.q_type == t && (0 == e || e == n.q_child_type) && r.push(i));
		return r
	}, t.prototype.getAdvanceEquipByType = function(t) {
		for (var e, i = this.getBagList(BagTag.PROP), n = i.length, a = [], o = 0; n > o; o++) e = i[o], e && App.data.advanceDataCenter
			.getAdvanceEquipType(e.itemId) == t && a.push(e);
		return a
	}, t.prototype.getZhiShengDan = function(t) {
		for (var e = App.data.bagItemDataCenter.getPropItemList(55), i = [], n = 0; n < e.length; ++n) {
			var a = e[n];
			t != a.itemId || a.isLostTime || i.push(a)
		}
		return i.sort(this.danSort), i[0]
	}, t.prototype.danSort = function(t, e) {
		return t.lostTime < e.lostTime ? -1 : t.lostTime > e.lostTime ? 1 : 0
	}, t.prototype.hasItem = function(t) {
		return t ? null != this._dataObj[t.id] : !1
	}, t.prototype.getItemCount = function(t, e) {
		return void 0 === e && (e = !1), null != this._countObj[t] ? this._countObj[t] : 3 == GameUtil.getItemConfigData(t)
			.q_type ? App.data.currencyDataCenter.getMoney(GameUtil.getItemConfigData(t).q_type) : 0
	}, t.prototype.getBagList = function(t, e) {
		void 0 === e && (e = !1);
		var i = [],
			n = this._typeObj[t];
		if (n)
			for (var a in n) i.push(n[a]);
		return e && (t == BagTag.EQUIP ? i.sort(this.sortScoreFunc) : t == BagTag.PET_EGG ? i.sort(this.sortPetEggFunc) : i
			.sort(this.sortFunc)), i
	}, t.prototype.canDonate = function(t) {
		return App.config.q_ware_houseContainer.hasDataBean(t)
	}, t.prototype.getBagListByZhuanshengAndColor = function(t, e, i, n) {
		void 0 === n && (n = !0);
		var a = [],
			o = this._typeObj[t];
		if (o)
			for (var r in o) {
				var s = o[r];
				s.bean.q_zhuanshen > App.global.characterData.zhuanSheng && this.canDonate(s.itemId) ? a.push(s) : s.bean.q_zhuanshen <=
					e && this.canDonate(s.itemId) && a.push(s)
			}
		return n && (t == BagTag.EQUIP ? a.sort(this.sortScoreFunc) : t == BagTag.PET_EGG ? a.sort(this.sortPetEggFunc) : a
			.sort(this.sortFunc)), a
	}, t.prototype.sortPetEggFunc = function(t, e) {
		return t.bean.q_default > e.bean.q_default ? -1 : 1
	}, t.prototype.sortScoreFunc = function(t, e) {
		return t.getEquipDataBean().q_score > e.getEquipDataBean().q_score ? -1 : 1
	}, t.prototype.sortFunc = function(t, e) {
		return 7 == t.type && 7 != e.type ? -1 : 7 != t.type && 7 == e.type ? 1 : t.position < e.position ? -1 : 1
	}, t.prototype.getRecoveryEquips = function() {
		for (var t, e, i, n, a = [], o = App.data.forgeCenter.posArr, r = o.length, s = new HashObject, h = [], l = (App.global
				.characterData.sex, []), p = [], c = {}, _ = 1; 3 >= _; _++)
			if (t = App.global.roles.getRoleDataByJob(_)) {
				p.push(t.job);
				for (var d = 0; r > d; d++) i = App.data.wearEquipCenter.getRoleWearData(o[d], t.roleIndex), i && (s.put(_ / 10 +
					o[d], i), h.push(i))
			} else l.push(_);
		var u = this.GetEquipKey(),
			g = this._typeObj[BagTag.EQUIP],
			f = function() {
				if (n = g[m], null == n || null == n.getDataBean() || null == n.getEquipDataBean()) return "continue";
				if (u.length > 0) {
					var t = !0;
					if (u.map(function(e) {
							n.getDataBean().q_default == e && (t = !1)
						}), t) return "continue"
				}
				var i = App.global.characterData.recoverySettingData;
				return i.metemFilter && n.bean.q_zhuanshen > i.metemFilter ? "continue" : -1 == o.indexOf(n.getEquipDataBean().q_kind) ?
					(a.push(n), "continue") : 0 == n.getDataBean().q_job ? (a.push(n), "continue") : (-1 != l.indexOf(n.getDataBean()
						.q_job) && (c[n.getDataBean().q_job] ? c[n.getDataBean().q_job].push(n) : (c[n.getDataBean().q_job] = [], c[n.getDataBean()
						.q_job].push(n))), e = s.get(n.getDataBean().q_job / 10 + n.getEquipDataBean().q_kind), void(e ? n.getEquipDataBean() &&
						e.getEquipDataBean().q_score >= n.getEquipDataBean().q_score ? i.stayEquips && l.length > 0 ? -1 == l.indexOf(
							n.getDataBean().q_job) && a.push(n) : a.push(n) : (-1 == h.indexOf(e) && (i.stayEquips && l.length > 0 ? -1 ==
							l.indexOf(n.getDataBean().q_job) && a.push(e) : a.push(e)), s.put(n.getDataBean().q_job / 10 + n.getEquipDataBean()
							.q_kind, n)) : s.put(n.getDataBean().q_job / 10 + n.getEquipDataBean().q_kind, n)))
			};
		for (var m in g) f();
		this.GetFilterNoOwnEquips(c);
		for (var v in c) c[v].map(function(t) {
			a.push(t)
		});
		return a
	}, t.prototype.getAllTypeProp = function(t) {
		for (var e, i = [], n = this.getBagList(BagTag.PROP), a = n.length, o = 0; a > o; o++) e = n[o], e.type == t && i.push(
			e);
		return i
	}, t.prototype.getAllLunhuiJobEquip = function(t) {
		for (var e, i = this.getAllTypeProp(30), n = [], a = i.length, o = 0; a > o; o++) e = i[o], e.bean.q_job == t && e.bean
			.q_lunhui <= App.data.characterCenter.lunhuiLevel && n.push(e);
		return n
	}, t.prototype.getAllLunhuiJobKind = function(t, e) {
		for (var i, n = this.getAllTypeProp(30), a = [], o = n.length, r = 0; o > r; r++) i = n[r], i.bean.q_job == e && i.getEquipDataBean()
			.q_kind == t && i.bean.q_lunhui <= App.data.characterCenter.lunhuiLevel && a.push(i);
		return a
	}, t.prototype.getAllJobKind = function(t, e, i) {
		for (var n, a = this.getAllTypeProp(30), o = [], r = a.length, s = 0; r > s; s++) n = a[s], n.itemId <= t && n.bean
			.q_job == i && n.getEquipDataBean().q_kind == e && o.push(n);
		return o
	}, t.prototype.getHeightRexue = function(t, e, i, n) {
		void 0 === n && (n = 0);
		for (var a = this.getAllTypeProp(88), o = a.length, r = "0", s = 0; o > s; s++) {
			var h = a[s].bean,
				l = a[s].getEquipDataBean();
			h.q_id > t && l.q_kind == e && (0 == h.q_sex || h.q_sex == n) && h.q_zhuanshen <= App.global.characterData.zhuanSheng &&
				(r = a[s].id, t = a[s].itemId)
		}
		return r
	}, t.prototype.getHeightGod = function(t, e, i, n) {
		void 0 === n && (n = 0);
		for (var a = this.getAllTypeProp(50), o = a.length, r = "0", s = 0; o > s; s++) {
			var h = a[s].bean,
				l = a[s].getEquipDataBean();
			h.q_id > t && l.q_kind == e && (0 == h.q_sex || h.q_sex == n) && h.q_zhuanshen <= App.global.characterData.zhuanSheng &&
				(r = a[s].id, t = a[s].itemId)
		}
		return r
	}, t.prototype.getHeightLunhui = function(t, e, i) {
		for (var n = this.getAllTypeProp(30), a = n.length, o = "0", r = 0; a > r; r++) {
			var s = n[r].bean,
				h = n[r].getEquipDataBean();
			s.q_id > t && i == s.q_job && h.q_kind == e && s.q_lunhui <= App.data.characterCenter.lunhuiLevel && (o = n[r].id,
				t = n[r].itemId)
		}
		return o
	}, t.prototype.getHeightGodWing = function(t, e) {
		for (var i = this.getAllTypeProp(t), n = i.length, a = 0, o = 0; n > o; o++) {
			var r = i[o].getEquipDataBean();
			r.q_id > a && e == r.q_kind && (a = r.q_id)
		}
		return a
	}, t.prototype.getFirstEmptyPosition = function() {
		return -1
	}, t.prototype.getGridCountLimit = function() {
		return void 0 == this._gridCountLimit && (this._gridCountLimit = App.config.q_globalContainer.getDataBean(236).q_int_value),
			this._gridCountLimit
	}, t.prototype.getYbBuyCountLimit = function() {
		return void 0 == this._ybBuyCountLimit && (this._ybBuyCountLimit = App.config.q_globalContainer.getDataBean(237).q_int_value),
			this._ybBuyCountLimit
	}, Object.defineProperty(t.prototype, "ybBuyCount", {
		get: function() {
			return this._ybBuyCount
		},
		set: function(t) {
			this._ybBuyCount = t, this._buyTimes = Math.floor(t / 10)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.buyValue = function(t) {
		var e = Math.floor(t / 10) + this._buyTimes,
			i = 60,
			n = 20,
			a = this._buyTimes;
		return e * i + e * (e - 1) / 2 * n - (a * i + a * (a - 1) / 2 * n)
	}, t.prototype.getQualityEquipList = function(t) {
		for (var e = this.getBagList(BagTag.EQUIP), i = [], n = 0; n < e.length; n++) e[n].getDataBean().q_default == t &&
			i.push(e[n]);
		return i
	}, t.prototype.getBagPositionEquipList = function(t) {
		var e, i = this._typeObj[BagTag.EQUIP],
			n = [];
		for (var a in i) e = i[a], e.getEquipDataBean().q_kind == t && n.push(e);
		return n
	}, t.prototype.getBagPositionAdvanceEquipList = function(t) {
		var e, i = this._typeObj[BagTag.PROP],
			n = [];
		for (var a in i) e = i[a], App.data.advanceDataCenter.isAdvanceEquipType(e.getDataBean().q_type) && e.getEquipDataBean()
			.q_kind == t && n.push(e);
		return n
	}, t.prototype.getAllCanChangeAdvanceEquips = function(t, e, i) {
		var n = [],
			a = App.data.advanceDataCenter.getProxyByType(t, e),
			o = a.getEquipDataByPos(i);
		if (o) {
			var r = new ItemData;
			r.itemId = o.itemId, n.push(r)
		}
		for (var s, h = this.getBagList(BagTag.PROP, !0), l = h.length, p = 0; l > p; ++p) s = h[p], App.data.advanceDataCenter
			.isAdvanceEquipType(s.getDataBean().q_type) && s.getEquipDataBean().q_kind == i && (App.global.itemUse.isMatchBaseCondition(
				h[p], !1) ? n.push(s) : s.getDataBean().q_default == EnumNumber.gold && n.push(s));
		return n
	}, t.prototype.getAllCanChangeEquips = function(t) {
		var e = App.data.wearEquipCenter.getRoleWearData(t, App.global.characterData.selectindex),
			i = [];
		e && i.push(e);
		for (var n, a = this.getBagList(BagTag.EQUIP, !0), o = a.length, r = 0; o > r; ++r) n = a[r], n.getEquipDataBean().q_kind ==
			t && (App.global.itemUse.isMatchBaseCondition(a[r], !1) ? i.push(n) : n.getDataBean().q_default == EnumNumber.gold &&
				i.push(n));
		return i
	}, t.prototype.getAllCanChangeFaBaoEquips = function(t, e) {
		var i = App.data.characterCenter.getFaBaoByPart(t, e),
			n = [];
		i && n.push(i);
		for (var a, o = this.getBagList(BagTag.PROP, !0), r = o.length, s = 0; r > s; ++s) a = o[s], a.getEquipDataBean() &&
			a.getEquipDataBean().q_kind == e && (App.global.itemUse.isMatchBaseCondition(o[s], !1) ? n.push(a) : a.getDataBean()
				.q_default == EnumNumber.gold && n.push(a));
		return n
	}, t.prototype.getAllCanHeChengFaBaoEquip = function() {
		for (var t, e = [], i = this.getBagList(BagTag.PROP, !0), n = i.length, a = 0; n > a; ++a) t = i[a], 31 == t.getDataBean()
			.q_type && t.getEquipDataBean() && t.getEquipDataBean().q_xingj < 3 && e.push(t);
		return e
	}, t.prototype.getAllEquipInPropByPos = function(t) {
		var e, i = this._typeObj[BagTag.PROP],
			n = [];
		for (var a in i) e = i[a], e.getEquipDataBean() && e.getEquipDataBean().q_kind == t && n.push(e);
		return n
	}, t.prototype.addLimit = function(t, e) {
		null == this._itemCountLimit && (this._itemCountLimit = {}), this._itemCountLimit[t] = e
	}, t.prototype.clearLimit = function() {
		this._itemCountLimit = {}
	}, t.prototype.getItemRemainNum = function(t) {
		if (null != this._itemCountLimit) {
			var e = GameUtil.getItemConfigData(t);
			return null != e && e.q_limit_use_time > 0 && e.q_use_group > 0 ? this._itemCountLimit[e.q_use_group] : 1
		}
		return 0
	}, t.prototype.getShowPoint = function() {
		return this.isFull() ? !0 : this.hasLiBao() ? !0 : !1
	}, t.prototype.hasLiBao = function() {
		var t, e = this._typeObj[BagTag.PROP];
		for (var i in e)
			if (t = e[i], t && 7 == t.getDataBean().q_type && this.getItemRemainNum(t.itemId) > 0 && App.global.itemUse.isMatchUseCondition(
					t, !1) && !App.global.itemUse.hasClick(t.itemId)) return !0;
		return !1
	}, t.prototype.getBagPositionFushiList = function(t) {
		for (var e, i = [], n = this.getBagList(BagTag.FUSHI), a = n.length, o = 0; a > o; o++) e = n[o], t == e.getEquipDataBean()
			.q_kind && i.push(e);
		return i
	}, t.COL = 5, t
}();
__reflect(BagItemCenter.prototype, "BagItemCenter");
var BagTag;
! function(t) {
	t[t.EQUIP = 0] = "EQUIP", t[t.PROP = 1] = "PROP", t[t.FUSHI = 2] = "FUSHI", t[t.PET_EGG = 3] = "PET_EGG"
}(BagTag || (BagTag = {}));
var ItemData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.int64Id = null, i.itemId = 0, i.position = 0, i.count = 0, i.lostTime = 0, i.openItemTime = 0, i.gradeNum =
			0, i.gradeFailNum = 0, i.luck = 0, i.engraveExp = 0, i.equipStrengthMax = 0, i.equipEngraveMax = 0, i.durable = 0,
			i.actionType = -1, i.creatorName = "", i.showCompleteCount = !1, i.warpetSpecialAttributes = [], i.tag = -1, i.theNum =
			1, i.equipTypeArr = [1, 35, 34, 39, 30, 47, 46, 45, 44, 43, 88, 50, 31], i.qianghua = 0, i.zhuzao = 0, i.convert(e),
			i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "canGradeNum", {
		get: function() {
			var t = this.equipStrengthMax - this.gradeNum - this.gradeFailNum;
			return 0 > t ? 0 : t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.ItemData = function(t) {
		this.convert(t)
	}, e.prototype.convert = function(t) {
		if (t) {
			if (this.int64Id = t.itemId, this.id = LongUtil.toString(t.itemId), this.itemId = t.itemModelId, this.position = t
				.gridId, this.count = t.num, this.isbind = 1 == t.isbind, this.islock = 1 == t.islock, this.lostTime = t.lostTime,
				this.openItemTime = t.usecooldown, this.gradeNum = t.gradeNum, this.gradeFailNum = t.gradeFailNum, this.luck = t.luck,
				this.engraveExp = t.engraveExp, this.engraveInfo = t.engraveInfo, this.equipStrengthMax = t.equipStrengthMax,
				this.equipEngraveMax = t.equipEngraveMax, this.actionType = t.actionType, this.creatorName = t.creatorName, null !=
				t.warpetSpecialAttributes && t.warpetSpecialAttributes.length > 0)
				for (var e, i = 0; i < t.warpetSpecialAttributes.length; i++) e = {}, e.attributeId = t.warpetSpecialAttributes[i]
					.attributeId, e.attributeValue = t.warpetSpecialAttributes[i].attributeValue, this.warpetSpecialAttributes.push(
						e);
			if (t.attributes && t.attributes.length > 0) {
				var n = void 0;
				this.attributeList = [];
				for (var a = 0; a < t.attributes.length; a++) n = {}, n.type = t.attributes[a].type, n.value = t.attributes[a].value,
					this.attributeList.push(n)
			}
			null == this.bean && (this.bean = this.getDataBean()), this.bean && (1 == this.bean.q_type ? this.tag = BagTag.EQUIP :
				35 == this.bean.q_type ? this.tag = BagTag.FUSHI : 100 == this.bean.q_type ? this.tag = BagTag.PET_EGG : this.tag =
				BagTag.PROP)
		}
	}, Object.defineProperty(e.prototype, "engraveSuccessLevel", {
		get: function() {
			var t = 0;
			if (null != this.engraveInfo && this.engraveInfo.length > 0)
				for (var e = 0; e < this.engraveInfo.length; e++) "2" == this.engraveInfo.charAt(e) && t++;
			return t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isLostTime", {
		get: function() {
			return this.lostTime > 0 ? new Date(1e3 * this.lostTime).getTime() - ServerTime.serverTime <= 0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isOpenItemTime", {
		get: function() {
			return this.openItemTime > 0 ? ServerTime.getServerTime() - this.openItemTime >= 0 : !0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "name", {
		get: function() {
			return ItemUtil.getItemName(this.itemId)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "type", {
		get: function() {
			return this.getDataBean().q_type
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.updateEngrave = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = ""), this.engraveExp = t, this.engraveInfo = e
	}, Object.defineProperty(e.prototype, "engraveLevel", {
		get: function() {
			return this.engraveInfo.length
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clone = function() {
		var t = new e;
		if (t.id = this.id, t.itemId = this.itemId, t.position = this.position, t.count = this.count, t.isbind = this.isbind,
			t.lostTime = this.lostTime, t.gradeNum = this.gradeNum, t.durable = this.durable, t.gradeFailNum = this.gradeFailNum,
			t.luck = this.luck, t.engraveExp = this.engraveExp, t.engraveInfo = this.engraveInfo, t.equipStrengthMax = this.equipStrengthMax,
			t.equipEngraveMax = this.equipEngraveMax, this.attributeList && this.attributeList.length > 0) {
			var i = void 0;
			t.attributeList = [];
			for (var n = 0; n < this.attributeList.length; n++) i = {}, i.type = this.attributeList[n].type, i.value = this.attributeList[
				n].value, t.attributeList.push(i)
		}
		return t
	}, e.prototype.getDataBean = function() {
		return null == this.bean && (this.bean = App.config.q_itemContainer.getDataBean(this.itemId)), this.bean
	}, e.prototype.getEquipDataBean = function() {
		return this.bean && (this.equipTypeArr.indexOf(this.bean.q_type) > -1 || App.data.advanceDataCenter.isAdvanceEquipType(
			this.bean.q_type)) ? (null == this.equipBean && (this.equipBean = GameUtil.getEquipConfigData(this.itemId)), this
			.equipBean) : null
	}, e.prototype.isEquip = function() {
		return ItemUtil.isEquip(this.itemId)
	}, e.prototype.isProp = function() {
		return ItemUtil.isProp(this.itemId)
	}, e
}(egret.HashObject);
__reflect(ItemData.prototype, "ItemData");
var WearEquipCenter = function() {
	function t() {
		this._wearObj = {}, this.loadShenluHash()
	}
	return t.prototype.loadShenluHash = function(t) {
		if (void 0 === t && (t = null), this.shenluHashObject || (this.shenluHashObject = new HashObject), t)
			for (var e = t.length, i = 0; e > i; i++) t[i].equipId.sort(this.shenLuSortFunc), this.shenluHashObject.put(t[i].indexId,
				t[i].equipId);
		else
			for (var i = 0; 3 > i; i++) this.shenluHashObject.put(i + 1, [10001, 20001, 30001, 40001, 50001])
	}, t.prototype.shenLuSortFunc = function(t, e) {
		return App.config.q_shenluContainer.getDataBean(t).q_type > App.config.q_shenluContainer.getDataBean(e).q_type ? 1 :
			-1
	}, t.prototype.shenLuUp = function(e, i) {
		var n = this.shenluHashObject.get(e),
			a = App.config.q_shenluContainer.getDataBean(i);
		n[a.q_type - 1] = i, App.dispatcher.dispatchEvent(t.SHENLUUP, i)
	}, t.prototype.showShenluRoleRed = function(t, e) {
		var i = this.shenluHashObject.get(t),
			n = App.config.q_shenluContainer.getDataBean(i[e]),
			a = StringUtil.JsonParse(n.q_num),
			o = App.data.bagItemDataCenter.getItemCount(a[0].id);
		return o >= a[0].num ? !0 : !1
	}, t.prototype.showShenluTypeRed = function(t) {
		for (var e = App.global.roles.roleList, i = 1; i < e.length + 1; i++)
			if (1 == this.showShenluRoleRed(i, t)) return !0;
		return !1
	}, t.prototype.loadWearEquip = function(t, e) {
		for (var i, n = this.getWearObj(e.roleIndex), a = t.length, o = [], r = 0; a > r; r++) i = new ItemData(t[r]), n[i.position] =
			i, o.push(i);
		App.data.characterCenter.roleEquip.put(e.roleIndex, n);
		var s = App.data.wearEquipCenter.getRoleWearData(EnumEquipType.WU_QI, e.roleIndex);
		e.weapon = s ? s.itemId : -1, s = App.data.wearEquipCenter.getRoleWearData(EnumEquipType.YI_FU, e.roleIndex), e.armor =
			s ? s.itemId : -1
	}, t.prototype.getWearObj = function(t) {
		var e = this._wearObj[t];
		return null == e && (e = {}, this._wearObj[t] = e), e
	}, t.prototype.getRoleWearData = function(t, e) {
		var i = this.getWearObj(e);
		return i[t]
	}, t.prototype.getRoleWearList = function(t) {
		var e = [],
			i = this.getWearObj(t);
		for (var n in i) e.push(i[n]);
		return e
	}, t.prototype.wearEquip = function(e, i) {
		void 0 === i && (i = 1);
		var n = this.getWearObj(i),
			a = new ItemData(e);
		n[a.position] = a, App.dispatcher.dispatchEvent(t.WEAR, a, i)
	}, t.prototype.unWearEquip = function(e, i) {
		var n = this.getWearObj(e);
		n[i] = null, delete n[i], App.dispatcher.dispatchEvent(t.UNWEAR, i, e), App.sound.playSound(EnumSoundId.DROP_EQUIP)
	}, t.prototype.isBetter = function(t, e, i) {
		void 0 === e && (e = !0), i || (i = App.global.characterData);
		var n = App.global.itemUse.isMatchBaseCondition(t, !1, e, i);
		if (n) {
			var a = t.getEquipDataBean();
			if (null != a) {
				var o = this.getRoleWearData(a.q_kind, i.roleIndex);
				return this.compare(t, o)
			}
		}
		return -1
	}, t.prototype.isBetterAllRole = function(t, e) {
		void 0 === e && (e = !0);
		for (var i = App.global.roles.roleList, n = i.length, a = 0; n > a; a++)
			if (this.isBetter(t, e, i[a]) > -1) return !0;
		return !1
	}, t.prototype.compare = function(t, e) {
		void 0 === e && (e = null);
		var i = t.getEquipDataBean();
		if (null == e) return i.q_kind;
		var n = e.getEquipDataBean();
		return i && n && i.q_score > n.q_score ? i.q_kind : -1
	}, t.WEAR = "WearEquipCenter.WEAR", t.UNWEAR = "WearEquipCenter.UNWEAR", t.SHENLUUP = "WearEquipCenter.SHENLUUP", t
}();
__reflect(WearEquipCenter.prototype, "WearEquipCenter");
var MailDataCenter = function() {
	function t() {
		this.mailList = [], this.selectDict = new HashObject, this.mailSummaryDict = new HashObject, this.mailDetailDict =
			new HashObject, this._accessoryNum = 0, this._noreadMailNum = 0, this._hasAccessory = !1
	}
	return Object.defineProperty(t.prototype, "noreadMailNum", {
		get: function() {
			return this._noreadMailNum
		},
		set: function(t) {
			this._noreadMailNum != t && (this._noreadMailNum = t, App.dispatcher.dispatchEvent(MailEvent.NOREAD_MAIL_CHANGE,
				this._noreadMailNum), App.global.redPoint.redPointDispatchEvent(14))
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getMailRedDot = function() {
		return this._noreadMailNum > 0 ? !0 : !1
	}, Object.defineProperty(t.prototype, "hasAccessory", {
		get: function() {
			return this._hasAccessory
		},
		set: function(t) {
			this._hasAccessory != t && (this._hasAccessory = t, App.dispatcher.dispatchEvent(MailEvent.HAS_ACCESSORY_CHANGE,
				this._hasAccessory))
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.onMailDel = function(t) {
		for (var e = 0; e < t.length; e++) {
			var i = t[e].toString(),
				n = this.mailSummaryDict[i];
			if (n) {
				this.noreadMailNum = 0 == n.isRead ? this.noreadMailNum - 1 : this.noreadMailNum, this._accessoryNum = 1 == n.isAccessory ?
					this._accessoryNum - 1 : this._accessoryNum, delete this.mailSummaryDict[i], delete this.mailDetailDict[i],
					delete this.selectDict[i];
				for (var a = 0; a < this.mailList.length; a++) this.mailList[a].mailId == i && this.mailList.splice(a, 1)
			}
		}
		this.hasAccessory = this._accessoryNum > 0, App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 17, this.showPoint())
	}, t.prototype.showPoint = function() {
		return this.noreadMailNum > 0 || this._accessoryNum > 0
	}, t.prototype.initMailSummaryList = function(t) {
		this.mailList = [];
		for (var e = t.length, i = 0, n = 0, a = !1, o = new HashObject, r = 0; e > r; r++) {
			var s = t[r].mailid.toString();
			o[s] = new MailSummaryData(t[r]), this.mailList[r] = o[s];
			var h = this.mailList[r];
			i = 0 == h.isRead ? i + 1 : i, n = 1 == h.isAccessory ? n + 1 : n, a = 1 == h.isAccessory ? !0 : a
		}
		this.mailSummaryDict = o, this._accessoryNum = n, this.noreadMailNum = i, this.hasAccessory = a, App.dispatcher.dispatchEvent(
			EnterButtonEvent.REFRESH, 17, this.showPoint())
	}, t.prototype.initMailDetail = function(t) {
		if (null != t) {
			var e = {},
				i = t.mailid.toString(),
				n = !1,
				a = new MailDetailData(t),
				o = this.mailSummaryDict[i];
			return null != o ? (n = o.isRead != a.isRead ? !0 : n, n = o.lostTime != a.lostTime ? !0 : n, n = o.isAccessory !=
				a.isAccessory ? !0 : n, this.noreadMailNum = o.isRead != a.isRead ? this.noreadMailNum - 1 : this.noreadMailNum,
				this._accessoryNum <= 1 && (this.hasAccessory = o.isAccessory != a.isAccessory ? !1 : this.hasAccessory), this._accessoryNum =
				o.isAccessory != a.isAccessory ? this._accessoryNum - 1 : this._accessoryNum, o.isAccessory = a.isAccessory, o.isRead =
				a.isRead, o.lostTime = a.lostTime, this.mailDetailDict.put(i, a), e.isMailListChage = n, e.newDetailData = a,
				App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 17, this.showPoint()), e) : null
		}
		return null
	}, t.prototype.getMailDetail = function(t) {
		return this.mailDetailDict.get(t)
	}, t
}();
__reflect(MailDataCenter.prototype, "MailDataCenter");
var MailDetailData = function(t) {
	function e(e) {
		void 0 === e && (e = null);
		var i = t.call(this) || this;
		return null != e && i.convert(e), i
	}
	return __extends(e, t), e.prototype.convert = function(t) {
		if (null != t) {
			if (this.mailId = t.mailid.toString(), this.senderid = t.senderid.toString(), this.receiverid = t.receiverid.toString(),
				this.senderName = t.szSenderName, this.receiverName = t.szReceiverName, this.title = t.szTitle, this.notice = t.szNotice,
				this.isRead = 1 == t.btRead ? !0 : !1, this.isAccessory = 1 == t.btAccessory ? !0 : !1, this.sendTime = t.nSendTime,
				this.lostTime = t.btlostTime, this.isSystem = 1 == t.btSystem ? !0 : !1, this.isReturn = 1 == t.btReturn ? !0 : !
				1, this.itemList = [], t.itemlist)
				for (var e = 0; e < t.itemlist.length; e++) this.itemList.push(new ItemData(t.itemlist[e]));
			if (t.showItemlist)
				for (var e = 0; e < t.showItemlist.length; e++) this.showItemList.push(new ItemData(t.showItemlist[e]))
		}
	}, e
}(egret.HashObject);
__reflect(MailDetailData.prototype, "MailDetailData");
var MailSummaryData = function(t) {
	function e(e) {
		void 0 === e && (e = null);
		var i = t.call(this) || this;
		return i.convert(e), i
	}
	return __extends(e, t), e.prototype.convert = function(t) {
		null != t && (this.mailId = t.mailid.toString(), this.senderName = t.szSenderName, this.title = t.szTitle, this.isRead =
			1 == t.btRead ? !0 : !1, this.isAccessory = 1 == t.btAccessory ? !0 : !1, this.sendTime = t.nSendTime, this.lostTime =
			t.lostTime, this.isSystem = 1 == t.btSystem ? !0 : !1, this.itemList = t.summaryitemlist)
	}, e
}(egret.HashObject);
__reflect(MailSummaryData.prototype, "MailSummaryData");
var CarryShopCenter = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.needOpen = !1, e
	}
	return __extends(e, t), e.prototype.getShopItemList = function() {
		return this._carryShopList
	}, e.prototype.initCarryShopList = function(t) {
		if (this._carryShopList = new Array, null != t) {
			for (var e = void 0, i = t.length, n = 0; i > n; n++) e = GameUtil.getShopItemConfigData(t[n].sellId), 1 == e.q_num &&
				(this._canBuyHpBean = e), this._carryShopList.push(e);
			this._carryShopList.sort(App.data.mallCenter.sortFunc)
		}
		this.autoBuyHp()
	}, e.prototype.autoBuyHp = function() {}, e
}(egret.HashObject);
__reflect(CarryShopCenter.prototype, "CarryShopCenter");
var MallCenter = function() {
	function t() {
		this.needOpen = !1, this.jinjiShopList = [], this.jinjiShopInfoList = []
	}
	return t.prototype.getJinjiShopList = function() {
		if (this.jinjiShopList.length < 1)
			for (var t = App.config.q_shopContainer.list, e = t.length, i = 0; e > i; i++) 5 == t[i].q_shop_type && this.jinjiShopList
				.push(t[i]);
		return this.jinjiShopList
	}, t.prototype.getItemShopBean = function(t, e) {
		void 0 === e && (e = 1);
		var i = App.config.q_shopContainer.list;
		if (null != i)
			for (var n = i.length, a = 0; n > a; a++)
				if (i[a].q_itemModelId == t && e == i[a].q_shop_type) return i[a];
		return null
	}, t.prototype.setShopItemInfo = function(t, e) {
		null == this._mallServerDict && (this._mallServerDict = new HashObject), this._mallServerDict.put(t, e)
	}, t.prototype.getShopItemInfo = function(t) {
		return null != this._mallServerDict ? this._mallServerDict.get(t) : null
	}, t.prototype.getShop = function(t) {
		return void 0 === t && (t = 1), null != this._mallDict ? this._mallDict.get(t) : null
	}, t.prototype.initMallList = function(t) {
		if (this._mallServerDict = new HashObject, this._mallDict = new HashObject, null != t) {
			for (var e = void 0, i = void 0, n = t.length, a = 0; n > a; a++) i = GameUtil.getShopItemConfigData(t[a].sellId),
				null != i && (0 == i.q_visible && (e = this._mallDict.get(i.q_page), null == e && (e = new Array, this._mallDict.put(
					i.q_page, e)), e.push(t[a])), this._mallServerDict.put(t[a].sellId, t[a]));
			this._mallDict.foEach(this.mallSort, this)
		}
	}, t.prototype.mallSort = function(t, e) {
		e.sort(this.sortMallFunc)
	}, t.prototype.sortMallFunc = function(t, e) {
		var i = GameUtil.getShopItemConfigData(t.sellId),
			n = GameUtil.getShopItemConfigData(e.sellId);
		return i.q_index < n.q_index ? -1 : 1
	}, t.prototype.sortFunc = function(t, e) {
		return t.q_index > e.q_index ? -1 : 1
	}, t.prototype.getPriceByItem = function(t, e) {
		var i = 0;
		return i
	}, t.prototype.getPriceByIndex = function(t, e) {
		var i = 0;
		return i
	}, t
}();
__reflect(MallCenter.prototype, "MallCenter");
var QuickPurchaseShopCenter = function() {
	function t() {}
	return t.prototype.getQuickPurchaseShopItemList = function(t, e) {
		if (void 0 === e && (e = 10061), null == this.quickPurchaseShopDict && (this.quickPurchaseShopDict = new HashObject),
			null == this.quickPurchaseShopDict.get(t)) {
			var i = [];
			i.push(App.config.q_shopContainer.getDataBean(e));
			var n = App.config.q_shopContainer.list;
			if (null != n)
				for (var a = n.length, o = 0; a > o; o++) n[o].q_quickPurchaseType == t && i.push(n[o]);
			i.sort(this.sortFunc), this.quickPurchaseShopDict.put(t, i)
		}
		return this.quickPurchaseShopDict.get(t)
	}, t.prototype.sortFunc = function(t, e) {
		return t.q_index > e.q_index ? 1 : -1
	}, t.prototype.getQuickPurchaseShopItemListById = function(t) {
		if (null == this.quickPurchaseShopDict && (this.quickPurchaseShopDict = new HashObject), null == this.quickPurchaseShopDict[
				t]) {
			var e = [],
				i = App.config.q_shopContainer.list;
			if (null != i)
				for (var n = i.length, a = 0; n > a; a++) i[a].q_itemModelId == t && -1 == i[a].q_currency_type && e.push(i[a]);
			e.sort(App.data.mallCenter.sortFunc), this.quickPurchaseShopDict[t] = e
		}
		return this.quickPurchaseShopDict[t]
	}, t
}();
__reflect(QuickPurchaseShopCenter.prototype, "QuickPurchaseShopCenter");
var ShenmiShopCenter = function() {
	function t() {
		this.shenMiRemainRefreshTimeS = 0
	}
	return t.prototype.getShop = function() {
		return this._list
	}, t.prototype.initList = function(t) {
		this._dict = new HashObject, this._list = new Array;
		for (var e, i = t.length, n = 0; i > n; n++) e = GameUtil.getShopItemConfigData(t[n].sellId), null != e && 0 == e.q_visible &&
			(this._list.push(t[n]), this._dict.put(t[n].shenMiShopIndex, t[n]));
		this._list.sort(this.sortShenmiFunc)
	}, t.prototype.sortShenmiFunc = function(t, e) {
		return t.shenMiShopIndex < e.shenMiShopIndex ? -1 : 1
	}, t.prototype.setShopItemInfo = function(t, e) {
		null == this._dict && (this._dict = new HashObject), this._dict.put(t, e)
	}, t.prototype.getShopItemInfo = function(t) {
		return null != this._dict ? this._dict.get(t) : null
	}, t.prototype.getShowRedPoint = function() {
		var t = this.shenMiRemainRefreshTimeS - ServerTime.getServerTime();
		return t > 0 ? !1 : !0
	}, t
}();
__reflect(ShenmiShopCenter.prototype, "ShenmiShopCenter");
var PictureBookCenter = function() {
	function t() {
		this._map = {}, this._maxObj = {}, this._activateObj = {}, this._suitObj = {}, this._itemObj = {}, this._needObj = {},
			this.loadConfig()
	}
	return t.prototype.loadConfig = function() {
		for (var t, e, i, n, a = this._map, o = this._maxObj, r = this._itemObj, s = App.config.q_pictureContainer.list, h =
				s.length, l = 0; h > l; l++) i = s[l], t = i.q_card_type, e = i.q_order_card, n = a[t], null == n && (n = {}, a[t] =
			n), null == n[e] && (n[e] = i, o[t] ? o[t]++ : o[t] = 1), null == r[i.q_itemid] && (r[i.q_itemid] = i);
		var p = this._suitObj,
			c = App.config.q_cardkuContainer.list;
		h = c.length;
		for (var _, d, l = 0; h > l; l++) d = c[l], t = d.q_cardku_id, _ = p[t], null == _ && (_ = [], p[t] = _), _.push(d)
	}, t.prototype.loadData = function(e) {
		null == this._dataObj && (this._dataObj = {});
		for (var i, n, a, o, r, s, h = this._map, l = e.length, p = 0; l > p; p++) n = e[p], i = App.config.q_pictureContainer
			.getDataBean(n), null != i && (a = i.q_card_type, o = i.q_order_card, r = h[a], null == r && (r = {}, h[a] = r), s =
				r[o], s && this._dataObj[s.q_card_id] && delete this._dataObj[s.q_card_id], r[o] = i, this._dataObj[n] = i, this._activateObj[
					n] = i, this._activateObj[i.q_firstid] = i);
		App.dispatcher.dispatchEvent(t.REFRESH)
	}, t.prototype.update = function(e) {
		-1 == e && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">未满足升级条件，升级失败</font>");
		var i = App.config.q_pictureContainer.getDataBean(e);
		if (i) {
			var n = i.q_card_type,
				a = i.q_order_card,
				o = this._map[n];
			if (o) {
				var r = o[a];
				r && this._dataObj[r.q_card_id] && delete this._dataObj[r.q_card_id], o[a] = i
			}
			this._dataObj[e] = i, this._activateObj[e] = i, this._activateObj[i.q_firstid] = i, App.dispatcher.dispatchEvent(t
				.UPDATE, i)
		}
	}, t.prototype.getCurrentNum = function(t) {
		var e = 0,
			i = this._map[t];
		if (i)
			for (var n in i) this.getActivate(i[n].q_card_id) && e++;
		return e
	}, t.prototype.getMax = function(t) {
		return this._maxObj[t]
	}, t.prototype.getActivate = function(t) {
		return null != this._activateObj[t]
	}, t.prototype.getCanActivate = function(t) {
		var e = this.getActivate(t);
		if (!e) {
			var i = App.config.q_pictureContainer.getDataBean(t);
			if (i) {
				var n = this.getNeedItem(t),
					a = App.data.bagItemDataCenter.getItemCount(n.itemId);
				return a >= n.count
			}
		}
		return !1
	}, t.prototype.getCanLvUp = function(t) {
		var e = this._dataObj[t];
		if (e) {
			var i = App.config.q_pictureContainer.getDataBean(e.q_next_id);
			if (i) {
				var n = this.getNeedItem(i.q_card_id),
					a = App.data.currencyDataCenter.getMoney(EnumMoney.PICTURE);
				return a >= n.count
			}
		}
		return !1
	}, t.prototype.getNeedItem = function(t) {
		if (null == this._needObj[t]) {
			var e = App.config.q_pictureContainer.getDataBean(t);
			e && (this._needObj[t] = ItemUtil.getRewardDataList(e.q_card_use)[0])
		}
		return this._needObj[t]
	}, t.prototype.getList = function(t) {
		var e = [],
			i = this._map[t];
		if (i)
			for (var n in i) e.push(i[n]);
		return e.sort(this.sortFunc)
	}, t.prototype.getTypes = function() {
		var t = [];
		for (var e in this._map) t.push(Number(e));
		return t
	}, t.prototype.getTotalFightPower = function() {
		var t = this._dataObj,
			e = 0;
		for (var i in t) e += t[i].q_zhandouli;
		return e
	}, t.prototype.getPictureAttrStr = function(t) {
		if (t) {
			var e = new BaseAttributeDataBean;
			e.convert(t.q_card_attribute);
			var i = "";
			return 1 == t.q_card_occupation ? i = "战士" : 2 == t.q_card_occupation ? i = "法师" : 3 == t.q_card_occupation && (i =
				"道士"), e.getStrByBaseAttributeBean(e, ":", i, "\n")
		}
	}, t.prototype.getBeanByItemID = function(t) {
		return this._itemObj[t]
	}, t.prototype.getSuitBeanList = function(t) {
		return this._suitObj[t]
	}, t.prototype.getPictureMaxSuit = function(t) {
		var e = this.getMaxSuitBean(t);
		if (e) {
			var i = new BaseAttributeDataBean;
			return i.convert(e.q_cardku_attribute), i.getStrByBaseAttributeBean(i, ":", "", " ")
		}
		return ""
	}, t.prototype.getCurrentSuitBean = function(t) {
		var e, i = this._suitObj[t];
		if (null != i) {
			var n = this.getCurrentNum(t);
			length = i.length;
			for (var a = 0; a < length; a++) n >= i[a].q_cardku_number && (e = i[a]);
			null == e && (e = i[0])
		}
		return e
	}, t.prototype.getMaxSuitBean = function(t) {
		var e = this._suitObj[t];
		return null != e ? e[e.length - 1] : null
	}, t.prototype.getDecomposeList = function() {
		for (var t, e, i = [], n = App.data.bagItemDataCenter.getAllTypeProp(41), a = {}, o = n.length, r = 0; o > r; r++) e =
			this._itemObj[n[r].itemId], e && (t = this.getActivate(e.q_card_id), 0 == t && null == a[e.q_card_id] ? a[e.q_card_id] = !
				0 : i.push(n[r]));
		return i
	}, t.prototype.getTipName = function(t) {
		var e = App.config.q_globalContainer.getDataBean(257);
		if (e) {
			var i = StringUtil.JsonParse(e.q_string_value);
			if (i) return i[t - 1]
		}
		return ""
	}, t.prototype.showPoint = function() {
		if (null == this._dataObj) return !1;
		var t = this._dataObj;
		for (var e in t)
			if (this.getCanLvUp(Number(e))) return !0;
		for (var i, n = this._itemObj, a = App.data.bagItemDataCenter.getAllTypeProp(41), o = a.length, r = {}, s = 0; o >
			s; s++)
			if (null == r[a[s].itemId]) {
				if (r[a[s].itemId] = !0, i = n[a[s].itemId], i && this.getCanActivate(i.q_card_id)) return !0;
				if (i && this.getActivate(i.q_card_id)) return !0
			} return !1
	}, t.prototype.getTitleShowPoint = function(t) {
		for (var e = this.getList(t), i = e.length, n = 0; i > n; n++) {
			if (this.getCanLvUp(e[n].q_card_id)) return !0;
			if (this.getCanActivate(e[n].q_card_id)) return !0
		}
		return !1
	}, t.prototype.sortFunc = function(t, e) {
		var i = App.data.pictureCenter().getCanActivate(t.q_card_id),
			n = App.data.pictureCenter().getCanActivate(e.q_card_id);
		if (i && !n) return -1;
		if (!i && n) return 1;
		var a = App.data.pictureCenter().getCanLvUp(t.q_card_id),
			o = App.data.pictureCenter().getCanLvUp(e.q_card_id);
		return a && !o ? -1 : !a && o ? 1 : t.q_order_card > e.q_order_card ? 1 : t.q_order_card < e.q_order_card ? -1 : 0
	}, t.REFRESH = "PictureBookCenter.refresh", t.UPDATE = "PictureBookCenter.update", t
}();
__reflect(PictureBookCenter.prototype, "PictureBookCenter");
var PictureBookData = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.bean = App.config.q_pictureContainer.getDataBean(this.id)
	}, e
}(egret.HashObject);
__reflect(PictureBookData.prototype, "PictureBookData");
var PromiseCenter = function() {
	function t() {
		this.day = -1, this.isOk = !1, this.promiseList = [], this.mineList = [], this.full = !1, this.end = !1, this.isPromise = !
			1
	}
	return t.prototype.load = function(e, i, n) {
		this.day = e, this.isOk = 1 == i, this.promiseList = [], this.mineList = [];
		var a = [],
			o = this.isOk,
			r = -1;
		this.isPromise = !1;
		for (var s, h, l = 0; 4 > l; l++) s = n[l], null != s && (h = {}, h.type = 2, h.index = s.index, h.time = s.remainTime,
			h.bingo = !1, -1 != s.remainTime ? (h.itemData = null, -1 == r && (r = ServerTime.getServerTime() + s.remainTime)) :
			0 == s.modelid ? (h.itemData = null, o = !0) : (h.itemData = new ItemData, h.itemData.itemId = s.modelid, h.itemData
				.count = s.itemnum, a.push(s.modelid), this.isPromise = !0), this.mineList.push(h));
		this.full = 4 == a.length, -1 == r && this.isPromise && (r = StringUtil.getTodayMaxUtc());
		var p = App.config.q_desireContainer.getDataBean(e);
		if (null != p)
			for (var c = ItemUtil.getRewardDataList(p.q_reward), l = 0; 7 > l; l++) h = {}, h.type = 1, h.index = l, h.time = -
				1, h.itemData = c[l], h.bingo = -1 != a.indexOf(h.itemData.itemId), this.promiseList.push(h);
		this.end = null == p, App.dispatcher.dispatchEvent(t.UPDATE), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT,
			61, o), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, 61, r), -1 != r ? App.timer.serverTimeEnd(this,
			this.ontimer, r) : App.timer.clearTimer(this.ontimer, this)
	}, t.prototype.ontimer = function(t) {
		t.spuleTime < 0 && (ActivityCommandSender.sendC2S_PromiseInfoMessage(), App.timer.clearTimer(this.ontimer, this))
	}, t.UPDATE = "PromiseCenter.update", t
}();
__reflect(PromiseCenter.prototype, "PromiseCenter");
var RankData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(RankData.prototype, "RankData");
var AvatarActionType = function() {
	function t() {
		this.TYPE_1 = [AvatarPartType.HORSE, AvatarPartType.WEAPON, AvatarPartType.WEAPONSOUL, AvatarPartType.BODY,
			AvatarPartType.HEAD, AvatarPartType.WING, AvatarPartType.HORSE_HEAD
		], this.TYPE_2 = [AvatarPartType.HORSE, AvatarPartType.HORSE_HEAD, AvatarPartType.WEAPON, AvatarPartType.WEAPONSOUL,
			AvatarPartType.WING, AvatarPartType.BODY, AvatarPartType.HEAD
		], this.TYPE_3 = [AvatarPartType.HORSE, AvatarPartType.BODY, AvatarPartType.HEAD, AvatarPartType.WEAPON,
			AvatarPartType.WEAPONSOUL, AvatarPartType.WING, AvatarPartType.HORSE_HEAD
		], this.TYPE_4 = [AvatarPartType.HORSE, AvatarPartType.HORSE_HEAD, AvatarPartType.BODY, AvatarPartType.HEAD,
			AvatarPartType.WING, AvatarPartType.WEAPON, AvatarPartType.WEAPONSOUL
		], this.TYPE_5 = [AvatarPartType.HORSE, AvatarPartType.HORSE_HEAD, AvatarPartType.WING, AvatarPartType.BODY,
			AvatarPartType.HEAD, AvatarPartType.WEAPON, AvatarPartType.WEAPONSOUL
		], this.TYPE_6 = [AvatarPartType.HORSE, AvatarPartType.HORSE_HEAD, AvatarPartType.WING, AvatarPartType.WEAPON,
			AvatarPartType.WEAPONSOUL, AvatarPartType.BODY, AvatarPartType.HEAD
		], this.TYPE_7 = [AvatarPartType.WEAPON, AvatarPartType.WEAPONSOUL, AvatarPartType.HORSE, AvatarPartType.HORSE_HEAD,
			AvatarPartType.BODY, AvatarPartType.HEAD, AvatarPartType.WING
		], this._playerDepthDict = {}, this._playerActionDict = new HashObject, this.initDefalutDepthDict(), this.initActionDepthDict()
	}
	return t.getPlayerDepth = function(e, i, n) {
			null == t.instance && (t.instance = new t);
			var a = t.instance.getPlayerDepth(e, i, n);
			return a
		}, t.prototype.initActionDepthDict = function() {
			this._playerActionDict[t.ACTION_TYPE_SKILL_ATK2] = this.getSkillAtk2(), this._playerActionDict[t.ACTION_TYPE_COLLECT] =
				this.getCollect(), this._playerActionDict[t.ACTION_TYPE_RUN] = this.getRun(), this._playerActionDict[t.ACTION_TYPE_SKILL_ATK0] =
				this.getSkillAtk1(), this._playerActionDict[t.ACTION_TYPE_SKILL_ATK1] = this.getSkillAtk1(), this._playerActionDict[
					t.ACTION_TYPE_SKILL_ATK3] = this.getSkillAtk3(), this._playerActionDict[t.ACTION_TYPE_BLOW] = this.getBlow(),
				this._playerActionDict[t.ACTION_TYPE_DIE] = this.getDie(), this._playerActionDict[t.ACTION_TYPE_DREDGE] = this.getDredge(),
				this._playerActionDict[t.ACTION_TYPE_STAND] = this.getStand(), this._playerActionDict[t.ACTION_TYPE_WALK] = this.getWalk(),
				this._playerActionDict[t.ACTION_TYPE_HORSE_STAND] = this.getStand(), this._playerActionDict[t.ACTION_TYPE_HORSE_RUN] =
				this.getRun()
		}, t.prototype.getSkillAtk2 = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5, this.TYPE_5,
				this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3
			], t[h5_engine.SceneType.RIGHT] = [this.TYPE_4, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_4, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_4, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.TOP] = [this.TYPE_3, this.TYPE_4, this.TYPE_4, this.TYPE_3, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_3, this.TYPE_4, this.TYPE_4, this.TYPE_4, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.LEFT] = [this.TYPE_1, this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_4, this.TYPE_5,
				this.TYPE_5
			], t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_6, this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_5, this.TYPE_5,
				this.TYPE_5
			], t
		}, t.prototype.getCollect = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_3], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_4], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_1],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_2], t
		}, t.prototype.getSkillAtk1 = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_5
			], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.RIGHT] = [this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_4, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.TOP] = [this.TYPE_3, this.TYPE_4, this.TYPE_4, this.TYPE_4, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1,
				this.TYPE_1
			], t[h5_engine.SceneType.LEFT] = [this.TYPE_1, this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_1, this.TYPE_1,
				this.TYPE_1
			], t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_6, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1,
				this.TYPE_2
			], t
		}, t.prototype.getSkillAtk3 = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_1],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_2], t
		}, t.prototype.getBlow = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_1],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_2], t
		}, t.prototype.getDie = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
				h5_engine.SceneType.RIGHT] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3, this.TYPE_3, this.TYPE_3,
				this.TYPE_5, this.TYPE_5, this.TYPE_5
			], t[h5_engine.SceneType.TOP] = [this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5], t[
				h5_engine.SceneType.LEFTTOP] = [this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5], t[
				h5_engine.SceneType.LEFT] = [this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5], t[
				h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_6], t
		}, t.prototype.getDredge = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_5
			], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.RIGHT] = [this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_5, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3, this.TYPE_5, this.TYPE_5, this.TYPE_4, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.TOP] = [this.TYPE_3, this.TYPE_4, this.TYPE_4, this.TYPE_4, this.TYPE_3, this.TYPE_3,
				this.TYPE_3
			], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1,
				this.TYPE_1
			], t[h5_engine.SceneType.LEFT] = [this.TYPE_1, this.TYPE_3, this.TYPE_3, this.TYPE_3, this.TYPE_1, this.TYPE_1,
				this.TYPE_3
			], t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_6, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1, this.TYPE_1,
				this.TYPE_2
			], t
		}, t.prototype.getAtkStand = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_3], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_3], t[h5_engine.SceneType.LEFT] = [this.TYPE_3],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_1], t
		}, t.prototype.getStand = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_4], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_7],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_2], t
		}, t.prototype.getWalk = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_4], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_7],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_2], t
		}, t.prototype.getRun = function() {
			var t = {};
			return t[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], t[h5_engine.SceneType.RIGHTBOTTOM] = [this.TYPE_5], t[
					h5_engine.SceneType.RIGHT] = [this.TYPE_4], t[h5_engine.SceneType.RIGHTTOP] = [this.TYPE_3], t[h5_engine.SceneType
					.TOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFTTOP] = [this.TYPE_1], t[h5_engine.SceneType.LEFT] = [this.TYPE_7],
				t[h5_engine.SceneType.LEFTBOTTOM] = [this.TYPE_6], t
		}, t.prototype.initDefalutDepthDict = function() {
			this._playerDepthDict[h5_engine.SceneType.BOTTOM] = [this.TYPE_5], this._playerDepthDict[h5_engine.SceneType.RIGHTBOTTOM] = [
				this.TYPE_5
			], this._playerDepthDict[h5_engine.SceneType.RIGHT] = [this.TYPE_5], this._playerDepthDict[h5_engine.SceneType.RIGHTTOP] = [
				this.TYPE_3
			], this._playerDepthDict[h5_engine.SceneType.TOP] = [this.TYPE_1], this._playerDepthDict[h5_engine.SceneType.LEFTTOP] = [
				this.TYPE_1
			], this._playerDepthDict[h5_engine.SceneType.LEFT] = [this.TYPE_7], this._playerDepthDict[h5_engine.SceneType.LEFTBOTTOM] = [
				this.TYPE_2
			]
		}, t.prototype.getPlayerDepth = function(t, e, i) {
			var n, a = this._playerActionDict[e];
			if (a) {
				var o = a[t];
				o && (n = o[i + 1] ? o[i + 1] : o[0])
			}
			return null == n && (n = this._playerDepthDict[t] ? this._playerDepthDict[t][0] : null), n
		}, t.ACTION_TYPE_STAND = "1", t.ACTION_TYPE_WALK = "2", t.ACTION_TYPE_RUN = "3", t.ACTION_TYPE_SKILL_ATK0 = "4", t.ACTION_TYPE_SKILL_ATK1 =
		"5", t.ACTION_TYPE_SKILL_ATK2 = "6", t.ACTION_TYPE_SKILL_ATK3 = "7", t.ACTION_TYPE_SKILL_ATK4 = "8", t.ACTION_TYPE_SKILL_ATK5 =
		"9", t.ACTION_TYPE_BLOW = "10", t.ACTION_TYPE_DIE = "11", t.ACTION_TYPE_COLLECT = "12", t.ACTION_TYPE_DREDGE = "13",
		t.ACTION_TYPE_UI = "14", t.ACTION_TYPE_DANCE = "15", t.ACTION_TYPE_HORSE_STAND = "16", t.ACTION_TYPE_HORSE_RUN =
		"17", t.ACTION_TYPE_JUMP_START = "19", t.ACTION_TYPE_JUMP_MOVE0 = "20", t.ACTION_TYPE_JUMP_END = "21", t.ACTION_TYPE_SWIM_STAND =
		"22", t.ACTION_TYPE_SWIM_RUN = "23", t.ACTION_TYPE_LIE = "24", t.ACTION_TYPE_CHARGE = "25", t
}();
__reflect(AvatarActionType.prototype, "AvatarActionType");
var AvatarHeadType = function() {
	function t() {}
	return t.getIndex = function(e) {
			return null == t._indexDict && (t._indexDict = {}, t._indexDict[t.HP_BAR] = 0, t._indexDict[t.NAME_BAR] = 1, t._indexDict[
					t.NAME_SIGN] = 2, t._indexDict[t.NPC_TOP_NAME] = 3, t._indexDict[t.BOSS_TOP_NAME] = 4, t._indexDict[t.GUILD_NAME] =
				5, t._indexDict[t.NATION_NAME] = 6, t._indexDict[t.WORD_TITLE] = 7, t._indexDict[t.STALL_NAME] = 9, t._indexDict[
					t.EXP_PAODIAN_SIGN] = 10, t._indexDict[t.CHAR_AUTO_SIGH] = 11, t._indexDict[t.GOOD_ITEM_SIGN] = 12, t._indexDict[
					t.COMMON_TEXT] = 13, t._indexDict[t.TITLE_EFFECT] = 14, t._indexDict[t.TITLE_RANK_EFFECT] = 15, t._indexDict[t.ESCORT_PLAYERNAME] =
				16, t._indexDict[t.ARENA_RANK_HEAD] = 17, t._indexDict[t.GATHER_SIGN] = 18), t._indexDict[e]
		}, t.NAME_BAR = "name", t.HP_BAR = "hpBar", t.NATION_NAME = "nationName", t.GUILD_NAME = "guildName", t.TITLE_EFFECT =
		"titleName", t.WORD_TITLE = "word_title", t.NPC_TOP_NAME = "npcTopName", t.BOSS_TOP_NAME = "boss_top_name", t.NAME_SIGN =
		"name_sign", t.GATHER_SIGN = "gather_sign", t.CHAR_AUTO_SIGH = "char_auto_sigh", t.EXP_PAODIAN_SIGN =
		"exp_paodian_sign", t.GOOD_ITEM_SIGN = "good_item_sign", t.COMMON_TEXT = "common_text", t.TITLE_RANK_EFFECT =
		"title_rank_effect", t.STALL_NAME = "STALL_NAME", t.ESCORT_PLAYERNAME = "ESCORT_PLAYERNAME", t.ARENA_RANK_HEAD =
		"arena_rank_head", t
}();
__reflect(AvatarHeadType.prototype, "AvatarHeadType");
var MapRoleShowHideData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.hide_allPlayer = !1, e.hide_myGuildPlayer = !1, e.hide_commonMonster = !1, e.hide_allPet = !1, e.hide_playerTitles = !
			1, e.hide_playerWing = !1, e.hide_playerBody = !1, e.hide_skillEffect = !1, e.checkOther = !1, e.checkAll = !1, e.checkSkill = !
			1, e.checkDress = !1, e
	}
	return __extends(e, t), e.prototype.hideAll = function() {
		this.hide_allPlayer = !0, this.hide_myGuildPlayer = !0, this.hide_commonMonster = !0, this.hide_allPet = !0, this.hide_playerTitles = !
			0, this.hide_playerWing = !0, this.hide_playerBody = !0, this.hide_skillEffect = !0, this.checkAll = !0, this.checkDress = !
			0, this.checkOther = !0, this.checkSkill = !0
	}, e
}(Dispose);
__reflect(MapRoleShowHideData.prototype, "MapRoleShowHideData");
var RingDataCenter = function() {
	function t() {
		this._ringListData = [], this._ringGotID = 0, this._ringDay = 0, this._ringVip = 0, this._btnId = 25;
		for (var t = App.config.q_ringContainer.list, e = 0; e < t.length; e++) {
			var i = {
				status: 0,
				bean: t[e]
			};
			this._ringListData.push(i)
		}
		this._count = this._ringListData.length
	}
	return t.prototype.updateRingData = function(t) {
		this._ringGotID = t.activeResult, this._ringVip = App.global.characterData.vipLevel, this.setListData();
		var e = this.isRedPointAtMainUI();
		App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, this._btnId, e), App.dispatcher.dispatchEvent(
			RingEvent.ACTIVE_SUCCESS), App.dispatcher.dispatchEvent(ActivityEvent.UPDATEPANEL_RING)
	}, t.prototype.updateRingDataByLogin = function(t) {
		this._ringGotID = t.activeMaxRingId, this._ringDay = t.loginDays, this._ringVip = App.global.characterData.vipLevel,
			this.setListData();
		var e = this.isRedPointAtMainUI();
		App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT, this._btnId, e), App.dispatcher.dispatchEvent(
			ActivityEvent.UPDATEPANEL_RING)
	}, t.prototype.getListData = function() {
		return this._ringListData
	}, t.prototype.getRingGotID = function() {
		return this._ringGotID
	}, t.prototype.getConDay = function() {
		return this._ringDay
	}, Object.defineProperty(t.prototype, "count", {
		get: function() {
			return this._count
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getItemData = function(t) {
		return this._ringListData[t]
	}, t.prototype.isRedPointAtMainUI = function() {
		for (var t = 0; t < this._count; t++) {
			var e = this._ringListData[t];
			if (1 == e.status) return !0
		}
		return !1
	}, t.prototype.activeRing = function() {
		this._ringGotID == this._count && App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 25, !1)
	}, t.prototype.setDetailListData = function() {}, t.prototype.setListData = function() {
		for (var t, e = 0; e < this._count; e++) {
			var i = this._ringListData[e],
				n = this._ringGotID >= i.bean.q_ring_id;
			if (n) i.status = 2;
			else {
				var a = i.bean.q_ring_time;
				t = this._ringDay >= a, i.status = t ? 1 : 0
			}
		}
	}, t
}();
__reflect(RingDataCenter.prototype, "RingDataCenter");
var RoleCrossDressData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isChengzhu = !1, e.sex = -1, e.modelBodyResID = "", e.modelWeaponResId = "", e.modelWingResId = "", e.modelWeaponSoulResId =
			"", e.displayName = 1, e.featrueType = 0, e._weapon = -1, e._body = -1, e._wing = -1, e._weaponSoul = -1, e._hair = -
			1, e._horse = -1, e._modelHorseResId = "", e._modelHorseHeadResId = "", e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "weaponSoul", {
		get: function() {
			return this._weaponSoul
		},
		set: function(t) {
			var e = this;
			if (e._weaponSoul = t, e._weaponSoul > 0) {
				var i = App.config.q_surfaceContainer.getDataBean(e._weaponSoul);
				i && (e.modelWeaponSoulResId = i.q_scene_show_id)
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "wing", {
		get: function() {
			return this._wing
		},
		set: function(t) {
			var e = this;
			if (e._wing = t, e._wing > 0) {
				var i = App.config.q_surfaceContainer.getDataBean(e._wing);
				i && (e.modelWingResId = i.q_scene_show_id)
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "body", {
		get: function() {
			return this._body
		},
		set: function(t) {
			var e = this;
			e._body = t, e._body > 3 ? App.config.q_surfaceContainer.hasDataBean(e._body) ? e.modelBodyResID = App.config.q_surfaceContainer
				.getDataBean(e._body).q_scene_show_id : App.config.q_itemContainer.hasDataBean(e._body) ? e.modelBodyResID =
				App.config.q_itemContainer.getDataBean(e._body).q_equip_resource : e.modelBodyResID = e._body.toString() : e._body <=
				0 ? e.modelBodyResID = e.sex == EnumRole.BOY ? "zsm00" : "zsw00" : e.modelBodyResID = EnumRole.getDefaultBody(e
					._body, e.sex)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "weapon", {
		get: function() {
			return this._weapon
		},
		set: function(t) {
			var e = this;
			e._weapon = t, !e.modelWeaponResId && e._weapon > 0 && (App.config.q_itemContainer.hasDataBean(e._weapon) ? e.modelWeaponResId =
				App.config.q_itemContainer.getDataBean(e._weapon).q_equip_resource : App.config.q_surfaceContainer.hasDataBean(
					e._weapon) && (e.modelWeaponResId = App.config.q_surfaceContainer.getDataBean(e._weapon).q_scene_show_id))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "hair", {
		get: function() {
			return this._hair
		},
		set: function(t) {
			this._hair = t, this._hair > 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "horse", {
		get: function() {
			return this._hair
		},
		set: function(t) {
			this._horse = t, this._horse > 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "modelHorseResId", {
		get: function() {
			return this._modelHorseResId
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "modelHorseHeadResId", {
		get: function() {
			return this._modelHorseHeadResId
		},
		enumerable: !0,
		configurable: !0
	}), e
}(Dispose);
__reflect(RoleCrossDressData.prototype, "RoleCrossDressData");
var CFaceEffect = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return NetResourceType.ANI_FACE
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.resetAndClear(), App.thing.putIn(this)
	}, e
}(CEffect);
__reflect(CFaceEffect.prototype, "CFaceEffect");
var RoleDataAdvanceTimeCenter = function() {
	function t() {
		this._roleDataHash = new HashObject, this._isStart = !1, this._gapTime = 0
	}
	return Object.defineProperty(t, "instance", {
		get: function() {
			return null == t._instance && (t._instance = new t), this._instance
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.addRoleData = function(t) {
		var e = this;
		e._roleDataHash.put(t.hashCode, t), 0 == e._isStart && (App.timer.doFrameLoop(e, 1, e.onEnterFrame), e._isStart = !
			0)
	}, t.prototype.onEnterFrame = function() {
		var t = this,
			e = App.timer.frametime;
		if (t._gapTime += e, t._gapTime > 30 && App.global.characterData) {
			var i = t._gapTime;
			App.global.characterData.addvanceTime(i);
			var n = t._roleDataHash.$_getValueMap();
			for (var a in n) n[a].addvanceTime(i);
			t._gapTime = 0
		}
	}, t.prototype.deleteRoleData = function(t) {
		this._roleDataHash.del(t.hashCode)
	}, t
}();
__reflect(RoleDataAdvanceTimeCenter.prototype, "RoleDataAdvanceTimeCenter");
var ThemeAdapter = function() {
	function t() {}
	return t.prototype.getTheme = function(t, e, i, n) {
		function a(t) {
			e.call(n, t)
		}

		function o(e) {
			e.resItem.url == t && (RES.removeEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR, o, null), i.call(n))
		}
		RES.addEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR, o, null), RES.getResByUrl(t, a, this, RES.ResourceItem.TYPE_TEXT)
	}, t
}();
__reflect(ThemeAdapter.prototype, "ThemeAdapter", ["eui.IThemeAdapter"]);
var CharcterPartnerRoleData = function(t) {
	function e() {
		var e = t.call(this, App.global.mapModule) || this;
		return e.ownerName = "", e.ownerId = "", e._remainTime = 0, e._stairs = 0, e._changeVisible = !0, e._isInVisableArea = !
			0, e
	}
	return __extends(e, t), e.prototype.createRoleView = function() {
		return this._view = App.thing.create(CharacterPartner, "CharcterPartnerRoleData", !0), this._view
	}, e.prototype.initRoldData = function(t) {
		var e = this;
		e._buffer.clear();
		var i = t;
		e._personId = i.petId.toString(), e._faceDir = i.dir, e._hp = i.hp, e._level = i.level, e._maxHp = i.maxHp, e._ng =
			i.insidePowerVal, e._maxNg = i.insidePowerMaxVal, e.ownerId = i.ownerId.toString(), e._remainTime = i.remainTime,
			e._speed = i.speed, e._serverId = i.serverId, e._stairs = i.stairs, e._nation = i.nation, e.guildId = i.ownerGuildId
			.toString(), e.setTeamId(i.ownerTeamId.toString()), e.group = i.group, e.ownerName = i.ownerName, e.name = i.petName,
			e.positions = i.positions, e.stopAndMoveTo("CharcterPartnerRoleData-initRoldData", i.x, i.y), e._showGroup = i.showgroup,
			e._roleView.hpBar.settingHpValue(e._hp, e._maxHp), e._roleView.hpBar.settingNeiGongValue(e._ng, e._maxNg), e.partnerIndex =
			LongUtil.toNumber(i.index), e._sex = i.sex, e._job = i.job, e.armor = i.armor, e.weapon = i.weapon, e.refreshPlayerPetHp();
		for (var n = i.buffs.length, a = 0; n > a; a++) {
			var o = i.buffs[a];
			e.bufferManager.createBuffer(o.buffId.toString(), o)
		}
		for (var r = i.showSurfaceInfo.length, s = 0; r > s; s++) {
			var h = i.showSurfaceInfo[s];
			e._surface.addSerface(h.surfaceId, h)
		}
		e.surfaceManager.hideSurface(i.hideSurfaceType), RoleDataAdvanceTimeCenter.instance.addRoleData(e)
	}, e.prototype.changeOtherRoleData = function(t) {
		var e = this;
		e.changeAttribute(t.abilityinfo), e.hoopCharmTime = t.hoopCharmTime, e.jadeFairyBottleTime = t.jadeFairyBottleTime,
			e._index = t.index, e._sex = t.sex, e._job = t.job, e._equipStrengList = App.data.forgeCenter.createInfo(t.strengthInfoList),
			e._level = App.global.characterData.getLevel(), App.data.wearEquipCenter.loadWearEquip(t.equips, e), e._equipRefineList =
			App.data.forgeCenter.createInfo(t.refineInfoList), e._equipChuanShiList = App.data.forgeCenter.createInfo(t.chuanShiInfoList),
			e._equipZhuZaoList = App.data.forgeCenter.createInfo(t.zhuZaoInfoList), e._equipFushiList = App.data.forgeCenter.createFushiInfo(
				t.runesInfos), App.data.wingGodCenter().wingGodChange(t.EquipGodWingInfos, t.index), e._weaponSoulList = t.maSoulInfos,
			App.data.characterCenter.loadGuildEquips(t.equipGuildSuitInfo, t.index), App.data.characterCenter.loadChuanqiEquips(
				t.LegendarySuitlistInfo, t.index), App.data.characterCenter.loadLunhuiEquips(t.equipLunHuiInfo, t.index), App.data
			.characterCenter.loadRexueEquips(t.fuseEquipInfo, t.index), App.data.characterCenter.loadFaBaoEquip(t.magicWeapons,
				t.index), App.data.godEquipCenter.loadGodEquips(t.godEquipInfo, t.index), App.global.mapModule.mapSkillModel.changeOperation(
				e), AIFactory.createAi(e, EnumAiType.PARNTER_PVE);
		for (var i, n = t.advanceInfo, a = n.length, o = 0; a > o; o++)
			if (i = n[o]) {
				var r = App.global.roles.getRoleInfoByIndex(t.index);
				if (r) switch (App.data.characterCenter.loadAdvanceEquips(i.equips, i.type, t.index), i.type) {
					case AdvanceType.zuoqi:
						r.mountInfo = i;
						break;
					case AdvanceType.fazhen:
						r.fazhenInfo = i;
						break;
					case AdvanceType.tianbing:
						r.tianBingInfo = i;
						break;
					case AdvanceType.guangyi:
						r.guangyiInfo = i;
						break;
					case AdvanceType.binghun:
						r.binghunInfo = i
				}
			}
	}, e.prototype.getChangeAttributteData = function(e) {
		return t.prototype.getChangeAttributteData.call(this, e)
	}, Object.defineProperty(e.prototype, "isFightAiRuning", {
		get: function() {
			return this._isFightAiRuning
		},
		set: function(t) {
			t != this._isFightAiRuning && (this._isFightAiRuning = t, this.changeAiProcessor())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeAiProcessor = function() {
		var t = this;
		t._isFightAiRuning ? AIFactory.createAi(t, EnumAiType.PARNTER_PVE, t.fightParma) : AIFactory.createAi(t, EnumAiType
			.auxiliary)
	}, e.prototype.refreshCurrentHp = function() {
		var e = t.prototype.refreshCurrentHp.call(this);
		return e && this.refreshPlayerPetHp(), e
	}, e.prototype.refreshPlayerPetHp = function() {
		var t = this;
		t.ownerId == App.global.characterData.personId && (App.global.roles.getRoleInfoByIndex(t.partnerIndex).personId = t
			.personId, App.global.roles.getRoleInfoByIndex(t.partnerIndex).setHp(t.hp, t.maxHp), App.dispatcher.dispatchEvent(
				PlayerAttributeEvent.PLAYER_PET_HP, t.personId, t.ownerId, t.partnerIndex, t.hp, t.maxHp))
	}, e.prototype.refreshCurrentMp = function() {
		var e = t.prototype.refreshCurrentMp.call(this);
		return e && this.refreshPlayerPetMp(), e
	}, e.prototype.refreshPlayerPetMp = function() {
		this.ownerId == App.global.characterData.personId && (App.global.roles.getRoleInfoByIndex(this.partnerIndex).personId =
			this.personId, App.global.roles.getRoleInfoByIndex(this.partnerIndex).setMp(this.mp, this.maxMp), App.dispatcher.dispatchEvent(
				PlayerAttributeEvent.PLAYER_PET_MP, this.personId, this.ownerId, this.partnerIndex, this.mp, this.maxMp))
	}, e.prototype.changeScenePoint = function(t, e) {}, e.prototype.resetIsInVisiableArea = function() {}, e
}(CharacterRoleData);
__reflect(CharcterPartnerRoleData.prototype, "CharcterPartnerRoleData");
var MapDummyRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isInVisableArea = !0, e
	}
	return __extends(e, t), e.prototype.initRoldData = function(t) {}, e.prototype.crossDressing = function(e) {
		t.prototype.crossDressing.call(this, e), this.setName(this._crossData.name), this.changeFeature()
	}, e.prototype.changeFeature = function() {
		var t = this,
			e = t._crossData.modelBodyResID,
			i = t._crossData.modelWeaponResId,
			n = t._crossData.modelWingResId,
			a = t._crossData.sex,
			o = t._crossData.displayName;
		t._roleView.changeAvatarPartAniName(AvatarPartType.BODY, ResPathUtil.getMapAvatarPartRes(AvatarPartType.BODY, a, e)),
			i && t._roleView.changeAvatarPartAniName(AvatarPartType.WEAPON, ResPathUtil.getMapAvatarPartRes(AvatarPartType.WEAPON,
				a, i)), n && t._roleView.changeAvatarPartAniName(AvatarPartType.WING, ResPathUtil.getMapAvatarPartRes(
				AvatarPartType.WING, 1, n)), 1 == o && (t._roleView.nameBar.show(), t._roleView.hpBar.hide())
	}, e.prototype.addvanceTime = function(e) {
		t.prototype.addvanceTime.call(this, e)
	}, e.prototype.createRoleView = function() {
		return App.thing.create(DummyRole, "MapDummyRoleData", !0)
	}, e
}(RoleData);
__reflect(MapDummyRoleData.prototype, "MapDummyRoleData");
var CPlayOnceEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._delayTime = 0, e._passTime = 0, e._totalTime = 0, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return NetResourceType.ONCE_EFFECT
		},
		set: function(t) {},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "delayTime", {
		get: function() {
			return this._delayTime
		},
		set: function(t) {
			this._delayTime = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "finishCallBackFun", {
		get: function() {
			return this._callFun
		},
		set: function(t) {
			this._callFun = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.lastFrameHandler = function() {
		this.aniLength > 0 && this.onComplete()
	}, e.prototype.play = function() {
		this.getCanPlay() ? (t.prototype.play.call(this), this.visible = !0) : (this.addToFrameController(), this.visible = !
			1)
	}, e.prototype.addvanceTime = function(e) {
		var i = this;
		i._totalTime += e, i._totalTime > 4e3 ? i.onComplete() : i.getCanPlay() ? (i._passTime += e, null == i.animator &&
			i._passTime > 1e3 && 0 == i.isDispose ? i.onComplete() : t.prototype.addvanceTime.call(this, e)) : (i._delayTime -=
			e, i.getCanPlay() ? i.play() : (i.stop(), i.visible = !1))
	}, e.prototype.getCanPlay = function() {
		return this._delayTime <= 0
	}, e.prototype.onComplete = function() {
		null != this._callFun && this._callFun.exec(), this.dispose()
	}, e.prototype.dispose = function() {
		var t = this;
		t._callFun = null, t._totalTime = 0, t._passTime = 0, t._delayTime = 0, t.resetAndClear(), App.thing && App.thing.putIn(
			t)
	}, e
}(CEffect);
__reflect(CPlayOnceEffect.prototype, "CPlayOnceEffect");
var MapMonsterRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.dtc = -1, e._dieType = -1, e._attack2RoleTime = 0, e._monsterType = 0, e._monsterGroup = 0, e._showName = !
			1, e._showHp = !1, e._monsterMoveTime = 600, e._isHasBufferColor = !1, e._isCanVisible = !0, e._colorBufferId = "",
			e._colorMatBufferId = "", e._monsterModelId = 0, e._petlevel = 0, e._morph = 0, e._currentMorph = 0, e._state = 0,
			e._bossOwnerId = "", e._bossOwnerName = "", e
	}
	return __extends(e, t), e.prototype.createRoleView = function() {
		return App.thing.create(Monster, "MapMonsterRoleData", !0)
	}, e.prototype.initRoldData = function(t) {
		var e = this;
		e._personId = LongUtil.toString(t.monsterId), e._faceDir = t.dir, e._petlevel = t.petlevel, e._speed = t.speed, e.state =
			t.state, e._hp = LongUtil.toNumber(t.hp), e._clientHp = e._hp, e._maxHp = LongUtil.toNumber(t.maxHp), e.setLevel(t
				.level), e._nation = t.nation, e.morph = t.morph, e.monsterModelId = t.monsterModelId, e.name = t.monsterName, e.positions =
			t.positions, e.setMapPos(t.x, t.y), e._c_move_to_x = e._serverMap_x, e._c_move_to_y = e._serverMap_y, e._showGroup =
			t.showgroup, e._bossOwnerId = LongUtil.toString(t.ownerId), e._bossOwnerName = t.ownerName, e._roleView.hpBar.settingHpValue(
				e._hp, e._maxHp), e._hp != e._maxHp && (e._roleView.hpBar.show(), e._showHp = !0);
		for (var i = t.buffs.length, n = 0; i > n; n++) {
			var a = t.buffs[n];
			e.bufferManager.createBuffer(a.buffId.toString(), a)
		}
	}, e.prototype.crossDressing = function(e) {
		var i = this;
		e != this._crossData && (t.prototype.crossDressing.call(this, e), i.setName(i._crossData.name), i.changeMonsterFeature())
	}, Object.defineProperty(e.prototype, "group", {
		get: function() {
			return 0 == this._group ? this._monsterGroup : this._group
		},
		set: function(t) {
			egret.superSetter(e, this, "group", t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setLevel = function(e) {
		e != this._level && (t.prototype.setLevel.call(this, e), App.dispatcher.dispatchEvent(PlayerAttributeEvent.MONSTER_LEVEL,
			this.personId, e))
	}, e.prototype.setIsDead = function(e) {
		var i = this;
		e != i._isDead && (t.prototype.setIsDead.call(this, e), e && ((ByteUtils.hasKey(i._monsterType, 8) || ByteUtils.hasKey(
				i._monsterType, 4)) && i._roleView.addBossTitle(!1, "[BOSS]"), ByteUtils.hasKey(i._monsterType, 16) && i._roleView
			.clearNameBarSign(), i._monsterMorphBean.q_die_soundid > 0 && App.sound.playSound(i._monsterMorphBean.q_die_soundid
				.toString(), 1e3)))
	}, e.prototype.refreshCurrentHp = function() {
		var e = this,
			i = t.prototype.refreshCurrentHp.call(this);
		return i && (App.dispatcher.dispatchEvent(PlayerAttributeEvent.HP, e.personId, e.hp, e.maxHp), e.hp != e.maxHp ? (e
			._roleView.hpBar.show(), e._showHp = !0) : e._lastAttackRoleId != App.global.characterData.personId && (e._showHp = !
			1)), i
	}, e.prototype.refreshCurrentMp = function() {
		var e = t.prototype.refreshCurrentMp.call(this);
		return e && App.dispatcher.dispatchEvent(PlayerAttributeEvent.MP, this.personId, this.mp, this.maxMp), e
	}, Object.defineProperty(e.prototype, "monsterType", {
		get: function() {
			return this._monsterType
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "state", {
		get: function() {
			return this._state
		},
		set: function(t) {
			var e = this;
			e._state != t && (e._state = t, EnumPlayerState.compare(e._state, EnumPlayerState.DIE) && (e._isDead = !0, e.setDeadState()))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "petlevel", {
		get: function() {
			return this._petlevel
		},
		set: function(t) {
			this._petlevel = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setName = function(t, e, i) {
		void 0 === e && (e = 14540253), void 0 === i && (i = !1);
		var n = this,
			a = Config.isDebug ? " >ID: " + n._personId + "  >表里模板ID: " + n._monsterModelId : "";
		n._crossData && (t = n._crossData.name);
		var o = t + a,
			r = !1;
		if (n._roleView.nameBar.setName(o, e, 18, r), ByteUtils.hasKey(n._monsterType, 131072) && n._roleView.showEscortPalyerName(),
			(ByteUtils.hasKey(n._monsterType, 8) || ByteUtils.hasKey(n._monsterType, 4)) && n._roleView.addBossTitle(!0,
				"[BOSS]"), ByteUtils.hasKey(n._monsterType, 16)) {
			var s = "";
			switch (n._monsterMorphBean.q_monster_job) {
				case EnumRole.ZHAN_SHI:
					n._monsterModelBean.q_sex, s = "";
					break;
				case EnumRole.FA_SHI:
					n._monsterModelBean.q_sex, s = "";
					break;
				case EnumRole.DAO_SHI:
					n._monsterModelBean.q_sex, s = ""
			}
			n._roleView.addNameBarSign(s)
		}
	}, Object.defineProperty(e.prototype, "monsterModelBean", {
		get: function() {
			return this._monsterMorphBean
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "monsterOriginalModelBean", {
		get: function() {
			return this._monsterModelBean
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "morph", {
		get: function() {
			return this._morph
		},
		set: function(t) {
			this._morph != t && (this._morph = t, this.changeMonsterModel())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "monsterModelId", {
		get: function() {
			return this._monsterModelId
		},
		set: function(t) {
			var e = this;
			t != e._monsterModelId && (e._monsterModelId = t, e._monsterModelBean = App.config.q_monsterContainer.getDataBean(
					e._monsterModelId), e._monsterModelBean && (e._monsterType = e._monsterModelBean.q_type), e.addOwnerFilter(),
				e.changeMonsterModel())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeMonsterModel = function() {
		var t = this,
			e = t._morph > 0 ? t._morph : t._monsterModelId;
		if (e != t._currentMorph) {
			t._currentMorph = e, t._monsterMorphBean = App.config.q_monsterContainer.getDataBean(t._currentMorph), t._monsterGroup =
				t._monsterMorphBean.q_camp, t._monsterMorphBean.q_modelHeight > 0 && t.setModelBaseHeight(t._monsterMorphBean.q_modelHeight),
				t._monsterMorphBean.q_title_res && t._roleView.showTitleEffect(ResPathUtil.getTitleEffect(t._monsterMorphBean.q_title_res
					.toString())), t.changeMonsterFeature();
			var i = t._monsterMorphBean.q_movetick;
			i < t._monsterMoveTime && (t._monsterMoveTime = i)
		}
	}, e.prototype.changeMonsterFeature = function() {
		var t = this;
		if (t._crossData) a = t._crossData.sex, i = t._crossData.modelWeaponResId, n = t._crossData.modelWingResId, e = t._crossData
			.modelBodyResID, o = t._crossData.displayName;
		else var e = t._monsterMorphBean.q_pet_featureid ? t._monsterMorphBean.q_pet_featureid : t._monsterMorphBean.q_featureid,
			i = t._monsterMorphBean.q_weapons,
			n = t._monsterMorphBean.q_wing_model,
			a = (t._monsterMorphBean.q_hair, t._monsterMorphBean.q_sex),
			o = t._monsterMorphBean.q_display_name;
		if (0 == a) {
			var r = t._monsterMorphBean.q_pet_featureid ? ResPathUtil.getMapPetAvatarRes(e) : ResPathUtil.getMapMonsterAvatarRes(
				e);
			if (t._roleView.changeAvatarPartAniName(AvatarPartType.BODY, r), 0 != t._monsterMorphBean.q_scale) {
				var s = t._monsterMorphBean.q_scale;
				s /= 100;
				var h = t._roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY);
				h.scaleX = s, h.scaleY = s
			}
		} else t._roleView.changeAniDirType(0), t._roleView.changeAvatarPartAniName(AvatarPartType.BODY, ResPathUtil.getMapAvatarPartRes(
			AvatarPartType.BODY, a, e)), i && "0" != i && t._roleView.changeAvatarPartAniName(AvatarPartType.WEAPON,
			ResPathUtil.getMapAvatarPartRes(AvatarPartType.WEAPON, a, i)), n && "0" != n && t._roleView.changeAvatarPartAniName(
			AvatarPartType.WING, ResPathUtil.getMapAvatarPartRes(AvatarPartType.WING, 1, n));
		1 == o && (t._showHp = !0, t._showName = !0, t._roleView.nameBar.show(), t._roleView.hpBar.show())
	}, e.prototype.getMoveTime = function(t, e, i, n, a, o) {
		void 0 === o && (o = !1);
		var r = this;
		return (r._monsterMoveTime * r.moveSpeed + r._moveSpeedOft) / 1e3
	}, Object.defineProperty(e.prototype, "bossOwnerName", {
		get: function() {
			return this._bossOwnerName
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bossOwnerId", {
		get: function() {
			return this._bossOwnerId
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setBossOwner = function(t, e) {
		var i = this;
		(i._bossOwnerId != t || i._bossOwnerName != e) && (i._bossOwnerId = t, i._bossOwnerName = e, App.dispatcher.dispatchEvent(
			EventType.BOSS_CHANGE_OWNER_ROLE, i._personId, i._bossOwnerId, i._bossOwnerName))
	}, Object.defineProperty(e.prototype, "lastAttackRoleId", {
		set: function(t) {
			var e = this;
			t != e._lastAttackRoleId && (e._lastAttackRoleId = t, (ByteUtils.hasKey(e._monsterType, 4) || ByteUtils.hasKey(e
					._monsterType, 8)) && App.dispatcher.dispatchEvent(EventType.MONSTER_CHANGE_ATTACK_ROLE, e.personId, t)), e._lastAttackRoleId &&
				"0" != e._lastAttackRoleId && (e._attack2RoleTime = 1e4, e.checkShowHpNameInAttackRole())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.checkShowHpNameInAttackRole = function() {
		var t = this;
		t._lastAttackRoleId == App.global.characterData.personId ? (t._roleView.hpBar.show(), t._showHp = !0) : 0 == t._monsterMorphBean
			.q_display_name && (t._showName = !1, t.hp == t.maxHp && (t._showHp = !1))
	}, Object.defineProperty(e.prototype, "dieType", {
		get: function() {
			return this._dieType
		},
		set: function(t) {
			this._dieType = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showHp", {
		get: function() {
			return this._showHp
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showName", {
		get: function() {
			return this._showName
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setGatherState = function(e) {
		this.roleView, t.prototype.setGatherState.call(this, e)
	}, e.prototype.addvanceTime = function(e) {
		var i = this;
		t.prototype.addvanceTime.call(this, e), i._attack2RoleTime > 0 && (i._attack2RoleTime -= e, i._attack2RoleTime <= 0 &&
			(i._lastAttackRoleId = "", i.checkShowHpNameInAttackRole(), App.dispatcher.dispatchEvent(EventType.MONSTER_CHANGE_ATTACK_ROLE,
				i.personId, i._lastAttackRoleId)))
	}, e.prototype.addOwnerFilter = function() {
		var t = this;
		if (t._monsterModelBean && "" != t._monsterModelBean.q_colour && t._roleView && t._roleView.bufferColorFilterCountHash &&
			0 == t._roleView.bufferColorFilterCountHash.length && 0 == t._isHasBufferColor) {
			t._isHasBufferColor = !0;
			var e = t._monsterModelBean.q_colour,
				i = e.split(","),
				n = i[0];
			if ("#00000000" == n) t._isCanVisible = !1, t._roleView.visible = !1;
			else {
				t._colorBufferId = n, n = n.replace("#", "0x");
				var a = parseInt(n, 16);
				if (a > 0 && t._roleView.addBufferFilter(t._colorBufferId, FilterUtil.getConfigColorMatrixFilter(n)), i.length >
					1) {
					var o = parseInt(i[1]),
						r = parseInt(i[2]),
						s = parseInt(i[3]),
						h = parseInt(i[4]);
					t._colorMatBufferId = o + "_" + r + "_" + s + "_" + h, t._roleView.addBufferFilter(t._colorMatBufferId,
						FilterUtil.getConfigAdjustColorMatrixFilter(o, r, s, h))
				}
			}
		}
	}, e.prototype.clearOwnerFilter = function() {
		var t = this;
		t._isHasBufferColor && (0 == t._isCanVisible ? t._roleView.visible = !0 : (t._roleView.removeBufferFilter(t._colorBufferId),
			t._roleView.removeBufferFilter(t._colorMatBufferId)), t._isHasBufferColor = !1)
	}, e.prototype.dispose = function() {
		var e = this;
		e.clearOwnerFilter(), e._monsterModelBean = null, e._monsterMorphBean = null, t.prototype.dispose.call(this)
	}, e
}(MapFightRoleData);
__reflect(MapMonsterRoleData.prototype, "MapMonsterRoleData");
var MapNpcRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._npcModelId = 0, e._sex = 0, e._taskInfoList = null, e._group = -1, e._approach = !1, e._npcModelResId = "",
			e._npcName = "", e
	}
	return __extends(e, t), e.prototype.initRoldData = function(t) {
		var e = this;
		e._personId = t.npcId.toString(), e._taskInfoList = t.taskInfoList, e._sex = t.sex, e._npcName = t.npcName, e.npcModelId =
			t.npcModelId, e.npcModelBean.q_px > 0 || e.npcModelBean.q_py > 0 ? e.setMapPos(e.npcModelBean.q_px, e.npcModelBean
				.q_py) : e.setMapPos(t.x, t.y), e.nation = t.nation, e.group = t.group, e.name = e._npcName, e._showGroup = t.showgroup;
		for (var i = t.buffs.length, n = 0; i > n; n++) {
			var a = t.buffs[n];
			e.bufferManager.createBuffer(a.buffId.toString(), a)
		}
	}, e.prototype.createRoleView = function() {
		return App.thing.create(Npc, "MapNpcRoleData", !0)
	}, e.prototype.setName = function(t, e, i) {
		void 0 === e && (e = 16777215), void 0 === i && (i = !1);
		var n = this;
		"" == t && (t = n._npcModelBean.q_name);
		var a = n._npcModelBean.q_color;
		e = a ? parseInt("0x" + a.substr(1)) : 15844864;
		var o = Config.isDebug ? " >ID: " + n._personId + "  >表里模板ID: " + n._npcModelId : "",
			r = t + o;
		if (-1 != r.indexOf("#")) {
			var s = r.split("#");
			n._roleView.npcTitleName.setName("          " + s[1], e)
		} else n._roleView.nameBar.setName(r, e)
	}, Object.defineProperty(e.prototype, "group", {
		get: function() {
			return this._group
		},
		set: function(t) {
			t > 0 && (this._group = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "taskInfoList", {
		get: function() {
			return this._taskInfoList
		},
		set: function(t) {
			this._taskInfoList = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "sex", {
		get: function() {
			return this._sex
		},
		set: function(t) {
			var e = this;
			e._sex != t && (e._sex = t, e.changeNpcModelRes())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "npcModelId", {
		get: function() {
			return this._npcModelId
		},
		set: function(t) {
			var e = this;
			if (e._npcModelId != t && (e._npcModelId = t, e._npcModelBean = App.config.q_npcContainer.getDataBean(e._npcModelId),
					e._npcModelBean)) {
				e._faceDir = e._npcModelBean.q_direction, e._npcModelBean.q_modelHeight > 0 && e.setModelBaseHeight(e._npcModelBean
					.q_modelHeight);
				var i = e._npcModelBean.q_title_res;
				if (i) {
					var n = i.substr(0, 1);
					if ("0" == n) {
						var a = e._roleView;
						a.ShowHeadImg(ResPathUtil.getResImage(i, "npchead"))
					} else "1" == n && e._roleView.showTitleEffect(ResPathUtil.getTitleEffect(e._npcModelBean.q_title_res.toString()));
					e._npcName || e._roleView.nameBar.hide()
				} else e._roleView.nameBar.show();
				e._npcModelResId = e._npcModelBean.q_resource, e._npcModelBean.q_isturn > 0 && e._faceDir != h5_engine.SceneType
					.BOTTOM && e._faceDir != h5_engine.SceneType.TOP && (e._roleView.cavatar.scaleX = -1 * e._roleView.cavatar.scaleX,
						e._roleView.shadow.view.scaleX = e._roleView.cavatar.scaleX), e.changeNpcModelRes()
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeNpcModelRes = function() {
		this._npcModelResId && this._roleView.changeAvatarPartAniName(AvatarPartType.BODY, ResPathUtil.getMapNpcAvatarRes(
			this._npcModelResId, this._sex))
	}, Object.defineProperty(e.prototype, "npcModelBean", {
		get: function() {
			return this._npcModelBean
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addvanceTime = function(e) {
		t.prototype.addvanceTime.call(this, e);
		var i = this,
			n = i.npcModelBean;
		if (51 == n.q_energy_type) {
			var a = App.config.q_globalContainer.getDataBean(320).q_int_value,
				o = App.global.characterData,
				r = Math.abs(o.mapNode_x - n.q_x) <= a && Math.abs(o.mapNode_y - n.q_y) <= a;
			i._approach != r && (i._approach = r, App.dispatcher.dispatchEvent(CrossEvent.APPROACH_FLAG, i.personId, n.q_id, r))
		}
	}, e.prototype.dispose = function() {
		this._npcModelBean = null, t.prototype.dispose.call(this)
	}, e
}(RoleData);
__reflect(MapNpcRoleData.prototype, "MapNpcRoleData");
var MapPetRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._petModelId = -1, e._monsterModelId = -1, e._ownerId = "", e._ownerName = "", e._remainTime = 0, e._stairs =
			0, e._isZhanshen = !1, e._petModelLvl = 0, e._attack2RoleTime = 0, e._petMoveTime = 500, e._showName = !1, e._showHp = !
			1, e
	}
	return __extends(e, t), e.prototype.createRoleView = function() {
		return App.thing.create(Pet, "MapPetRoleData", !0)
	}, Object.defineProperty(e.prototype, "name", {
		set: function(t) {
			var e = this;
			t != e._name ? (e._name = t, e.setName(t)) : e.setName(t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setName = function(t, e, i) {
		void 0 === e && (e = 16777215), void 0 === i && (i = !1);
		var n = Config.isDebug ? " >ID: " + this._personId + "  >表里模板ID: " + this._petModelId : "",
			a = t + n;
		999 == this._petModelBean.q_pettype && (e = GameUtil.getQualityColor(this._petModelBean.q_pinzhi)), this._roleView.nameBar
			.setName(a, e)
	}, Object.defineProperty(e.prototype, "remainTime", {
		get: function() {
			return this._remainTime
		},
		set: function(t) {
			this._remainTime = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "ownerName", {
		get: function() {
			return this._ownerName
		},
		set: function(t) {
			var i = this;
			t != i._ownerName && (i._ownerName = t, t = i._name + "（" + i._ownerName + "）", egret.superSetter(e, i, "name",
				t))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "ownerId", {
		get: function() {
			return this._ownerId
		},
		set: function(t) {
			this._ownerId = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setLevel = function(e) {
		e != this._level && (t.prototype.setLevel.call(this, e), App.dispatcher.dispatchEvent(PlayerAttributeEvent.MONSTER_LEVEL,
			this.personId, e), this.changeFeature())
	}, Object.defineProperty(e.prototype, "petModelLvl", {
		set: function(t) {
			t != this._petModelLvl && (this._petModelLvl = t, this.changeFeature())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "stairs", {
		get: function() {
			return this._stairs
		},
		set: function(t) {
			this._stairs = t, this.changeFeature()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "petModelId", {
		get: function() {
			return this._petModelId
		},
		set: function(t) {
			this._petModelId != t && (this._petModelId = t, this.changeFeature())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "petModelBean", {
		get: function() {
			return this._petModelBean
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "monsterModelBean", {
		get: function() {
			return this._monsterModelBean
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getMoveTime = function(t, e, i, n, a, o) {
		void 0 === o && (o = !1);
		var r = this;
		return (r._petMoveTime * r.moveSpeed + r._moveSpeedOft) / 1e3
	}, Object.defineProperty(e.prototype, "isZhanshen", {
		get: function() {
			return this._isZhanshen
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeFeature = function() {
		var t = this,
			e = "";
		t._petModelBean = App.config.q_petContainer.getDataBean(1e3 * t._petModelId + t._petModelLvl), t._monsterModelBean =
			App.config.q_monsterContainer.getDataBean(t._monsterModelId);
		var i = 0;
		if (t._petModelBean) {
			if (t._isZhanshen = !0, t._roleView.isMouseEnabled = !1, e = t._petModelBean.q_featureid, t._petModelBean.q_modelHeight >
				0 && t.setModelBaseHeight(t._petModelBean.q_modelHeight), t._roleView.changeAniDirType(1), t._roleView.changeAvatarPartAniName(
					AvatarPartType.BODY, ResPathUtil.getMapPetAvatarRes(e)), t._roleView.shadow.visible = 888 == t._petModelBean.q_pettype ?
				!1 : !0, 999 == t._petModelBean.q_pettype && t.ownerId == App.global.characterData.personId && (t._showName = !0,
					t._roleView.nameBar.show()), t._petModelBean.q_scale > 0) {
				var n = t._petModelBean.q_scale;
				n /= 100;
				var a = t._roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY);
				a.scaleX = n, a.scaleY = n
			}
			i = t.petModelBean.q_movetick
		} else t._monsterModelBean && (e = t._monsterModelBean.q_featureid, t._roleView.changeAniDirType(1), t.setModelBaseHeight(
			t._monsterModelBean.q_modelHeight), t._roleView.changeAvatarPartAniName(AvatarPartType.BODY, ResPathUtil.getMapMonsterAvatarRes(
			e)), i = t._monsterModelBean.q_movetick);
		var o = i;
		o < t._petMoveTime && (t._petMoveTime = o + 30)
	}, Object.defineProperty(e.prototype, "lastAttackRoleId", {
		set: function(t) {
			var e = this;
			t != e._lastAttackRoleId && (e._lastAttackRoleId = t, e._lastAttackRoleId && "0" != e._lastAttackRoleId && (e._attack2RoleTime =
				1e4))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showHp", {
		get: function() {
			return this._showHp
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showName", {
		get: function() {
			return this._showName
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.initRoldData = function(t) {
		var e = this;
		e._faceDir = t.dir, e._hp = t.hp, e._level = t.level, e._petModelLvl = t.petModelLvl, e._maxHp = t.maxHp, e._ownerId =
			LongUtil.toString(t.ownerId), e._personId = LongUtil.toString(t.petId), e._remainTime = t.remainTime, e._speed = t
			.speed, e._stairs = t.stairs, e._nation = t.nation, e.guildId = LongUtil.toString(t.ownerGuildId), e.setTeamId(
				LongUtil.toString(t.ownerTeamId)), e._monsterModelId = t.monsterModelId, e.petModelId = t.petModelId, e.ownerName =
			t.ownerName, e.name = t.petName, e.positions = t.positions, e.setMapPos(t.x, t.y), e._c_move_to_x = e._serverMap_x,
			e._c_move_to_y = e._serverMap_y, e._showGroup = t.showgroup, e.group = t.group, e._ownerId == App.global.characterData
			.personId && (e._roleView.hpBar.mustShowHpText = !0), e._roleView.hpBar.settingHpValue(e._hp, e._maxHp);
		for (var i = t.buffs.length, n = 0; i > n; n++) {
			var a = t.buffs[n];
			e.bufferManager.createBuffer(a.buffId.toString(), a)
		}
	}, e.prototype.refreshCurrentHp = function() {
		var e = this,
			i = t.prototype.refreshCurrentHp.call(this);
		return i && App.dispatcher.dispatchEvent(PlayerAttributeEvent.HP, e.personId, e.hp, e.maxHp), i
	}, e.prototype.addvanceTime = function(e) {
		var i = this;
		t.prototype.addvanceTime.call(this, e), i._attack2RoleTime > 0 && (i._attack2RoleTime -= e, i._attack2RoleTime <= 0 &&
			(i._lastAttackRoleId = ""))
	}, e.prototype.dispose = function() {
		var e = this;
		e._petModelBean = null, e._monsterModelBean = null, e._roleView.isMouseEnabled = !0, t.prototype.dispose.call(this)
	}, e
}(MapFightRoleData);
__reflect(MapPetRoleData.prototype, "MapPetRoleData");
var MapPlayerPartnerRoleData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ownerName = "", e.ownerId = "", e._partnerIndex = -1, e._remainTime = 0, e._stairs = 0, e
	}
	return __extends(e, t), e.prototype.createRoleView = function() {
		return this._view = App.thing.create(Partner, "MapPlayerPartnerRoleData", !0), this._view
	}, e.prototype.initRoldData = function(t) {
		var e = this,
			i = t;
		e._personId = i.petId.toString(), e._faceDir = i.dir, e._hp = i.hp, e._level = i.level, e._maxHp = i.maxHp, e._ng =
			i.insidePowerVal, e._maxNg = i.insidePowerMaxVal, e.ownerId = i.ownerId.toString(), e._remainTime = i.remainTime,
			e._speed = i.speed, e._stairs = i.stairs, e._nation = i.nation, e._serverId = i.serverId, e._guildId = i.ownerGuildId
			.toString(), e.group = i.group, e.setTeamId(i.ownerTeamId.toString()), e.ownerName = i.ownerName, e.name = i.petName,
			e.positions = i.positions, e.setMapPos(i.x, i.y), e._c_move_to_x = e._serverMap_x, e._c_move_to_y = e._serverMap_y,
			e._showGroup = i.showgroup, e._roleView.hpBar.settingHpValue(e._hp, e._maxHp), e._roleView.hpBar.settingNeiGongValue(
				e._ng, e._maxNg), e._partnerIndex = LongUtil.toNumber(i.index), e._sex = i.sex, e._job = i.job, e.armor = i.armor,
			e.weapon = i.weapon, 0 != LongUtil.toNumber(i.gatherId) && e.setGatherState(!0);
		for (var n = i.buffs.length, a = 0; n > a; a++) {
			var o = i.buffs[a];
			e.bufferManager.createBuffer(o.buffId.toString(), o)
		}
		for (var r = i.showSurfaceInfo.length, s = 0; r > s; s++) {
			var h = i.showSurfaceInfo[s];
			e._surface.addSerface(h.surfaceId, h)
		}
		e.surfaceManager.hideSurface(i.hideSurfaceType)
	}, e.prototype.checkInShenyuan = function(e, i) {
		return t.prototype.checkInShenyuan.call(this, this.ownerId, i)
	}, e
}(MapPlayerRoleData);
__reflect(MapPlayerPartnerRoleData.prototype, "MapPlayerPartnerRoleData");
var CUIShowAvatar = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._delayChangePartAniHash = new HashObject, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.makeAvatar(), this.play()
	}, e.prototype.play = function() {
		App.timer.doFrameLoop(this, 1, this.onEnterFrame)
	}, e.prototype.stop = function() {
		App.timer.clearTimer(this.onEnterFrame, this)
	}, Object.defineProperty(e.prototype, "aniDirType", {
		get: function() {
			return this._avatar.aniDirType
		},
		set: function(t) {
			var e = this;
			e._avatar.aniDirType = t, e._wing && (e._wing.aniDirType = t), e._weapon && (e._weapon.aniDirType = t), e._mount &&
				(e._mount.aniDirType = t), e._weaponSoul && (e._weaponSoul.aniDirType = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "playEndHanlder", {
		get: function() {
			return this._avatar.playEndHanlder
		},
		set: function(t) {
			this._avatar.playEndHanlder = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "dir", {
		get: function() {
			return this._avatar.dir
		},
		set: function(t) {
			var e = this;
			e._avatar.dir = t, e._wing && (e._wing.dir = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.makeAvatar = function() {
		null == this._avatar && (this._avatar = this.createOneAvatar(), this.changeDepth())
	}, e.prototype.makeWing = function() {
		null == this._wing && (this._wing = this.createOneAvatar(), this.changeDepth())
	}, e.prototype.makeWeapon = function() {
		null == this._weapon && (this._weapon = this.createOneAvatar(), this.changeDepth())
	}, e.prototype.makeWeaponSoul = function() {
		null == this._weaponSoul && (this._weaponSoul = this.createOneAvatar(), this.changeDepth())
	}, e.prototype.makeMount = function() {
		null == this._mount && (this._mount = this.createOneAvatar(), this.changeDepth())
	}, e.prototype.createOneAvatar = function() {
		var t = new h5_engine.CAvatar;
		return t.dir = h5_engine.SceneType.TOP, t.changeAct(AvatarActionType.ACTION_TYPE_UI), t.play(), t
	}, e.prototype.changeDepth = function() {
		var t = this;
		t._wing && t.addChild(t._wing), t.addChild(t._avatar), t._weapon && t.addChild(t._weapon), t._weaponSoul && t.addChild(
			t._weaponSoul), this._mount && t.addChild(t._mount)
	}, e.prototype.setWingPos = function(t) {
		void 0 === t && (t = 0), this.makeWing(), null != this._wing && (this._wing.y = t)
	}, e.prototype.changeAct = function(t, e, i) {
		void 0 === e && (e = !0), void 0 === i && (i = !1);
		var n = this;
		n._avatar.changeAct(t, e, i), n._weapon && n._weapon.changeAct(t, e, i), n._weaponSoul && n._weaponSoul.changeAct(t,
			e, i), n._wing && n._wing.changeAct(t, e, i), n._mount && n._mount.changeAct(t, e, i)
	}, e.prototype.removePart = function(t) {
		var e = this;
		t == AvatarPartType.WING ? (e.destoryPart(e._wing), e._wing = null) : t == AvatarPartType.WEAPON ? (e.destoryPart(e
				._weapon), e._weapon = null) : t == AvatarPartType.HORSE ? (e.destoryPart(e._mount), e._mount = null) : t ==
			AvatarPartType.WEAPONSOUL ? (e.destoryPart(e._weaponSoul), e._weaponSoul = null) : e._avatar.removePart(t), e._delayChangePartAniHash
			.del(t)
	}, e.prototype.getCAvavtarPatr = function(t) {
		var e = this;
		return t == AvatarPartType.WING ? (e.makeWing(), e._wing.getCAvavtarPatr(AvatarPartType.BODY)) : t ==
			AvatarPartType.WEAPON ? (e.makeWeapon(), e._weapon.getCAvavtarPatr(AvatarPartType.BODY)) : t == AvatarPartType.HORSE ?
			(e.makeMount(), e._mount.getCAvavtarPatr(AvatarPartType.BODY)) : t == AvatarPartType.WEAPONSOUL ? (e.makeWeaponSoul(),
				e._weaponSoul.getCAvavtarPatr(AvatarPartType.BODY)) : (null == e._avatar.getCAvavtarPatr(t) && e._avatar.addPart(
				t), e._avatar.getCAvavtarPatr(t))
	}, e.prototype.changeAvatarPartResource = function(t, e) {
		this._delayChangePartAniHash.put(t, e)
	}, e.prototype.changePlayerRolePartResource = function(t, e, i) {
		i && this.changeAvatarPartResource(t, ResPathUtil.getMapAvatarPartRes(t, e, i))
	}, e.prototype.changeTitle = function(t) {
		this._titleEffect ? this._titleEffect.url = t : this._titleEffect = EffectUtils.showCEffect(this, this, t, 0, -250,
			this._titleEffect)
	}, e.prototype.onEnterFrame = function() {
		var t = this;
		t._avatar && t._avatar.addvanceTime(App.timer.frametime), t._wing && t._wing.addvanceTime(App.timer.frametime), t._weapon &&
			t._weapon.addvanceTime(App.timer.frametime), t._mount && t._mount.addvanceTime(App.timer.frametime), t._weaponSoul &&
			t._weaponSoul.addvanceTime(App.timer.frametime), t._delayChangePartAniHash.length > 0 && t._delayChangePartAniHash
			.foEach(t.setPartName, t)
	}, e.prototype.setPartName = function(t, e) {
		t != AvatarPartType.WEAPON && (this.getCAvavtarPatr(t).aniName = e)
	}, e.prototype.destoryPart = function(t) {
		t && (t.dispose(), this.contains(t) && this.removeChild(t))
	}, e.prototype.dispose = function() {
		var t = this;
		t._delayChangePartAniHash && (t._delayChangePartAniHash.dispose(), t._delayChangePartAniHash = null), t.stop(), t.destoryPart(
				t._avatar), t._avatar = null, t.destoryPart(t._wing), t._wing = null, t.destoryPart(t._weapon), t._weapon = null,
			t.destoryPart(t._mount), t._mount = null, t.destoryPart(t._weaponSoul), t._weaponSoul = null, t._titleEffect && t._titleEffect
			.dispose(), t._titleEffect = null
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(CUIShowAvatar.prototype, "CUIShowAvatar");
var AutoRobotCenter = function() {
	function t() {
		this.pingbiBol = 0
	}
	return t.prototype.setSound = function() {
		this.autoData && (App.sound.isCloseBgm = this.autoData.isCloseBgm, App.sound.isCloseSound = this.autoData.isCloseSound,
			App.sound.bgmVolume = this.autoData.bgm, App.sound.effectVolume = this.autoData.sound)
	}, t.prototype.saveAutoData = function() {
		SetupmenuSender.sendC2S_SetAutoMenuStatusMessage(), this.autoData && this.autoData.printLog("前端发送保存设置")
	}, Object.defineProperty(t.prototype, "autoData", {
		get: function() {
			return App.global.characterData ? App.global.characterData.autoSettingData : null
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(AutoRobotCenter.prototype, "AutoRobotCenter");
var AutoSettingData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init = !1, e.isRefuseDeal = !1, e.isRefuseTeam = !1, e.isHuichengConfirm = !0, e.isUnShift = !1, e.isAutoAddHp = !
			0, e.autoAddHpValue = 80, e.isAutoAddMp = !0, e.autoAddMpValue = 20, e.isAutoFly = !1, e.autoFlyValue = 15, e.autoFlyUse =
			EnumItemId.HUI_CHENG, e.isAutoUseBuffSkill = !0, e.bufferSkillid = 0, e.isAutoUseExpandBuffer = !0, e.isAutoUseExpandBuffer2 = !
			0, e.expandBufferSkillId = EnumSkillID.LIE_HUO_JIAN_FA, e.expandBufferSkillId2 = EnumSkillID.ZHU_RI_JIAN_FA, e.isRunFollowMouse =
			0, e.isAutoSummonPet1 = !0, e.autoSummonPetId1 = EnumSkillID.ZHAO_HUAN_DOG, e.isAutoSummonPet2 = !1, e.autoSummonPetId2 =
			0, e.rangType = 3, e.dropGoldCd = 6e4, e.dropPotionCd = 6e4, e.dropOtherCd = 0, e.dropMaterialCd = 0, e.isDropGold = !
			0, e.isDropPotion = !0, e.isDropMaterial = !0, e.isDropOther = !0, e.isDropEquipLv = !0, e.isDropEquipQuality = !1,
			e.dropEquipLevel = 0, e.dropEquipZhuanshengLevel = 0, e.dropEquipQuality = 0, e.isCloseBgm = !1, e.isCloseSound = !
			1, e.isAutoHeji = !1, e.isAutoClickHeji = 0, e.isZhenPin = !0, e.bgm = 0, e.sound = 0, e.huishouLv = 60, e.petState =
			0, e.runOrWalk_weiduan = 1, e.runOrWalk_web = 2, e.inside_up = {}, e._isAutoShift = !1, App.platform.agent ==
			EnumPlatform.GAME_HUDIEHUDONG || App.platform.agent == EnumPlatform.GAME_AIWEIYOU ? (App.sound.isCloseBgm = e.isCloseBgm =
				0 == Platfrom_HDHD.is_gameSound, App.sound.isCloseSound = e.isCloseSound = 0 == Platfrom_HDHD.is_gameSound) : (App
				.sound.isCloseBgm = e.isCloseBgm = !1, App.sound.isCloseSound = e.isCloseSound = !1), e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "isAutoShift", {
		get: function() {
			return this._isAutoShift
		},
		set: function(t) {
			this._isAutoShift = t, App.dispatcher.dispatchEvent(EventType.SHIFT_UNSHIFT_CHANGE, this._isAutoShift)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.toJosnString = function() {
		this.init = !0;
		var t = {};
		return t.refuseTeam = this.isRefuseTeam, t.refuseDeal = this.isRefuseDeal, t.isHuichengConfirm = this.isHuichengConfirm,
			t.autoHp = this.isAutoAddHp, t.hp = this.autoAddHpValue, t.autoMp = this.isAutoAddMp, t.mp = this.autoAddMpValue,
			t.isAutoFly = this.isAutoFly, t.fly = this.autoFlyValue, t.flyUse = this.autoFlyUse, t.buffId = this.bufferSkillid,
			t.isAutoUseBuffSkill = this.isAutoUseBuffSkill, t.isAutoUseExpandBuffer = this.isAutoUseExpandBuffer, t.isAutoUseExpandBuffer2 =
			this.isAutoUseExpandBuffer2, t.expandBufferSkillId = this.expandBufferSkillId, t.expandBufferSkillId2 = this.expandBufferSkillId2,
			t.isAutoSummonPet1 = this.isAutoSummonPet1, t.autoSummonPetId1 = this.autoSummonPetId1, t.isAutoSummonPet2 = this.isAutoSummonPet2,
			t.autoSummonPetId2 = this.autoSummonPetId2, t.rangType = this.rangType, t.dropList = [Number(this.isDropGold),
				Number(this.isDropPotion), Number(this.isDropMaterial), Number(this.isDropOther)
			], t.isDropEquipQuality = this.isDropEquipQuality, t.isDropEquipLv = this.isDropEquipLv, t.dropEquipQuality = this
			.dropEquipQuality, t.dropEquipLevel = this.dropEquipLevel, t.isAutoShift = this.isAutoShift, t.isCloseBgm = this.isCloseBgm,
			t.isCloseSound = this.isCloseSound, t.bgm = this.bgm, t.sound = this.sound, t.isRunFollowMouse = this.isRunFollowMouse,
			t.dropEquipZhuanshengLevel = this.dropEquipZhuanshengLevel, t.huishouLv = this.huishouLv, t.petState = this.petState,
			t.runOrWalk_weiduan = this.runOrWalk_weiduan, t.runOrWalk_web = this.runOrWalk_web, t.isAutoHeji = this.isAutoHeji,
			t.isAutoClickHeji = this.isAutoClickHeji, t.isZhenPin = this.isZhenPin, t.inside_up = this.inside_up, JSON.stringify(
				t)
	}, e.prototype.setJsonString = function(t) {
		if (null != t && "" != t) {
			this.init = !0;
			var e = StringUtil.JsonParse(StringUtil.replacJosnStr(t));
			this.isRefuseTeam = Boolean(e.refuseTeam), this.isRefuseDeal = Boolean(e.refuseDeal), this.isRefuseDeal = Boolean(
					e.refuseDeal), this.isHuichengConfirm = e.isHuichengConfirm, this.autoAddHpValue = e.hp, this.isAutoAddMp =
				Boolean(e.autoMp), this.autoAddMpValue = e.mp, this.isAutoFly = Boolean(e.isAutoFly), this.autoFlyValue = e.fly,
				this.autoFlyUse = e.flyUse, this.bufferSkillid = e.buffId, this.rangType = e.rangType, this.isDropGold = Boolean(
					e.dropList[0]), this.isDropPotion = Boolean(e.dropList[1]), this.isDropMaterial = Boolean(e.dropList[2]), this.isDropOther =
				Boolean(e.dropList[3]), this.isDropEquipQuality = Boolean(e.isDropEquipQuality), this.isDropEquipLv = Boolean(e.isDropEquipLv),
				this.dropEquipQuality = e.dropEquipQuality, this.dropEquipLevel = e.dropEquipLevel, this.isAutoShift = Boolean(e.isAutoShift),
				App.platform.agent == EnumPlatform.GAME_HUDIEHUDONG || App.platform.agent == EnumPlatform.GAME_AIWEIYOU ? (App.sound
					.isCloseBgm = this.isCloseBgm = 0 == Platfrom_HDHD.is_gameSound, App.sound.isCloseSound = this.isCloseSound = 0 ==
					Platfrom_HDHD.is_gameSound) : (App.sound.isCloseBgm = this.isCloseBgm = Boolean(e.isCloseBgm), App.sound.isCloseSound =
					this.isCloseSound = Boolean(e.isCloseSound)), this.bgm = e.bgm, this.sound = e.sound, this.isRunFollowMouse = e.isRunFollowMouse,
				this.dropEquipZhuanshengLevel = e.dropEquipZhuanshengLevel, this.huishouLv = e.huishouLv, this.petState = e.petState,
				this.runOrWalk_weiduan = 0 == e.runOrWalk_weiduan ? 1 : e.runOrWalk_weiduan, this.runOrWalk_web = 0 == e.runOrWalk_web ?
				2 : e.runOrWalk_web, this.isAutoHeji = e.isAutoHeji, this.isAutoClickHeji = e.isAutoClickHeji, this.isZhenPin = e
				.isZhenPin, e.inside_up && (this.inside_up = e.inside_up), App.dispatcher.dispatchEvent(AutoEvent.MAP_MUSIC_CHANGE,
					!this.isCloseBgm || !this.isCloseSound), App.dispatcher.dispatchEvent(AutoEvent.AUTO_REFRESH)
		}
	}, e.prototype.printLog = function(t) {
		void 0 === t && (t = "");
		var e = new Date(ServerTime.serverTime);
		StringUtil.resloveFormatHMS(e.getTime()) + t + "\n系统设置页面：\n背景音乐是否关闭：" + this.isCloseBgm + " 背景音乐大小：" + this.bgm +
			" 音效是否关闭：" + this.isCloseSound + " 音效大小：" + this.sound + " 是否拒绝交易:" + this.isRefuseDeal + " 是否拒绝组队:" + this.isRefuseTeam +
			" 是否回城确认：" + this.isHuichengConfirm + "\n战斗设置页面\n免shift键：" + this.isAutoShift + " 是否自动使用buff：" + this.isAutoUseBuffSkill +
			" buffid：" + this.bufferSkillid + " 是否使用额外技能（烈火逐日）：" + this.isAutoUseExpandBuffer + " 额外技能id：" + this.expandBufferSkillId +
			" 是否使用宝宝1：" + this.isAutoSummonPet1 + " 宝宝1id：" + this.autoSummonPetId1 + " 是否使用宝宝2：" + this.isAutoSummonPet2 +
			" 宝宝2id:" + this.autoSummonPetId2 + " 是否野蛮冲撞跟随鼠标:" + this.isRunFollowMouse + " 挂机类型:" + this.rangType +
			" \n挂机页面\n是否自动加血:" + this.isAutoAddHp + " 自动加血设定血量值:" + this.autoAddHpValue + " 是否自动加蓝:" + this.isAutoAddMp +
			" 自动加蓝设定血量值:" + this.autoAddMpValue + " 是否自动使用随机石或者回城石:" + this.isAutoFly + " 自动使用随机石或者回城石的物品ID：" + this.autoFlyUse +
			" 自动使用随机石或者回城石设定的血量:" + this.autoFlyValue + " 是否自动捡取药品：" + this.isDropPotion + " 是否自动捡取金币：" + this.isDropGold +
			" 是否自动捡取材料：" + this.isDropMaterial + " 自动捡取其他：" + this.isDropOther + " 是否自动捡取指定等级装备：" + this.isDropEquipLv +
			" 拾取掉落的装备等级：" + this.dropEquipLevel + " 拾取转身的装备等级:" + this.dropEquipZhuanshengLevel + " 是否自动捡取指定品质装备：" + this.isDropEquipQuality +
			" 拾取装备品质：0白色，1绿色，2蓝色，3紫色，4橙色 ,5红色:" + this.dropEquipQuality + " 回城2次确认：" + this.isHuichengConfirm
	}, e
}(egret.HashObject);
__reflect(AutoSettingData.prototype, "AutoSettingData");
var RecoverySetData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.stayEquips = !0, e.whiteEquips = !0, e.greenEquips = !0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(RecoverySetData.prototype, "RecoverySetData");
var MeridianData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(MeridianData.prototype, "MeridianData");
var SkillCenter = function() {
	function t() {
		this.meriHash = new HashMap, this._dataHash = {}, this._roleHash = new HashObject, this.insidePower = new InsidePowerCenter
	}
	return t.prototype.loadSkills = function(t) {
		if (t) {
			for (var e, i, n = t.length, a = 0; n > a; a++) e = this.getSkill(t[a].skillModelId), (null != e || (e = new SkillData(
				t[a]), null != e.bean)) && (this._dataHash[e.skillId] = e, 1 == e.bean.q_skill_user && (i = this._roleHash.get(e
				.roleIndex), null == i && (i = new HashMap, this._roleHash.put(e.roleIndex, i)), i.put(e.skillId, e)));
			App.dispatcher.dispatchEvent(SkillEvent.REFRESH)
		}
	}, t.prototype.addSkill = function(t) {
		if (this._roleHash) {
			var e = this._roleHash.get(LongUtil.toNumber(t.index));
			null == e && (e = new HashMap, this._roleHash.put(LongUtil.toNumber(t.index), e));
			var i = this.getSkill(t.skillModelId);
			null != i ? (i.convert(t), App.dispatcher.dispatchEvent(SkillEvent.CHANGE, i)) : (i = new SkillData(t), e.put(i.skillId,
					i), this._dataHash[i.skillId] = i, 0 == EnumSkillID.isPutongGongji(i.skillId) && 1 == LongUtil.toNumber(t.index) &&
				PopUtil.start(PopUtil.SKILL, i.skillId), App.dispatcher.dispatchEvent(SkillEvent.ADD, i))
		}
	}, t.prototype.removeSkill = function(t) {
		var e = this._dataHash[t];
		null != e && (this._dataHash[t] = null, App.dispatcher.dispatchEvent(SkillEvent.REMOVE, e))
	}, t.prototype.getSkill = function(t) {
		return this._dataHash[t]
	}, t.prototype.getRoleSkill = function(t, e) {
		var i = this._roleHash.get(t);
		return null == i ? null : i.get(e)
	}, t.prototype.getRoleSkillList = function(t) {
		var e = this._roleHash.get(t);
		return null == e || null == e.values ? null : e.values.sort(this.sortData)
	}, t.prototype.isCanUp = function(t, e) {
		void 0 === e && (e = !1);
		var i = this.getSkill(t);
		if (null == i) return !1;
		if (0 == i.nextGradeID) return e && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">技能等级已满</font>"), !1;
		var n = App.global.characterData;
		if (n.zhuanSheng < i.bean.q_zuans_lv) return e && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">角色转生等级不足</font>"), !1;
		if (n.level < i.bean.q_needgrade) return e && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">角色等级不足</font>"), !1;
		var a = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
		return a < i.bean.q_neednum_gold ? (e && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">金币不足</font>"), !1) : !0
	}, t.prototype.getJobSkillList = function(t) {
		for (var e = new HashMap, i = App.config.q_skillModelContainer.list, n = i.length, a = 0; n > a; a++) i[a].q_skill_job !=
			t && 0 != i[a].q_skill_job || 1 != i[a].q_open || 0 != i[a].q_skill_upuser_job || i[a].q_skillID != EnumSkillID.HEJI_ZHANSHI &&
			i[a].q_skillID != EnumSkillID.HEJI_FASHI && i[a].q_skillID != EnumSkillID.HEJI_DAOSHI && (e.has(i[a].q_skillID) ||
				e.put(i[a].q_skillID, i[a]));
		return e.values.sort(this.sortBean)
	}, t.prototype.loadMeridian = function(t) {
		this.meriHash || (this.meriHash = new HashMap);
		for (var e = t.length, i = 0; e > i; i++) this.meriHash.put(t[i].index, t[i].meridianId)
	}, t.prototype.getMeridianRedpoint = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++)
			if (this.getMeridianroleRedPoint(t[e].roleIndex)) return !0;
		return !1
	}, t.prototype.getMeridianroleRedPoint = function(t) {
		var e = this.meriHash.get(t);
		if (e) {
			var i = App.config.q_meridianContainer.getDataBean(e);
			if (0 == i.q_next_id) return !1;
			if ("" == i.q_num) return !0;
			var n = StringUtil.JsonParse(i.q_num),
				a = App.data.bagItemDataCenter.getItemCount(n[0].id);
			if (a >= n[0].num) return !0
		} else {
			if (!App.global.funcOpen.isFunctionOpen(147, "", !1)) return !1;
			if (App.data.bagItemDataCenter.getItemCount(24) >= 1) return !0
		}
		return !1
	}, t.prototype.getJobLvUpIDs = function(t, e) {
		void 0 === e && (e = !1);
		var i, n = this.getJobSkillList(t),
			a = [],
			o = n.length;
		if (e) {
			for (var r = 0, s = 0; o > s; s++) i = this.getSkill(n[s].q_skillID), i && this.isCanUp(n[s].q_skillID, !1) || r++;
			e = r >= o ? !0 : !1
		}
		for (var s = 0; o > s; s++) i = this.getSkill(n[s].q_skillID), i && this.isCanUp(n[s].q_skillID, e) ? (e = !1, a.push(
			n[s].q_skillID)) : e = !1;
		return a
	}, t.prototype.sortLvUp = function(t, e) {
		return t.level > e.level ? 1 : e.level > t.level ? -1 : t.bean.q_sort > e.bean.q_sort ? 1 : t.bean.q_sort < e.bean.q_sort ?
			-1 : t.bean.q_skillID > e.bean.q_skillID ? 1 : t.bean.q_skillID < e.bean.q_skillID ? -1 : 0
	}, t.prototype.sortBean = function(t, e) {
		return t.q_sort > e.q_sort ? 1 : t.q_sort < e.q_sort ? -1 : t.q_skillID > e.q_skillID ? 1 : t.q_skillID < e.q_skillID ?
			-1 : 0
	}, t.prototype.sortData = function(t, e) {
		return t.bean.q_sort > e.bean.q_sort ? 1 : t.bean.q_sort < e.bean.q_sort ? -1 : t.bean.q_skillID > e.bean.q_skillID ?
			1 : t.bean.q_skillID < e.bean.q_skillID ? -1 : 0
	}, t.prototype.getShowPoint = function() {
		for (var t, e = 1; 3 >= e; e++)
			if (t = this.getRoleShowPoint(e)) return !0;
		return !1
	}, t.prototype.getRoleShowPoint = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t);
		return e && this.getJobLvUpIDs(e.job).length > 0 ? !0 : !1
	}, t
}();
__reflect(SkillCenter.prototype, "SkillCenter");
var InsidePowerCenter = function() {
	function t() {
		this._insidePowerHash = new HashObject, this.redpoint = !1
	}
	return t.prototype.loadInsidePower = function(t, e) {
		var i = this._insidePowerHash.get(t);
		null != i && i.level != e.level && App.dispatcher.dispatchEvent(EventType.INSIDE_POWER_LV_UP, t, e.level), this._insidePowerHash
			.put(t, e), App.dispatcher.dispatchEvent(EventType.MY_INSIDE_POWER, t)
	}, t.prototype.getCurrentBean = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t),
			i = this.getInsidePowerInfo(t);
		return i && e ? App.config.q_internalstrengthContainer.getDataBean(1e3 * i.level + 1) : null
	}, t.prototype.isCanLvUp = function(t) {
		var e = this.getCurrentBean(t),
			i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
		if (e && e.q_nextid > 0) {
			var n = StringUtil.JsonParse(e.q_consumption)[0].num;
			return i >= n
		}
		return !1
	}, t.prototype.getInsidePowerInfo = function(t) {
		return this._insidePowerHash.get(t)
	}, t.prototype.getShowPoint = function() {
		if (this.redpoint) return !1;
		for (var t = 1; 3 >= t; t++)
			if (this.isCanLvUp(t)) return !0;
		return !1
	}, t
}();
__reflect(InsidePowerCenter.prototype, "InsidePowerCenter");
var SkillData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.roleIndex = 0, i.skillId = 0, i.name = "", i.level = 0, i.nextGradeID = 0, i.study = !1, i.convert(e), i
	}
	return __extends(e, t), e.prototype.convert = function(t) {
		null != t && (this.roleIndex = LongUtil.toNumber(t.index), this.skillId = t.skillModelId, this.level = t.skillLevel,
			this.study = !0, this.bean = GameUtil.getSkillConfigData(this.skillId, this.level))
	}, Object.defineProperty(e.prototype, "bean", {
		get: function() {
			return this._bean
		},
		set: function(t) {
			this._bean = t, this._bean && (this.name = this._bean.q_skillName.split("_")[0], this.nextGradeID = this._bean.q_next_skillID_q_grade,
				this.nextBean = 0 != this.nextGradeID ? GameUtil.getSkillConfigDataById(this.nextGradeID) : null)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(Dispose);
__reflect(SkillData.prototype, "SkillData");
var WingGodCenter = function() {
	function t() {
		this.winggodhash = new HashObject, this.selectIndex = 1, this.itemSelectIndex = EnumEquipType.FEIYU
	}
	return t.prototype.wingGodChange = function(t, e) {
		var i = t.length,
			n = this.winggodhash.get(e);
		null == n && (n = [], this.winggodhash.put(e, n));
		for (var a = 0; i > a; a++) {
			var o = new WingGodData;
			o.pos = t[a].pos, o.godwingID = t[a].godWingId, n.push(o)
		}
		this.winggodhash.put(e, n)
	}, t.prototype.getWingGod = function(t) {
		var e = this.winggodhash.get(t);
		return null == e && (e = [], this.winggodhash.put(t, e)), e
	}, t.prototype.wearWingGod = function(t, e, i) {
		for (var n, a = this.getWingGod(i), o = a.length, r = 0; o > r; r++)
			if (a[r].pos == e) {
				n = a[r], a[r].pos = e, a[r].godwingID = t;
				break
			} n || (n = new WingGodData, n.pos = e, n.godwingID = t, a.push(n)), App.dispatcher.dispatchEvent(SkillEvent.WingGodWEAR)
	}, t.prototype.getAllWingGodLevel = function() {
		for (var t = 0, e = App.global.roles.roleList.length, i = 0; e > i; i++) {
			var n = this.getWingGod(App.global.roles.roleList[i].roleIndex),
				a = n.length;
			if (n && a > 0)
				for (var o = 0; a > o; o++) {
					var r = App.config.q_itemContainer.getDataBean(n[o].godwingID);
					t += r.q_level
				}
		}
		return t
	}, t.prototype.getallGodWingtz = function() {
		for (var t = App.config.q_equip_masterContainer.list, e = [], i = t.length, n = 0; i > n; n++) 7 == t[n].q_type &&
			e.push(t[n]);
		return e
	}, t.prototype.getzhuangbRedPoint = function() {
		for (var t = App.global.roles.roleList.length, e = 0; t > e; e++) {
			var i = this.getWingGod(App.global.roles.roleList[e].roleIndex),
				n = i.length;
			if (i && n > 0) {
				for (var a = 0; 4 > a; a++)
					if (n - a > 0) {
						if (i[a].godwingID < App.data.bagItemDataCenter.getHeightGodWing(39, this.getPart(a))) return !0
					} else if (0 < App.data.bagItemDataCenter.getHeightGodWing(39, this.getPart(a))) return !0
			} else
				for (var a = 0; 4 > a; a++)
					if (0 < App.data.bagItemDataCenter.getHeightGodWing(39, this.getPart(a))) return !0;
			if (this.getzhuangbRoleRedPoint(App.global.roles.roleList[e].roleIndex)) return !0
		}
		return !1
	}, t.prototype.getzhuangbRoleRedPoint = function(t) {
		var e = this.getWingGod(t),
			i = e.length;
		if (e && i > 0)
			for (var n = 0; 4 > n; n++) {
				if (i - n > 0) {
					if (e[n].godwingID < App.data.bagItemDataCenter.getHeightGodWing(39, e[n].pos)) return !0
				} else if (App.data.bagItemDataCenter.getItemCount(EnumItemId.SHENYU) >= 20) return !0;
				if (0 < App.data.bagItemDataCenter.getHeightGodWing(39, this.getPart(n)))
					for (var a = 0; i > a && e[a].pos != this.getPart(n); a++)
						if (a == i - 1) return !0
			} else {
				for (var n = 0; 4 > n; n++)
					if (0 < App.data.bagItemDataCenter.getHeightGodWing(39, this.getPart(n))) return !0;
				if (App.data.bagItemDataCenter.getItemCount(EnumItemId.SHENYU) >= 20) return !0
			}
		return !1
	}, t.prototype.gethechengRedPoint = function() {
		return App.data.bagItemDataCenter.getItemCount(EnumItemId.SHENYU) >= 20 ? !0 : !1
	}, t.prototype.getWingGodHECHENG = function(t) {
		if (0 == t && App.data.bagItemDataCenter.getItemCount(EnumItemId.SHENYU) >= 20) return !0;
		var e = App.data.characterCenter.getFuseEquip(t);
		if (e) {
			var i = App.config.q_equipContainer.getDataBean(e.q_equip_next_id);
			if (i) {
				var n = App.data.characterCenter.getFuseEquip(e.q_equip_next_id),
					a = StringUtil.JsonParse(n.q_consume),
					o = (App.config.q_itemContainer.getDataBean(a[0].id), App.data.bagItemDataCenter.getItemCount(a[0].id) + 1);
				if (o >= a[0].num) return !0
			}
		}
		return !1
	}, t.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.FEIYU : 1 == t ? t = EnumEquipType.QIANYU : 2 == t ? t = EnumEquipType.RONGYU : 3 ==
			t && (t = EnumEquipType.LINGYU), t
	}, t
}();
__reflect(WingGodCenter.prototype, "WingGodCenter");
var WingGodData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(WingGodData.prototype, "WingGodData");
var RoleSurfaceData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.curData = null, e._isHideWear = -2, e._isShow = !1, e._addDiamond = 0, e._surfaceId = 0, e._surfaceType = -
			1, e._surfaceChildType = -1, e._detailMap = null, e
	}
	return __extends(e, t), e.getData = function() {
		return e.pool.length > 0 ? e.pool.pop() : new e
	}, e.prototype.create = function(t) {
		this.curData = t, this.surfaceId = t.surfaceId, (null == t || null == t.detailMap || "" == t.detailMap) && (GameLog
				.logError("detailMap数据有问题"), console.log("create detailMap数据有问题")), this.detailMap = t.detailMap, this.isShow = 1 ==
			t.show ? !0 : !1
	}, e.prototype.change = function(t) {
		this.curData = t, this.detailMap = t.detailMap, this.isShow = 1 == t.show ? !0 : !1
	}, Object.defineProperty(e.prototype, "surfaceType", {
		get: function() {
			return this._surfaceType
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceChildType", {
		get: function() {
			return this._surfaceChildType
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "detailMap", {
		get: function() {
			return this._detailMap
		},
		set: function(t) {
			var e = this;
			e._detailMap = t, e._detailMap && "" != e._detailMap ? e._detailObject = StringUtil.JsonParse(StringUtil.replacJosnStr(
				e._detailMap)) : e._detailObject = null
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "detailObject", {
		get: function() {
			return this._detailObject
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceBean", {
		get: function() {
			return this._surfaceBean
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "surfaceId", {
		get: function() {
			return this._surfaceId
		},
		set: function(t) {
			var e = this;
			e._surfaceId != t && (e._surfaceId = t, e._surfaceBean = App.config.q_surfaceContainer.getDataBean(e._surfaceId),
				e._surfaceBean && (e._surfaceType = e._surfaceBean.q_type, e._surfaceChildType = e._surfaceBean.q_child_type))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShow", {
		get: function() {
			return this._isShow
		},
		set: function(t) {
			var e = this;
			e._isHideWear = -1;
			this._roleData.surfaceManager.hideSurfaceType;
			e._addDiamond = 0, (e._isShow != t || e.detailObject && e._addDiamond != e.detailObject.layer) && (e.detailObject &&
				(e._addDiamond = e.detailObject.layer), e._isShow = t, t ? -1 == e._isHideWear ? e.showSurface() : e.hideSurface(
					!1) : e.hideSurface())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return this._roleData
		},
		set: function(t) {
			this._roleData = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.showSurface = function(t) {
		void 0 === t && (t = !0);
		var e = this,
			i = e._roleData,
			n = e._surfaceBean;
		if (n) {
			var a = n.q_scene_show_id;
			switch (n.q_type) {
				case 1:
					i.wing = a, i.wingID = e._surfaceId;
					break;
				case 8:
				case 7:
				case 6:
					i.horseHead = n.q_occlusion_show, i.horse = a, this._roleData.roleView.offsetAvatarHeight(-1 * n.q_mount_height);
					break;
				case 2:
					if (1 == n.q_title_show_no) {
						var o = n.q_color;
						if (o) var r = o.replace("#", "0x"),
							s = parseInt(r);
						i.roleView.showWordTitle(n.q_name, s)
					} else {
						var h = ResPathUtil.getTitleEffect(a);
						i.roleView.showTitleEffect(h, n.q_child_type)
					}
					break;
				case 4:
					if (1 == n.q_head_hide) i.head = "";
					else {
						var l = i.surfaceManager.getShowSurfaceByType(3, 4);
						if (-1 != l) {
							var p = i.surfaceManager.getSerface(l);
							if (p && p.surfaceBean && p.surfaceBean.q_scene_show_id) {
								var c = p.surfaceBean.q_scene_show_id;
								0 == p.surfaceBean.q_child_type ? i.head = c : i.surfaceHair = c
							}
						}
					}
					i.surfaceArmor = a;
					break;
				case 5:
					i.surfaceWeapon = a;
					break;
				case 16:
			}
		}
	}, e.prototype.hideSurface = function(t) {
		void 0 === t && (t = !0);
		var e = this,
			i = e._roleData,
			n = e._surfaceBean;
		if (n && (!e._isShow || 0 == e._isHideWear)) switch (n.q_type) {
			case 1:
				i.wingID == n.q_id && (i.wing = "");
				break;
			case 8:
			case 7:
			case 6:
				i.horse = "", i.horseHead = "", i.roleView.offsetAvatarHeight(0);
				break;
			case 2:
				1 == n.q_title_show_no ? i.roleView.showWordTitle() : i.roleView.showTitleEffect("", n.q_child_type);
				break;
			case 4:
				if (1 == n.q_head_hide) {
					var a = i.surfaceManager.getShowSurfaceByType(3, 4);
					if (-1 != a) {
						var o = i.surfaceManager.getSerface(a);
						if (o && o.surfaceBean && o.surfaceBean.q_scene_show_id) {
							var r = o.surfaceBean.q_scene_show_id;
							0 == o.surfaceBean.q_child_type ? i.head = r : i.surfaceHair = r
						}
					}
				}
				i.surfaceArmor = "";
				break;
			case 5:
				i.surfaceWeapon = "";
				break;
			case 16:
				i.weaponSoul = ""
		}
	}, e.prototype.hideTitle = function() {
		var t = this,
			e = t._roleData,
			i = t._surfaceBean;
		9 != i.q_type && 1 != i.q_child_type && (1 == i.q_title_show_no ? e.roleView.showWordTitle() : e.roleView.showTitleEffect(
			"", i.q_child_type))
	}, e.prototype.clear = function() {
		var t = this;
		t._roleData = null, t._isHideWear = -2, t._isShow = !1, t._addDiamond = 0, t._surfaceId = 0, t._surfaceBean = null,
			t._surfaceType = -1, t._surfaceChildType = -1, t._detailMap = null, t._detailObject = null
	}, e.prototype.dispose = function() {
		var t = this;
		t._isShow = !1, t._addDiamond = 0, t.hideSurface(), t._detailObject = null, t._roleData = null, this.clear(), this.putPool(),
			t.curData = null
	}, e.prototype.putPool = function() {
		e.pool.push(this)
	}, Object.defineProperty(e.prototype, "isHideWear", {
		get: function() {
			return this._isHideWear
		},
		set: function(t) {
			var e = this;
			e._isHideWear != t && (e._isHideWear = t, e._isShow && (-1 == e._isHideWear ? e.showSurface() : e.hideSurface(!1)))
		},
		enumerable: !0,
		configurable: !0
	}), e.pool = [], e
}(Dispose);
__reflect(RoleSurfaceData.prototype, "RoleSurfaceData");
var RoleSurfaceManager = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._bindMountId = 0, e._surfaceDataHash = new HashObject, e._surfaceTypeHash = new HashObject, e._hideSurfaceType = [],
			e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "bindMountId", {
		get: function() {
			return this._bindMountId
		},
		set: function(t) {
			this._bindMountId != t && (this._bindMountId = t, App.dispatcher.dispatchEvent(SurfaceEvent.SURFACE_BIND))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setData = function(t, e) {
		this._roleData = t, this._surfaceCls = e
	}, e.prototype.makeRoleSerfaceData = function() {
		return this._surfaceCls.getData()
	}, e.prototype.addSerface = function(t, e) {
		var i = this;
		if (0 == i.hasSerface(t)) {
			var n = i.makeRoleSerfaceData();
			n.roleData = i._roleData, n.create(e);
			var a = i._surfaceTypeHash.get(n.surfaceType);
			return null == a && (a = new HashObject), a.put(t, n), i._surfaceTypeHash.put(n.surfaceType, a), i._surfaceDataHash
				.put(t, n), App.dispatcher.dispatchEvent(EventType.SURFACE_UPDATE, t, 3), n
		}
		return i.changeSurfaceData(t, e), null
	}, e.prototype.deleteSerface = function(t) {
		var e = this;
		if (1 == e.hasSerface(t)) {
			var i = e.getSerface(t),
				n = e._surfaceTypeHash.get(i.surfaceType);
			return n.del(i.surfaceId), e._surfaceTypeHash.put(i.surfaceType, n), e._surfaceDataHash.del(t), i.dispose(), App.dispatcher
				.dispatchEvent(EventType.SURFACE_UPDATE, t, 4), !0
		}
		return !1
	}, e.prototype.changeSurfaceData = function(t, e) {
		var i = this.getSerface(t);
		i && (i.change(e), App.dispatcher.dispatchEvent(EventType.SURFACE_UPDATE, t, 2))
	}, e.prototype.showSerface = function(t) {
		var e = this.getSerface(t);
		e && (e.isShow = !0, App.dispatcher.dispatchEvent(EventType.SURFACE_UPDATE, t, 1))
	}, e.prototype.hideSerface = function(t) {
		var e = this.getSerface(t);
		e && (e.isShow = !1, App.dispatcher.dispatchEvent(EventType.SURFACE_UPDATE, t, 0))
	}, e.prototype.getShowSerfaceIdBySerfaceType = function(t, e) {
		void 0 === t && (t = -1), void 0 === e && (e = 0);
		var i = this._surfaceTypeHash.get(t),
			n = -1;
		if (i && i.length > 0) {
			var a = i.$_getValueMap();
			for (var o in a) {
				var r = a[o];
				if (0 == e) {
					if (r.isShow && r.surfaceType == t) {
						n = r.surfaceId;
						break
					}
				} else if (r.isShow && r.surfaceType == t && r.surfaceChildType == e) {
					n = r.surfaceId;
					break
				}
			}
		}
		return null == n && (n = -1), n
	}, e.prototype.getShowSerfaceAryBySerfaceType = function(t, e) {
		void 0 === t && (t = -1), void 0 === e && (e = 0);
		var i = [],
			n = this._surfaceTypeHash.get(t);
		if (n && n.length > 0) {
			var a = n.$_getValueMap();
			for (var o in a) {
				var r = a[o];
				0 == e ? r.isShow && r.surfaceType == t && i.push(r.surfaceId) : r.isShow && r.surfaceType == t && r.surfaceChildType ==
					e && i.push(r.surfaceId)
			}
		}
		return i
	}, e.prototype.hasSerface = function(t) {
		return this._surfaceDataHash ? this._surfaceDataHash.has(t) : !1
	}, e.prototype.getSerface = function(t) {
		return this._surfaceDataHash ? this._surfaceDataHash.get(t) : null
	}, e.prototype.getSerfaceIsShow = function(t) {
		var e = this;
		return e._surfaceDataHash && 0 == e._surfaceDataHash.has(t) ? !1 : e._surfaceDataHash ? e._surfaceDataHash.get(t).isShow :
			!1
	}, e.prototype.getSurfaceListByType = function(t, e) {
		void 0 === e && (e = 0);
		var i = this._surfaceTypeHash.get(t);
		if (i && i.length > 0) {
			var n = [],
				a = i.$_getValueMap();
			for (var o in a) {
				var r = a[o];
				(0 == e || r.surfaceChildType == e) && n.push(r)
			}
		}
		return n
	}, e.prototype.getShowSurfaceByType = function(t, e) {
		void 0 === e && (e = 0);
		var i = this,
			n = i.getSurfaceListByType(t);
		if (n && n.length > 0)
			for (var a = 0; a < n.length; a++) {
				var o = i.getSerfaceIsShow(n[a].surfaceId);
				if (o) return n[a].surfaceId
			}
		if (n = i.getSurfaceListByType(t, e), n && n.length > 0)
			for (a = 0; a < n.length; a++)
				if (o = i.getSerfaceIsShow(n[a].surfaceId)) return n[a].surfaceId;
		return -1
	}, e.prototype.getSurfaceTypeCount = function(t) {
		var e = this._surfaceTypeHash.get(t);
		return e ? e.length : 0
	}, e.prototype.getWingViewMaxId = function(t) {
		var e = this._surfaceTypeHash.get(t);
		if (e && e.length > 0) {
			var i = Number.MIN_VALUE,
				n = e.$_getValueMap();
			for (var a in n) {
				var o = n[a],
					r = App.config.q_surfaceContainer.getDataBean(o.surfaceId);
				r && i <= o.surfaceId && (1 == t ? 1 != r.q_child_type && (i = o.surfaceId) : i = o.surfaceId)
			}
			return i
		}
		return 0
	}, e.prototype.getRuntimeMaxId = function(t) {
		var e = this._surfaceTypeHash.get(t);
		if (e && e.length > 0) {
			var i = Number.MIN_VALUE,
				n = e.$_getValueMap();
			for (var a in n) {
				var o = n[a];
				if (o) {
					var r = App.config.q_surfaceContainer.getDataBean(o.surfaceId);
					if (r) {
						if (1 == t && 1 == r.q_child_type) return void(i = o.surfaceId);
						i <= o.surfaceId && (i = o.surfaceId)
					}
				}
			}
			return i
		}
		return 0
	}, e.prototype.getRuntimeMinId = function(t) {
		var e = this._surfaceTypeHash.get(t);
		if (e && e.length > 0) {
			var i = Number.MAX_VALUE,
				n = e.$_getValueMap();
			for (var a in n) {
				var o = n[a];
				o && i >= o.surfaceId && (i = o.surfaceId)
			}
			return i
		}
		return 0
	}, e.prototype.getSurfaceType = function(t) {
		return this._surfaceTypeHash.get(t)
	}, Object.defineProperty(e.prototype, "hideSurfaceType", {
		get: function() {
			return this._hideSurfaceType
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideSurface = function(t, e) {
		void 0 === e && (e = -1);
		var i = this;
		i._hideSurfaceType = t;
		for (var n = e, a = 0; a < t.length; a++) {
			var o = t[a].split("_"),
				r = o[0],
				s = o[1],
				h = i.getSurfaceListByType(r, s);
			if (h)
				for (var l = 0; l < h.length; l++) {
					var p = h[l];
					i.getSerfaceIsShow(p.surfaceId) && (p.isHideWear = n)
				}
		}
	}, e.prototype.showHideTitle = function(t) {
		var e = this.getSurfaceListByType(2);
		if (e)
			for (var i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				a.isShow && (t ? a.hideTitle() : a.showSurface())
			}
	}, e.prototype.clear = function() {
		var t = this;
		t._surfaceDataHash.forInValExcFucName("dispose"), t._surfaceDataHash.clear(), t._surfaceTypeHash.clear(), t._hideSurfaceType = []
	}, e.prototype.dispose = function() {
		var t = this;
		t.clear(), t._roleData = null, App.thing.putIn(this)
	}, e
}(Dispose);
__reflect(RoleSurfaceManager.prototype, "RoleSurfaceManager");
var SurfaceCenter = function() {
	function t() {
		this.roleIndex = 1
	}
	return t.prototype.showSurfaceRed = function() {
		for (var t = App.global.roles.roleList, e = 0; e < t.length; e++)
			if (1 == this.roleShowRed(t[e])) return !0;
		return !1
	}, t.prototype.roleTypeShowRed = function(t, e) {
		for (var i = App.config.q_surface_componentContainer.list, n = i.length, a = 0; n > a; a++)
			if (e == i[a].q_type && 1 == this.surfaceCanjh(i[a].q_id, t)) return !0;
		return !1
	}, t.prototype.roleTabRed = function(t) {
		for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			if (1 == this.roleTypeShowRed(a, t)) return !0
		}
		return !1
	}, t.prototype.roleShowRed = function(t) {
		return 1 == this.roleTypeShowRed(t, 4) || 1 == this.roleTypeShowRed(t, 6) || 1 == this.roleTypeShowRed(t, 1) || 1 ==
			this.roleTypeShowRed(t, 2) ? !0 : !1
	}, t.prototype.surfaceCanjh = function(t, e) {
		var i = App.config.q_surface_componentContainer.getDataBean(t);
		if ("" == i.q_active_condition) return !1;
		var n = StringUtil.JsonParse(i.q_active_condition);
		if (e && e.surfaceManager) return App.data.bagItemDataCenter.getItemCount(n[0].id) >= n[0].num && 0 == e.surfaceManager
			.hasSerface(t) ? !0 : !1
	}, t.prototype.checkArrHasHideType = function(t, e, i) {
		void 0 === i && (i = 0);
		for (var n = 0; n < t.length; n++)
			if (-1 != t[n].indexOf(e + "_" + i)) return !0;
		return !1
	}, t.prototype.checkHasHideType = function(t) {
		for (var e = 0; e < this.hideSurfaceType.length; e++)
			if (-1 != this.hideSurfaceType[e].indexOf(t + "_")) return !0;
		return !1
	}, Object.defineProperty(t.prototype, "hideSurfaceType", {
		get: function() {
			return null == this._hideSurfaceType && (this._hideSurfaceType = ["4_0", "5_0", "3_4", "2_3", "10_0"]), this._hideSurfaceType
		},
		set: function(t) {
			this._hideSurfaceType = t, this._serverHideSurfaceType = t, this.hideSurfaceCheck = t.length > 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "serverHideSurfaceType", {
		get: function() {
			return this._serverHideSurfaceType
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.sortSurface1 = function(t, e) {
		return t.q_order < e.q_order ? -1 : 1
	}, t
}();
__reflect(SurfaceCenter.prototype, "SurfaceCenter");
var TanbaoItemCenter = function() {
	function t() {
		this.count = 0, this._dataObj = {}, this._eventObj = {}, this._isPlaying = !1, this.allInfoList = []
	}
	return t.prototype.loadItems = function(t) {
			for (var e, i = t.length, n = 0; i > n; n++) e = this._dataObj[LongUtil.toString(t[n].itemId)], e ? e.count = t[n].num :
				(e = new ItemData(t[n]), null != e.bean && (this._dataObj[e.id] = e, this.count++));
			App.dispatcher.dispatchEvent(ItemEvent.TANBAO_LOAD)
		}, t.prototype.getData = function(t) {
			return this._dataObj[t]
		}, t.prototype.addItem = function(t) {
			for (var e, i = t.length, n = 0; i > n; n++) e = this._dataObj[LongUtil.toString(t[n].itemId)], e || (e = new ItemData(
				t[n]), null == e.bean || e.count <= 0 || (this._dataObj[e.id] = e, this.count++));
			this.eventCallLater(ItemEvent.TANBAO_UPDATE)
		}, t.prototype.removeItem = function(t) {
			for (var e, i = t.length, n = 0; i > n; n++) e = LongUtil.toString(t[n]), this._dataObj[e] ? (delete this._dataObj[
				e], this.count--) : console.log("cccccc");
			this.eventCallLater(ItemEvent.TANBAO_REMOVE)
		}, t.prototype.getList = function() {
			var t = [];
			for (var e in this._dataObj) t.push(this._dataObj[e]);
			return t.sort(this.sortFunc), t
		}, t.prototype.sortFunc = function(t, e) {
			return t.getDataBean().q_default > e.getDataBean().q_default ? -1 : 1
		}, t.prototype.eventCallLater = function(t) {
			for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
			this._eventObj[t] = e, this._isPlaying || (App.timer.doTimeOnce(this, 200, this.onCallLater), this._isPlaying = !0)
		}, t.prototype.onCallLater = function(t) {
			for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
			this._isPlaying = !1;
			for (var n in this._eventObj) App.dispatcher.dispatchEvent(n, this._eventObj[n]), delete this._eventObj[n]
		}, t.prototype.isEmpty = function() {
			return 0 == this.count
		}, t.prototype.getCost = function(t) {
			if (null == this._costObj) {
				this._costObj = {};
				var e = App.config.q_globalContainer.getDataBean(22);
				e && (this._costObj = StringUtil.JsonParse(e.q_string_value))
			}
			return this._costObj[t]
		}, t.prototype.getCosttanbao = function(t) {
			if (null == this._warpetcostObj) {
				this._warpetcostObj = {};
				var e = App.config.q_globalContainer.getDataBean(294);
				e && (this._warpetcostObj = StringUtil.JsonParse(e.q_string_value))
			}
			return this._warpetcostObj[t]
		}, t.prototype.getCosthotblood = function(t) {
			if (null == this._hotbloodcostObj) {
				this._hotbloodcostObj = {};
				var e = App.config.q_globalContainer.getDataBean(297);
				e && (this._hotbloodcostObj = StringUtil.JsonParse(e.q_string_value))
			}
			return this._hotbloodcostObj[t]
		}, t.prototype.loadInfo = function(e) {
			1 == e.chestType ? (this.todayTanbaoCount = e.dayTimes, this.allInfoList = e.allInfo || [], this.allInfoList.length >
				50 && (this.allInfoList = this.allInfoList.slice(-50))) : 2 == e.chestType ? (this.todayTanbaoCount = e.dayTimes,
				this.warpetallInfoList = e.allInfo || [], this.warpetallInfoList.length > 50 && (this.warpetallInfoList = this.warpetallInfoList
					.slice(-50))) : (this.hotBloodInfoList = e.allInfo || [], this.hotBloodInfoList.length > 50 && (this.hotBloodInfoList =
				this.hotBloodInfoList.slice(-50))), App.dispatcher.dispatchEvent(t.LOAD_INFO)
		}, t.prototype.showRedDot = function() {
			if (this.count > 0) return !0;
			var t = App.data.bagItemDataCenter.getItemIDData(EnumItemId.TANBAO);
			return null != t && t.count >= 10 ? !0 : !1
		}, t.prototype.loadShow = function(e) {
			var i = e.showItem.length;
			if (1 == e.chestType) {
				this.showItemList = [];
				for (var n = 0; i > n; n++) {
					var a = new ItemData;
					a.itemId = e.showItem[n], a.count = 1, this.showItemList.push(a)
				}
			} else if (2 == e.chestType) {
				this.warpetshowItemList = [];
				for (var n = 0; i > n; n++) {
					var a = new ItemData;
					a.itemId = e.showItem[n], a.count = 1, this.warpetshowItemList.push(a)
				}
			} else if (3 == e.chestType) {
				this.hotBloodshowItemList = [];
				for (var n = 0; i > n; n++) {
					var a = new ItemData;
					a.itemId = e.showItem[n], a.count = 1, this.hotBloodshowItemList.push(a)
				}
			}
			App.dispatcher.dispatchEvent(t.LOAD_SHOW)
		}, t.prototype.getResultList = function(t) {
			return 1 == t ? this.myInfoList : 2 == t ? this.warpetmyInfoList : 3 == t ? this.hotbloodInfoList : void 0
		}, t.prototype.addMyRewardInfo = function(e) {
			if (1 == e.chestType) {
				if (this.myInfoList = [], e.xbItem)
					for (var i, n = e.xbItem.length, a = 0; n > a; a++) i = new ItemData, i.itemId = e.xbItem[a].itemModelId, i.count =
						e.xbItem[a].count, this.myInfoList.push(i)
			} else if (2 == e.chestType) {
				if (this.warpetmyInfoList = [], e.xbItem)
					for (var i, n = e.xbItem.length, a = 0; n > a; a++) i = new ItemData, i.itemId = e.xbItem[a].itemModelId, i.count =
						e.xbItem[a].count, this.warpetmyInfoList.push(i)
			} else if (3 == e.chestType && (this.hotbloodInfoList = [], e.xbItem))
				for (var i, n = e.xbItem.length, a = 0; n > a; a++) i = new ItemData, i.itemId = e.xbItem[a].itemModelId, i.count =
					e.xbItem[a].count, this.hotbloodInfoList.push(i);
			App.dispatcher.dispatchEvent(t.ADD_MYINFO, e.chestType)
		}, t.prototype.addTotalRewardInfo = function(e) {
			var i = 30;
			1 == e.chestType ? (this.allInfoList = e.info, this.allInfoList.length > i && (this.allInfoList = this.allInfoList.slice(
				-i))) : 2 == e.chestType ? (this.warpetallInfoList = e.info, this.warpetallInfoList.length > i && (this.warpetallInfoList =
				this.warpetallInfoList.slice(-i))) : 3 == e.chestType && (this.hotBloodInfoList = e.info, this.hotBloodInfoList.length >
				i && (this.hotBloodInfoList = this.hotBloodInfoList.slice(-i))), App.dispatcher.dispatchEvent(t.ADD_TOTALINFO)
		}, t.LOAD_INFO = "TreasureHuntCenter.LOAD_INFO", t.LOAD_SHOW = "TreasureHuntCenter.LOAD_SHOW", t.ADD_MYINFO =
		"TreasureHuntCenter.ADD_MYINFO", t.ADD_TOTALINFO = "TreasureHuntCenter.ADD_TOTALINFO", t
}();
__reflect(TanbaoItemCenter.prototype, "TanbaoItemCenter");
var TanbaoShopCenter = function() {
	function t() {}
	return t.prototype.getTanbaoShop = function(t) {
		return void 0 === t && (t = 1), null != this._tanbaoShopDict ? this._tanbaoShopDict.get(t) : null
	}, t.prototype.initTanbaoShopList = function(t) {
		if (null == this._tanbaoShopDict && (this._tanbaoShopDict = new HashObject), null != t) {
			for (var e, i, n = (App.global.characterData.job, App.global.characterData.sex, t.length), a = 0; n > a; a++) i =
				GameUtil.getShopItemConfigData(t[a].sellId), this.setShopItemInfo(t[a].sellId, t[a]), null != i && (e = this._tanbaoShopDict
					.get(i.q_page), null == e && (e = [], this._tanbaoShopDict.put(i.q_page, e)), this.isExist(e, i) || (1 == i.q_page ||
						2 == i.q_page || 4 == i.q_page ? ItemUtil.isJobSame(i.q_itemModelId) && e.push(i) : 3 == i.q_page ? ItemUtil.isJobSame(
							i.q_itemModelId) && ItemUtil.isSexSame(i.q_itemModelId) && e.push(i) : e.push(i)));
			this._tanbaoShopDict.foEach(this.mallCenterSort, this)
		}
	}, t.prototype.mallCenterSort = function(t, e) {
		e.sort(App.data.mallCenter.sortFunc)
	}, t.prototype.isExist = function(t, e) {
		for (var i = 0; i < t.length; i++)
			if (t[i] == e) return !0;
		return !1
	}, t.prototype.setShopItemInfo = function(t, e) {
		null == this._tanbaoDict && (this._tanbaoDict = new HashObject), this._tanbaoDict.put(t, e)
	}, t.prototype.getShopItemInfo = function(t) {
		return null != this._tanbaoDict ? this._tanbaoDict.get(t) : null
	}, t
}();
__reflect(TanbaoShopCenter.prototype, "TanbaoShopCenter");
var TaskData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.taskID = 0, e.taskName = "", e.taskType = 0, e.taskState = 0, e.taskDes = "", e.vecConditionData = [], e.taskReward = [],
			e.taskStar = 0, e.taskCount = 20, e.isDoing = 0, e.guideID = 0, e.panelID = 0, e.taskFinishID = 0, e.taskAcceptID =
			0, e.xlIsTransfer = 0, e.showLevel = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(TaskData.prototype, "TaskData");
var TaskDataCenter = function() {
	function t() {
		function t(t, e, i) {
			void 0 === i && (i = 0);
			var n = 0,
				a = 0;
			if (21 == e.type) {
				n = i, a = e.date1;
				var o = n >= a ? "#35ea35" : "#eb3434";
				return StringUtil.substitute(t, n, a, o)
			}
			var r = GameUtil.getZoneBean(i),
				s = GameUtil.getZoneBean(Number(e.date0));
			if (r) {
				var h = r.q_duplicate_name.replace("通天塔", "");
				h = h.replace("层", ""), n = Number(h)
			}
			if (s) {
				var h = s.q_duplicate_name.replace("通天塔", "");
				h = h.replace("层", ""), a = Number(h)
			}
			if (s) {
				var o = n >= a ? "#35ea35" : "#eb3434";
				return StringUtil.substitute(t, n, a, o)
			}
			return ""
		}

		function e(t) {
			PanelOpenManager.openPanel(t.data, {
				selectedIndex: t.data1
			}, !1)
		}

		function i(t) {
			PanelOpenManager.openBagFullAlert() || (t.data > 0 ? ZoneCommandSender.sendC2S_ZoneIntoMessage(t.data, t.data1) :
				App.data.zoneCenter.guanQiaCenter.goToBoss && (ZoneCommandSender.sendC2S_ZoneFinishMessage(), App.global.zone.showEnterEffect())
			)
		}
		var n = this;
		this.isAutoTask = !0, this.isShowTransferPanel = !1, this._taskObj = {}, this._activeObj = {}, this._stateTask = new HashObject,
			this.talk = !1, this.PutStateTask = function(t) {
				n._stateTask.has(t.taskID), n._stateTask.del(t.taskID), 3 != t.taskState && n._stateTask.put(t.taskID, t);
				var e = n._stateTask.getValueArray();
				App.data.characterCenter.stateHash.clear(), e.map(function(t) {
						2 == t.taskState ? App.data.characterCenter.stateHash.put(t.taskID, !0) : 1 == t.taskState && App.data.characterCenter
							.stateHash.put(t.taskID, !1)
					}), App.data.characterCenter.GetStateLevelUP(), App.dispatcher.dispatchEvent(TaskEvent.STATE_REFRESH), App.global
					.redPoint.redPointDispatchEvent(203)
			}, this.GetStateTaskList = function() {
				return n._stateTask
			}, this.LaterShow = function(t) {
				1 == t.taskID ? App.dispatcher.addEventListener(EnumEvent.EVENT_STORY_FINISH, function() {
					App.panel.openPanel(109, {
						taskid: t.taskID
					})
				}, n) : App.panel.openPanel(109, {
					taskid: t.taskID
				})
			}, this._taskHash = {}, this.descHandler = {}, this.exeHandler = {};
		App.panel;
		this.descHandler[4] = t, this.descHandler[21] = t, this.exeHandler[1] = e, this.exeHandler[2] = i, App.dispatcher.addEventListener(
			EventType.STGAE_RESIZE, this.resize, this)
	}
	return t.prototype.resize = function() {
		this._effect && (this._effect.x = .5 * Config.SCREEN_WIDTH, this._effect.y = .6 * Config.SCREEN_HEIGHT)
	}, t.prototype.getTaskDesc = function(t, e, i) {
		var n = this.descHandler[e.type];
		if (n) return n.call(this, t, e, i);
		var a = Number(e.date1) <= i ? "#35ea35" : "#eb3434";
		return StringUtil.substitute(t, i, e.date1, a)
	}, t.prototype.tryExecuteTask = function(t) {
		var e;
		try {
			e = StringUtil.JsonParse(t)
		} catch (i) {}
		if (e) {
			var n = this.exeHandler[e.type];
			return n ? n.call(this, e) : void 0
		}
	}, t.prototype.updateTaskList = function(t) {
		var e = [],
			i = t.currentTaskList;
		if (i) {
			this._taskObj = {}, this._achieveTimeTask = new HashObject, this._taskHash[4] = [];
			for (var n = void 0, a = 0; a < i.length; a++) {
				var o = i[a],
					r = o.taskType;
				n = this.transformTask(o), 1 == r ? this.threadTask = n : 4 == r ? this.addExploitTask(n) : 8 == r ? this.changeAchieveTimeTask(
						n) : 5 == r && 2 == n.taskState ? (null == this._effect && (this._effect = new TaskShowEffect, this.resize(),
						App.layer.moduleLayer.addChild(this._effect)), this._effect.play(1, new FunctionVO(this.openSecret, this, n))) :
					9 == r && this.PutStateTask(n), e = this._taskHash[r], e || (this._taskHash[r] = e = []), e.push(n), this._taskObj[
						n.taskID] = n
			}
		}
		this.showLimit()
	}, t.prototype.changeAchieveTimeTask = function(t) {
		this._achieveTimeTask || (this._achieveTimeTask = new HashObject), this._achieveTimeTask.put(t.taskID, t), App.dispatcher
			.dispatchEvent(TaskEvent.ACHIEVETIMETASK_REFRESH), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT,
				60, this.achieveTimeTaskRed())
	}, t.prototype.getAchieveTimeTaskList = function() {
		var t = this._achieveTimeTask.getValueArray();
		return t.sort(this.sortAchieveTimeTask), t
	}, t.prototype.sortAchieveTimeTask = function(t, e) {
		return App.config.q_active_taskContainer.getDataBean(t.taskID).q_task_id > App.config.q_active_taskContainer.getDataBean(
			e.taskID).q_task_id ? 1 : -1
	}, t.prototype.achieveTimeTaskRed = function() {
		for (var t = this._achieveTimeTask.getValueArray(), e = t.length, i = 0; e > i; i++)
			if (2 == t[i].taskState) return !0;
		return !1
	}, t.prototype.openSecret = function(t) {
		App.panel.openPanel(68, t, !1), this._effect = null
	}, t.prototype.getTaskData = function(t) {
		return this._taskObj[t]
	}, t.prototype.finishTask = function(t) {
		var e = this.transformTask(t.finishedTask, this._taskObj[t.finishedTask.taskId]);
		1 == e.taskType ? App.dispatcher.dispatchEvent(TaskEvent.TASK_FINISH, e) : 4 == e.taskType ? (this.addExploitTask(e),
			App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_TASK)) : 8 == e.taskType && this.changeAchieveTimeTask(e)
	}, t.prototype.accetTask = function(t) {
		var e = this.transformTask(t.addTaskInfo);
		if (1 == e.taskType) {
			this.threadTask = e;
			var i = App.config.q_taskModelContainer.getDataBean(e.taskID);
			"" != i.q_npc_name && this.LaterShow(e), App.dispatcher.dispatchEvent(TaskEvent.UPDATETASKTRACK, e)
		} else 4 == e.taskType ? (this.addExploitTask(e), App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_TASK)) : 6 == e
			.taskType ? this.showLimit() : 8 == e.taskType ? this.changeAchieveTimeTask(e) : 9 == t.addTaskInfo.taskType &&
			this.PutStateTask(e)
	}, t.prototype.changeTask = function(t) {
		var e = this.transformTask(t.changedTask, this._taskObj[t.changedTask.taskId]);
		4 == e.taskType && (this.addExploitTask(e), App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_TASK)), 8 == e.taskType &&
			this.changeAchieveTimeTask(e), 7 == e.taskType && App.dispatcher.dispatchEvent(TaskEvent.REFRESH_TASK), 9 == e.taskType &&
			this.PutStateTask(e), 3 != e.taskState && (1 == e.taskType ? (this.threadTask = e, 2 == e.taskState && (this.isAutoTask = !
				0), App.dispatcher.dispatchEvent(TaskEvent.UPDATETASKTRACK, e)) : 5 == e.taskType && 2 == e.taskState ? (null ==
				this._effect && (this._effect = new TaskShowEffect, this.resize(), App.layer.moduleLayer.addChild(this._effect)),
				this._effect.play(1, new FunctionVO(this.openSecret, this, e))) : 6 == e.taskType && this.showLimit())
	}, t.prototype.transformTask = function(t, e) {
		return void 0 === e && (e = null), null == e && (e = new TaskData), e.taskID = t.taskId, e.taskState = t.state, e.taskType =
			t.taskType, t.conditions && (e.conditions = t.conditions), t.otherVarMap && "" != t.otherVarMap && (e.otherVarMapObj =
				StringUtil.JsonParse(t.otherVarMap)), this._taskObj[t.taskId] = e, e
	}, t.prototype.getCurrThreadTaskId = function() {
		return this.threadTask ? this.threadTask.taskID : -1
	}, t.prototype.getCurrThreadTaskData = function() {
		return this.threadTask ? this.threadTask : null
	}, t.prototype.addExploitTask = function(t) {
		var e = App.config.q_task_active_clientContainer.getDataBean(t.taskID);
		if (null != e) {
			var i = this._activeObj[e.q_taskid_show_place];
			null == i && (i = [], this._activeObj[e.q_taskid_show_place] = i), -1 == i.indexOf(t.taskID) && i.push(t.taskID)
		}
	}, t.prototype.getExploitTaskList = function() {
		var t, e, i, n = [];
		for (var a in this._activeObj)
			if (t = this._activeObj[a], i = null, t && t.length > 0) {
				t.sort(this.sortNumber);
				for (var o = 0; o < t.length; o++)
					if (e = this._taskObj[t[t.length - o - 1]], null != e)
						if (1 == e.taskState) i = e;
						else if (2 == e.taskState) {
					i = e;
					break
				}
				null == i && (i = this._taskObj[t[t.length - 1]]), n.push(i)
			} return n.sort(this.sort)
	}, t.prototype.sortNumber = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.sort = function(t, e) {
		if (2 == t.taskState && 2 != e.taskState) return -1;
		if (2 != t.taskState && 2 == e.taskState) return 1;
		var i = App.config.q_task_active_clientContainer.getDataBean(t.taskID),
			n = App.config.q_task_active_clientContainer.getDataBean(e.taskID),
			a = App.data.exploitCenter.getCurrentIndex(t),
			o = App.data.exploitCenter.getIndexMax(i.q_taskid_show_place);
		t.otherVarMapObj && t.otherVarMapObj.finishcount && (a = t.otherVarMapObj.finishcount);
		var r = a >= o;
		a = App.data.exploitCenter.getCurrentIndex(e), o = App.data.exploitCenter.getIndexMax(n.q_taskid_show_place), e.otherVarMapObj &&
			e.otherVarMapObj.finishcount && (a = e.otherVarMapObj.finishcount);
		var s = a >= o;
		return r && !s ? 1 : !r && s ? -1 : i.q_taskid_show_place > n.q_taskid_show_place ? 1 : -1
	}, t.prototype.getThreadTaskShowGuide = function(t, e) {
		if (void 0 === e && (e = 1), this.threadTask && this.threadTask.taskState == e) {
			var i = App.config.q_taskModelContainer.getDataBean(this.threadTask.taskID);
			if (i && i.q_yindao >= 1 && i.q_yindao == t) return !0
		}
		return !1
	}, t.prototype.showLimit = function() {
		this.limitData = null;
		for (var t in this._taskObj)
			if (2 == this._taskObj[t].taskState && 6 == this._taskObj[t].taskType) {
				this.limitData = this._taskObj[t];
				break
			} App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 26, null != this.limitData), App.dispatcher.dispatchEvent(
				EnterButtonEvent.SHOW_RED_POINT, 26, null != this.limitData), this.limitData && this.limitData.otherVarMapObj &&
			this.limitData.otherVarMapObj.endtime ? (App.timer.serverTimeEnd(this, this.onTimer, this.limitData.otherVarMapObj
				.endtime), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, 26, this.limitData.otherVarMapObj.endtime)) :
			App.timer.clearTimer(this.onTimer, this)
	}, t.prototype.onTimer = function(t) {
		t.spuleTime < 0 && (App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 26, !1), App.timer.clearTimer(this.onTimer,
			this))
	}, t
}();
__reflect(TaskDataCenter.prototype, "TaskDataCenter");
var TaskRewardItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.itemNum = 0, e.itemID = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(TaskRewardItem.prototype, "TaskRewardItem");
var MoonCardCenter = function() {
	function t() {
		this._hash = new HashObject, this._privilegeList = new HashObject, this.flag = !0, this.TeQuanKaFlag = !0, this.kunArr = [],
			this.fanpaitime = 0, this.fanpaiFirst = !1, this.fanpaiStart = !0, this.fanpaiYulan = !1
	}
	return t.prototype.loadCardVip = function(t) {
		var e = this.getCardData();
		e.update(t), App.dispatcher.dispatchEvent(VipEvent.REFRESH_MOON_CARD, 0), this.isCardVip() && App.global.enterBtn.removeButton(
			15)
	}, t.prototype.loadFanpai = function(t) {
		this.fanpaiArr = [], this.fanpaiYulanArr = [], this.fanpaitime = LongUtil.toNumber(t.time), this.fanpaiFirst = 1 ==
			t.mark ? !0 : !1;
		var e = t.paiInfo.length;
		App.data.moonCardCenter.fanpaiStart = !0;
		for (var i = 0; e > i; i++) {
			var n = new FanPaiData;
			n.id = t.paiInfo[i].id, n.itemid = t.paiInfo[i].itemid, n.pos = t.paiInfo[i].paipos, n.pos > 0 && (App.data.moonCardCenter
				.fanpaiStart = !1), n.itemsum = t.paiInfo[i].itemsum, this.fanpaiArr.push(n), this.fanpaiYulanArr.push(n)
		}
		this.fanpaiYulanArr.sort(this.yulanSort), App.dispatcher.dispatchEvent(VipEvent.FANPAIREFRE)
	}, t.prototype.yulanSort = function(t, e) {
		var i = App.config.q_itemContainer.getDataBean(t.itemid),
			n = App.config.q_itemContainer.getDataBean(e.itemid);
		return i.q_default > n.q_default ? -1 : i.q_default < n.q_default ? 1 : t.itemid > e.itemid ? 1 : -1
	}, t.prototype.getFanPaiNum = function() {
		for (var t = this.fanpaiArr.length, e = 1, i = 0; t > i; i++) this.fanpaiArr[i].pos > 0 && (e++, App.data.moonCardCenter
			.fanpaiStart = !1);
		return e
	}, t.prototype.kunHongbaoAdd = function(t) {
		var e = new HongBaoData;
		1 == t.hongbaoflag ? (e.conver(t), App.panel.openPanel(2012, e), this.removeHbData()) : (e.hongbaoId = LongUtil.toNumber(
			t.id), e.hongbaoFlag = t.hongbaoflag, this.kunArr.push(e), App.timer.doTimeOnce(this, 28e4, this.removeHbData,
			null, !1), Notice.showKunHongbao())
	}, t.prototype.removeHbData = function() {
		this.kunArr.shift(), this.kunArr.length > 0 || (Notice.hideKunhongbao(), App.timer.clearTimer(this.removeHbData,
			this))
	}, t.prototype.loadRedEnve = function(t) {
		this.redenve || (this.redenve = new RedEnvelopesData), this.redenve.id = t.Id, this.redenve.num = t.num, this.redenve
			.vipnum = t.vipnum, this.redenve.vipsum = t.vipsum, this.redenve.receiverArr = t.receiverecord, 0 == this.redenve.id ?
			(App.dispatcher.dispatchEvent(VipEvent.RedEnveInfo), Notice.hidehongbao()) : (App.dispatcher.dispatchEvent(
				VipEvent.RedEnvelopes), Notice.showHongbao())
	}, t.prototype.loadTuranble = function(t) {
		3 == t.type ? (this.YuanbaoTurData || (this.YuanbaoTurData = new TurntableData), this.YuanbaoTurData.id = t.turntableId,
			this.YuanbaoTurData.remainder = t.Remainder, this.YuanbaoTurData.sumcount = t.count, App.dispatcher.dispatchEvent(
				VipEvent.YuanBaoTurntable)) : 2 == t.type ? (this.luckTurData || (this.luckTurData = new TurntableData), this.luckTurData
			.id = t.turntableId, this.luckTurData.remainder = t.Remainder, this.luckTurData.sumcount = t.count, App.dispatcher
			.dispatchEvent(VipEvent.LuckTurntable)) : (this.turData || (this.turData = new TurntableData), this.turData.id =
			t.turntableId, this.turData.remainder = t.Remainder, this.turData.sumcount = t.count, App.dispatcher.dispatchEvent(
				VipEvent.Turntable))
	}, t.prototype.getTuranbleList = function() {
		for (var t = [], e = App.config.q_turntableContainer.list, i = e.length, n = 0; i > n; n++) this.turData && this.turData
			.id == e[n].q_turntable_id && t.push(e[n]);
		return t.sort(this.sortFun), t
	}, t.prototype.getLuckTuranbleList = function() {
		for (var t = [], e = App.config.q_lucky_turntableContainer.list, i = e.length, n = 0; i > n; n++) this.luckTurData &&
			this.luckTurData.id == e[n].q_turntable_id && t.push(e[n]);
		return t.sort(this.lucksortFun), t
	}, t.prototype.getYuanBaoTuranbleList = function() {
		for (var t = [], e = App.config.q_yuanbao_turntableContainer.list, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			this.YuanbaoTurData && this.YuanbaoTurData.id == a.q_turntable_id && ServerTime.openday == a.q_open && t.push(a)
		}
		return t.sort(this.lucksortFun), t
	}, t.prototype.lucksortFun = function(t, e) {
		return t.q_display_order < e.q_display_order ? -1 : 1
	}, t.prototype.sortFun = function(t, e) {
		return t.q_display_order < e.q_display_order ? -1 : 1
	}, t.prototype.getCardData = function(t) {
		void 0 === t && (t = 0);
		var e = this._hash.get(t);
		return null == e && (e = new VipCardData, this._hash.put(t, e)), e
	}, t.prototype.isCardVip = function() {
		var t = this.getCardData();
		return null != t ? t.isCardVip : !1
	}, t.prototype.loadPriviLegeList = function(t) {
		for (var e = t.Privilegelist, i = e.length, n = 0; i > n; n++) this._privilegeList.put(n, e[n]);
		App.global.redPoint.redPointDispatchEvent(154), this.iszhizuntequan() && App.global.enterBtn.removeButton(40)
	}, t.prototype.isMoneyEnough = function(t) {
		var e = this._privilegeList.get(t);
		return e && 1 == e.state ? !0 : !1
	}, t.prototype.getprivilegeFlag = function() {
		for (var t = this._privilegeList.length, e = 0; t > e; e++)
			if (1 == this._privilegeList.get(e).state) return !0;
		return !1
	}, t.prototype.getMoneyMax = function(t) {
		for (var e = this._privilegeList.length, i = 0; e > i; i++) {
			var n = this._privilegeList.get(i);
			if (1 == n.state) {
				if (t <= n.id) return 0;
				var a = App.config.q_privilegeContainer.getDataBean(t),
					o = App.config.q_privilegeContainer.getDataBean(n.id);
				return Math.abs(a.q_need_yuanbao - o.q_need_yuanbao)
			}
		}
		return 0
	}, t.prototype.iszhizuntequan = function() {
		for (var t = this._privilegeList.length, e = 0; t > e; e++) {
			var i = this._privilegeList.get(e);
			if (3 == i.id && 1 == i.state) return !0
		}
		return !1
	}, t.prototype.showTeQuanKaRedPoint = function() {
		for (var t = this._privilegeList.length, e = 0; t > e; e++)
			if (1 == this._privilegeList.get(e).state) return !1;
		return this.TeQuanKaFlag
	}, t
}();
__reflect(MoonCardCenter.prototype, "MoonCardCenter");
var PrivilegeData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(PrivilegeData.prototype, "PrivilegeData");
var RedEnvelopesData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(RedEnvelopesData.prototype, "RedEnvelopesData");
var TurntableData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(TurntableData.prototype, "TurntableData");
var VipCardData = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.rewardNum = 0, e.remanumberime = 0, e.todayReward = 1, e.name = "", e.isCardVip = !1, e
	}
	return __extends(e, t), e.prototype.VipCardData = function(t) {
		this.id = t, this.bean = App.config.q_moon_cardContainer.getDataBean(t), this.bean && (this.price = this.bean.q_need_gold,
			this.days = this.bean.q_vip_time)
	}, Object.defineProperty(e.prototype, "itemData", {
		get: function() {
			if (this.bean) {
				var t = ItemUtil.getRewardDataList(this.bean.q_day_reward);
				if (t.length > 0) return t[0]
			}
			return null
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.update = function(t) {
		this.remanumberime = t.remainTime, this.rewardNum = t.moonCardRewardNum, this.todayReward = t.todayReward, this.isCardVip =
			this.remanumberime > 0 || -1 == this.remanumberime
	}, e
}(egret.HashObject);
__reflect(VipCardData.prototype, "VipCardData");
var VipCenter = function() {
	function t() {
		this._vipPtlibaoHashMap = new HashObject, this._vipRedDot = !1, this._vipLibaoRedDot = !1, this.vipLibaoTempShow = !
			1, this._moonCard = !0, this._firstRechange = !0, this._yichongzhiarr = []
	}
	return t.prototype.showVipRedDot = function() {
		return this._vipRedDot
	}, t.prototype.showVipLibaoRedDot = function() {
		return this._vipLibaoRedDot
	}, t.prototype.getVipExp = function() {
		return this._vipExp
	}, t.prototype.setVipExp = function(t) {
		this._vipExp = 0
	}, t.prototype.parserVipData = function(t) {
		var e = t.vipLevel;
		this._vipLevel = t.vipLevel, this._vipExp = t.vipExp;
		var i, n = String(MathUtil.tenToN(t.vipLibaoStatus, 2)),
			a = [],
			o = n.length,
			r = 0;
		for (i = 0; o > i; i++) r = Number(n.slice(i, i + 1)), a.push(r);
		this._vipPtlibaoHashMap || (this._vipPtlibaoHashMap = new HashObject);
		var s = App.config.q_vipContainer.list;
		o = s.length;
		var h;
		for (i = 0; o > i; i++) h = s[i], 0 != i && this._vipPtlibaoHashMap.put(h.q_vip_level, a[a.length - i]);
		if (this.checkVipState(), !this._vipBuylibaoHashMap)
			for (this._vipBuylibaoHashMap = new HashObject, i = 0; o > i; i++) h = s[i], 0 != i && this._vipBuylibaoHashMap.put(
				h.q_vip_level, 0);
		this.checkVipLibaoState(), App.dispatcher.dispatchEvent(VipEvent.VIP_INFO_REFRESH, e)
	}, t.prototype.parseLibaoState = function(t) {
		var e = t.vipLevel;
		this._vipPtlibaoHashMap.put(e, 1), this.checkVipState(), App.dispatcher.dispatchEvent(VipEvent.VIP_PUTONGLIBAO_CHANGE,
			e)
	}, t.prototype.parseBuyLibaoState = function(t) {
		var e, i = String(MathUtil.tenToN(t.status, 2)),
			n = String(i).length,
			a = [],
			o = 0;
		for (e = n - 1; e >= 0; e--) o = Number(i.slice(e, e + 1)), a.push(o);
		var r = App.config.q_vipContainer.list;
		n = r.length;
		var s;
		for (e = 0; n > e; e++) s = r[e], 0 != s.q_vip_level && this._vipBuylibaoHashMap.put(s.q_vip_level, a[e - 1] || 0);
		this.checkVipLibaoState(), App.dispatcher.dispatchEvent(VipEvent.VIP_BUYLIBAO_INFO_REFRESH)
	}, t.prototype.checkVipState = function() {
		var t, e, i = this.getCurrentVip();
		for (this._vipRedDot = !1, t = 1; i >= t; t++)
			if (e = this._vipPtlibaoHashMap.get(t), !e && this.getCurrentVip() >= t) {
				this._vipRedDot = !0;
				break
			}
	}, t.prototype.checkVipLibaoState = function() {
		if (this.vipLibaoTempShow) return void(this._vipLibaoRedDot = !1);
		var t, e, i, n = this.getCurrentVip();
		for (this._vipLibaoRedDot = !1, t = 1; n >= t; t++)
			if (e = this._vipBuylibaoHashMap.get(t), 0 == e && this.getCurrentVip() >= t && (i = this.getVipBean(t), i.q_libao_jiage <=
					App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO))) {
				this._vipLibaoRedDot = !0;
				break
			}
	}, t.prototype.buyLibaoCallBack = function(t) {
		var e = t.id;
		this._vipBuylibaoHashMap.put(e, 1), this.checkVipLibaoState(), App.dispatcher.dispatchEvent(VipEvent.VIP_BUYLIBAO_CHANGE)
	}, t.prototype.getLibaocurrID = function() {
		for (var t = this.getMaxVipLevel(), e = 1; t >= e; e++)
			if (0 == this._vipBuylibaoHashMap.get(e) && this._vipLevel >= e) return e;
		return this._vipLevel
	}, t.prototype.getCurrentVip = function() {
		return this._vipLevel
	}, t.prototype.getptLibaoState = function(t) {
		return this._vipPtlibaoHashMap.get(t) ? this._vipPtlibaoHashMap.get(t) : 0
	}, t.prototype.getVipBean = function(t) {
		var e = App.config.q_vipContainer.list,
			i = e[t];
		return i
	}, t.prototype.getLibaoState = function(t) {
		return this._vipBuylibaoHashMap.get(t) ? this._vipBuylibaoHashMap.get(t) : 0
	}, t.prototype.getMaxVipLevel = function() {
		var t, e, i = App.config.q_vipContainer.list,
			n = i.length,
			a = Number.MIN_VALUE;
		for (e = 0; n > e; e++) t = i[e], t.q_vip_level > a && (a = t.q_vip_level);
		return a
	}, t.prototype.getExceptZero = function() {
		var t, e, i = App.config.q_vipContainer.list,
			n = i.length,
			a = [];
		for (e = 0; n > e; e++) t = i[e], 0 != t.q_vip_level && a.push(t);
		return a
	}, t.prototype.getMoonCardRedDot = function() {
		return this._moonCard
	}, t.prototype.getFirstRechangeRedDot = function() {
		return this._firstRechange
	}, t
}();
__reflect(VipCenter.prototype, "VipCenter");
var KunCenter = function() {
	function t() {
		this.play = !1, this.attrOthers = [0, 0, 0, 0], this.attrMax = [0, 0, 0, 0], this.allMax = !1, this.cd = -1, this.cost =
			0, this._rewardObj = {}, this._hpObj = {}
	}
	return t.prototype.setKunVo = function(t) {
		null != this.vo && null != t && (this.play = t.lv != this.vo.lv), this.vo = t
	}, t.prototype.loadAttr = function(t, e) {
		this.attrOthers = t, this.attrMax = e, this.allMax = !0;
		for (var i = 0; i < e.length; i++)
			if (t[i] != e[i]) {
				this.allMax = !1;
				break
			} App.dispatcher.dispatchEvent(WarpetEvent.KUN_EAT_TUNTIANZHU)
	}, t.prototype.getDefaultAttrs = function() {
		if (null == this.vo) return "";
		for (var t = "", e = [1, 2, 4, 5], i = ["真实伤害", "伤害转移", "抵挡伤害", "致命一击"], n = 0; n < e.length; n++)
			for (var a = 0; a < this.vo.maxAttrList.length; a++)
				if (LongUtil.toNumber(this.vo.maxAttrList[a].attributetype) == e[n]) {
					t += i[n] + ":" + LongUtil.toString(this.vo.maxAttrList[a].attribute) + "\n";
					break
				} return t
	}, t.prototype.getOtherAttrs = function() {
		for (var t, e = "", i = this.attrOthers.length, n = 0; i > n; n++) t = this.attrOthers[n] < this.attrMax[n] ? "" :
			" MAX", e += "+" + this.attrOthers[n] + t + "\n";
		return e
	}, t.prototype.getFightPower = function() {
		for (var t, e, i = this.vo.maxAttrList.length, n = "[", a = ",", o = 0, r = 0; i > r; r++) r == i - 1 && (a = ""),
			o = r, o > 1 && (o -= 1), t = LongUtil.toNumber(this.vo.maxAttrList[r].attributetype), e = LongUtil.toNumber(this.vo
				.maxAttrList[r].attribute) + this.attrOthers[o], n = n + this.vo.getTypeText(t, e) + a;
		return n += "]", FightPowerUtil.getFightPower([n])
	}, t.prototype.petUpgrade = function(t) {
		this.vo.id == LongUtil.toString(t.petId) && (this.vo.jie = t.petclass, this.vo.lv = t.petlevel), App.dispatcher.dispatchEvent(
			WarpetEvent.WARPET_UPJIEREFRESH)
	}, t.prototype.loadRewards = function(t) {
		for (var e, i, n, a, o = t.length, r = 0; o > r; r++) {
			e = t[r], i = this._rewardObj[e.index], null == i && (i = {}, this._rewardObj[e.index] = i), i.index = e.index, i.endtime =
				LongUtil.toNumber(e.time), i.state = 1 == e.state, i.bossRewards = [], i.kunRewards = [], i.tag = e.kunRewards.length >
				0 || e.bossRewards.length > 0, a = Math.min(e.bossRewards.length, 8);
			for (var s = 0; a > s; s++) n = new ItemData(e.bossRewards[s]), i.bossRewards.push(n);
			a = e.kunRewards.length;
			for (var h = 0; a > h; h++) n = new ItemData(e.kunRewards[h]), i.kunRewards.push(n);
			i.bossRewards.sort(this.sortFunc), i.kunRewards.sort(this.sortFunc)
		}
		App.dispatcher.dispatchEvent(WarpetEvent.KUN_REWARD_REFRESH)
	}, t.prototype.getRewardVoList = function() {
		var t = [];
		for (var e in this._rewardObj) t.push(this._rewardObj[e]);
		return t
	}, t.prototype.getIsFull = function() {
		var t = this._rewardObj[0];
		return t ? t.tag : !1
	}, t.prototype.hasReward = function() {
		var t = this._rewardObj[0];
		return t ? t.tag : !1
	}, t.prototype.showEat = function() {
		if (null == this.vo) return !1;
		if (this.getIsFull()) return !1;
		var t = Number(this.vo.upJieBean.q_kun_skill.split(",")[0]),
			e = App.config.q_warpetKunSkillContainer.getDataBean(t);
		if (null == e) return !1;
		for (var i = e.q_zone_type.split("_"), n = App.data.zoneCenter.type + "", a = 0; a < i.length; a++)
			if (n == i[a]) return !0;
		return !1
	}, t.prototype.inEating = function() {
		if (null == this.vo) return !1;
		var t = App.data.zoneCenter.type,
			e = EnumZoneType.AUTO_FIGHT_ZONE == t;
		if (!e) {
			var i = Number(this.vo.upJieBean.q_kun_skill.split(",")[0]),
				n = App.config.q_warpetKunSkillContainer.getDataBean(i);
			if (null == n) return !1;
			for (var a = n.q_zone_type.split("_"), o = 0; o < a.length; o++)
				if (t + "" == a[o]) {
					e = !0;
					break
				}
		}
		return e && this.hasReward()
	}, t.prototype.getEndtime = function() {
		var t = this._rewardObj[0];
		return t ? t.endtime : -1
	}, t.prototype.getTrainCost = function() {
		if (null == this.vo) return null;
		var t = this.vo.upJieBean;
		if (null != t) {
			var e = ItemUtil.getRewardDataList(t.q_num)[0];
			if (null != e) return e
		}
		return null
	}, t.prototype.getEatHpPercent = function(t) {
		var e = Number(this.vo.upJieBean.q_kun_skill.split(",")[0]),
			i = App.config.q_warpetKunSkillContainer.getDataBean(e);
		if (i) {
			var n = this._hpObj[e];
			null == n && (n = GameUtil.analysisString(i.q_trigger_hp), this._hpObj[e] = n);
			var a = n[t];
			return a / 1e4
		}
		return 0
	}, t.prototype.getCanTrain = function() {
		if (this.allMax) return !1;
		var t = this.getTrainCost();
		return t ? App.data.bagItemDataCenter.getItemCount(t.itemId) >= t.count : !1
	}, t.prototype.getCanLvUp = function() {
		if (null == this.vo) return !1;
		var t = this.vo;
		if (t && t.lv == 10 * t.jie && t.upLvExp >= t.needExp && t.upJieBean.q_next_pet_class > 0) {
			var e = ItemUtil.getRewardDataList(t.upJieBean.q_class_item)[0];
			if (e && App.data.bagItemDataCenter.getItemCount(e.itemId) >= e.count) return !0
		}
		return !1
	}, t.prototype.getShowPoint = function() {
		return this.getCanTrain() ? !0 : this.getCanLvUp() ? !0 : !1
	}, t.prototype.sortFunc = function(t, e) {
		if (t.itemId == EnumMoney.KUN_EXP && e.itemId != EnumMoney.KUN_EXP) return -1;
		if (t.itemId != EnumMoney.KUN_EXP && e.itemId == EnumMoney.KUN_EXP) return 1;
		var i = App.config.q_itemContainer.getDataBean(t.itemId),
			n = App.config.q_itemContainer.getDataBean(e.itemId);
		return i.q_default > n.q_default ? -1 : 1
	}, t.prototype.sortVo = function(t, e) {
		return t.state && !e.state ? -1 : !t.state && e.state ? 1 : t.endtime > e.endtime ? 1 : t.endtime < e.endtime ? -1 :
			t.index > e.index ? 1 : -1
	}, t
}();
__reflect(KunCenter.prototype, "KunCenter");
var WarpetCenter = function() {
	function t() {
		this.kunCenter = new KunCenter, this.fightPetList = [null, null, null, null], this.choosePanelState = 0, this.headIndex =
			1, this.selectHomeId = -1, this.selectObj = new HashObject, this.warPetHash = new HashObject, this.fuhuahash = new HashObject
	}
	return t.prototype.loadFuhuaList = function(t) {
		if (t && t.hatchList) {
			for (var e = t.hatchList.length, i = void 0, n = 0; e > n; n++) i = new WarPetStageData, i.hatcheryId = t.hatchList[
					n].hatcheryId, i.hatchingTime = LongUtil.toNumber(t.hatchList[n].hatchingTime), i.state = t.hatchList[n].state,
				i.petEggId = t.hatchList[n].petEggId, this.fuhuahash.put(i.hatcheryId, i);
			App.dispatcher.dispatchEvent(EventWarPetType.WarPetStags, App.data.warpetCenter.fuhuahash.getKeyArray()), this.eggTime(
				App.data.warpetCenter.fuhuahash.getKeyArray())
		}
	}, t.prototype.eggTime = function(t) {
		for (var e = t.length, i = [], n = 0; e > n; n++) {
			var a = App.data.warpetCenter.fuhuahash.get(t[n]);
			2 == a.state && a.hatchingTime > 0 && i.push(a.hatchingTime)
		}
		if (i.length > 0) {
			for (var o = i[0], n = 0; n < i.length; n++) o >= i[n] && (o = i[n]);
			App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, 57, o, 2)
		}
	}, t.prototype.initWarPetHash = function(t, e) {
		void 0 === e && (e = -1);
		var i;
		if (t) {
			for (var n = t.length, a = 0; n > a; a++) {
				if (i = new WarpetData, i.init(t[a]), 1 == t[a].type ? this.warPetHash.put(i.id, i) : this.kunCenter.setKunVo(i),
					1 == n)
					for (var a = 0; 4 > a; a++) this.fightPetList[a] && i.id == this.fightPetList[a].id && (this.fightPetList[a] =
						null); - 1 == i.state || 1 == i.type && (this.fightPetList[i.state] = i)
			}
			switch (e) {
				case 8:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_UPDETAIL, i);
					break;
				case 7:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_ADD, i);
					break;
				case 6:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_REFRESH);
					break;
				case 4:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_UPLVREFRESH);
					break;
				case 3:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_UPJIEREFRESH);
					break;
				case 0:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_FIGHT);
					break;
				case 5:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_FUTI);
					break;
				case 2:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_SUO);
					break;
				case 1:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_XIUXI);
					break;
				default:
					App.dispatcher.dispatchEvent(WarpetEvent.WARPET_REFRESH)
			}
		}
	}, t.prototype.changeDataTalent = function(t, e) {
		this.getWarpetData(t).talentList[e.index].itemid = e.itemMid, App.dispatcher.dispatchEvent(WarpetEvent.WARPET_TALENT_CHOOSE,
			e)
	}, t.prototype.removeWarpet = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.warPetHash.del(LongUtil.toString(t[i]));
		App.dispatcher.dispatchEvent(WarpetEvent.WARPET_REFRESH)
	}, t.prototype.getWarpetData = function(t) {
		return this.warPetHash.get(t)
	}, t.prototype.getWarpetDataList = function() {
		var t = this.warPetHash.getValueArray();
		return t.sort(this.sortWarpet), t
	}, t.prototype.sortWarpet = function(t, e) {
		return t.state > e.state ? -1 : t.state == e.state && t.getMaxPower() > e.getMaxPower() ? -1 : 1
	}, t.prototype.showRed = function() {
		return 1 == this.canUpFight() ? !0 : 1 == this.talentRed() ? !0 : !1
	}, t.prototype.canUpDetail = function(t) {
		if (!t) return !1;
		if (App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_DETAIL_BALL_SMALL) >= 1 || App.data.bagItemDataCenter
			.getItemCount(EnumItemId.WARPET_DETAIL_BALL_BIG) >= 1) {
			for (var e = 0, i = 1; 6 > i; i++)
				if (e = t.getziZhiLv(i), 10 > e) return !0;
			return !1
		}
		return !1
	}, t.prototype.canUp = function(t) {
		var e = this.warPetHash.get(t);
		if (!e) return !1;
		for (var i = this.fightPetList.length, n = 0; i > n; n++)
			if (this.fightPetList[n] && 1 == this.canUpDetail(this.fightPetList[n])) return !0;
		if (!(e.upLvBean && e.upLvBean.q_next_id > 0)) return !1;
		var a = "";
		a = e.lv % 10 == 0 && e.upLvExp >= e.needExp ? e.upJieBean.q_class_item : e.upLvBean.q_num;
		var o = StringUtil.JsonParse(a),
			r = o[0].id,
			s = o[0].num,
			h = App.data.bagItemDataCenter.getItemCount(r);
		return h >= s ? !0 : !1
	}, t.prototype.canUpFight = function() {
		for (var t = this.fightPetList.length, e = 0; t > e; e++)
			if (this.fightPetList[e] && 1 == this.canUp(this.fightPetList[e].id)) return !0;
		return !1
	}, t.prototype.fuhuared = function() {
		for (var t = this.fuhuahash.getKeyArray(), e = t.length, i = 0; e > i; i++) {
			var n = this.fuhuahash.get(t[i]);
			if (1 == n.state) {
				if (App.data.bagItemDataCenter.getBagList(BagTag.PET_EGG).length > 0) return !0
			} else if (2 == n.state && n.hatchingTime <= ServerTime.getServerTime()) return !0
		}
		return !1
	}, t.prototype.setCurrentShopList = function(t) {
		this.shopList = t, App.dispatcher.dispatchEvent(ItemEvent.UPDATE_WARPET_SHOP)
	}, t.prototype.updateCurrentShopList = function(t) {
		if (t && this.shopList)
			for (var e = 0; e < this.shopList.length; e++)
				if (this.shopList[e].sellId == t.sellId) {
					this.shopList[e] = t;
					break
				} App.dispatcher.dispatchEvent(ItemEvent.UPDATE_WARPET_SHOP)
	}, t.prototype.talentRed = function() {
		if (App.global.funcOpen.isFunctionOpen(171))
			for (var t = 0; 4 > t; t++)
				if (1 == this.talentIndexRed(t)) return !0;
		return !1
	}, t.prototype.talentIndexRed = function(t) {
		var e = this.fightPetList[t],
			i = !1;
		if (null != e) {
			for (var n = new HashObject, a = GameUtil.getGlobalConfigData(307).q_string_value.split("_"), o = 0; 10 > o; o++) {
				e.talentList[o].itemid > 0 && n.put(GameUtil.getItemConfigData(e.talentList[o].itemid).q_child_type, o);
				var r = Number(a[e.talentList[o].index]) <= e.jie ? !0 : !1;
				0 == e.talentList[o].itemid && r && (i = !0)
			}
			if (i) {
				for (var s = App.data.bagItemDataCenter.getPropItemList(666), h = s.length, l = void 0, o = 0; h > o; o++)
					if (l = n.get(s[o].getDataBean().q_child_type), null == l || 0 > l) return i;
				i = !1
			}
		}
		return i
	}, t
}();
__reflect(WarpetCenter.prototype, "WarpetCenter");
var WarpetData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.stateId = 0, e.type = 1, e.state = 0, e.jie = 1, e.lv = 0, e.upLvExp = 0, e.isLock = !1, e.skillList = [],
			e.maxAttrList = [], e.warPetMaxPower = 0, e.nextAttrStr = "", e.zizhilist = [], e.zizhipower = 0, e.talentList = [],
			e.extendMap = "", e.selected = !0, e
	}
	return __extends(e, t), e.prototype.init = function(t) {
		this.id = LongUtil.toString(t.petId), this.stateId = t.petmodelId, this.upLvExp = LongUtil.toNumber(t.petexp), this
			.lv = t.petlevel, this.jie = t.petqclass, t.skillList.length <= 0 && 1 == t.type && GameLog.logError(this.name +
				"魔宠技能为空(赋值)" + this.id), this.skillList = t.skillList, this.state = t.state, this.zizhilist = t.zizhilist, this.maxAttrList =
			t.attribute, this.isLock = 0 == t.lock ? !1 : !0, this.createTalent(t.talnets), this.extendMap = t.extendMap, this
			.warpetModelBean = App.config.q_warpetMouldContainer.getDataBean(this.stateId), this.type = this.warpetModelBean.q_pet_type,
			this.upLvId = 1e3 * this.jie + this.lv + (2 == this.type ? 1e5 * this.type : 0), this.upJieId = 1e5 * this.type +
			100 * this.stateId + this.jie, this.showId = 100 * this.stateId + this.jie, this.upLvBean = App.config.q_warpetUpLvContainer
			.getDataBean(this.upLvId), this.nextAttrStr = "", this.upLvBean.q_next_id > 0 && (this.nextAttrStr = this.createNextAtrr(
				App.config.q_warpetUpLvContainer.getDataBean(this.upLvBean.q_next_id).q_add_ability)), this.upJieBean = App.config
			.q_warpetUpClassContainer.getDataBean(this.upJieId), this.showBean = App.config.q_warpetShowContainer.getDataBean(
				this.showId), this.maxPower(), this.zizhiPower(), this.name = this.warpetModelBean.q_pet_name, this.needExp =
			this.upLvBean.q_exp, this.petId = this.showBean.q_petID_q_grade, this.petbean = App.config.q_petContainer.getDataBean(
				this.showBean.q_petID_q_grade), this.featureid = this.petbean.q_featureid
	}, e.prototype.createTalent = function(t) {
		this.talentList = [];
		for (var e, i = 0; 10 > i; i++) e = new WarpetTalentData, e.index = t[i].index, e.itemid = t[i].itemMid, this.talentList
			.push(e);
		this.talentList.sort(this.sortTalent)
	}, e.prototype.sortTalent = function(t, e) {
		return t.index > e.index ? 1 : -1
	}, e.prototype.createNextAtrr = function(t) {
		t = t.replace("[", ""), t = t.replace("]", ""), t = t.replace("{", ""), t = t.replace("}", "");
		for (var e = t.split(","), i = e.length, n = "", a = 0; i > a; a++) n += this.getBei(e[a]);
		i = this.zizhilist.length;
		for (var a = 0; i > a; a++)
			if (5 == this.zizhilist[a].zizhitype) {
				n = n + "暴击：" + parseInt(1e4 * (.01 + this.zizhilist[a].zizhi / 1e6 * this.jie) + "");
				break
			} return n
	}, e.prototype.getBei = function(t) {
		var e = t.indexOf(":"),
			i = Number(t.slice(e + 1)),
			n = "",
			a = 1;
		if (t.indexOf("a") >= 0) n = "攻击：", a = 1;
		else if (t.indexOf("d") >= 0) n = "物防：", a = 2;
		else if (t.indexOf("e") >= 0) n = "魔防：", a = 3;
		else if (t.indexOf("f") >= 0) n = "生命：", a = 4;
		else {
			if (!(t.indexOf("h") >= 0)) return "";
			n = "暴击：", a = 5
		}
		for (var o = this.zizhilist.length, r = (Number(t.slice(t.indexOf(":") + 1)), 1), s = 0; o > s; s++)
			if (this.zizhilist[s].zizhitype == a) {
				r = this.zizhilist[s].zizhi / 12500 + .2;
				break
			} return n + parseInt(i * r + "") + "\n"
	}, e.prototype.maxPower = function() {
		for (var t = this.maxAttrList.length, e = "[", i = ",", n = 0; t > n; n++) n == t - 1 && (i = ""), e = e + this.getTypeText(
			LongUtil.toNumber(this.maxAttrList[n].attributetype), LongUtil.toNumber(this.maxAttrList[n].attribute)) + i;
		e += "]", this.warPetMaxPower = FightPowerUtil.getFightPower([e])
	}, e.prototype.zizhiPower = function() {
		for (var t = this.zizhilist.length, e = "[", i = ",", n = 0; t > n; n++) n == t - 1 && (i = ""), e = e + this.getTypeText(
			this.zizhilist[n].zizhitype, this.zizhilist[n].zizhi) + i;
		e += "]", this.zizhipower = FightPowerUtil.getFightPower([e])
	}, e.prototype.getAttrStr = function(t, e) {
		void 0 === t && (t = 1), void 0 === e && (e = !0);
		for (var i = this.maxAttrList.length, n = "", a = 0; i > a; a++) n = n + this.getTypeText(LongUtil.toNumber(this.maxAttrList[
			a].attributetype), LongUtil.toNumber(this.maxAttrList[a].attribute) * t, 2, e) + "\n";
		return n
	}, e.prototype.getTypeText = function(t, e, i, n) {
		void 0 === i && (i = 1), void 0 === n && (n = !1);
		var a = "",
			o = parseInt(e + "") + "";
		return n && (o = "<font color='0xf8f4b7'>" + o + "</font>"), 1 == t ? (a = "物攻上限:" + o + ",魔攻上限:" + o + ",道攻上限:" +
			o, 2 == i && (a = "攻击：" + o)) : 2 == t ? (a = "物防上限:" + o, 2 == i && (a = "物防：" + o)) : 3 == t ? (a = "魔防上限:" + o,
			2 == i && (a = "魔防：" + o)) : 4 == t ? (a = "生命上限:" + o, 2 == i && (a = "生命：" + o)) : 5 == t && (a = "暴击:" + o, 2 ==
			i && (a = "暴击：" + o)), a
	}, e.prototype.getZizhiStr = function() {
		for (var t = this.zizhilist.length, e = "", i = 0; t > i; i++) e += this.getZizhiText(this.zizhilist[i].zizhitype,
			this.zizhilist[i].zizhi);
		return e
	}, e.prototype.getZizhiText = function(t, e) {
		var i = "",
			n = "<font color='0xf8f4b7'>" + e + "</font>";
		return 1 == t ? i = "攻击资质:" + n + "\n" : 2 == t ? i = "物防资质:" + n + "\n" : 3 == t ? i = "魔防资质:" + n + "\n" : 4 == t ?
			i = "生命资质:" + n + "\n" : 5 == t && (i = "暴击资质:" + n + "\n"), i
	}, e.prototype.zizhiNum = function(t) {
		for (var e = this.zizhilist.length, i = 0; e > i; i++)
			if (this.zizhilist[i].zizhitype == t) return this.zizhilist[i].zizhi;
		return 0
	}, e.prototype.getziZhiLv = function(t) {
		var e = this.zizhiNum(t) / (2e3 * this.warpetModelBean.q_pet_star - 2e3) * 10;
		return e = parseInt(e.toString()), e = e > 0 ? e : 1
	}, e.prototype.getMaxPower = function() {
		return this.warPetMaxPower
	}, e.prototype.getSkillBean = function() {
		if (this.skillList && this.skillList.length > 0) {
			var t = GameUtil.getSkillConfigData(LongUtil.toNumber(this.skillList[0].skillId), this.skillList[0].skillLevel);
			return t || GameLog.logError(this.name + "魔宠技能为空(取值)" + this.id + "skillid" + this.skillList[0].skillId +
				"skillLv" + this.skillList[0].skillLevel), t
		}
		return GameLog.logError(this.name + "魔宠技能为空(取值)" + this.id), null
	}, e.prototype.getScore = function() {
		for (var t = this.zizhilist.length, e = 0, i = 0; t > i; i++) e += this.zizhilist[i].zizhi;
		return parseInt(e / t + "")
	}, e
}(egret.HashObject);
__reflect(WarpetData.prototype, "WarpetData");
var WarpetTalentData = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.itemid = 0, e.index = 0, e
	}
	return __extends(e, t), e
}(egret.HashObject);
__reflect(WarpetTalentData.prototype, "WarpetTalentData");
var WarPetStageData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(HashObject);
__reflect(WarPetStageData.prototype, "WarPetStageData");
var XSRWDataCenter = function() {
	function t() {
		this.limitTime = 0, this._showRed = !1, this.xsrwDict = new HashObject
	}
	return t.prototype.parseTaskData = function(t) {
		this.limitTime = LongUtil.toNumber(t.limitTime), this.xsrwDict = new HashObject, this.listChange(t.limitTimeInfos),
			App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_TIME, 7, parseInt(this.limitTime.toString()) / 1e3), App.dispatcher
			.dispatchEvent(LimitTaskEvent.LIMIT_TASK_ChANGE)
	}, t.prototype.stateChange = function(t) {
		this.listChange(t.limitTimeInfos), App.dispatcher.dispatchEvent(LimitTaskEvent.LIMIT_TASK_ChANGE)
	}, t.prototype.listChange = function(t) {
		for (var e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			n.state = n.state || 0, n.finishCount = n.finishCount || 0, this.xsrwDict.put(n.taskId.toString(), n)
		}
		this._showRed = this.canShowRed(), App.global && App.global.redPoint.redPointDispatchEvent(150)
	}, t.prototype.reciveAward = function(t) {
		var e = this.xsrwDict.get(t.configId.toString());
		e && (e.state = 1, this._showRed = this.oneTaskCanGet(e), App.global && App.global.redPoint.redPointDispatchEvent(
			150)), App.dispatcher.dispatchEvent(LimitTaskEvent.LIMIT_TASK_ChANGE)
	}, t.prototype.checkTime = function() {
		return ServerTime.serverTime > this.limitTime ? (this.xsrwDict.clear(), !1) : !0
	}, t.prototype.canShowRed = function() {
		var t = this;
		return this.xsrwDict && this.xsrwDict.foEach(function(e, i) {
			return t._showRed = t.oneTaskCanGet(i), 1 == t._showRed ? !0 : void 0
		}, this), this._showRed
	}, t.prototype.oneTaskCanGet = function(t) {
		if (t && t.state) return !1;
		var e = App.config.q_LimitTaskContainer.getDataBean(t.taskId);
		if (!e) return !1;
		var i = StringUtil.JsonParse(e.q_finish_condition_ids)[0],
			n = App.data.taskCenter.getTaskDesc("{0}/{1}", i, t.finishCount),
			a = Number(n.slice(0, n.indexOf("/"))),
			o = Number(n.slice(n.indexOf("/") + 1)),
			r = o > a;
		return t.state && (r = !1), !r
	}, t.prototype.showRed = function() {
		return this._showRed
	}, t
}();
__reflect(XSRWDataCenter.prototype, "XSRWDataCenter");
var ZoneCenterFactory = function() {
	function t() {}
	return t.prototype.getCenter = function() {
		return null
	}, t
}();
__reflect(ZoneCenterFactory.prototype, "ZoneCenterFactory");
var AbyssCenter = function() {
	function t() {
		this._npcObj = {}, this._rankRoleHash = new HashObject;
		for (var t, e = [22, 23, 24, 25], i = 0; i < e.length; i++) t = App.config.q_npcContainer.getDataBean(e[i]), t && (
			this._npcObj[t.q_map] = t)
	}
	return t.prototype.getNpc = function(t) {
		return this._npcObj[t]
	}, t.prototype.setPlayerRank = function(t) {
		for (var e = t.length, i = this, n = 0; e > n; n++) {
			var a = t[n];
			i._rankRoleHash.put(a.id.toString(), a)
		}
		var o = App.global.mapModule.mapAvatarModel.playerHash.$_getValues();
		e = o.length;
		for (var n = 0; e > n; n++) {
			var r = o[n];
			r && r.setName(r.name)
		}
		o = App.global.mapModule.mapAvatarModel.partnerHash.$_getValues(), e = o.length;
		for (var n = 0; e > n; n++) {
			var r = o[n];
			r && r.setName(r.name)
		}
	}, t.prototype.checkIsNoGold = function(t) {
		var e = this._rankRoleHash.get(t);
		if (e) {
			if (e.dropRemain > 0) return !0;
			var i = App.global.characterData.personId,
				n = this._rankRoleHash.get(i);
			if (n.rank - e.rank < 20) return !0
		}
		return !1
	}, t.prototype.clear = function() {
		this._rankRoleHash.clear()
	}, t.prototype.setCurrentShopList = function(t) {
		this._shopList = t, App.dispatcher.dispatchEvent(ItemEvent.UPDATE_ABYSS_SHOP)
	}, t.prototype.updateCurrentShopList = function(t) {
		if (t && this._shopList)
			for (var e = 0; e < this._shopList.length; e++)
				if (this._shopList[e].sellId == t.sellId) {
					this._shopList[e] = t;
					break
				} App.dispatcher.dispatchEvent(ItemEvent.UPDATE_ABYSS_SHOP)
	}, t.prototype.getCurrentShopList = function() {
		return this._shopList
	}, t
}();
__reflect(AbyssCenter.prototype, "AbyssCenter");
var BossHomeCenter = function() {
	function t() {
		this._vipHash = new HashMap, this._homeList = []
	}
	return t.prototype.loadConfig = function(t) {
		this._homeList.push(t);
		var e = this._vipHash.get(t.q_need_vip);
		null == e && (e = [], this._vipHash.put(t.q_need_vip, e)), e.push(t)
	}, t.prototype.getTitleList = function() {
		var t = this._vipHash.keys;
		return t.sort(this.sort)
	}, t.prototype.getZoneList = function(t) {
		var e = [],
			i = this._vipHash.get(t);
		if (null != i)
			for (var n = void 0, a = 0; a < i.length; a++) n = App.data.zoneCenter.getData(i[a].q_id), n && e.push(n);
		return e
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.getShowPoint = function() {
		for (var t, e = App.data.boss.getZoneRemindBeanList(EnumZoneType.BOSS_HOME), i = 0; i < e.length; i++)
			if (t = App.data.boss.getZoneBoss(e[i].q_id), t.canKill) return !0;
		return !1
	}, t
}();
__reflect(BossHomeCenter.prototype, "BossHomeCenter");
var GuanQiaCenter = function() {
	function t() {
		this.id = 510001, this.floor = 0, this.into = !1, this.auto = !1, this.killNum = 0, this.goToBoss = !1, this.expPerHour =
			0, this.moneyPerHour = 0
	}
	return t.prototype.setGuanQiaID = function(t) {
		this.id != t && (this.killNum = 0, this.id = t)
	}, t
}();
__reflect(GuanQiaCenter.prototype, "GuanQiaCenter");
var MaterialCenter = function() {
	function t() {}
	return t.prototype.getShowPoint = function() {
		for (var t = this.getList(), e = 0; e < t.length; e++)
			if (t[e].canIntoNum > t[e].alreadyIntoNum) return !0;
		return !1
	}, t.prototype.getList = function() {
		for (var t, e = [EnumZoneType.EXP, EnumZoneType.ZHU_ZAO, EnumZoneType.JING_MAI, EnumZoneType.WING, EnumZoneType.MOUNT,
				EnumZoneType.TIANBING, EnumZoneType.FAZHEN, EnumZoneType.LONG_HUN
			], i = [], n = 0; n < e.length; n++) App.global.funcOpen.isFunctionOpen(this.getFunctionID(e[n])) && (t = App.data
			.zoneCenter.getList(e[n]), t && t.length > 0 && i.push(t[t.length - 1]));
		return i
	}, t.prototype.getFunctionID = function(t) {
		switch (t) {
			case EnumZoneType.EXP:
				return 142;
			case EnumZoneType.WING:
				return 143;
			case EnumZoneType.ZHU_ZAO:
				return 144;
			case EnumZoneType.LONG_HUN:
				return 145;
			case EnumZoneType.JING_MAI:
				return 75;
			case EnumZoneType.MOUNT:
				return 177;
			case EnumZoneType.TIANBING:
				return 204;
			case EnumZoneType.FAZHEN:
				return 205
		}
	}, t.prototype.getVipLv = function(t) {
		return 0 == t ? 2 : 1 == t ? 6 : -1
	}, t
}();
__reflect(MaterialCenter.prototype, "MaterialCenter");
var PagodaCenter = function() {
	function t() {
		this.dailyFlag = 0, this.myRank = -1, this.floorID = 600001, this._onlyFloorList = new Array
	}
	return t.prototype.loadConfig = function(t) {
		this._onlyFloorList.push(t)
	}, t.prototype.getPagodaCurrentList = function() {
		var t, e = [],
			i = this.getFloor(this.floorID) % 5;
		0 == i && (i = 5);
		for (var n = this.floorID - i + 1, a = 0; 5 > a; a++) t = GameUtil.getZoneBean(n), t && (e.push(t), n = t.q_next_zone_id);
		return e
	}, t.prototype.getRankList = function(t) {
		void 0 === t && (t = 50);
		var e = [];
		if (null != this.rankInfo)
			for (var i = this.rankInfo.rankInfoVec.length, n = void 0, a = void 0, o = 0; t > o; o++) i > o && (n = this.rankInfo
				.rankInfoVec[o], a = {}, a.rankname = n.name, a.rankdata = this.getFloor(n.starNum) + "层", a.index = n.topindex +
				1, a.vip = n.viplevel, e.push(a));
		return e
	}, t.prototype.getOnlyBean = function() {
		for (var t, e = this.getFloor(this.floorID), i = 0; i < this._onlyFloorList.length; i++)
			if (t = this.getFloor(this._onlyFloorList[i].q_id), t >= e) return this._onlyFloorList[i];
		return this._onlyFloorList[this._onlyFloorList.length - 1]
	}, t.prototype.setFloor = function(t) {
		this.floorID = t
	}, t.prototype.getFloor = function(t) {
		return t - 6e5
	}, t.prototype.getShowPoint = function() {
		var t = App.data.zoneCenter.getData(this.floorID);
		return t && t.zonedata2 && (this.dailyFlag = StringUtil.JsonParse(t.zonedata2).hasDailyReward), 0 == this.dailyFlag &&
			this.getFloor(this.floorID) > 1
	}, t
}();
__reflect(PagodaCenter.prototype, "PagodaCenter");
var PersonalBossCenter = function() {
	function t() {}
	return t.prototype.getPersonalShowPoint = function() {
		var t = App.data.zoneCenter.getList(EnumZoneType.PERSONAL_BOSS, !0);
		if (t) {
			var e = App.global.characterData;
			if (!e) return;
			for (var i = void 0, n = 0; n < t.length; n++) {
				if (i = t[n].bean, e.level < i.q_min_lv || i.q_min_metem_lv > e.zhuanSheng) return !1;
				if (t[n].remainIntoNum > 0) return !0
			}
		}
		return !1
	}, t.prototype.getWildShowPoint = function() {
		var t = App.data.bagItemDataCenter.getItemCount(EnumItemId.BOSS_CHALLENGE),
			e = App.data.boss.getZoneCount(EnumZoneType.WILD_BOSS);
		if (t + e > 0) {
			var i = App.global.characterData,
				n = App.data.boss.getZoneRemindBeanList(EnumZoneType.WILD_BOSS);
			if (n)
				for (var a = void 0, o = void 0, r = 0; r < n.length; r++) {
					if (o = n[r], i.zhuanSheng < o.q_min_metem_lv) return !1;
					if (i.level < o.q_min_lv) return !1;
					if (a = App.data.boss.getZoneBoss(n[r].q_id), a && a.canKill) return !0
				}
		}
		return !1
	}, t.prototype.getSecretShowPoint = function() {
		var t = App.data.boss.getZoneCount(EnumZoneType.SECRET);
		if (t > 0) {
			var e = App.global.characterData,
				i = App.data.zoneCenter.getList(EnumZoneType.SECRET, !0);
			if (i)
				for (var n = void 0, a = void 0, o = 0; o < i.length; o++) {
					if (n = i[o].bean, e.level < n.q_min_lv || n.q_min_metem_lv > e.zhuanSheng) return !1;
					if (a = App.data.boss.getZoneBoss(n.q_id), a.canKill) return !0
				}
		}
		return !1
	}, t.prototype.getGuildShowPoint = function() {
		if (!App.global.characterData.guildId) return !1;
		var t = -1,
			e = App.data.zoneCenter.getList(EnumZoneType.GUILD_BOSS, !1);
		if (e)
			for (var i = 0; i < e.length; i++) {
				var n = App.data.boss.getZoneBoss(e[i].id);
				if (null != n && e[i].zonedata2 && -1 == t && 0 == n.hp) {
					var a = StringUtil.JsonParse(e[i].zonedata2).hasWeekReward;
					0 == a && (t = i)
				}
			}
		return App.data.boss.getZoneCount(EnumZoneType.GUILD_BOSS) > 0 || -1 != t
	}, t.prototype.getEquipShowPoint = function() {
		var t = App.data.boss.getZoneRemindBeanList(EnumZoneType.KUANGFENG_BOSS),
			e = App.data.boss.getZoneRemindBeanList(EnumZoneType.QIDAO_BOSS),
			i = App.data.boss.getZoneRemindBeanList(EnumZoneType.HONGMO_BOSS);
		t = t.concat(e, i);
		for (var n, a = 0; a < t.length; a++)
			if (n = App.data.boss.getZoneBoss(t[a].q_id), n.canKill) return !0;
		return !1
	}, t
}();
__reflect(PersonalBossCenter.prototype, "PersonalBossCenter");
var RoadOfCQCenter = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._beanList = [], e._cloudyObj = {}, e
	}
	return __extends(e, t), e.prototype.loadConfig = function(t) {
		this._beanList.push(t)
	}, e.prototype.getState = function(t) {
		if (egret.is(t, "ZoneData")) {
			if (t.zonedata) return t.zonedata.State
		} else {
			var e = App.data.zoneCenter.getData(Number(t));
			if (e) return e.zonedata.State
		}
		return 0
	}, e.prototype.getCurrentID = function() {
		var t = App.data.zoneCenter.getData(this._beanList[0].q_id);
		return t && t.zonedata ? t.zonedata.Zonemaxid || t.id : -1
	}, e.prototype.getShowCloudy = function(t) {
		return this._cloudyObj[t]
	}, e.prototype.setShowCloudy = function(t, e) {
		this._cloudyObj[t] = e
	}, e.prototype.getBeanList = function() {
		return this._beanList
	}, e.prototype.getShowPoint = function() {
		return App.data.boss.getZoneCount(EnumZoneType.ROAD_OF_CQ) > 0
	}, e
}(egret.HashObject);
__reflect(RoadOfCQCenter.prototype, "RoadOfCQCenter");
var TargetCenter = function() {
	function t() {}
	return t.prototype.getBean = function(t) {
		for (var e, i = App.config.q_artifact_showContainer.list, n = i.length, a = 0; n > a; a++)
			if (t >= i[a].q_guanka_id && t <= i[a].q_jihuo_des) {
				e = i[a];
				break
			} return e
	}, t
}();
__reflect(TargetCenter.prototype, "TargetCenter");
var ZoneCenter = function() {
	function t() {
		this.pagodaCenter = new PagodaCenter, this.materialCenter = new MaterialCenter, this.bossHomeCenter = new BossHomeCenter,
			this.guanQiaCenter = new GuanQiaCenter, this.personalBossCenter = new PersonalBossCenter, this.targetCenter = new TargetCenter,
			this.roadOfCQCenter = new RoadOfCQCenter, this.abyssCenter = new AbyssCenter, this.zoneID = -1, this._type = -1,
			this._zoneHash = {}, this._zoneListHash = {}, this._typeObj = {}, this._gotoOthers = {}, this.mapPlayList = [],
			this.mapBossPlayList = [], this.loadConfig()
	}
	return Object.defineProperty(t.prototype, "type", {
		get: function() {
			return this._type
		},
		set: function(t) {
			this._type = t, App.global.characterData && App.global.characterData.changeGuildName()
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.loadConfig = function() {
		for (var t = App.config.q_zone_mapContainer.list, e = t.length, i = 0; e > i; i++) {
			t[i].q_zone_client_type == EnumZoneType.PAGODA ? t[i].q_only_reward && this.pagodaCenter.loadConfig(t[i]) : t[i].q_zone_client_type ==
				EnumZoneType.BOSS_HOME ? this.bossHomeCenter.loadConfig(t[i]) : t[i].q_zone_client_type == EnumZoneType.ROAD_OF_CQ &&
				this.roadOfCQCenter.loadConfig(t[i]);
			var n = t[i].q_zone_client_type,
				a = this._typeObj[n];
			null == a && (a = [], this._typeObj[n] = a), a.push(t[i])
		}
		var o = App.config.q_globalContainer.getDataBean(324);
		if (o) {
			var r = JSON.parse(o.q_string_value);
			e = r.length;
			for (var i = 0; e > i; i++) this._gotoOthers[r[i]] = !0
		}
	}, t.prototype.loadZones = function(t, e) {
		t == EnumZoneType.SECRET && (this._zoneListHash[t] = null);
		for (var i, n, a = e.length, o = 0; a > o; o++) i = this.getData(e[o].zoneModelId), null == i && (i = new ZoneData,
			this._zoneHash[e[o].zoneModelId] = i), i.convert(e[o]), n = this.getList(i.type), null == n && (n = [], this._zoneListHash[
			i.type] = n), -1 == n.indexOf(i) && n.push(i);
		switch (t) {
			case EnumZoneType.PAGODA:
				this.pagodaCenter.setFloor(e[0].zoneModelId)
		}
		App.dispatcher.dispatchEvent(ZoneEvent.ZONE_LIST_UPDATE, t)
	}, t.prototype.updateData = function(t) {
		var e = this.getData(t.zoneModelId);
		if (null == e) {
			var i = GameUtil.getZoneBean(t.zoneModelId);
			return void(i.q_zone_client_type == EnumZoneType.EXP && 0 == t.isfailed && (t.isgetaward || PanelOpenManager.openPanel(
				59, {
					zoneid: t.zoneModelId
				})))
		}
		e.convert(t), App.global.zone.finishZone(e.id, e.type, 0 != e.isfailed || !e.isfinish), App.dispatcher.dispatchEvent(
			ZoneEvent.FINISH_ZONE, e.id, e.type, 0 != e.isfailed && !e.isfinish)
	}, t.prototype.enterZone = function(t, e) {
		var i = this.getData(t.zoneModelId);
		null == i && (i = new ZoneData, this._zoneHash[t.zoneModelId] = i), i.convert(t), this.zoneID = t.zoneModelId, this
			.type = i.type, i.type == EnumZoneType.AUTO_FIGHT_ZONE && (this.guanQiaCenter.setGuanQiaID(t.zoneModelId), App.dispatcher
				.dispatchEvent(MainViewNotification.Event_MinerTips)), App.global.zone.enterZone(i.id, i.type, e, i);
		var n = App.data.boss.getZoneCount(i.type);
		n > 0 && App.data.boss.setZoneCount(i.type, n - 1), e && App.dispatcher.dispatchEvent(ZoneEvent.ENTER_ZONE, i.id, i
			.type)
	}, t.prototype.exitZone = function(t, e) {
		if (void 0 === e && (e = !0), e) {
			var i = [EnumZoneType.EXP, EnumZoneType.PERSONAL_BOSS, EnumZoneType.WILD_BOSS, EnumZoneType.SECRET, EnumZoneType.BOSS_HOME,
				EnumZoneType.PAGODA
			]; - 1 != i.indexOf(this.type) && (ZoneCommandSender.sendC2S_ZoneInfoListMessage(this.type), (this.type ==
					EnumZoneType.SECRET || this.type == EnumZoneType.WILD_BOSS || this.type == EnumZoneType.BOSS_HOME) &&
				ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(this.type));
			var n = GameUtil.getZoneBean(t);
			App.global.zone.exitZone(t, n.q_zone_client_type, e), App.dispatcher.dispatchEvent(ZoneEvent.EXIT_ZONE, t, n.q_zone_client_type),
				this.zoneID = -1, this.type = -1, this.abyssCenter.clear()
		}
	}, t.prototype.getData = function(t) {
		return this._zoneHash[t]
	}, t.prototype.getList = function(t, e) {
		void 0 === e && (e = !1);
		var i = this._zoneListHash[t];
		return i && (e ? i.sort(this.sorFunc) : ArrayUtil.sortOnArr(i, ["id"], [ArrayUtil.NUMERIC])), i
	}, t.prototype.getBeanList = function(t) {
		return this._typeObj[t]
	}, t.prototype.isInZone = function() {
		return this.zoneID > -1
	}, t.prototype.isInSinglePlayerZone = function() {
		if (this.isInZone() && this.getData(this.zoneID)) {
			var t = this.getData(this.zoneID).bean.q_max_num;
			if (1 == t) return !0
		}
		return !1
	}, t.prototype.getMyZoneData = function() {
		return this.getData(this.zoneID)
	}, t.prototype.sorFunc = function(t, e) {
		return 0 == t.remainIntoNum && e.remainIntoNum > 0 ? 1 : t.remainIntoNum > 0 && 0 == e.remainIntoNum ? -1 : t.id >
			e.id ? 1 : -1
	}, t.prototype.sorFuncPlayer = function(t, e) {
		return t.enterTime > e.enterTime ? 1 : -1
	}, t.prototype.sorFuncBossPlayer = function(t, e) {
		return t.value.toNumber() < e.value.toNumber() ? 1 : -1
	}, t.prototype.createPlayerlist = function(t) {
		if (t) {
			this.mapPlayList = t, this.mapPlayList.sort(this.sorFuncPlayer), this.mapPlayHash ? this.mapPlayHash.clear() :
				this.mapPlayHash = new HashObject;
			for (var e = this.mapPlayList.length, i = 0; e > i; i++) this.mapPlayHash.put(LongUtil.toString(this.mapPlayList[i]
				.id), this.mapPlayList[i])
		} else this.mapPlayList = []
	}, t.prototype.clearPlayerList = function() {
		this.mapPlayList = [], this.mapPlayHash ? this.mapPlayHash.clear() : this.mapPlayHash = new HashObject
	}, t.prototype.createBossPlayerlist = function(t) {
		if (t) {
			this.mapBossPlayList = t.sort(this.sorFuncBossPlayer), this.mapBossPlayHash ? this.mapBossPlayHash.clear() : this.mapBossPlayHash =
				new HashObject;
			for (var e = this.mapBossPlayList.length, i = 0; e > i; i++) this.mapBossPlayHash.put(LongUtil.toString(this.mapBossPlayList[
				i].playerId), this.mapBossPlayList[i])
		} else this.mapBossPlayList = []
	}, t.prototype.clearBossPlayerList = function() {
		this.mapBossPlayList = [], this.mapBossPlayHash ? this.mapBossPlayHash.clear() : this.mapBossPlayHash = new HashObject
	}, t.prototype.getMapPlayerInfo = function(t) {
		if (void 0 == this.mapPlayHash || null == this.mapPlayHash) return null;
		var e = this.mapPlayHash.get(t);
		return e ? e : null
	}, t.prototype.gotoOtherZone = function(t) {
		return this._gotoOthers[t]
	}, t
}();
__reflect(ZoneCenter.prototype, "ZoneCenter");
var ZoneCommandRegister = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._wudiObj = {}, e
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5189, this.onS2C_ZoneInfoHandler), this.register(5335, this.onS2C_ZoneInfoListHandler), this.register(
			5101, this.onS2C_ZoneIntoResultMessage), this.register(5333, this.onS2C_ZoneOutResultMessage), this.register(5281,
			this.onS2C_ZoneSweepFinishMessage), this.register(5624, this.onS2C_ZoneChuangGuanInfoMessage), this.register(5594,
			this.onS2C_GetBossHpInfoMessage), this.register(5472, this.onS2C_GetBossZoneInfoMessage), this.register(5102,
			this.onS2C_WildBossRefreshRemindMessage), this.register(5569, this.onS2C_WildBossRemindMessage), this.register(
			5519, this.onS2C_BossDeathShieldTimeMessage), this.register(5531, this.onS2C_MutiZoneRewardListMessage), this.register(
			5620, this.onS2C_BossMonsterInfoMessage), this.register(5528, this.onS2C_MapPlayerInfoMessage), this.register(
			5527, this.onS2C_MapPlayerPositionInfoMessage), this.register(5573, this.onS2C_daobaoMessage), this.register(5604,
			this.onS2C_ShengYuanPlayerRankInfoMessageHandler), this.register(5033, this.onS2C_ZoneRankInfoListMessage)
	}, e.prototype.onS2C_ZoneChuangGuanInfoMessage = function(t) {
		for (var e = t.infos, i = 0; i < e.length; i++) 0 == t.infos[i].type && (App.data.zoneCenter.guanQiaCenter.floor =
			t.infos[i].value)
	}, e.prototype.onS2C_ShengYuanPlayerRankInfoMessageHandler = function(t) {
		App.data.zoneCenter.abyssCenter.setPlayerRank(t.infos)
	}, e.prototype.onS2C_daobaoMessage = function(t) {
		1 == t.type && App.panel.openPanel(113), LongUtil.toNumber(t.endtime) > ServerTime.getServerTime() ? (null == App.global
			.enterBtn.getButton(39) && (App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 39, !0), App.dispatcher.dispatchEvent(
				EnterButtonEvent.SHOW_EFFECT, 39, !0, 0, 13, ResPathUtil.getMenuEffect("enterbutton", "daobao"))), App.dispatcher
			.dispatchEvent(EnterButtonEvent.SHOW_TIME, 39, LongUtil.toNumber(t.endtime))) : App.global.enterBtn.removeButton(
			39)
	}, e.prototype.onS2C_MapPlayerInfoMessage = function(t) {
		App.data.zoneCenter.createPlayerlist(t.playerInfoList), App.dispatcher.dispatchEvent(ZoneEvent.ZONE_PLAYERLIST)
	}, e.prototype.onS2C_ZoneRankInfoListMessage = function(t) {
		App.data.zoneCenter.createBossPlayerlist(t.infos), App.dispatcher.dispatchEvent(EventType.BOSS_PLAYERLIST_CHANGE)
	}, e.prototype.onS2C_MapPlayerPositionInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(ZoneEvent.ZONE_PLAYERPOS, t)
	}, e.prototype.onS2C_ZoneInfoListHandler = function(t) {
		App.data.zoneCenter.loadZones(t.zoneClientType, t.zoneInfos)
	}, e.prototype.onS2C_ZoneInfoHandler = function(t) {
		App.data.zoneCenter.updateData(t.zoneInfo)
	}, e.prototype.onS2C_ZoneIntoResultMessage = function(t) {
		App.data.zoneCenter.enterZone(t.zoneInfo, 1 == t.result)
	}, e.prototype.onS2C_ZoneOutResultMessage = function(t) {
		App.data.zoneCenter.exitZone(t.zonemid, 1 == t.result)
	}, e.prototype.onS2C_ZoneSweepFinishMessage = function(t) {
		App.dispatcher.dispatchEvent(ZoneEvent.SAO_DANG, t.zonemodelid, t.multiple)
	}, e.prototype.onS2C_BossMonsterInfoMessage = function(t) {
		var e = App.data.boss;
		e.bossID = LongUtil.toString(t.bossid), e.bossModelID = t.bossmid, e.isDie = t.isdie, e.type = t.type, e.defaultHp =
			LongUtil.toNumber(t.hp), e.defaultMaxHp = LongUtil.toNumber(t.maxhp), ChangeSceneAnimationHandler.StopMoving &&
			App.dispatcher.dispatchEvent(BossEvent.BOSS_MAP_UPDATE)
	}, e.prototype.onS2C_GetBossHpInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(BossEvent.BOSS_HP, LongUtil.toString(t.bossid), LongUtil.toNumber(t.hp), LongUtil.toNumber(
			t.maxhp))
	}, e.prototype.onS2C_GetBossZoneInfoMessage = function(t) {
		App.data.boss.loadDatas(t.zoneClientType, t.count, t.endTime, t.bossInfoList)
	}, e.prototype.onS2C_WildBossRefreshRemindMessage = function(t) {
		App.data && App.data.boss.loadRemind(t.fightId)
	}, e.prototype.onS2C_WildBossRemindMessage = function(t) {
		App.data && App.data.boss.updateBoss(t.BossInfo)
	}, e.prototype.onS2C_BossDeathShieldTimeMessage = function(t) {
		this._wudiObj[t.monsterId.toString()] || (this._wudiObj[t.monsterId.toString()] = !0, App.sound.playSound(
			EnumSoundId.BOSS_WUDI), App.timer.doTimeOnce(this, 4e4, this.wudiClear)), App.dispatcher.dispatchEvent(EventType.BOSS_WUDI,
			t.monsterId.toString(), t.shieldTime, t.maxShieldTime)
	}, e.prototype.wudiClear = function() {
		this._wudiObj = {}
	}, e.prototype.onS2C_MutiZoneRewardListMessage = function(t) {
		App.dispatcher.dispatchEvent(ZoneEvent.ZONE_BOSS_REWARD, t.rewardsList)
	}, e
}(BaseConnectionRegister);
__reflect(ZoneCommandRegister.prototype, "ZoneCommandRegister");
var ZoneCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_ZoneIntoMessage = function(t, e, i, n, a) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = !0);
		var o = App.data.zoneCenter,
			r = o.type;
		if (!o.gotoOtherZone(r)) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">您已在副本中，不能进入其他副本</font>"), !1;
		var s = o.getData(t);
		if (s && s.remainIntoNum <= 0 && -1 != s.canIntoNum && s.type != EnumZoneType.PAGODA) return Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">副本剩余次数不足，无法进入副本</font>"), !1;
		var h = GameUtil.getZoneBean(t);
		if (null != h && e != EnumZoneType.MAIN_CITY_OLD && e != EnumZoneType.EXP) {
			if (PanelOpenManager.openBagFullAlert()) return !1;
			var l = App.global.characterData;
			if (h.q_id == wfid.miner) {
				var p = App.config.q_functionContainer.getDataBean(77);
				if (ServerTime.openday < p.q_severopenday || l.level < h.q_min_lv) return Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">" + p.q_describe + "</font>"), !1
			}
			if (h.q_need_vip > l.vipLevel) return PanelOpenManager.openChargePanel(0), !1;
			if (0 != h.q_max_metem_lv && l.zhuanSheng > h.q_max_metem_lv) return Notice.showMousePosMessage("<font color=" +
				Notice.MIDDLE_COLOR_2 + ">转生等级大于" + h.q_max_metem_lv + "转，无法进入副本</font>"), !1;
			if (h.q_min_metem_lv > l.zhuanSheng) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">转生等级小于" + h.q_min_metem_lv + "转，无法进入副本</font>"), !1;
			if (l.level > h.q_max_lv) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">等级大于" + h.q_max_lv +
				"级，无法进入副本</font>"), !1;
			if (l.level < h.q_min_lv) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">等级小于" + h.q_min_lv +
				"级，无法进入副本</font>"), !1;
			if (h.q_open_zone && h.q_open_zone.indexOf("lunhuilv"))
				for (var c = JSON.parse(h.q_open_zone), _ = 0; _ < c.length; _++)
					if ("lunhuilv" == c[_].type && App.data.characterCenter.lunhuiLevel < c[_].id) return Notice.showMousePosMessage(
						"<font color=" + Notice.MIDDLE_COLOR_2 + ">轮回等级不足，无法进入副本</font>"), !1;
			if (0 == i) {
				var d = 0;
				this._cdObj.has(t) && (d = this._cdObj.get(t));
				var u = ServerTime.getServerTime();
				if (u - d < h.q_enter_cd) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">" + (h.q_enter_cd -
					u + d) + "秒后可重新进入</font>"), !1;
				this._cdObj.put(t, u)
			} else if (a && h.q_need_item) {
				var g = StringUtil.JsonParse(h.q_need_item)[0].num,
					f = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
				if (g > f) return PanelOpenManager.openChargePanel(g), Notice.showBottomMessage("元宝不足，不能扫荡"), Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">元宝不足，不能扫荡</font>"), !1
			}
		}
		var m = this.createCmd(16285);
		return m.zonemodelid = t, m.isauto = i, m.multiple = n, m.zoneClientType = e, this.sendCommand(m), 0 == i && e !=
			EnumZoneType.MINE_ZONE && e != EnumZoneType.MAIN_CITY && e != EnumZoneType.MAIN_CITY_OLD && App.global.zone.showEnterEffect(),
			!0
	}, e.sendC2S_ZoneGetAwardMessage = function(t, e, i) {
		void 0 === e && (e = 0), void 0 === i && (i = 0);
		var n = this.createCmd(16288);
		n.zonemid = t, n.onlyaward = e, n.multiple = i, this.sendCommand(n)
	}, e.sendC2S_ZoneIntoNextMapMessage = function() {
		var t = this.createCmd(16156);
		this.sendCommand(t)
	}, e.sendC2S_ZoneFinishMessage = function() {
		App.global.enterMapIng = !1, this.sendCommand(this.createCmd(16267))
	}, e.sendC2S_ZoneInfoListMessage = function(t) {
		var e = this.createCmd(16032);
		e.zoneClientType = t, this.sendCommand(e)
	}, e.sendC2S_ZoneInfoMessage = function(t) {
		var e = this.createCmd(16004);
		e.zonemid = t, this.sendCommand(e)
	}, e.sendC2S_ZoneRankInfoMessage = function(t, e) {
		void 0 === e && (e = 1);
		var i = this.createCmd(16041);
		i.zonemid = t, i.ranktype = e, this.sendCommand(i)
	}, e.sendC2S_ZoneRenewStayTimeMessage = function(t, e) {
		void 0 === e && (e = 1);
		var i = this.createCmd(16003);
		i.zonemid = t, i.renewCount = e, this.sendCommand(i)
	}, e.sendC2S_ClearMysAreaTimeMessage = function() {
		this.sendCommand(this.createCmd(16025))
	}, e.sendC2S_GetBossHpInfoMessage = function(t) {
		var e = this.createCmd(16522);
		e.bossid = LongUtil.fromString(t), this.sendCommand(e)
	}, e.sendC2S_GetBossZoneInfoMessage = function(t) {
		var e = this.createCmd(16401);
		e.zoneClientType = t, this.sendCommand(e)
	}, e.sendC2S_AliveWildBossMessag = function() {
		var t = this.createCmd(16242);
		t.infoType = 0, this.sendCommand(t)
	}, e.sendC2S_WildBossRefreshRemindMessage = function(t, e) {
		var i = this.createCmd(16160);
		i.fightId = t, i.remind = e ? 1 : 0, this.sendCommand(i)
	}, e.sendC2S_GuildBossRewardMessage = function(t) {
		var e = this.createCmd(16495);
		e.zoneid = t, this.sendCommand(e)
	}, e.sendC2S_ChangeToAutoZoneHandUpMessage = function() {
		this.sendCommand(this.createCmd(16428))
	}, e.sendC2S_TongtianDailyMessage = function() {
		this.sendCommand(this.createCmd(16441))
	}, e.sendC2S_daobaoMessage = function() {
		this.sendCommand(this.createCmd(16496))
	}, e.sendC2S_MapPlayerInfoMessage = function() {
		this.sendCommand(this.createCmd(16449))
	}, e.sendC2S_MapPlayerPoisitionInfoMessage = function(t) {
		var e = this.createCmd(16450);
		e.playerId = egret.is(t, "string") ? LongUtil.fromString(t) : t, this.sendCommand(e)
	}, e.sendC2S_ShengYuanPlayerRankInfoMessage = function() {
		var t = this.createCmd(16538);
		this.sendCommand(t)
	}, e._cdObj = new HashObject, e
}(BaseConnectionSender);
__reflect(ZoneCommandSender.prototype, "ZoneCommandSender");
var EnumZoneID;
! function(t) {
	t[t.MAIN_CITY_ID_OLD = 10020] = "MAIN_CITY_ID_OLD", t[t.BOSS_ZONE_ID = 1114] = "BOSS_ZONE_ID", t[t.MAIN_CITY_ID =
		10025] = "MAIN_CITY_ID", t[t.YUANBAO_ID = 10026] = "YUANBAO_ID", t[t.GUIKDBOSS_ID = 10027] = "GUIKDBOSS_ID", t[t.CROSS_FLAG_ID =
		10030] = "CROSS_FLAG_ID", t[t.Thunther_Temple = 1e3] = "Thunther_Temple"
}(EnumZoneID || (EnumZoneID = {}));
var EnumZoneType;
! function(t) {
	t[t.EXP = 1] = "EXP", t[t.WING = 2] = "WING", t[t.MOUNT = 54] = "MOUNT", t[t.TIANBING = 55] = "TIANBING", t[t.FAZHEN =
			56] = "FAZHEN", t[t.ZHU_ZAO = 3] = "ZHU_ZAO", t[t.JING_MAI = 4] = "JING_MAI", t[t.LONG_HUN = 5] = "LONG_HUN", t[t.ZHUAN_SHENG =
			6] = "ZHUAN_SHENG", t[t.PAGODA = 7] = "PAGODA", t[t.TD = 8] = "TD", t[t.UNKNOWN = 9] = "UNKNOWN", t[t.MAYA = 10] =
		"MAYA", t[t.BOSS_HOME = 11] = "BOSS_HOME", t[t.SECRET = 12] = "SECRET", t[t.BIQI_NIGHT = 13] = "BIQI_NIGHT", t[t.STORY_ZONE =
			14] = "STORY_ZONE", t[t.SPECIAL_STORY_ZONE = 15] = "SPECIAL_STORY_ZONE", t[t.EQUIPENVOY = 16] = "EQUIPENVOY", t[t.YY_ZONE =
			17] = "YY_ZONE", t[t.GUILD_FIGHT = 18] = "GUILD_FIGHT", t[t.BRAVE_FIGHT = 19] = "BRAVE_FIGHT", t[t.TIANXIADIYI = 20] =
		"TIANXIADIYI", t[t.MULTIPLAYER = 21] = "MULTIPLAYER", t[t.SG_MIJING = 22] = "SG_MIJING", t[t.YG_MIJING = 23] =
		"YG_MIJING", t[t.CROSS_SERVER = 24] = "CROSS_SERVER", t[t.JINDI_MIJING = 25] = "JINDI_MIJING", t[t.LUNHUI_DIAN = 26] =
		"LUNHUI_DIAN", t[t.ROBBER_THIEF = 27] = "ROBBER_THIEF", t[t.WARPET_ZONE = 28] = "WARPET_ZONE", t[t.CROSSTEAM_BUFFER_ZONE =
			29] = "CROSSTEAM_BUFFER_ZONE", t[t.MINE_ZONE = 30] = "MINE_ZONE", t[t.AUTO_FIGHT_ZONE = 31] = "AUTO_FIGHT_ZONE", t[t
			.GUAN_KA_ZONE = 32] = "GUAN_KA_ZONE", t[t.PERSONAL_BOSS = 33] = "PERSONAL_BOSS", t[t.WILD_BOSS = 34] = "WILD_BOSS",
		t[t.SHABAK = 35] = "SHABAK", t[t.WANGZHE = 36] = "WANGZHE", t[t.GOD_BOSS = 37] = "GOD_BOSS", t[t.MAIN_CITY_OLD = 38] =
		"MAIN_CITY_OLD", t[t.MOON_CARD = 39] = "MOON_CARD", t[t.GUILD_BOSS = 40] = "GUILD_BOSS", t[t.DAOBAO_BOSS = 41] =
		"DAOBAO_BOSS", t[t.ROAD_OF_CQ = 42] = "ROAD_OF_CQ", t[t.XSBOSS = 43] = "XSBOSS", t[t.ABYSS = 44] = "ABYSS", t[t.KUANGFENG_BOSS =
			45] = "KUANGFENG_BOSS", t[t.HONGMO_BOSS = 46] = "HONGMO_BOSS", t[t.QIDAO_BOSS = 47] = "QIDAO_BOSS", t[t.MAIN_CITY =
			48] = "MAIN_CITY", t[t.YUBAOGUI = 49] = "YUBAOGUI", t[t.ALLGUILDBOSS = 50] = "ALLGUILDBOSS", t[t.LUNHUI_BOSS = 51] =
		"LUNHUI_BOSS", t[t.XIANSHI_BOSS = 52] = "XIANSHI_BOSS", t[t.CROSS_FLAG = 53] = "CROSS_FLAG", t[t.CROSS = 9999] =
		"CROSS"
}(EnumZoneType || (EnumZoneType = {}));
var ZoneEvent = function() {
	function t() {}
	return t.ENTER_ZONE = "ZoneEvent.ENTER_ZONE", t.EXIT_ZONE = "ZoneEvent.EXIT_ZONE", t.FINISH_ZONE =
		"ZoneEvent.FINISH_ZONE", t.ZONE_LIST_UPDATE = "ZoneEvent.ZONE_LIST_UPDATE", t.SAO_DANG = "ZoneEvent.SAO_DANG", t.ZONE_KILLNUM =
		"ZoneEvent.ZONE_KILLNUM", t.ZONE_PLAYERLIST = "ZoneEvent.ZONE_PLAYERLIST", t.ZONE_PLAYERPOS =
		"ZoneEvent.ZONE_PLAYERPOS", t.ZONE_BOSS_REWARD = "ZoneEvent.ZONE_BOSS_REWARD", t.ZONE_FIGHT = "ZoneEvent.ZONE_FIGHT",
		t.ZONE_NPC = "ZoneEvent.ZONE_NPC", t.ZONE_UPDATE_TARGET = "ZoneEvent.ZONE_UPDATE_TARGET", t
}();
__reflect(ZoneEvent.prototype, "ZoneEvent");
var ZoneManager = function() {
	function t() {
		var t = this;
		this._trackHash = new HashObject, this._infoHash = new HashObject, this.shaderProxy = new ShaderUtil, this._currentProxy =
			new FightCurrentProxy(App.layer.zoneLayer), this._meProxy = new FightMeProxy(App.layer.zoneLayer), this._otherProxy =
			new FightOtherProxy(App.layer.zoneLayer), this._fightListProxy = new FightListProxy(App.layer.zoneLayer), this._fightHeadProxy =
			new FightHeadView(App.layer.zoneLayer), this._bossProxy = new FightBossProxy(App.layer.zoneLayer), this._fightProxy =
			new FightProxy, this._fightNpcProxy = new FightNpcProxy, this._welcome_bg = UIMaker.getImage(App.layer.zoneLayer,
				this, "main_zdts_05_png", 28, .7 * Config.SCREEN_HEIGHT - 15), this._welcome_bg.width = 584, this._welcome_bg.height =
			37, this._welcome_bg.scale9Grid = new egret.Rectangle(56, 4, 10, 29), this._welcome_bg.visible = !1, this._welcome_txt =
			UIMaker.getTextField(App.layer.zoneLayer, this, 0, this._welcome_bg.y + 6, 640, 25, 16757336, 25), this._time_txt =
			UIMaker.getTextField(App.layer.zoneLayer, this, Config.SCREEN_WIDTH + 200 >> 1, 25, 200, 18, 16711680, 18), this._time_txt
			.x = (Config.SCREEN_WIDTH >> 1) - (this._time_txt.width >> 1), this._timeCount = new ZoneCount, App.layer.zoneLayer
			.addChild(this._timeCount), App.dispatcher.addEventListener(EventType.SHOW_HIDE_PANEL, this.onOpenPanel, this), App
			.dispatcher.addEventListener(EventType.STGAE_RESIZE, function() {
				t._time_txt && (t._time_txt.x = (Config.SCREEN_WIDTH >> 1) - (t._time_txt.width >> 1), t.resizeWelcome())
			}, this), this.resizeWelcome()
	}
	return t.prototype.resizeWelcome = function() {
		this._welcome_bg.x = Config.SCREEN_WIDTH - this._welcome_bg.width >> 1, this._welcome_txt.x = Config.SCREEN_WIDTH -
			this._welcome_txt.width >> 1
	}, t.prototype.onOpenPanel = function(t) {
		App.layer.zoneLayer.visible = !t, App.layer.sceneLayer.visible = !t
	}, t.prototype.registerZone = function(t, e, i) {
		void 0 === e && (e = null), void 0 === i && (i = "");
		var n = {};
		n.cls = e, n.type = t, n.res = i, this._infoHash.put(t, n)
	}, t.prototype.enterZone = function(t, e, i, n) {
		if (!i) return void Notice.show(1031);
		Guide.getGuide().hide(), this._zoneid = t;
		var a = GameUtil.getZoneBean(t);
		null != a && (App.dispatcher.dispatchEvent(EventType.CHANGE_NO_GUAJI_SEARCH_MONSTER, !1), 1 == a.q_guaji_button &&
			this._fightHeadProxy.show(), this._fightListProxy.enter(t, e), this._fightProxy.enter(t, e), this._fightNpcProxy.enter(
				t, e), this.openZone(e, n), this.showWelcome(a.q_explain), this.showTime(e, a.q_can_stay_time / 1e3), this._timeCount
			.hide(), this.stopExit(), this.showGuildName(e), this.showMainCityButton(e), this.playSound(a.q_music), this.hidePlayerName(
				e), App.data.crossCenter().setRoleNationName(), GameLog.log("进入副本，副本id:" + t + "副本类型：" + e, "副本停留时间:" + a.q_can_stay_time /
				1e3))
	}, t.prototype.shaderEffect = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e;
			return __generator(this, function(i) {
				switch (i.label) {
					case 0:
						return [4, this.shaderProxy.loadShaderConfig(shaderType.waveShader, "waveShader")];
					case 1:
						return t = i.sent(), e = this.shaderProxy.getScreenSnapshoot(), this.shaderProxy.timeRate = .01, this.shaderProxy
							.start(shaderType.waveShader, e, JSON.parse(t)), [2]
				}
			})
		})
	}, t.prototype.exitZone = function(t, e, i) {
		return void 0 === i && (i = !0), i ? (this.clearZone(), this._fightHeadProxy.hide(), this._fightListProxy.exit(),
			this._currentProxy.exit(), this._meProxy.exit(), this._otherProxy.exit(), this._fightProxy.exit(), this._fightNpcProxy
			.exit(), this._timeCount.hide(), this.hideWelcome(), this.hideTime(), this.stopExit(), void GameLog.log(
				"退出副本，副本id:" + t + "副本类型：" + e)) : void Notice.show(1032)
	}, t.prototype.finishZone = function(t, e, i) {
		this._currentZone && this._currentZone.zoneid == t && this._currentZone.finish(i), this._zoneid == t && (this.hideTime(),
			this._timeCount.showFinish(t, e), this.exit(), GameLog.log("完成副本，副本id:" + t + "副本类型：" + e))
	}, t.prototype.openZone = function(t, e) {
		this.clearZone();
		var i = this._trackHash.get(t);
		if (null == i) {
			var n = this._infoHash.get(t);
			if (n && n.cls) {
				var a = n.cls;
				i = new a, this._trackHash.put(t, i)
			}
		}
		i && (App.layer.zoneLayer.addChild(i), i.zoneid = e.id, i.type = t, i.data = e, i.enter()), this._currentZone = i
	}, t.prototype.getTrack = function(t) {
		var e = this._trackHash.get(t);
		return e
	}, t.prototype.clearZone = function() {
		Config.isDebug && GameLog.log("ZoneManager类", "退出副本，退出的副本ID为：" + App.data.zoneCenter.zoneID);
		var t = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		null != t && 0 == t.q_hook && App.dispatcher.dispatchEvent(GuideEvent.HIDE, 100), this._currentZone && (this._trackHash
			.del(this._currentZone.type), this._currentZone.parent && this._currentZone.parent.removeChild(this._currentZone),
			this._currentZone.exit(), this._currentZone.dispose(), this._currentZone = null)
	}, t.prototype.exit = function() {
		var t = GameUtil.getZoneBean(this._zoneid);
		if (null != t) {
			if (t.q_complete_residence > 0) {
				var e = ServerTime.getServerTime() + t.q_complete_residence;
				App.timer.serverTimeEnd(this, this.onExit, e)
			}
			GameLog.log("副本停留时间:" + t.q_complete_residence + "秒")
		}
	}, t.prototype.stopExit = function() {
		App.timer.clearTimer(this.onExit, this)
	}, t.prototype.onExit = function(t) {
		t.spuleTime < 0 && (ZoneCommandSender.sendC2S_ZoneFinishMessage(), GameLog.log("发退出副本消息的时间：" + egret.getTimer()),
			this.stopExit())
	}, t.prototype.showWelcome = function(t, e) {
		void 0 === e && (e = 5e3), this._welcome_txt.text = t, this._welcome_bg.visible = "" != t, App.timer.doTimeOnce(
			this, e, this.hideWelcome)
	}, t.prototype.hideWelcome = function() {
		this._welcome_txt.text = "", this._welcome_bg.visible = !1, App.timer.clearTimer(this.hideWelcome, this)
	}, t.prototype.showEnterEffect = function() {
		this._effectDown = EffectUtils.showCEffect(this, App.layer.zoneLayer, ResPathUtil.getMenuEffect("zone", "2_0"),
				Config.SCREEN_WIDTH / 2, Config.SCREEN_HEIGHT / 2 - 250, this._effectDown), this._effectDown.lastFrameHanderCallBack =
			new FunctionVO(this.hideEnterEffect, this), this._effectDown.visible = !0, this._effectDown.restart(), this._effectDown
			.play(), this._effectUp = EffectUtils.showCEffect(this, App.layer.zoneLayer, ResPathUtil.getMenuEffect("zone",
				"1_0"), Config.SCREEN_WIDTH / 2, Config.SCREEN_HEIGHT / 2 - 250, this._effectUp), this._effectUp.visible = !0,
			this._effectUp.restart(), this._effectUp.play()
	}, t.prototype.hideEnterEffect = function() {
		this._effectDown && (this._effectDown.stop(), this._effectDown.visible = !1, this._effectUp.stop(), this._effectUp.visible = !
			1)
	}, t.prototype.showTime = function(t, e) {
		this.hideTime(), t != EnumZoneType.AUTO_FIGHT_ZONE && t != EnumZoneType.GUAN_KA_ZONE && t != EnumZoneType.BIQI_NIGHT &&
			t != EnumZoneType.TIANXIADIYI && e > 0 && App.timer.serverTimeEnd(this, this.onTime, e + ServerTime.getServerTime())
	}, t.prototype.hideTime = function() {
		this._time_txt.text = "", App.timer.clearTimer(this.onTime, this)
	}, t.prototype.onTime = function(t) {
		t.spuleTime >= 0 ? this._time_txt.text = "剩余时间:" + StringUtil.convertTime(t.spuleTime) : (this.exit(), this.hideTime())
	}, t.prototype.showGuildName = function(t) {
		var e = App.global.characterData; - 1 != GameUtil.getGlobalConfigData(269).q_string_value.indexOf(t.toString()) ? e
			.roleView.roleHeadLayout.getContent(AvatarHeadType.GUILD_NAME).show() : e.roleView.roleHeadLayout.hashConetnt(
				AvatarHeadType.GUILD_NAME) && e.roleView.roleHeadLayout.getContent(AvatarHeadType.GUILD_NAME).hide()
	}, t.prototype.hidePlayerName = function(t) {
		var e = App.global.characterData;
		t == EnumZoneType.TIANXIADIYI ? e.setName("") : e.setName(e.name)
	}, t.prototype.showMainCityButton = function(t) {
		var e = App.global.enterBtn.getInfo(41);
		if (App.global.funcOpen.isFunctionOpen(e.functionID)) {
			var i = t != EnumZoneType.MAIN_CITY_OLD && t != EnumZoneType.MAIN_CITY;
			App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, 41, i)
		}
	}, t.prototype.playSound = function(t) {
		t && this._soundID != t && App.sound.playSound(t), this._soundID = t
	}, t
}();
__reflect(ZoneManager.prototype, "ZoneManager");
var ZoneRegister = function() {
	function t() {
		t.ins || (t.ins = this, this.initialize())
	}
	return t.prototype.initialize = function() {
		App.global.zone.registerZone(EnumZoneType.AUTO_FIGHT_ZONE, ZoneGuanQiaTrack), App.global.zone.registerZone(
				EnumZoneType.GUAN_KA_ZONE, ZoneGuanQiaBossTrack), App.global.zone.registerZone(EnumZoneType.PAGODA,
				ZonePagodaTrack), App.global.zone.registerZone(EnumZoneType.SHABAK, ShabakWarFightTrack), App.global.zone.registerZone(
				EnumZoneType.BIQI_NIGHT, BiQiZone), App.global.zone.registerZone(EnumZoneType.MINE_ZONE, MinerZoneTrackPanel),
			App.global.zone.registerZone(EnumZoneType.GUILD_BOSS, ZoneGuildBossTrack), App.global.zone.registerZone(
				EnumZoneType.GUILD_FIGHT, ZoneWangZheTrack), App.global.zone.registerZone(EnumZoneType.WANGZHE, ZoneWangZheTrack),
			App.global.zone.registerZone(EnumZoneType.DAOBAO_BOSS, ZoneDaoBaoTrack), App.global.zone.registerZone(EnumZoneType
				.CROSS, CrossZoneTrackPanel), App.global.zone.registerZone(EnumZoneType.TIANXIADIYI, ZoneTxdyTrack), App.global.zone
			.registerZone(EnumZoneType.MAIN_CITY, ZoneMobaiChengzhuActTrack), App.global.zone.registerZone(EnumZoneType.YUBAOGUI,
				ZoneYuanbaoGuiActTrack), App.global.zone.registerZone(EnumZoneType.ALLGUILDBOSS, ZoneGuildBossActTrack), App.global
			.zone.registerZone(EnumZoneType.ABYSS, ZoneAbyssTrack, "abyss_json"), App.global.zone.registerZone(EnumZoneType.CROSS_FLAG,
				ZoneCrossFlagTrack), App.global.zone.registerZone(EnumZoneType.PERSONAL_BOSS, ZonePersonalBossTrack), App.global.zone
			.registerZone(EnumZoneType.XSBOSS, ZonePersonalBossTrack), App.global.zone.registerZone(EnumZoneType.ROAD_OF_CQ,
				ZonePersonalBossTrack), App.global.zone.registerZone(EnumZoneType.SECRET, ZoneFightBossTrack), App.global.zone.registerZone(
				EnumZoneType.WILD_BOSS, ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.LUNHUI_BOSS,
				ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.SPECIAL_STORY_ZONE, ZoneFightBossTrack), App.global
			.zone.registerZone(EnumZoneType.GOD_BOSS, ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.BOSS_HOME,
				ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.QIDAO_BOSS, ZoneFightBossTrack), App.global.zone.registerZone(
				EnumZoneType.KUANGFENG_BOSS, ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.HONGMO_BOSS,
				ZoneFightBossTrack), App.global.zone.registerZone(EnumZoneType.EXP, ZoneMaterialTrack), App.global.zone.registerZone(
				EnumZoneType.WING, ZoneMaterialTrack), App.global.zone.registerZone(EnumZoneType.ZHU_ZAO, ZoneMaterialTrack), App
			.global.zone.registerZone(EnumZoneType.LONG_HUN, ZoneMaterialTrack), App.global.zone.registerZone(EnumZoneType.JING_MAI,
				ZoneMaterialTrack), App.global.zone.registerZone(EnumZoneType.TIANBING, ZoneMaterialTrack), App.global.zone.registerZone(
				EnumZoneType.FAZHEN, ZoneMaterialTrack), App.global.zone.registerZone(EnumZoneType.MOUNT, ZoneMaterialTrack), App
			.global.zone.registerZone(EnumZoneType.STORY_ZONE, ZoneStoryTrack)
	}, t
}();
__reflect(ZoneRegister.prototype, "ZoneRegister");
var ZoneUtil = function() {
	function t() {}
	return t.isBoss = function(t) {
		return egret.is(t, "MapMonsterRoleData") ? ByteUtils.hasKey(t.monsterType, 8) || ByteUtils.hasKey(t.monsterType, 24) :
			!1
	}, t.isPet = function(t) {
		return egret.is(t, "MapPetRoleData") || egret.is(t, "CharcterPartnerRoleData")
	}, t.getOwnerID = function(t) {
		return egret.is(t, "MapPetRoleData") ? t.ownerId : egret.is(t, "CharcterPartnerRoleData") ? t.ownerId : t.personId
	}, t
}();
__reflect(ZoneUtil.prototype, "ZoneUtil");
var ZoneData = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.id = 0, e.type = 0, e.canIntoNum = 0, e.alreadyIntoNum = 0, e.addCanIntoNum = 0, e.addAlreadyIntoNum = 0, e
			.remainIntoNum = 0, e.isfinish = !1, e.isfailed = 0, e.isgetaward = !1, e.isgetonlyaward = 0, e.zonedata = null, e.zonedata2 =
			null, e
	}
	return __extends(e, t), e.prototype.convert = function(t) {
		null != t && (this.id = t.zoneModelId, this.canIntoNum = t.canIntoNum, this.alreadyIntoNum = t.alreadyIntoNum, this
			.addCanIntoNum = t.addCanIntoNum, this.addAlreadyIntoNum = t.addAlreadyIntoNum, this.isfinish = 1 == t.isfinish ?
			!0 : !1, this.isgetaward = 1 == t.isgetaward ? !0 : !1, this.isgetonlyaward = t.isgetonlyaward, this.isfailed = t
			.isfailed, this.zonedata2 = t.zonedata, this.remainIntoNum = Math.max(0, this.addCanIntoNum + this.canIntoNum -
				this.addAlreadyIntoNum - this.alreadyIntoNum), "" != t.zonedata && (this.zonedata = StringUtil.JsonParse(
				StringUtil.replacJosnStr(t.zonedata))), this.bean = GameUtil.getZoneBean(t.zoneModelId), this.bean && (this.type =
				this.bean.q_zone_client_type))
	}, e
}(Dispose);
__reflect(ZoneData.prototype, "ZoneData");
var Guide = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._tweening = !1, e._direction = -1, e._isModel = !1, e._bgH = 49, e._bgW = 189, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.touchEnabled = !1, this.touchChildren = !1, this._container = new eui.Group, this.addChild(this._container),
			null == this._bg && (this._bg = EffectUtils.showCEffect(this, this._container, ResPathUtil.getMenuEffect("task",
				"guideJt"), 0, 0, this._bg)), null == this._yuan && (this._yuan = EffectUtils.showCEffect(this, this, ResPathUtil
				.getMenuEffect("task", "guideQuan"), 0, 0, this._yuan)), this._txt = UIMaker.getTextField(this._container, e),
			this._txt.textColor = 16764826, this._container.addChild(this._txt)
	}, e.prototype.setText = function(t) {
		this._txt.textFlow = HtmlUtil.getHtmlStr(t), this._txt.y = -10
	}, Object.defineProperty(e.prototype, "text", {
		get: function() {
			return this._txt.text
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(t, i, n, a, o, r, s, h) {
		void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o && (o = null), void 0 === r && (r = !1), void 0 ===
			s && (s = 0), void 0 === h && (h = 0), this._target && this._target.parent == App.layer.guideLayer && App.layer.guideLayer
			.removeChild(this._target), this._target = o, this.killTween(), this.x = n, this.y = a, this._container.x = 0,
			this._container.y = 0, this._direction = i;
		var l = -1;
		switch (i) {
			case e.UP:
				break;
			case e.DOWN:
				break;
			case e.LEFT:
				this._bg.degrees = 180, this._bg.x = -15, this._yuan.x = this._bg.x - this._bgW - 28, this._txt.x = this._bg.x -
					30, l = 1;
				break;
			case e.RIGHT:
				this._bg.degrees = 0, this._bg.x = 65, this._yuan.x = this._bg.x + this._bgW - 10, this._txt.x = this._bg.x - 75,
					l = 1
		}
		this.setText(t), -1 != l && (0 == l ? TweenMax.to(this._container, .5, {
			y: this._container.y - 50,
			repeat: -1,
			yoyo: !0,
			ease: Linear.easeNone
		}) : TweenMax.to(this._container, .5, {
			x: this._container.x - 50,
			repeat: -1,
			yoyo: !0,
			ease: Linear.easeNone
		}), this._tweening = !0), this._isModel = r, 1 == r ? (this._tx = this._target.x, this._ty = this._target.y, this._parent =
			this._target.parent, o.x = s, o.y = h, FullScreenMask.ins.addMask(App.layer.guideLayer, -1, FullScreen.Guide),
			App.layer.guideLayer.addChild(o), App.layer.guideLayer.addChild(this)) : (o && o.addChild(this), FullScreenMask.ins
			.removeMask(FullScreen.Guide))
	}, e.prototype.hide = function() {
		this._direction = -1, FullScreenMask.ins.removeMask(FullScreen.Guide), null != this.parent && this.parent.removeChild(
			this), this.setText(""), this.killTween(), this._target && this._isModel && (App.layer.guideLayer.removeChild(
			this._target), this._parent && (this._parent.addChild(this._target), this._target.x = this._tx, this._target.y =
			this._ty), this._target = null)
	}, e.prototype.killTween = function() {
		this._tweening && (TweenLite.killTweensOf(this._container), this._tweening = !1)
	}, e.getGuide = function() {
		return this._guide || (this._guide = new e), this._guide
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			var t = 0;
			switch (this._direction) {
				case e.LEFT:
					t = this._bgW;
					break;
				case e.RIGHT:
					t = this._bgW
			}
			return t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			var t = 0;
			switch (this._direction) {
				case e.UP:
					break;
				case e.DOWN:
					break;
				case e.LEFT:
					t = this._bgH;
					break;
				case e.RIGHT:
					t = this._bgH
			}
			return t
		},
		enumerable: !0,
		configurable: !0
	}), e.UP = 1, e.DOWN = 2, e.LEFT = 3, e.RIGHT = 4, e
}(h5_engine.GDisplayObjectContainer);
__reflect(Guide.prototype, "Guide");
var EnumBufferParaType = function() {
	function t() {
		this.REVIVERING_REVIVECNT = 2
	}
	return t.isTimeType = function(e) {
		return e == t.REVIVERING_ADDCNTCD
	}, t.CHANGE_COLOR = 1, t.REVIVERING_ADDCNTCD = 3, t.REVIVERING_MAXCNT = 4, t
}();
__reflect(EnumBufferParaType.prototype, "EnumBufferParaType");
var EnumCharacterType = function() {
	function t() {}
	return t.TAB_CHAR = 0, t.TAB_NEIGONG = 1, t.TAB_METEM = 2, t.TAB_WING = 3, t.TAB_MOUNTS = 4, t.TAB_FOOT = 5, t.TAB_STONE =
		6, t.TAB_Bagua = 7, t.NG_SERVER = 0, t.NG_LEVELUP = 1, t.NG_IMMEDI_UPDATE = 2, t
}();
__reflect(EnumCharacterType.prototype, "EnumCharacterType");
var EnumChatRegType = function() {
	function t() {}
	return t.getColorByType = function(t) {
			return null == this._colorhash && (this._colorhash = new HashObject, this._colorhash.put(1, "#00FF00"), this._colorhash
				.put(2, "#FF0000"), this._colorhash.put(3, "#F33333")), this._colorhash.get(t)
		}, t.LINKPLAYERNAME = 1, t.LINKMAPNAME = 2, t.LINKGOTOMAP = 3, t.LINKOPENPANEL = 4, t.NON_NAMECOLOR = 5, t.NON_ITEMCOLOR =
		6, t.SHOWACHIEVE = 7, t.ACTIVITYTRANS = 8, t.LINKSHOWMYPOS = 10, t.LINKBOSSTRANS = 12, t.SHOWWARPET = 13, t.MULTIPLAYER_TEAMMATE =
		14, t.REG_PLAYERNAME_START = "#playername_s", t.REG_PLAYERNAME_END = "#playername_e", t.REG_MAPNAME_START =
		"#mapname_s", t.REG_MAPNAME_END = "#mapname_e", t.REG_GOTOMAP_START = "#gotomap_s", t.REG_GOTOMAP_END = "#gotomap_e",
		t.REG_FLYTOMAP_START = "#flytomap_s", t.REG_FLYTOMAP_END = "#flytomap_e", t.REG_FLYTOBOSS_START = "#flytoboss_s", t.REG_FLYTOBOSS_END =
		"#flytoboss_e", t.REG_ITEMID_START = "#itemid_s", t.REG_ITEMID_END = "#itemid_e", t.REG_OPENPANEL_START =
		"#openpanel_s", t.REG_OPENPANEL_END = "#openpanel_e", t.REG_NAMECOLOR_START = "#colour_s", t.REG_NAMECOLOR_END =
		"#colour_e", t.REG_SHOWACHIEVE_START = "#showAchieve_s", t.REG_SHOWACHIEVE_END = "#showAchieve_e", t.REG_SHOWWARPET_START =
		"#showWarpet_s", t.REG_SHOWWARPET_END = "#showWarpet_e", t.REG_MULTITEAMMATE_START = "#multiteammate_s", t.REG_MULTITEAMMATE_END =
		"#multiteammate_e", t.REG_SHOWMYPOS_START = "#showmypos_s", t.REG_SHOWMYPOS_END = "#showmypos_e", t.SHOWITEM_START_CLIENT =
		'[<A HREF="EVENT:', t.SHOWITEM_END_CLIENT = "</A>]", t.SHOWITEM_START = "~showItem_", t.SHOWACHIEVE_START =
		"~showAchieve_", t.SHOWWARPET_START = "~showWarPet_", t.SHOWMYPOSITION_START = "~showMyPosition_~", t.SHOWMYPOSITION_EVENTID =
		"1234567890123456", t.INVITECODE_START = "~invitecode_s~", t.INVITECODE_END = "~invitecode_e~", t.INVITECODE_INT =
		"123456", t.SHOWITEM_END = "~", t.SHOWFRIEND_GRADE = "#showfrendgrade#", t
}();
__reflect(EnumChatRegType.prototype, "EnumChatRegType");
var EnumChatTypes = function() {
	function t() {}
	return t.getTypeSig = function(t) {
			var e = "";
			switch (t) {
				case this.CHANNEL_SYSYTEM:
					e = "<font color='#c7cdd7'>[系统]</font><font color='#f8f3b7'>";
					break;
				case this.CHANNEL_WORLD:
					e = "<font color='#f8f3b7'>[世界]";
					break;
				case this.CHANNEL_UNION:
					e = "<font color='#b19c79'>[帮会]";
					break;
				case this.CHANNEL_ZONGHE:
					e = "[综合]";
					break;
				case this.CHANNEL_LABA:
					e = "<font color='#E7890C'>【喇叭】</font>"
			}
			return e
		}, t.getChannelLogType = function(t) {
			var e = "";
			switch (t) {
				case this.CHANNEL_SYSYTEM:
					e = "系统";
					break;
				case this.CHANNEL_WORLD:
					e = "世界";
					break;
				case this.CHANNEL_UNION:
					e = "帮会";
					break;
				case this.CHANNEL_ZONGHE:
					e = "世界";
					break;
				case this.CHANNEL_LABA:
					e = "喇叭"
			}
			return e
		}, t.getEmojiPath = function(t) {
			return "emoji_icon" + t.replace("#", "") + "_png"
		}, Object.defineProperty(t, "REG_FACE", {
			get: function() {
				return new RegExp(/\#[0-9]/gi)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "REG_LINK", {
			get: function() {
				return new RegExp(/\@/)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "REG_ITEM", {
			get: function() {
				return new RegExp(/\{\$\}/)
			},
			enumerable: !0,
			configurable: !0
		}), t.CHANNEL_ZONGHE = 11, t.CHANNEL_WORLD = 4, t.CHANNEL_SYSYTEM = 9, t.CHANNEL_UNION = 7, t.CHANNEL_LABA = 6, t.COLOR_CHANNEL_WORLD =
		0, t.COLOR_CHANNEL_SYSYTEM = 0, t.COLOR_CHANNEL_UNION = 0, t.PLAYER_NAME_S = "#00C8FA", t.LINK_ITEM = "item:", t.LINK_PLAYER =
		"player:", t.LINK_PANEL = "panel:", t.EMOJI_HEIGHT = 46, t
}();
__reflect(EnumChatTypes.prototype, "EnumChatTypes");
var EnumEquipMaster = function() {
	function t() {}
	return t.QIANG_HUA = 1, t.ZHUZAO = 2, t.CHUANSHI = 4, t.HEJI = 5, t.BIN_HUN = 6, t.nameArr = ["", "强化", "铸造", "",
		"龙灵", "合击"
	], t
}();
__reflect(EnumEquipMaster.prototype, "EnumEquipMaster");
var EnumEquipNewType;
! function(t) {
	t[t.SHIZHUANG = 0] = "SHIZHUANG", t[t.WUQI = 1] = "WUQI", t[t.FUSHOU = 2] = "FUSHOU", t[t.YIFU = 3] = "YIFU", t[t.TOUKUI =
			4] = "TOUKUI", t[t.XIANGLIAN = 5] = "XIANGLIAN", t[t.XIEZI = 6] = "XIEZI", t[t.YAODAI = 7] = "YAODAI", t[t.HUWANLEFT =
			8] = "HUWANLEFT", t[t.HUWANRIGHT = 9] = "HUWANRIGHT", t[t.JIEZHILEFT = 10] = "JIEZHILEFT", t[t.JIEZHIRIGHT = 11] =
		"JIEZHIRIGHT"
}(EnumEquipNewType || (EnumEquipNewType = {}));
var EnumEquipType = function() {
	function t() {}
	return t.PART_NAME = ["武器", "衣服", "勋章", "手镯", "手镯", "戒指", "戒指", "头盔", "项链", "玄珠", "勋章", "龙印", "鞋子", "腰带", "勋章"], t.WU_QI =
		0, t.YI_FU = 1, t.DUN_PAI = 2, t.SHOU_ZHUO = 3, t.SHOU_ZHUO_RIGHT = 4, t.JIE_ZHI = 5, t.JIE_ZHI_RIGHT = 6, t.TOU_KUI =
		7, t.XIANG_LIAN = 8, t.HUN_ZHU = 9, t.PROTECT_STONE = 10, t.BAO_SHI = 11, t.XIE_ZI = 12, t.YAO_DAI = 13, t.XUE_FU =
		14, t.GUAN_PEI = 15, t.MABI = 16, t.HUSHEN = 17, t.SHALU_XIANJIE = 18, t.HUSHEN_MOJIE = 19, t.HU_WAN = 21, t.GONGJI_FUSHI =
		31, t.FANGYU_FUSHI = 32, t.MOFANG_FUSHI = 33, t.SHENGMING_FUSHI = 34, t.BAOJI_FUSHI = 35, t.BAOSHANG_FUSHI = 36, t.FEIYU =
		40, t.QIANYU = 41, t.RONGYU = 42, t.LINGYU = 43, t.FABAO_1 = 6101, t.FABAO_2 = 6102, t.FABAO_3 = 6103, t.FABAO_4 =
		6104, t.FABAO_5 = 6105, t.FABAO_6 = 6106, t.FABAO_7 = 6107, t.FABAO_8 = 6108, t
}();
__reflect(EnumEquipType.prototype, "EnumEquipType");
var EnumGridStyle = function() {
	function t() {}
	return t.GRID_STYLE_NORMAL = "76,76|80,80", t.GRID_STYLE_ROLE = "88,88|64,64", t.GRID_STYLE_SMALL = "60,60|80,80", t.GRID_STYLE_CIRCLE =
		"90,90|64,64", t.GRID_STYLE_KUN = "60,60|64,64", t.GRID_STYLE_TANBAO = "66,66|80,80", t.DEFAULT_SIZE = 76, t
}();
__reflect(EnumGridStyle.prototype, "EnumGridStyle");
var EnumGuild = function() {
	function t() {}
	return t.getPositionName = function(e) {
			return e == t.JING_YING ? "精英" : e == t.ZHI_DAO_YUAN ? "新手指导员" : t.POS[e]
		}, t.getBuildType = function(e) {
			return e == t.GUILD_HALL ? "行会大厅" : e == t.GUILD_EXEROOM ? "练功房" : "行会商店"
		}, t.POS = ["成员", "长老", "副会长", "会长"], t.ZHI_DAO_YUAN = -10, t.JING_YING = -1, t.COMMON = 0, t.ZHANG_LAO = 1, t.FU_HUI_ZHANG =
		2, t.HUI_ZHANG = 3, t.TAB_MEMBER = 0, t.TAB_RED = 1, t.TAB_DEPOT = 2, t.TAB_SHENHE = 3, t.TAB_LOG = 4, t.TAB_LIST =
		5, t.TAB_APPLY = 6, t.TYPE_SELF = 0, t.TYPE_NEW = 5, t.GUILD_HALL = 1, t.GUILD_EXEROOM = 2, t.GUILD_SHOP = 3, t
}();
__reflect(EnumGuild.prototype, "EnumGuild");
var EnumImageType = function() {
	function t() {}
	return t.BUFF = "buff/", t.FUNCTION = "function", t.BAGUA = "bagua", t.ITEM = "item/", t.SKILL = "skill/", t.ZHANSHEN =
		"zhanshen/", t.WING = "wing/", t.PLAYER = "player/", t.NPC = "npc/", t.MONSTER = "monster/", t.ACHIEVE = "achieve/",
		t.SURFACE = "surface/", t.MOUNTS = "mount/", t.SPECIALRING = "specialring/", t.WARPET = "warpet/", t.SIZE_40 = 40, t
		.SIZE_60 = 60, t.SIZE_64 = 64, t.SIZE_80 = 80, t.SIZE_100 = 100, t.SIZE_DROP = "drop", t.SIZE_DROP_EFFECT = "buff",
		t.SIZE_GX = "gx", t.SIZE_CROSS = "cross", t.SIZE_CROSSTEAM = "crossTeam", t.SIZE_BIG = "big", t.SIZE_MIDDLE =
		"middle", t.SIZE_SMALL = "small", t.SIZE_RINGNAME = "ringname", t.SIZE_RINGSHOW = "ringshow", t.SIZE_RINGLEVEL =
		"ringlevel", t.WARPET_64 = t.WARPET + t.SIZE_64, t.BUFF_40 = t.BUFF + t.SIZE_40, t.BUFF_60 = t.BUFF + t.SIZE_60, t.ITEM_40 =
		t.ITEM + t.SIZE_40, t.ITEM_60 = t.ITEM + t.SIZE_60, t.ITEM_80 = t.ITEM + t.SIZE_80, t.ITEM_DROP = t.ITEM + t.SIZE_DROP,
		t.ITEM_GX = t.ITEM + t.SIZE_GX, t.ITEM_EFFECT_DROP = t.ITEM + t.SIZE_DROP_EFFECT, t.SKILL_40 = t.SKILL + t.SIZE_40,
		t.SKILL_60 = t.SKILL + t.SIZE_60, t.ZHANSHEN_40 = t.ZHANSHEN + t.SIZE_40, t.WING_40 = t.WING + t.SIZE_40, t.ACHIEVE_40 =
		t.ACHIEVE + t.SIZE_40, t.SURFACE_40 = t.SURFACE + t.SIZE_40, t.SURFACE_100 = t.SURFACE + t.SIZE_100, t.MOUNTS_40 = t
		.MOUNTS + t.SIZE_40, t.SPECIALRING_40 = t.SPECIALRING + t.SIZE_40, t.SPECIALRING_60 = t.SPECIALRING + t.SIZE_60, t.SPECIALRING_LEVEL =
		t.SPECIALRING + t.SIZE_RINGLEVEL, t.SPECIALRING_NAME = t.SPECIALRING + t.SIZE_RINGNAME, t.SPECIALRING_SHOW = t.SPECIALRING +
		t.SIZE_RINGSHOW, t.PLAYER_CROSS = t.PLAYER + t.SIZE_CROSS, t.PLAYER_CROSSTEAM = t.PLAYER + t.SIZE_CROSSTEAM, t.PLAYER_BIG =
		t.PLAYER + t.SIZE_BIG, t.PLAYER_MIDDLE = t.PLAYER + t.SIZE_MIDDLE, t.PLAYER_SMALL = t.PLAYER + t.SIZE_SMALL, t.NPC_BIG =
		t.NPC + t.SIZE_BIG, t.NPC_MIDDLE = t.NPC + t.SIZE_MIDDLE, t.NPC_SMALL = t.NPC + t.SIZE_SMALL, t.MONSTER_BIG = t.MONSTER +
		t.SIZE_BIG, t.MONSTER_MIDDLE = t.MONSTER + t.SIZE_MIDDLE, t.MONSTER_SMALL = t.MONSTER + t.SIZE_SMALL, t.BOSS_HEAD =
		t.MONSTER + t.SIZE_SMALL + "/" + t.SIZE_64, t
}();
__reflect(EnumImageType.prototype, "EnumImageType");
var EnumItemId = function() {
	function t() {}
	return t.YAO_PIN = [8101, 8110, 8102, 8111, 8103, 8112, 8105, 8113, 8109, 8114], t.SUI_JI = 8152, t.HUI_CHENG = 8151,
		t.ROLE_EXP = -5, t.XUE_HUN = -6, t.ZHANSHEN_EXP = -12, t.ZHANSHEN_EXPZHU_S = 8509, t.ZHANSHEN_EXPZHU = 8014, t.ZHANSHEN_EXPZHU_B =
		8022, t.ZHANSHEN_TUPO = 25003, t.ZHANSHEN_UP_ITEMS = [t.ZHANSHEN_EXPZHU_S, t.ZHANSHEN_EXPZHU, t.ZHANSHEN_EXPZHU_B],
		t.ZHANCHONG_EXPZHU_S = 8510, t.ZHANCHONG_EXPZHU = 8511, t.ZHANCHONG_EXPZHU_B = 8512, t.ZHANCHONG_UP_ITEMS = [t.ZHANCHONG_EXPZHU_S,
			t.ZHANCHONG_EXPZHU, t.ZHANCHONG_EXPZHU_B
		], t.SKILL_EXP = 8100, t.SKILL_ADD_LEVEL = 8400, t.LONGZHU_ITEM = 8028, t.ZHUANSHENG_DAN = 8003, t.ZHUANSHENG_Super_DAN =
		8004, t.LUNHUI_DAN = 56, t.LUNHUI_Super_DAN = 57, t.SHUA_XIN_LING = 32, t.QIANG_HUA_SHI = 16, t.MK_EXP = 8800, t.XB_SCORE1 =
		31046, t.XB_SCORE10 = 31047, t.MAYA_BOOK = 20101, t.BUY_JINBI = 10425, t.JIANDING_FU = 2e4, t.MOUNTS_BALL = 20028, t
		.FOOTPRINT_BALL = 30028, t.YG_JUAN = 20039, t.BAGUA_PAI = 270101, t.HEJI = 23, t.JINGMAI = 24, t.FUSHI = 33, t.SHEN_SHI =
		31, t.BAO_WU = 25, t.BOSS_CHALLENGE_GOD = 14, t.BOSS_CHALLENGE = 15, t.STAR_UP = 17, t.SHENYU = 43, t.BANGHUI_LIBAO =
		48, t.NAMECHANGECARD = 20003, t.TANBAO = 20009, t.LUCKTANBAO = 20027, t.HOTBLOODTANBAO = 20127, t.KUNEGG = 205, t.ABYSS_MONEY =
		58, t.WARPET_EXP_DAN = 250, t.WARPET_JIASU_10_M = 279, t.WARPET_JIASU_60_M = 280, t.TUNTIANZHU = 281, t.KUANGFENG =
		63, t.JINGANG = 62, t.QIDAO = 64, t.HONGMO = 65, t.KEJIN = 66, t.WARPET_DETAIL_BALL_BIG = 79, t.WARPET_DETAIL_BALL_SMALL =
		78, t
}();
__reflect(EnumItemId.prototype, "EnumItemId");
var EnumMoney = function() {
	function t() {}
	return t.getName = function(t) {
			return ItemUtil.getItemName(t)
		}, t.YUAN_BAO = -1, t.BIND_YUAN_BAO = -2, t.JIN_BI = -3, t.BIND_JIN_BI = -4, t.EXP = -5, t.Prestige = -6, t.KUN_EXP = -
		7, t.BAO_SHI_SP = -8, t.HUN_ZHU_SP = -9, t.ZHUAN_SHENG = -10, t.GUILD_CONTRIBUTE = -11, t.ZHAN_SHEN_EXP = -12, t.GUILD_MONEY = -
		13, t.TANBAO_JIFEN = -14, t.TD_LV_JIFEN = -16, t.VIP_EXP = -17, t.TD_CALL_JIFEN = -18, t.ARENA_HONOR = -19, t.BOSS_SCORE = -
		21, t.GONG_XUN = -22, t.YUE_LI = -23, t.RONG_YAO = -24, t.JUN_XIANG = -25, t.TIAN_MING = -26, t.ZHUANPAN_JIFEN = -27,
		t.SHENMAI_SUIPIAN = -29, t.PICTURE = -15, t.LUNHUIEXP = -34, t.STATEPOINT = -35, t.GUILD_TRAIN = -36, t
}();
__reflect(EnumMoney.prototype, "EnumMoney");
var EnumPKState = function() {
	function t() {}
	return Object.defineProperty(t, "usePkText", {
			get: function() {
				return t._usePkText
			},
			set: function(e) {
				t._usePkText = e
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "useMenuTip", {
			get: function() {
				return t._useMenuTip
			},
			set: function(e) {
				t._useMenuTip = e
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "usePkState", {
			get: function() {
				return t._usePkState
			},
			set: function(e) {
				t._usePkState = e, App.dispatcher.dispatchEvent(PlayerAttributeEvent.CHANGE_PKSTATE, -1)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "usePkColorU", {
			get: function() {
				return t._usePkColorU
			},
			set: function(e) {
				t._usePkColorU = e
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(t, "usePkColorS", {
			get: function() {
				return t._usePkColorS
			},
			set: function(e) {
				t._usePkColorS = e
			},
			enumerable: !0,
			configurable: !0
		}), t.PKMODEL_PEACEMODE = 1, t.PKMODEL_TEAMMODE = 2, t.PKMODEL_GUILDMODE = 3, t.PKMODEL_GOODANDEVILMODE = 4, t.PKMODEL_ALLTHEMODE =
		5, t.PKMODEL_COUNTRY = 6, t.PKMODEL_GROUP = 7, t.PKMODEL_SELECT = 8, t.COLORS_COMMON = [16777215, 65280, 39167,
			16711680
		], t.COLORS_COMMON2 = ["#ffffff", "#00ff00", "#0098ff", "#ff0000"], t.COLORS_GROUP = [16777215, 65280, 39167,
			12099717, 16711680
		], t.COLORS_GROUP2 = ["#ffffff", "#00ff00", "#0098ff", "#b8a085", "#ff0000"], t.COLORS_COUNTRY = [16777215, 65280,
			15765504, 39167, 16711680
		], t.COLORS_COUNTRY2 = ["#ffffff", "#00ff00", "#f09000", "#0098ff", "#ff0000"], t.PKTEXT_COMMON = ["和平", "组队", "行会",
			"全体"
		], t.PKTEXT_GROUP = ["和平", "组队", "行会", "阵营", "全体"], t.PKTEXT_SIMPLE_GROUP = ["和", "队", "会", "阵", "全"], t.PKTEXT_COUNTRY = [
			"和平", "组队", "区服", "行会", "全体"
		], t.PKTEXT_SIMPLE_COUNTRY = ["和", "队", "服", "会", "全"], t.PKSTATE_COMMON = [t.PKMODEL_PEACEMODE, t.PKMODEL_TEAMMODE,
			t.PKMODEL_GUILDMODE, t.PKMODEL_ALLTHEMODE
		], t.PKSTATE_GROUP = [t.PKMODEL_PEACEMODE, t.PKMODEL_TEAMMODE, t.PKMODEL_GUILDMODE, t.PKMODEL_GROUP, t.PKMODEL_ALLTHEMODE],
		t.PKSTATE_COUNTRY = [t.PKMODEL_PEACEMODE, t.PKMODEL_TEAMMODE, t.PKMODEL_COUNTRY, t.PKMODEL_GUILDMODE, t.PKMODEL_ALLTHEMODE],
		t.MENUTIP_COMMON = "<font color='" + t.COLORS_COMMON2[t.PKMODEL_PEACEMODE - 1] + "'>和平模式：不对任何玩家造成伤害\n<font color='" +
		t.COLORS_COMMON2[t.PKMODEL_TEAMMODE - 1] + "'>组队模式：只对队伍以外的玩家造成伤害\n<font color='" + t.COLORS_COMMON2[t.PKMODEL_GUILDMODE -
			1] + "'>行会模式：只对本行会以外的玩家造成伤害\n<font color='" + t.COLORS_COMMON2[t.PKMODEL_ALLTHEMODE - 1] + "'>全体模式：对所有玩家造成伤害", t.MENUTIP_GROUP =
		"<font color='" + t.COLORS_GROUP2[t.PKSTATE_GROUP.indexOf(t.PKMODEL_PEACEMODE)] + "'>和平模式：不对任何玩家造成伤害\n<font color='" +
		t.COLORS_GROUP2[t.PKSTATE_GROUP.indexOf(t.PKMODEL_TEAMMODE)] + "'>组队模式：只对队伍以外的玩家造成伤害\n<font color='" + t.COLORS_GROUP2[
			t.PKSTATE_GROUP.indexOf(t.PKMODEL_GUILDMODE)] + "'>行会模式：只对本行会以外的玩家造成伤害\n<font color='" + t.COLORS_GROUP2[t.PKSTATE_GROUP
			.indexOf(t.PKMODEL_GROUP)] + "'>阵营模式：只对敌对阵营玩家造成伤害\n<font color='" + t.COLORS_GROUP2[t.PKSTATE_GROUP.indexOf(t.PKMODEL_ALLTHEMODE)] +
		"'>全体模式：对所有玩家造成伤害", t.MENUTIP_COUNTRY = "<font color='" + t.COLORS_COUNTRY2[t.PKSTATE_COUNTRY.indexOf(t.PKMODEL_PEACEMODE)] +
		"'>和平模式：不对任何玩家造成伤害\n<font color='" + t.COLORS_COUNTRY2[t.PKSTATE_COUNTRY.indexOf(t.PKMODEL_TEAMMODE)] +
		"'>组队模式：只对队伍以外的玩家造成伤害\n<font color='" + t.COLORS_COUNTRY2[t.PKSTATE_COUNTRY.indexOf(t.PKMODEL_COUNTRY)] +
		"'>区服模式：对本服之外的玩家造成伤害\n<font color='" + t.COLORS_COUNTRY2[t.PKSTATE_COUNTRY.indexOf(t.PKMODEL_GUILDMODE)] +
		"'>行会模式：只对本行会以外的玩家造成伤害\n<font color='" + t.COLORS_COUNTRY2[t.PKSTATE_COUNTRY.indexOf(t.PKMODEL_ALLTHEMODE)] +
		"'>全体模式：对所有玩家造成伤害", t._usePkText = t.PKTEXT_GROUP, t.usePkSimpleText = t.PKTEXT_SIMPLE_GROUP, t._useMenuTip = t.MENUTIP_GROUP,
		t._usePkState = t.PKSTATE_GROUP, t._usePkColorU = t.COLORS_GROUP, t._usePkColorS = t.COLORS_GROUP2, t.PKSWORD_WHITE =
		16777215, t.PKSWORD_YELLOW = 16776960, t.PKSWORD_GREY = 10970680, t.PKSWORD_RED = 16711680, t
}();
__reflect(EnumPKState.prototype, "EnumPKState");
var EnumPlayerState = function() {
	function t() {}
	return t.compare = function(t, e) {
			return 0 != (t & e)
		}, t.NORMAL = 0, t.LOGIN = 1, t.QUITING = 2, t.QUIT = 4, t.NOTHING = 0, t.FIGHT = 16, t.DIE = 32, t.STAND = 0, t.RUN =
		256, t.JUMP = 512, t.DOUBLEJUMP = 1024, t.BLOCKPREPARE = 2048, t.BLOCK = 4096, t.SIT = 8192, t.SWIM = 16384, t.NOREVIVE =
		0, t.AUTOREVIVE = 65536, t.NOTRANSACTION = 0, t.TRANSACTION = 131072, t.NOAUTOFIGHT = 0, t.AUTOFIGHT = 262144, t.ZONESWEEPEND =
		0, t.ZONESWEEPING = 524288, t.REVIVEEND = 0, t.REVIVESTART = 1048576, t.INMAP = 0, t.CHANGEMAP = 2097152, t
}();
__reflect(EnumPlayerState.prototype, "EnumPlayerState");
var EnumRankType = function() {
	function t() {}
	return t.LEVEL_TOP_RANK = 1, t.ZSFIGHT_TOP_RANK = 2, t.FSFIGHT_TOP_RANK = 3, t.DSFIGHT_TOP_RANK = 4, t.WING_TOP_RANK =
		5, t.ACTIVE_TOP_RANK = 6, t.FIGHT_POWER_TOP_KEY = 7, t.DAY_BOSS_POnumber_TOP_KEY = 8, t.BIQI_RANK = 9, t.STRENGTH_RANK =
		10, t.SHENLU_RANK = 11, t.TIANGUAN_RANK = 12, t.NATIONALXIAOFEI = 18, t.GUANQIA_RANK = 25, t.JUEWEI_RANK = 26, t.WEIWANG_RANK =
		27, t.SHALU_RANK = 28, t.ZHUZAO_RANK = 29, t.BAOWU_RANK = 30, t.ZHUANS_RANK = 31, t.ZHUANBSCORE_RANK = 32, t.SHENYU_RANK =
		33, t.ACHEVE_RANK = 34, t.MEIRIXIAOFEI_RANK = 35, t.WARPET_FIGHT = 37, t.WARPET_TIANFU = 38, t.SHENLU_PAIHANG = 39,
		t.KUANGFENG_PAIHANG = 40, t.DAOJING_PAIHANG = 41, t.LUNHUI_PAIHANG = 42, t.FUSHI = 43, t.ZUOQI = 51, t.TIANBING = 52,
		t.FAZHEN = 53, t
}();
__reflect(EnumRankType.prototype, "EnumRankType");
var EnumReasons = function() {
	function t() {}
	return t.getNameByReason = function(t) {
			if (!this._idNameHash.has(t)) {
				var e = "";
				switch (t) {
					case this.SHANGJIAITEM:
						e = "上架";
						break;
					case this.WEAREDORUNWEARED:
						e = "穿戴";
						break;
					case this.GOODUSE:
					case this.OPEN_GIFT:
					case this.SHOP_BUY:
					case this.APPLY_COUNTRY_WAR:
					case this.CREATE_GUILD:
					case this.TREASURE_HUNT:
					case this.CHANGE_NAME:
						e = "使用";
						break;
					case this.GOODSDISCARD:
						e = "丢弃";
						break;
					case this.EQUIP_HUI_SHOU:
						e = "回收";
						break;
					case this.JIAOYIITEM:
						e = "上架物品";
						break;
					case this.DIEDROP_ITEM:
						e = "掉落";
						break;
					case this.EQUIP_FUSE:
					case this.EQUIP_STRENGTH:
					case this.NPC_TRANSMIT:
					case this.METEMPSYCHOSIS_EXCHANGE:
					case this.ENTERZONEDELETEITEM:
					case this.ZONEREWARDITEM_DELETEITEM:
					case this.CITYMASTERBLADE:
					case this.MARS_LEVELUP:
					case this.TASK_COUSUME:
					case this.JOINACTIVITY_COUSUME:
					case this.RAYWING_LEVELUP:
					case this.DAILYTASK_REFRESH:
					case this.DAILY_REWARDS_CONSUME:
					case this.LABA_CONSUME:
					case this.EQUIP_ENGRAVE:
					case this.EQUIP_ENGRAVE_CLEAN:
					case this.EQUIP_ENGRAVE_USE_ITEM:
						e = "消耗";
						break;
					case this.METEMPSYCHOSIS_EXCHANGE_FAIL_RETURN:
						e = "返还";
						break;
					case this.GUILD_CONTRIBUTE:
						e = "捐献";
						break;
					case this.MOVE:
						e = "移动";
						break;
					case this.ITEM_LOST:
						e = "过期";
						break;
					default:
						e = "失去", GameLog.logWarn("客户端检漏：这个reason没有添加reason= " + t)
				}
				this._idNameHash.put(t, e)
			}
			return this._idNameHash.get(t)
		}, t.MOVE = -1, t.SPLIT = -2, t.COMBIN = -3, t.STORETOBAG = -4, t.BAGTOSTORE = -5, t.ITEM_BANK_CLEAR_UP = -6, t.STYBSHANGJIA =
		1, t.STYBXIAJIA = 2, t.STYBGOUMAI = 3, t.STYBGOUMAIDAOJU = 4, t.STYBHUOKUAN = 5, t.JIAOYIYB = 6, t.STGOUMAISHIBAI =
		7, t.QUCHUTMPYB = 8, t.QUCHUTMPGOLD = 9, t.GOUMAISHIBAIGOLD = 10, t.GETGOLD = 11, t.SUBGOLD = 12, t.BUYITEM = 13, t.BUYGOLD =
		14, t.SHANGJIAITEM = 15, t.JIAOYIITEM = 16, t.JIAOYIGOLD = 17, t.JIAOYISHIBAI = 18, t.JIAOYIITEMADD = 19, t.WEAREDORUNWEARED =
		20, t.GOODUSE = 21, t.GOODSDISCARD = 22, t.TAKEUP = 23, t.STORETOBAG2 = 24, t.BAGTOSTORE2 = 25, t.TREASURE_HUNT_EXTRACT =
		26, t.OPEN_STORE = 27, t.ITEM_LOST = 28, t.OPEN_GIFT = 36, t.OPEN_FUNCTION = 37, t.PLAYER_ITEMS_EXCEPTION = 38, t.ACHIEVE_REWARD =
		39, t.SHOP_BUY = 50, t.SHEN_LU_LEVEL_UP = 100, t.EQUIP_HUI_SHOU = 101, t.EQUIP_FUSE = 102, t.EQUIP_STRENGTH = 103, t
		.EQUIP_BUY_STRENGTH = 104, t.EQUIP_STRENGTH_TRANSFER = 105, t.EQUIP_ENGRAVE_CLEAN = 106, t.EQUIP_ENGRAVE = 107, t.TASKREWARDS =
		148, t.APPLY_COUNTRY_WAR = 200, t.KING_EVERY_REWARDS = 201, t.CASTLEWAR_PAO_DIAN = 202, t.BI_QI_SAFE_PAO_DIAN = 203,
		t.REVIVE = 210, t.LEVELUPADDEXP = 212, t.LEVELUPCREATE = 214, t.REVIVE_AUTO = 215, t.NPC_TRANSMIT = 216, t.CARD_GIFT =
		250, t.BUBBLEPOnumber = 300, t.KILLMONSTER = 301, t.HOTSPRINGEXP = 302, t.BONDFIRE = 303, t.REBIRTH = 304, t.METEMPSYCHOSIS =
		320, t.METEMPSYCHOSIS_EXCHANGE = 321, t.METEMPSYCHOSIS_EXCHANGE_FAIL_RETURN = 322, t.ENTERZONEDELETEITEM = 330, t.ZONEREWARDITEM =
		331, t.ZONEREWARDITEM_DELETEITEM = 332, t.HUNT_DEVIL = 340, t.CREATE_GUILD = 350, t.GUILD_CONTRIBUTE = 351, t.GUILD_EXCHANGE =
		352, t.GUILD_DESTORY = 353, t.GUILD_REDPACKET = 354, t.GUILD_LEVEL_UP = 355, t.GUILD_REDPACKET_RETURN = 356, t.TREASURE_HUNT =
		360, t.CHANGE_NAME = 361, t.CITYMASTERBLADE = 362, t.DIEDROP_ITEM = 570, t.GET_SWAP_ITEM = 600, t.CALL_SHOUWEI = 650,
		t.LEVELUP_SHOUWEI = 651, t.CLEAN_SHOUWEIJIFEN = 652, t.ADD_DEFAULT_SHOUWEIJIFEN = 653, t.ADD_KILLMONSTER_SHOUWEIJIFEN =
		654, t.GOLD_RECHARGE = 999, t.INNERGOLD_RECHARGE = 1e3, t.HTTPGMCOMMAND = 1200, t.PHP_HTTPGMCOMMAND = 1201, t.GM_COMMAND =
		1203, t.NPC_GATHER = 1204, t.MAILSEND = 1205, t.MARSCALL = 1206, t.DROP_ENTERBAG = 1207, t.MARS_LEVELUP = 1208, t.TASK_COUSUME =
		1209, t.JOINACTIVITY_COUSUME = 1210, t.JOINACTIVITY_REWARDS = 1211, t.RAYWING_LEVELUP = 1212, t.DAILYTASK_REFRESH =
		1213, t.DAILY_REWARDS_CONSUME = 1214, t.ALLDAILY_REWARDS_CONSUME = 1215, t.SKILL_ADD_EXP = 1216, t.LABA_CONSUME =
		1217, t.BUFF_CHANGEHP = 1218, t.AUTO_ADDHP = 1219, t.SKILL_TRANFER = 1220, t.COUNTRYSIEGESELECT = 1221, t.CLIENT_CHANGE_POS =
		1222, t.EXPLOIT_BOX = 1223, t.MAIL_SYSTEM_SEND = 1224, t.EQUIP_ENGRAVE_USE_ITEM = 1225, t.VIPBUY_ZONE_ADDENTERNUM =
		1226, t.GUILD_ADD_RECOMMEND_GIVE_GOLD = 1227, t.GUILD_CHANGE_NAME = 1228, t.CREATE_GUILD_INIT_EQUIP = 1229, t.YSYSTEM_RECOVERY =
		1230, t.MOONCARD_GIVE = 1231, t.PROMISE = 1323, t._idNameHash = new HashObject, t
}();
__reflect(EnumReasons.prototype, "EnumReasons");
var EnumRole = function() {
	function t() {}
	return t.getDefaultBody = function(e, i) {
			var n = "";
			switch (e) {
				case t.ZHAN_SHI:
					n = i == t.BOY ? "zsm00" : "zsw00";
					break;
				case t.FA_SHI:
					n = i == t.BOY ? "fsm00" : "fsw00";
					break;
				case t.DAO_SHI:
					n = i == t.BOY ? "dsm00" : "dsw00"
			}
			return n
		}, t.ROLE1 = 1, t.ROLE2 = 2, t.ROLE3 = 3, t.SEX = ["人妖", "男", "女"], t.SEX2 = ["renyao", "boy", "girl"], t.JOB = ["全",
			"斗战", "灵法", "羽客"
		], t.COMMON = 0, t.BOY = 1, t.GIRL = 2, t.ZHAN_SHI = 1, t.FA_SHI = 2, t.DAO_SHI = 3, t.HOU_ZI = 1, t.ZI_XIA = 2, t.YANG_JIAN =
		3, t.Decompose = "Decompose", t
}();
__reflect(EnumRole.prototype, "EnumRole");
var EnumSkillID = function() {
	function t() {}
	return t.isPutongGongji = function(e) {
			return e == t.PU_TONG_ZHAN_SHI || e == t.PU_TONG_FA_SHI || e == t.PU_TONG_DAO_SHI
		}, t.getPuTongGongji = function(e) {
			var i = t.PU_TONG_ZHAN_SHI;
			if (null != e && e instanceof MapPlayerRoleData) {
				var n = e.job;
				n == EnumRole.ZHAN_SHI ? i = t.WU_KONG_PU_TONG_1 : n == EnumRole.FA_SHI ? i = t.ZI_XIA_PUTONG_1 : n == EnumRole.DAO_SHI &&
					(i = t.YANG_JIAN_PU_TONG_1)
			}
			return i
		}, t.WU_KONG_PU_TONG_1 = 1e3, t.WU_KONG_PU_TONG_2 = 1001, t.WU_KONG_PU_TONG_3 = 1002, t.WU_KONG_PU_TONG_4 = 1003, t.WU_KONG_PU_TONG_5 =
		1004, t.WU_KONG_SKILL_LIST = [t.WU_KONG_PU_TONG_1, t.WU_KONG_PU_TONG_2, t.WU_KONG_PU_TONG_3, t.WU_KONG_PU_TONG_4, t.WU_KONG_PU_TONG_5],
		t.ZI_XIA_PUTONG_1 = 2001, t.ZI_XIA_PUTONG_2 = 2002, t.ZI_XIA_PUTONG_3 = 2003, t.ZI_XIA_PUTONG_4 = 2004, t.ZI_XIA_PUTONG_5 =
		2005, t.ZI_XIA_SKILL_LIST = [t.ZI_XIA_PUTONG_1, t.ZI_XIA_PUTONG_2, t.ZI_XIA_PUTONG_3, t.ZI_XIA_PUTONG_4, t.ZI_XIA_PUTONG_5],
		t.YANG_JIAN_PU_TONG_1 = 3001, t.YANG_JIAN_PU_TONG_2 = 3002, t.YANG_JIAN_PU_TONG_3 = 3003, t.YANG_JIAN_PU_TONG_4 =
		3004, t.YANG_JIAN_PU_TONG_5 = 3005, t.YANG_JIAN_SKILL_LIST = [t.YANG_JIAN_PU_TONG_1, t.YANG_JIAN_PU_TONG_2, t.YANG_JIAN_PU_TONG_3,
			t.YANG_JIAN_PU_TONG_4, t.YANG_JIAN_PU_TONG_5
		], t.PU_TONG_ZHAN_SHI = -1e3, t.PU_TONG_FA_SHI = -2004, t.PU_TONG_DAO_SHI = -3004, t.CI_SHA_JIAN_FA = -1003, t.BAN_YUE_DAO_FA = -
		1004, t.LIE_HUO_JIAN_FA = -1006, t.ZHU_RI_JIAN_FA = -1012, t.YE_MAN_CHONG_ZHUANG = -1005, t.MO_FA_DUN = -2010, t.SHI_DU_SHU = -
		3014, t.ZHI_LIAO_SHU = -3015, t.SHEN_SHENG_ZHAN_JIA = -3008, t.ZHAO_HUAN_DOG = -3010, t.DA_DAO_KAN_REN = 4080, t.HEJI_ZHANSHI =
		111111, t.HEJI_FASHI = 111112, t.HEJI_DAOSHI = 111113, t.YE_MAN_BEI_ZHUANG_CHINESS = "YEMANBEIZHUANG", t
}();
__reflect(EnumSkillID.prototype, "EnumSkillID");
var EnumSoundId = function() {
	function t() {}
	return t.WALK = "zou", t.RUN = "run", t.MAN_DEAD = "6011", t.WOMAN_DEAD = "6012", t.WEAR_EQUIP = "wear_equip", t.OPEN_PANEL =
		"open_panel", t.OPEN_FORGE = "open_forge", t.OPEN_MALL = "open_mall", t.CLOSE_MALL = "close_mall", t.RANDOM = "6007",
		t.MONEY_PICKUP = "6008", t.CLOSE_PANEL = "6009", t.EQUIP_DROP = "6015", t.WEAPON_DROP = "6016", t.ITEM_PICKUP =
		"6017", t.LEVEL_UP = "Uplv", t.PUTONG_ATTACK = "6019", t.FASHI_ATTACK = "6020", t.DROP_EQUIP = "6021", t.BAG_SELECT =
		"6023", t.RECOVERY = "ronglian", t.SKILL = "jineng", t.CREATE_ROLE = "creatcharacter", t.HEARTPANT = "heartpant", t.BOSS_WUDI =
		"fb12", t
}();
__reflect(EnumSoundId.prototype, "EnumSoundId");
var EnumTaskOpenPanelID = function() {
	function t() {}
	return t.getPanelStr = function(t) {
			var e = "";
			switch (t) {
				case 1:
					break;
				case 2:
					break;
				case 3:
					break;
				case 4:
					e = "";
					break;
				case 5:
			}
			return e
		}, t.EQUIP_STRENDTHEN = 1, t.BOSS_FIGHT = 2, t.EQUIP_RECOVERY = 3, t.DAILY_TASK = 4, t.BAG = 5, t.UNKNOWN_TEMPLE = 6,
		t
}();
__reflect(EnumTaskOpenPanelID.prototype, "EnumTaskOpenPanelID");
var ActivityEvent = function() {
	function t() {}
	return t.REFRESH_DETAIL = "ActivityEvent.refresh_detail", t.REFRESH_BRIEF = "ActivityEvent.refresh_Brief", t.SIGN_IN =
		"ActivityEvent.sign_in", t.SUCCESS_JOIN = "ActivityEvent.success_join", t.EFFECT_VIP = "ActivityEvent.effect_vip", t
		.CLOSED_BETA_CARD = "ActivityEvent.closed_beta_card", t.ACTIVITIE_NOTICE_REFRESH =
		"ActivityEvent.activitie_Notice_Refresh", t.OPEN = "ActivityEvent.activity_open", t.CLOSE =
		"ActivityEvent.activity_close", t.ACTIVITY_BEFORE = "ActivityEvent.activity_before", t.BIQINIGHT_FIGHT =
		"ActivityEvent.BIQINIGHT_FIGHT", t.UPDATEPANEL_RING = "ActivityEvent.UPDATEPANEL_RING", t.UPDATEEVD_NUM =
		"ActivityEvent.UPDATEEVD_NUM", t.UPDATE_ENTERBUTTON = "ActivityEvent.UPDATE_ENTERBUTTON", t.UPDATE_MOBAICHENGZHU =
		"ActivityEvent.UPDATE_MOBAICHENGZHU", t.UPDATE_CHANGEURL = "ActivityEvent.UPDATE_CHANGEURL", t
}();
__reflect(ActivityEvent.prototype, "ActivityEvent");
var AdvanceEvent = function() {
	function t() {}
	return t.UPDATE_ADVANCEINFO = "AdvanceEvent.UPDATE_ADVANCEINFO", t.ADVANCE_FAIL = "AdvanceEvent.ADVANCE_FAIL", t.DAN_UPDATE =
		"AdvanceEvent.DAN_UPDATE", t.ADVANCE_EQUIP_REFRESH = "AdvanceEvent.ADVANCE_EQUIP_REFRESH", t.ADVANCE_EQUIP_STRENG =
		"AdvanceEvent.ADVANCE_EQUIP_STRENG", t
}();
__reflect(AdvanceEvent.prototype, "AdvanceEvent");
var ArenaEvent = function() {
	function t() {}
	return t.REFRESH_CHANLLENGE_NUM = "ArenaEvent.refresh_chanllenge_num", t.COOL_TIME_END = "ArenaEvent.cool_time_end",
		t.ENTER_ARENA_MAP = "ArenaEvent.enter_arena_map", t.EXIT_ARENA_MAP = "ArenaEvent.exit_arena_map", t.CHANLLEGE_RESULT =
		"ArenaEvent.chanllege_result", t.FANPAI_RESULT = "ArenaEvent.fanpai_result", t.RANK_REWARD_RESULT =
		"ArenaEvent.rank_reward_result", t.CHANGELIST_COOLDOWNTIME = "ArenaEvent.changelist_cooldowntime", t.CHANLLENGE_COOLDOWNTIME =
		"ArenaEvent.chanllenge_cooldowntime", t.NEW_GRAGH = "ArenaEvent.new_gragh", t.REFRESH_MALL =
		"ArenaEvent.refresh_mall", t
}();
__reflect(ArenaEvent.prototype, "ArenaEvent");
var AutoEvent = function() {
	function t() {}
	return t.AUTO_REFRESH = "auto_refresh", t.SKILL_CHANGE = "skill_change", t.ADD_SKILL = "add_skill", t.MUSIC_CHANGE =
		"music_change", t.MAP_MUSIC_CHANGE = "map_music_change", t
}();
__reflect(AutoEvent.prototype, "AutoEvent");
var BossEvent = function() {
	function t() {}
	return t.REFRESH = "BossEvent.refresh", t.ZONE_REFRESH = "BossEvent.zone_refresh", t.SELECTED_ITEM =
		"BossEvent.SELECTED_ITEM", t.BOSS_REMIND = "BossEvent.BOSS_REMIND", t.BOSS_HP = "BossEvent.BOSS_HP", t.BOSS_MAP_UPDATE =
		"BossEvent.BOSS_MAP_UPDATE", t
}();
__reflect(BossEvent.prototype, "BossEvent");
var CastleWarEvent = function() {
	function t() {}
	return t.SHOW_TRACK_PANEL = "CastleWarEvent.SHOW_TRACK_PANEL", t.HIDE_TRACK_PANEL = "CastleWarEvent.HIDE_TRACK_PANEL",
		t.UPDATE_KILLER_RANK = "CastleWarEvent.UPDATE_KILLER_RANK", t.WAR_STATE = "CastleWarEvent.WAR_STATE", t.SIEGE_TIME =
		"CastleWarEvent.SIEGE_TIME", t.REFRESH = "CastleWarEvent.REFRESH", t.REFRESH_CHENGZHU_REWARD =
		"CastleWarEvent.refresh_chengzhu_reward", t.REFRESH_MY_SCORE = "CastleWarEvent.REFRESH_MY_SCORE", t
}();
__reflect(CastleWarEvent.prototype, "CastleWarEvent");
var ChatEvent = function() {
	function t() {}
	return t.prototype.ructor = function() {}, t.CHAT_RESPONSE = "ChatEvent.chat_response", t.PERSON_NOTICE =
		"ChatEvent.person_notice", t.CHAT_LINK_CLICK = "ChatEvent.chat_link_click", t.CHAT_BLACK_REFRE =
		"ChatEvent.CHAT_BLACK_REFRE", t
}();
__reflect(ChatEvent.prototype, "ChatEvent");
var CrossEvent = function() {
	function t() {}
	return t.CROSS_REFRESH = "CrossEvent.CROSS_REFRESH", t.CROSS_FIGHTLOG = "CrossEvent.CROSS_FIGHTLOG", t.CROSS_RANK =
		"CrossEvent.CROSS_RANK", t.CROSS_STATE_CHANGE = "CrossEvent.CROSS_STATE_CHANGE", t.CROSS_FLAG_RANK_UPDATE =
		"CrossEvent.CROSS_FLAG_RANK_UPDATE", t.APPROACH_FLAG = "CrossEvent.APPROACH_FLAG", t
}();
__reflect(CrossEvent.prototype, "CrossEvent");
var EnterButtonEvent = function() {
	function t() {}
	return t.REFRESH = "EnterButtonEvent.refresh", t.THIRDBTN = "EnterButtonEvent.THIRDBTN", t.THIRDREFRESH =
		"EnterButtonEvent.THIRDREFRESH", t.SHOW_EFFECT = "EnterButtonEvent.change_effect", t.SHOW_RED_POINT =
		"EnterButtonEvent.show_red_point", t.GUILD_POINT = "EnterButtonEvent.GUILD_POINT", t.SHOW_TIME =
		"EnterButtonEvent.show_time", t.ONLY_SHOW_TIME = "EnterButtonEvent.only_show_time", t.SHOW_CONTAINER =
		"EnterButtonEvent.show_container", t.HIDE_CONTAINER = "EnterButtonEvent.hide_container", t.END_TIME =
		"EnterButtonEvent.end_time", t.SHOW_NAVIGATION = "EnterButtonEvent.SHOW_NAVIGATION", t.TOUCH_BUTTON =
		"EnterButtonEvent.TOUCH_BUTTON", t.CHANGE_URL = "EnterButtonEvent.CHANGE_URL", t.PLAYING =
		"EnterButtonEvent.PLAYING", t
}();
__reflect(EnterButtonEvent.prototype, "EnterButtonEvent");
var EnumEvent = function() {
	function t() {}
	return t.EVENT_TREASURE = "EnumEvent.EVENT_TREASURE", t.EVENT_ARTIFACT = "EnumEvent.EVENT_ARTIFACT", t.EVENT_WCZB_INFO =
		"EnumEvent.EVENT_WCZB_INFO", t.EVENT_WCZB_REFRESH_COUNT = "EnumEvent.EVENT_WCZB_REFRESH_COUNT", t.EVENT_WCZB_FIRHT_SUC =
		"EnumEvent.EVENT_WCZB_FIRHT_SUC", t.EVENT_NEARB_PALYER = "EnumEvent.EVENT_NEARB_PALYER", t.EVENT_PKNUM_CHANGE =
		"EnumEvent.EVENT_PKNUM_CHANGE", t.EVENT_TREASURE_UP = "EnumEvent.EVENT_TREASURE_UP", t.EVENT_ARTIFACT_UP =
		"EnumEvent.EVENT_ARTIFACT_UP", t.EVENT_STORY_TRANSITION = "EnumEvent.EVENT_STORY_TRANSITION", t.EVENT_STORY_FINISH =
		"EnumEvent.EVENT_STORY_KUN", t.EVENT_STORY_RETURN = "EnumEvent.EVENT_STORY_RETURN", t.EVENT_SUITGODEQUIP_LIST =
		"EnumEvent.EVENT_SUITGODEQUIP_LIST", t.EVENT_SUITGODEQUIP_UP = "EnumEvent.EVENT_SUITGODEQUIP_UP", t.EVENT_MOUNT_ADVANCE =
		"EnumEvent.EVENT_MOUNT_ADVANCE", t.EVENT_NEARB_NOTICE = "EnumEvent.EVENT_NEARB_NOTICE", t
}();
__reflect(EnumEvent.prototype, "EnumEvent");
var EventType = function() {
	function t() {}
	return t.CHANGE_NO_GUAJI_SEARCH_MONSTER = "EventType.CHANGE_IS_SEARCH_MONSTER", t.MAP_DUMMY_ROLE_CLICK =
		"EventType.MAP_DUMMY_ROLE_CLICK", t.SELECT_DUMMY_ROLE = "EventType.select_dummy_role", t.CHARACTER_ROLE_CREATE =
		"EventType.CHARACTER_ROLE_CREATE", t.FUNCTION_OPEN = "EventType.FUNCTION_OPEN", t.SHOW_GM = "EventType.SHOW_GM", t.SYSTEM_OPEN_TIP =
		"EventType.SYSTEM_OPEN_TIP", t.SHOW_SOME_FUNCTION_NUM = "EventType.SHOW_SOME_FUNCTION_NUM", t.ENTER_MAP_INIT =
		"EventType.enter_map_init", t.CHANGE_MAP_FINISH = "EventType.change_map_finish", t.AUTO_BOSS_KILL =
		"EventType.AUTO_BOSS_KILL", t.AUTO_BOSS_KILL_FINISH = "EventType.AUTO_BOSS_KILL_FINISH", t.DELETE_LOGIN_MODULE =
		"EventType.delete_login_module", t.STGAE_RESIZE = "EventType.STGAE_RESIZE", t.USER_SKILL = "EventType.user_skill", t
		.PLAYER_SCREEN = "EventType.PLAYER_SCREEN", t.SELECT_PLAYER = "EventType.select_player", t.SELECT_MONSTER =
		"EventType.select_monster", t.SELECT_PET = "EventType.select_pet", t.SELECT_NPC = "EventType.select_npc", t.UN_SELECT_PLAYER =
		"EventType.un_select_player", t.UN_SELECT_MONSTER = "EventType.un_select_monster", t.UN_SELECT_PET =
		"EventType.un_select_pet", t.UN_SELECT_NPC = "EventType.un_select_npc", t.TAKE_UP_DROP_ITEM =
		"EventType.take_up_drop_item", t.CHARACTER_MOVE_TO_POSITION = "EventType.character_move_to_position", t.CHARACTER_UPDATE_POSITION =
		"EventType.character_update_position", t.CHARACTER_ACTION_LIST_EMPTY = "EventType.character_action_list_empty", t.OPEN_AUTO_FIGHT =
		"EventType.open_auto_fight", t.CLOSE_AUTO_FIGHT = "EventType.close_auto_fight", t.OPEN_OR_CLOSE_AUTO_FIGHT =
		"EventType.open_or_close_auto_fight", t.SETTING_AUTO_FIGHT_CONFIG = "EventType.setting_auto_fight_config", t.MOUSE_DOWN_ROLE =
		"EventType.mouse_down_role", t.RESET_ALL_IS_IN_VISIBLE_AREA = "EventType.resetAllIsInVisibleArea", t.MYPLAYER_KILL_MONSTER =
		"EventType.myplayer_kill_monster", t.SHIFT_UNSHIFT_CHANGE = "EventType.shift_unshift_change", t.MONSTER_CHANGE_ATTACK_ROLE =
		"EventType.monster_change_attack_role", t.CLOSE_NPC_DIALOG_PANEL = "EventType.close_npc_dialog_panel", t.TAKE_UP_ITEM_BY_SPACEKEY =
		"EventType.take_up_item_by_spacekey", t.DEBUG_MODE_CHANGE = "EventType.debug_mode_change", t.CHANGE_CASTLEGUILDID =
		"EventType.change_castleguildid", t.DROP_MAP_ITEM = "EventType.drop_map_item", t.MAP_NPC_TASK_CLICK =
		"EventType.map_npc_task_click", t.BOSS_CHANGE_OWNER_ROLE = "EventType.boss_change_owner_role", t.ROLE_IS_KILLED =
		"EventType.role_is_killed", t.AUTO_SEARCH_ROAD = "EventType.auto_search_road", t.AUTO_FIGHT_SIGN =
		"EventType.auto_fight_sign", t.ISADULT = "EventType.isadult", t.MAP_ROLE_SEARCH_CLICK =
		"EventType.map_role_search_click", t.MY_INSIDE_POWER = "EventType.my_inside_power", t.INSIDE_POWER_LV_UP =
		"EventType.INSIDE_POWER_LV_UP", t.MY_METEM_UP_SUSS = "EventType.MY_METEM_UP_SUSS", t.MY_METEM = "EventType.my_metem",
		t.refreshMetemNum = "refreshMetemNum", t.ROLE_LIST_CHANGE = "EventType.role_list_change", t.RANK_LIST_REFRESH =
		"EventType.rank_list_refresh", t.RANK_LIST_REFRESH1 = "EventType.rank_list_refresh1", t.RANK_WORSHIP =
		"EventType.RANK_WORSHIP", t.WEAR_LIST_REFRESH = "EventType.WEAR_LIST_REFRESH", t.WEAR_LIST_REFRESH_ALL =
		"EventType.WEAR_LIST_REFRESH_ALL", t.EQUIP_GUILD_REFRESH = "EventType.EQUIP_GUILD_REFRESH", t.FABAO_STAR_OPEN =
		"EventType.FABAO_STAR_OPEN", t.FABAO_EQUIP_REFRESH = "EventType.FABAO_EQUIP_REFRESH", t.FABAO_HECHENG_OPEN =
		"EventType.FABAO_HECHENG_OPEN", t.FABAO_SELECT_HECHENG = "EventType.FABAO_SELECT_HECHENG", t.SHOW_HIDE_PANEL =
		"EventType.SHOW_HIDE_PANEL", t.SHOW_REDPOINT = "EventType.SHOW_REDPOINT", t.DROP_ITEM = "EventType.DROP_ITEM", t.ROUND_GOODS =
		"EventType.ROUND_GOODS", t.LAST_ATTACK_ROLE_CHANGE = "EventType.LAST_ATTACK_ROLE_CHANGE", t.BACKGUIDE =
		"EventType.BACKGUIDE", t.SKILL_START = "EventType.SKILL_START", t.OPEN_REVIVE = "EventType.OPEN_REVIVE", t.BOSS_OWNER_CHANGE =
		"EventType.BOSS_OWNER_CHANGE", t.BOSS_PLAYERLIST_CHANGE = "EventType.BOSS_PLAYERLIST_CHANGE", t.BOSS_WUDI =
		"EventType.BOSS_WUDI", t.SYSTENSET_RESLUT = "EventType.SYSTENSET_RESLUT", t.HEJI_FIGHTNUM =
		"EventType.HEJI_FIGHTNUM", t.SKILL_BITMAP = "EventType.SKILL_BITMAP", t.MAKE_TRANS_EFFECT =
		"EventType.MAKE_TRANS_EFFECT", t.MAINPANEL_SHOWORHIDE = "EventType.MAINPANEL_SHOWORHIDE", t.MAINPANEL_SHOWORHIDE2 =
		"EventType.MAINPANEL_SHOWORHIDE2", t.SURFACE_UPDATE = "EventType.SURFACE_UPDATE", t.SHOW_YUANBAO_EFFECT =
		"EventType.SHOW_YUANBAO_EFFECT", t.KILL_COMBO_BITAMAP = "EventType.KILL_COMBO_BITAMAP", t.EventTypeFightChange =
		"EventType.EventTypeFightChange", t.EventTypePaymentPlatform = "EventType.PaymentPlatform", t.EventTypeIsPaying =
		"EventType.EventTypeIsPaying", t.EventTypeIsRelogin = "EventType.EventTypeIsRelogin", t.EventTypeExecReconnect =
		"EventType.EventTypeExecReconnect", t.ShowSuccess = "EventType.ShowSuccess", t.Gathering = "EventType.Gathering", t.OPEN_FUNCTION_GUIDE =
		"EventType.OPEN_FUNCTION_GUIDE", t.AUTODAGUAI = "EventType.AUTODAGUAI", t.PINGBIAll = "EventType.PINGBIAll", t.SET_SOUND_CHANGE =
		"EventType.SET_SOUND_CHANGE", t.WEAR_REXUE_REFRESH = "EventType.WEAR_REXUE_REFRESH", t.WEAR_GOD_REFRESH =
		"EventType.WEAR_GOD_REFRESH", t.BAG_RECOVERY_FRESH = "EventType.BAG_RECOVERY_FRESH", t.GUILD_SELECT_LIANGONG =
		"EventType.GUILD_SELECT_LIANGONG", t.FRIEND_SELECT = "EventType.FRIEND_SELECT", t.FRIEND_LOOK_SELECT =
		"EventType.FRIEND_LOOK_SELECT", t.SETPARAM = "EventType.SETPARAM", t
}();
__reflect(EventType.prototype, "EventType");
var EventWarPetType = function() {
	function t() {}
	return t.WarPetStags = "EventWarPetType.WarPetStags", t.WarPetSelect = "EventWarPetType.WarPetSelect", t.WarPetEggSelect =
		"EventWarPetType.WarPetEggSelect", t
}();
__reflect(EventWarPetType.prototype, "EventWarPetType");
var ExploitEvent = function() {
	function t() {}
	return t.REFRESH_EXPLOIT = "ExploitEvent.refresh_exploit", t.REFRESH_EXPLOIT_NUM = "ExploitEvent.refresh_exploit_num",
		t.SUCCESS_REWARD = "ExploitEvent.success_reward", t.SUCCESS_POSITION_UP = "ExploitEvent.SUCCESS_POSITION_UP", t.REFRESH_TASK =
		"ExploitEvent.REFRESH_TASK", t.REFRESH_XUNZHANG_ID = "ExploitEvent.REFRESH_XUNZHANG_ID", t.REFRESH_PRESTIGE =
		"ExploitEvent.refresh_prestige", t.LEVEL_UP_PRESTIGE = "ExploitEvent.level_up_prestige", t
}();
__reflect(ExploitEvent.prototype, "ExploitEvent");
var FightBossEvent = function() {
	function t() {}
	return t.FIGHTBOSSSTATUE = "FIGHTBOSSSTATUE", t.OWNBOSS = "OWNBOSS", t.ALLSTARREWARDSTATE = "ALLSTARREWARDSTATE", t.BUYITMETIME =
		"BUYITMETIME", t.GETREWARD = "GETREWARD", t.DROP_REFRESH = "drop_refresh", t.REMIND_REFRESH = "remind_refresh", t
}();
__reflect(FightBossEvent.prototype, "FightBossEvent");
var ForgeEvent = function() {
	function t() {}
	return t.STRENGITEM = "Strengitem", t.BUYSTRENGTOP = "BuyStrengTop", t.TRANSFEREQUIP = "TransferEquip", t.RECOVERYRESULT =
		"RecoveryResult", t.COMPOSECLICK = "COMPOSECLICK", t.COMPOSERESULT = "COMPOSEResult", t.RECVORYEQUIPDRAG =
		"RECVORY_EQUIP_DRAG", t.FORGEEQUIPDRAG = "FORGE_EQUIP_DRAG", t.COMPOSEEQUIPDRAG = "COMPOSE_EQUIP_DRAG", t.EQUIPSTRENGMAXCHANGE =
		"FORGE_EQUIP_STRENG_MAX_CHANGE", t.REFINE_SUCCESS = "REFINE_SUCCESS", t.RISING_STAR_SUCCESS = "RISING_STAR_SUCCESS",
		t.FORGE_RESULT = "FORGE_RESULT", t.HEJI_RESULT = "HEJI_RESULT", t.FUSHI_INFO = "FUSHI_INFO", t.FUSHI_CHANGE =
		"FUSHI_CHANGE", t.FUSHI_UPDATE = "FUSHI_UPDATE", t.FUSHI_FENJIE = "FUSHI_FENJIE", t
}();
__reflect(ForgeEvent.prototype, "ForgeEvent");
var GameEvent = function(t) {
	function e(e, i, n, a) {
		var o = this,
			r = !1,
			s = !1;
		return void 0 != n && null != n && (r = n), void 0 != a && null != a && (s = a), o = t.call(this, e, r, s, i) ||
			this
	}
	return __extends(e, t), e
}(egret.Event);
__reflect(GameEvent.prototype, "GameEvent");
var GuideEvent = function() {
	function t() {}
	return t.SHOW = "GuideEvent.SHOW", t.HIDE = "GuideEvent.HIDE", t.REMOVE = "GuideEvent.REMOVE", t.SKILL_LEVELUP =
		"GuideEvent.SKILL_LEVELUP", t.BUY_QUICK_ITEM = "GuideEvent.BUY_QUICK_ITEM", t.CLOSE_QUICK_PANEL =
		"GuideEvent.CLOSE_QUICK_PANEL", t.REFRESH_GUILDMALL = "GuideEvent.REFRESH_GUILDMALL", t
}();
__reflect(GuideEvent.prototype, "GuideEvent");
var GuildEvent = function() {
	function t() {}
	return t.GUILD = "GuildEvent.GUILD", t.MEMBER = 0, t.INFO = 1, t.DEPOT = 2, t.LOG = 3, t.RED_LOG = 4, t.LIST = 5, t.APPLY =
		6, t.RED_INFO = 7, t.SHEN_HE = 8, t.LEVEL_CHANGE = "GuildEvent.LEVEL_CHANGE", t.NOTICE_CHANGE =
		"GuildEvent.NOTICE_CHANGE", t.ENTER = "GuildEvent.ENTER", t.EXIT = "GuildEvent.EXIT", t.MENU_CHANGE =
		"GuildEvent.MENU_CHANGE", t.MY_APPLY_EQUIP_CHANGE = "GuildEvent.MY_APPLY_EQUIP_CHANGE", t.SHENHE_RECORD =
		"GuildEvent.SHENHE_RECORD", t.GONGXIAN_RANK = "GuildEvent.GONGXIAN_RANK", t.CHOOSE_MEMBER =
		"GuildEvent.CHOOSE_MEMBER", t
}();
__reflect(GuildEvent.prototype, "GuildEvent");
var ItemEvent = function() {
	function t() {}
	return t.USE_SUCCESS = "ItemEvent.USE_SUCCESS", t.USE_EFFECT = "ItemEvent.USE_EFFECT", t.USE_EFFECT2 =
		"ItemEvent.USE_EFFECT2", t.ADD = "Bag.ADD", t.REMOVE = "Bag.REMOVE", t.CHANGE = "Bag.CHANGE", t.UPDATE =
		"Bag.UPDATE", t.TIDY = "Bag.TIDY", t.DROP = "Bag.DROP", t.SELL = "Bag.SELL", t.SPLIT = "Bag.SPLIT", t.MOVE =
		"Bag.MOVE", t.BAG_OPEN_GRID = "Bag.OPEN_GRID", t.DEPOT_UPDATE = "Depot.UPDATE", t.DEPOT_REMOVE = "Depot.REMOVE", t.DEPOT_TIDY =
		"Depot.TIDY", t.DEPOT_MOVE = "Depot.MOVE", t.DEPOT_OPEN_GRID = "Depot.OPEN_GRID", t.GUILD_JUANXIANSELECT_UPDATE =
		"Guild.JUANXIANSELECT_UPDATE", t.GUILD_UPDATE = "Guild.UPDATE", t.TANBAO_LOAD = "Tanbao.TANBAO_LOAD", t.TANBAO_UPDATE =
		"Tanbao.UPDATE", t.TANBAO_REMOVE = "Tanbao.REMOVE", t.GUILD_LOAD = "GUILD.GUILD_LOAD", t.GUILD_CANGKU_UPDATE =
		"GUILD.CANGKUUPDATE", t.GUILD_CANGKU_REMOVE = "GUILD.CANGKUREMOVE", t.TANBAO_TIDY = "Tanbao.TIDY", t.DEALPANEL_ADDITEM =
		"DEAL.PANELADDITEM", t.DEAL_CHANGEMONEY = "DEAL.CHANGEMONEY", t.DEAL_GREY = "DEAL.GREY", t.DEAL_OVER = "DEAL.OVER",
		t.BUYITEM_SUCCESS = "BUYITEM_SUCCESS", t.DIE_ITEMDROP = "DIE_ITEMDROP", t.UPDATE_SHOP_ITEM = "UPDATE_SHOP_ITEM", t.UPDATE_SHENMI_SHOP =
		"UPDATE_SHENMI_SHOP", t.UPDATE_ABYSS_SHOP = "ItemEvent.UPDATE_ABYSS_SHOP", t.UPDATE_WARPET_SHOP =
		"ItemEvent.UPDATE_WARPET_SHOP", t.SHOW_ADD_ITEM = "ItemEvent.SHOW_ADD_ITEM", t
}();
__reflect(ItemEvent.prototype, "ItemEvent");
var LimitTaskEvent = function() {
	function t() {}
	return t.LIMIT_TASK_ChANGE = "LIMIT_TASK_ChANGE", t
}();
__reflect(LimitTaskEvent.prototype, "LimitTaskEvent");
var LoginEvent = function() {
	function t() {}
	return t.SHOW_CREATE_PLAYER = "show_create_player", t.REMOVE_CREATE_PLAYER = "remove_create_player", t.SHOW_SELECT_PLAYER =
		"show_select_player", t.REMOVE_SELECT_PLAYER = "remove_select_player", t.SHOW_PRE_LOADER = "show_pre_loader", t.LOGIN_ERROR =
		"login_error", t
}();
__reflect(LoginEvent.prototype, "LoginEvent");
var MailEvent = function() {
	function t() {}
	return t.MAIL_QUERYLIST_MESSAGE = "mailQueryListMessage", t.MAIL_QUERYDETAIL_MESSAGE = "mailQueryDetailMessage", t.NEW_MAIL_MESSAGE =
		"mewMailMessage", t.DEL_MAIL_MESSAGE = "delMailMessage", t.NOREAD_MAIL_CHANGE = "noreadMailChange", t.HAS_ACCESSORY_CHANGE =
		"hasAccessoryChange", t
}();
__reflect(MailEvent.prototype, "MailEvent");
var MoneyEvent = function() {
	function t() {}
	return t.UPDATE = "MoneyEvent.UPDATE", t.CHANGE = "MoneyEvent.CHANGE", t
}();
__reflect(MoneyEvent.prototype, "MoneyEvent");
var PlayerAttributeEvent = function() {
	function t() {}
	return t.PLAYER_PET_HP = "Player.PLAYER_PET_HP", t.PLAYER_PET_MP = "Player.PLAYER_PET_MP", t.NAME = "Player.NAME", t.HP =
		"Player.HP", t.MAX_HP = "Player.MAX_HP", t.MP = "Player.MP", t.MAX_MP = "Player.MAX_MP", t.NG = "Player.NG", t.MAX_NG =
		"Player.MAX_NG", t.SP = "Player.SP", t.MAX_SP = "Player.MAX_SP", t.EXP = "Player.EXP", t.MONSTER_LEVEL =
		"Player.MONSTER_LEVEL", t.CHARACTER_LEVEL = "Player.CHARACTER_LEVEL", t.PLAYER_LEVEL = "Player.PLAYER_LEVEL", t.ZHUAN_SHENG =
		"Player.ZHUAN_SHENG", t.SPEED = "Player.SPEED", t.MY_PLAYER_INFO_INIT = "Player.MY_PLAYER_INFO_INIT", t.MY_PLAYER_ATTRIBUTE_CHANGE =
		"Player.MY_PLAYER_ATTRIBUTE_CHANGE", t.CHANGE_AUTO_ROBOT = "Player.CHANGE_AUTO_ROBOT", t.CHANGE_PKSTATE =
		"Player.change_pkstate", t.PKSWORD_CHANGE = "Player.pksword_change", t.ROLE_CREATE = "Player.role_create", t.ROLE_RELIVE =
		"Player.role_relive", t.ROLE_DEAD = "Player.role_dead", t.MY_ROLE_DEAD_ALL = "Player.MY_ROLE_DEAD_ALL", t.OTHER_ROLE_DEAD_ALL =
		"Player.OTHER_ROLE_DEAD_ALL", t.ROLE_DISPOSE = "Player.role_dispose", t.GM_LEVEL_CHANGE = "Player.gm_level_change",
		t.GOD_LAYER_CHANGE = "Player.god_layer_change", t.EXP_CHANGE_VALUE = "Player.exp_change_value", t.CHANGE_YELLOW_SIGN =
		"Player.change_yellow_sign", t.CHANGE_BLUE_SIGN = "Player.change_blue_sign", t.CHANGE_YYZI_SIGN =
		"Player.change_yyzi_sign", t.CHANGE_XUNLEI_SIGN = "Player.change_xunlei_sign", t.CHANGE_TGP_SIGN =
		"Player.change_tgp_sign", t.ADD_ATTACKER = "add_attacker", t.REMOVE_ATTACKER = "remove_attacker", t.CHECK_OTHER_PALYERINFO_BACK =
		"check_other_playerinfo_back", t.RANK_LIST_PAGE_CHANGED = "rank_list_page_changed", t.TejieREF = "TejieREF", t.LUNHUILEVEL =
		"LUNHUILEVEL", t.CHUANQITAOZHUANG = "CHUANQITAOZHUANG", t.LUNHUIRESULT = "LUNHUIRESULT", t.LUNHUISTARRESULT =
		"LUNHUISTARRESULT", t.LUNHUISTARFALSERESULT = "LUNHUISTARFALSERESULT", t.LUNHUIZHUHUNRESULT = "LUNHUIZHUHUNRESULT",
		t.UPDATE_JGZYXP_TIME = "PlayerAttributeEvent_UPDATE_JGZYXP_TIME", t.ROLE_CHANGE_FIGHTPOWER =
		"PlayerAttributeEvent_ROLE_CHANGE_FIGHTPOWER", t.ROLE_CHANGE_TITLE = "PlayerAttributeEvent_ROLE_CHANGE_TITLE", t
}();
__reflect(PlayerAttributeEvent.prototype, "PlayerAttributeEvent");
var PlayerBufferEvent = function() {
	function t() {}
	return t.ADD_BUFFER = "PlayerBufferEvent.add_buffer", t.REMOVE_BUFFER = "PlayerBufferEvent.remove_buffer", t.CHANGE_BUFFER_INFO =
		"PlayerBufferEvent.change_buffer_info", t.HIDE_BUFFER_INFO = "PlayerBufferEvent.hide_buffer_info", t.CLEAR_ALL_BUFF =
		"PlayerBufferEvent.clear_all_buff", t
}();
__reflect(PlayerBufferEvent.prototype, "PlayerBufferEvent");
var RingEvent = function() {
	function t() {}
	return t.ITEM_SELECT = "RingEvent.Item_Select", t.ACTIVE_SUCCESS = "RingEvent.ACTIVE_SUCCESS", t
}();
__reflect(RingEvent.prototype, "RingEvent");
var SkillEvent = function() {
	function t() {}
	return t.REFRESH = "SkillCenter.REFRESH", t.ADD = "SkillCenter.ADD", t.REMOVE = "SkillCenter.REMOVE", t.CHANGE =
		"SkillCenter.CHANGE", t.SELECTED_ITEM = "SkillEvent.SELECTED_ITEM", t.INSIDE_LV_UP = "SkillEvent.INSIDE_LV_UP", t.INSIDE_REFRESH =
		"SkillEvent.INSIDE_REFRESH", t.MERIDIAN = "SkillEvent.MERIDIAN", t.WEAPONSOULUP = "SkillEvent.WEAPONSOULUP", t.WEAPONSOULUSE =
		"SkillEvent.WEAPONSOULUSE", t.WINGGODSELECTITEM = "SkillEvent.WINGGODSELECTITEM", t.WINGGODZHSELECTITEM =
		"SkillEvent.WINGGODZHSELECTITEM", t.WingGodResult = "SkillEvent.WingGodResult", t.WingGodZHResult =
		"SkillEvent.WingGodZHResult", t.WingGodZH = "SkillEvent.WingGodZH", t.WingGodWEAR = "SkillEvent.WingGodWEAR", t
}();
__reflect(SkillEvent.prototype, "SkillEvent");
var SurfaceEvent = function() {
	function t() {}
	return t.SURFACEEVENT_HIDESURFACE = "SURFACEEVENT.HIDESURFACE", t.SELECT_SPECIALRING =
		"SurfaceEvent.select_specialring", t.SPECIALRING_LIST = "SurfaceEvent.specialring_list", t.SPECIALRING_WEAR =
		"SurfaceEvent.specialring_wear", t.SPECIALRING_TAKEOFF = "SurfaceEvent.specialring_takeoff", t.SPECIALRING_LEVELUP =
		"SurfaceEvent.specialring_levelup", t.SPECIALRING_UPDATE = "SurfaceEvent.specialring_update", t.SURFACE_BIND =
		"SurfaceEvent.SURFACE_BIND", t.SURFACE_INDEX = "SurfaceEvent.SURFACE_INDEX", t
}();
__reflect(SurfaceEvent.prototype, "SurfaceEvent");
var TanBaoEvent = function() {
	function t() {}
	return t
}();
__reflect(TanBaoEvent.prototype, "TanBaoEvent");
var TaskEvent = function() {
	function t() {}
	return t.UPDATETASKTRACK = "TaskEvent.updateTaskTrack", t.TASK_FINISH = "TaskEvent.taskFinish", t.TASK_CLICK =
		"TaskEvent.taskClick", t.TASK_TRANSFER = "TaskEvent.taskTransfer", t.TASK_ACTIVI = "TaskEvent.taskActive", t.TASKTRACK_SHOWORHIDE =
		"TaskEvent.taskTrackShowOrHide", t.TASKTRACK_HEIGHT = "TaskEvent.taskTrackHeight", t.TASK_AUTO_RUN_NEXT_STEP =
		"TaskEvent.task_auto_run_next_step", t.TASK_AUTO_RUN_TIP_SHOW = "TaskEvent.task_auto_run_tip_show", t.REFRESHSTARLV =
		"TaskEvent.refrsh_star_lv", t.HIDE_TASK_DEMON_TIP = "TaskEvent.hide_task_demon_tip", t.HIDE_CELL =
		"TaskEvent.hide_cell", t.TRANSFORSHOWORHIDE = "TaskEvent.transfer_show_or_hide", t.REFRESH_TASK =
		"TaskEvent.REFRESH_TASK", t.ACHIEVETIMETASK_REFRESH = "TaskEvent.ACHIEVETIMETASK_REFRESH", t.STATE_REFRESH =
		"TaskEvent.STATE_REFRESH", t
}();
__reflect(TaskEvent.prototype, "TaskEvent");
var TeamEvent = function() {
	function t() {}
	return t.TEAM = "TEAMEvent.TEAM", t.MY_TEAM = 0, t.NEARBY_TEAM = 1, t.NEARBY_PLAYER = 2, t.CHARACTER_TEAM_CHANGE =
		"TeamEvent.character_team_change", t.RADAR_ADDMEMBER = "TeamEvent.radar_addMember", t.RADAR_REMOVEMEMBER =
		"TeamEvent.radar_removeMember", t.RADAR_REMOVEALLMEMBER = "TeamEvent.radar_removeAllMember", t.RADAR_CHANGEPOSITION =
		"TeamEvent.radar_changePosition", t.UPDATE = "TeamEvent.UPDATE", t
}();
__reflect(TeamEvent.prototype, "TeamEvent");
var VipEvent = function() {
	function t() {}
	return t.VIP_INFO_REFRESH = "vip_info_refresh", t.VIP_LEVEL_UP = "vip_level_up", t.VIP_PUTONGLIBAO_CHANGE =
		"vip_putonglibao_change", t.VIP_BUYLIBAO_INFO_REFRESH = "vip_buylibao_info_refresh", t.VIP_BUYLIBAO_CHANGE =
		"vip_buylibao_change", t.REFRESH_MOON_CARD = "refresh_moon_card", t.CARD_BUY_RESULT = "card_buy_result", t.REWARD_RESULT =
		"reward_result", t.Privilege = "VipEvent.Privilege", t.Turntable = "VipEvent.Turntable", t.LuckTurntable =
		"VipEvent.LuckTurntable", t.YuanBaoTurntable = "VipEvent.YuanBaoTurntable", t.RedEnvelopes = "VipEvent.RedEnvelopes",
		t.RedEnveInfo = "VipEvent.RedEnveInfo", t.CHONGZHI = "VipEvent.CHONGZHI", t.FANPAIREFRE = "VipEvent.FANPAIREFRE", t.FANPAICURR =
		"VipEvent.FANPAICURR", t
}();
__reflect(VipEvent.prototype, "VipEvent");
var WarpetEvent = function() {
	function t() {}
	return t.WARPET_REFRESH = "WatpetEvent.WARPET_REFRESH", t.WARPET_UPLVREFRESH = "WatpetEvent.WARPET_UPLVREFRESH", t.WARPET_UPJIEREFRESH =
		"WatpetEvent.WARPET_UPJIEREFRESH", t.WARPET_FIGHT = "WatpetEvent.WARPET_FIGHT", t.WARPET_FUTI =
		"WatpetEvent.WARPET_FUTI", t.WARPET_XIUXI = "WatpetEvent.WARPET_XIUXI", t.WARPET_SUO = "WatpetEvent.WARPET_SUO", t.WARPET_ADD =
		"WatpetEvent.WARPET_ADD", t.WARPET_TALENT_CHOOSE = "WatpetEvent.WARPET_TALENT_CHOOSE", t.WARPET_TALENT_COMPOSE =
		"WatpetEvent.WARPET_TALENT_COMPOSE", t.WARPET_JINGPO_COMPOSE = "WatpetEvent.WARPET_JINGPO_COMPOSE", t.WARPET_PANEL_SELECTINDEX =
		"WatpetEvent.WARPET_PANEL_SELECTINDEX", t.WARPET_UPDETAIL = "WatpetEvent.WARPET_UPDETAIL", t.KUN_REWARD_REFRESH =
		"WatpetEvent.KUN_REWARD_REFRESH", t.KUN_EAT = "WatpetEvent.KUN_EAT", t.KUN_EAT_CD = "WatpetEvent.KUN_EAT_CD", t.KUN_EAT_TUNTIANZHU =
		"WatpetEvent.KUN_EAT_TUNTIANZHU", t
}();
__reflect(WarpetEvent.prototype, "WarpetEvent");
var WingEvent = function() {
	function t() {}
	return t.CHANGESERFACE = "WingEvent.ChangeSerface", t.CHANGESERFACE_ERROR = "WingEvent.ChangeSerface_ERROR", t.ADVANCESUCCESS =
		"WingEvent.AdvanceSuccess", t.ADVANCEFAIL = "WingEvent.AdvanceFail", t.CLOSE_ADVANCEPANEL =
		"WingEvent.Close_AdvancePanel", t.CHANGELAYER = "WingEvent.changelayer", t
}();
__reflect(WingEvent.prototype, "WingEvent");
var ClientDataManager = function() {
	function t() {
		this._dataObj = {}
	}
	return t.prototype.getCenter = function(t, e) {
		var i = this._dataObj[t];
		return null == i && (i = new e, this._dataObj[t] = i), i
	}, Object.defineProperty(t.prototype, "chatDataCenter", {
		get: function() {
			return this.getCenter("ChatDataCenter", ChatDataCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "activityCenter", {
		get: function() {
			return this.getCenter("ActivityCenter", ActivityCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "wingGlobalCenter", {
		get: function() {
			return this.getCenter("WingGlobalCenter", WingGlobalCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "mountGlobalCenter", {
		get: function() {
			return this.getCenter("MountGlobalCenter", MountGlobalCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "faZhenGlobalCenter", {
		get: function() {
			return this.getCenter("FaZhenGlobalCenter", FaZhenGlobalCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "tianBingGlobalCenter", {
		get: function() {
			return this.getCenter("TianBingGlobalCenter", TianBingGlobalCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "bingHunGlobalCenter", {
		get: function() {
			return this.getCenter("BingHunGlobalCenter", BingHunGlobalCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "surfaceCenter", {
		get: function() {
			return this.getCenter("SurfaceCenter", SurfaceCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "bagItemDataCenter", {
		get: function() {
			return this.getCenter("BagItemCenter", BagItemCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "currencyDataCenter", {
		get: function() {
			return this.getCenter("CurrencyCenter", CurrencyCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "skillCenter", {
		get: function() {
			return this.getCenter("SkillCenter", SkillCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "CDCenter", {
		get: function() {
			return this.getCenter("CDCenter", CDCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "taskCenter", {
		get: function() {
			return this.getCenter("TaskDataCenter", TaskDataCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "mallCenter", {
		get: function() {
			return this.getCenter("MallCenter", MallCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "zoneCenter", {
		get: function() {
			return this.getCenter("ZoneCenter", ZoneCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "characterCenter", {
		get: function() {
			return this.getCenter("CharacterCenter", CharacterCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "godEquipCenter", {
		get: function() {
			return this.getCenter("GodEquipCenter", GodEquipCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "wearEquipCenter", {
		get: function() {
			return this.getCenter("WearEquipCenter", WearEquipCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "achieveCenter", {
		get: function() {
			return this.getCenter("AchieveCenter", AchieveCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "shenmiShopCenter", {
		get: function() {
			return this.getCenter("ShenmiShopCenter", ShenmiShopCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "mailDataCenter", {
		get: function() {
			return this.getCenter("MailDataCenter", MailDataCenter)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getVipCenter = function() {
		return this.getCenter("VipCenter", VipCenter)
	}, Object.defineProperty(t.prototype, "autoRobotCenter", {
		get: function() {
			return this.getCenter("AutoRobotCenter", AutoRobotCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "quickPurchaseShopCenter", {
		get: function() {
			return this.getCenter("QuickPurchaseShopCenter", QuickPurchaseShopCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "exploitCenter", {
		get: function() {
			return this.getCenter("ExploitCenter", ExploitCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "forgeCenter", {
		get: function() {
			return this.getCenter("ForgeCenter", ForgeCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "gmCenter", {
		get: function() {
			return this.getCenter("GMCenter", GMCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "guildCenter", {
		get: function() {
			return this.getCenter("GuildCenter", GuildCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "friendCenter", {
		get: function() {
			return this.getCenter("FriendCenter", FriendCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "guildNameCenter", {
		get: function() {
			return this.getCenter("GuildNameCenter", GuildNameCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "tanbaoCenter", {
		get: function() {
			return this.getCenter("TanbaoItemCenter", TanbaoItemCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "tanbaoShopCenter", {
		get: function() {
			return this.getCenter("TanbaoShopCenter", TanbaoShopCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "carryShopCenter", {
		get: function() {
			return this.getCenter("CarryShopCenter", CarryShopCenter)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getXSRWCenter = function() {
		return this.getCenter("XSRWDataCenter", XSRWDataCenter)
	}, t.prototype.getWangZheZBCenter = function() {
		return this.getCenter("WangZheZBDataCenter", WangZheZBDataCenter)
	}, t.prototype.getTreasureCenter = function() {
		return this.getCenter("TreasureDataCenter", TreasureDataCenter)
	}, t.prototype.getArtifactDataCenter = function() {
		return this.getCenter("ArtifactDataCenter", ArtifactDataCenter)
	}, Object.defineProperty(t.prototype, "castleWarCenter", {
		get: function() {
			return this.getCenter("CastleWarCenter", CastleWarCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "boss", {
		get: function() {
			return this.getCenter("BossCenter", BossCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "moonCardCenter", {
		get: function() {
			return this.getCenter("MoonCardCenter", MoonCardCenter)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getChallengeCenter = function() {
		return this.getCenter("ChallengeCenter", ChallengeCenter)
	}, t.prototype.getRingDataCenter = function() {
		return this.getCenter("RingDataCenter", RingDataCenter)
	}, t.prototype.weaponSoulCenter = function() {
		return this.getCenter("WeaponSoulCenter", WeaponSoulCenter)
	}, t.prototype.wingGodCenter = function() {
		return this.getCenter("WingGodCenter", WingGodCenter)
	}, Object.defineProperty(t.prototype, "minecenter", {
		get: function() {
			return this.getCenter("MineCenter", MineCenter)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.pictureCenter = function() {
		return this.getCenter("PictureBookCenter", PictureBookCenter)
	}, t.prototype.crossCenter = function() {
		return this.getCenter("CrossCenter", CrossCenter)
	}, Object.defineProperty(t.prototype, "warpetCenter", {
		get: function() {
			return this.getCenter("WarpetCenter", WarpetCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "promiseCenter", {
		get: function() {
			return this.getCenter("PromiseCenter", PromiseCenter)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "advanceDataCenter", {
		get: function() {
			return this.getCenter("AdvanceDataCenter", AdvanceDataCenter)
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(ClientDataManager.prototype, "ClientDataManager");
var CookieManager = function() {
	function t() {}
	return Object.defineProperty(t, "ins", {
		get: function() {
			return this._instance || (this._instance = new t), this._instance
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.writeCookie = function(t, e, i) {
		void 0 === i && (i = 30), t = Config.GAME_NAME + t, Config.isWxGame || setCookie(t, e, i)
	}, t.prototype.readCookie = function(t) {
		return t = Config.GAME_NAME + t, Config.isWxGame || Config.isBaiduGame ? "" : getCookie(t)
	}, t.prototype.delCookie = function(t) {
		t = Config.GAME_NAME + t, Config.isWxGame || Config.isBaiduGame || delCookie(t)
	}, t
}();
__reflect(CookieManager.prototype, "CookieManager");
var CurrencyCenter = function() {
	function t() {
		this._moneyList = []
	}
	return t.prototype.setMoney = function(t, e) {
		0 > t && (t *= -1), this._moneyList[t] = e
	}, t.prototype.getMoney = function(t) {
		return 0 > t && (t *= -1), null == this._moneyList || isNaN(this._moneyList[t]) ? 0 : this._moneyList[t]
	}, t.prototype.isMoneyEnough = function(t, e, i, n, a, o, r) {
		void 0 === n && (n = !0), void 0 === a && (a = -1), void 0 === o && (o = ""), void 0 === r && (r = void 0), -1 == a &&
			(a = Notice.BOTTOM);
		var s = 0;
		switch (e) {
			case EnumMoney.YUAN_BAO:
			case EnumMoney.BIND_YUAN_BAO:
				if (e == EnumMoney.BIND_YUAN_BAO ? s = this.getMoney(EnumMoney.YUAN_BAO) + this.getMoney(EnumMoney.BIND_YUAN_BAO) :
					e == EnumMoney.YUAN_BAO && (s = this.getMoney(EnumMoney.YUAN_BAO), i && (s += this.getMoney(EnumMoney.BIND_YUAN_BAO))),
					t > s) {
					var h = EnumMoney.getName(EnumMoney.YUAN_BAO);
					return i && (h = EnumMoney.getName(EnumMoney.BIND_YUAN_BAO)), n && (Notice.showBottomMessage(h + "不够,请前往充值！"),
						PanelOpenManager.openChargePanel(Number(t))), !1
				}
				return !0;
			case EnumMoney.JIN_BI:
			case EnumMoney.BIND_JIN_BI:
				return e == EnumMoney.BIND_JIN_BI ? s = this.getMoney(EnumMoney.JIN_BI) + this.getMoney(EnumMoney.BIND_JIN_BI) :
					e == EnumMoney.JIN_BI && (s = this.getMoney(EnumMoney.JIN_BI), i && (s += this.getMoney(EnumMoney.BIND_JIN_BI))),
					t > s ? (n && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">很抱歉，您的" + EnumMoney.getName(
						EnumMoney.JIN_BI) + "不足</font>"), !1) : !0
		}
		return this.getMoney(e) < t ? (n && (null != o && o.length > 0 ? Notice.showNoticeTypeMsg(a, o, 1, !0, r) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">很抱歉，您的" + EnumMoney.getName(e) + "不足</font>")), !1) : !0
	}, t
}();
__reflect(CurrencyCenter.prototype, "CurrencyCenter");
var DataManager = function() {
	function t() {
		this._cfgObj = {}, this._configContainerList = [], this._errorRegist = {}, this.q_error_constContainer = new Q_error_constContainer,
			this.q_auto_notifyContainer = new Q_auto_notifyContainer, this.q_bufferContainer = new Q_buffContainer, this.q_itemContainer =
			new Q_itemContainer, this.q_mapContainer = new Q_mapContainer, this.q_transferContainer = new Q_transferContainer,
			this.q_npcContainer = new Q_npcContainer, this.q_petContainer = new Q_petContainer, this.q_monsterContainer = new Q_monsterContainer,
			this.q_surfaceContainer = new Q_surfaceContainer, this.q_globalContainer = new Q_globalContainer, this.q_equipContainer =
			new Q_equipContainer, this.q_skillModelContainer = new Q_skill_modelContainer, this.q_notify_constContainer = new Q_notify_constContainer,
			this.q_dynmaic_effectContainer = new Q_dynamic_effectContainer, this.q_specailConfigContainer = new Q_specail_configContainer,
			this.q_surface_componentContainer = new Q_surface_componentContainer, this.q_taskModelContainer = new Q_main_taskContainer,
			this.q_attributeContainer = new Q_attributeContainer, this.q_characterContainer = new Q_characterContainer, this.q_functionContainer =
			new Q_functionContainer, this.q_fightpower_clientContainer = new Q_fightpowerContainer, this.q_zone_mapContainer =
			new Q_zone_mapContainer, this.q_metempsychosisContainer = new Q_metempsychosisContainer, this.q_shopContainer = new Q_shopContainer,
			this.q_sceneMontserContainer = new Q_scene_monsterContainer_Expand, this.q_tipContainer = new Q_tipContainer, this.q_notify_clientContainer =
			new Q_notifyContainer, this.q_activitiesContainer = new Q_activitiesContainer, this.q_enter_buttonContainer = new Q_enter_buttonContainer,
			this.q_vipContainer = new Q_vipContainer, this.q_heraldryContainer = new Q_heraldryContainer, this.q_equip_masterContainer =
			new Q_equip_masterContainer, this.q_equip_strengContainer = new Q_equip_strengContainer, this.q_active_reward_configContainer =
			new Q_active_rewardsContainer, this.q_task_active_clientContainer = new Q_task_activeContainer, this.q_active_positionContainer =
			new Q_active_positionContainer, this.q_alert_contentContainer = new Q_alert_contentContainer, this.q_guildContainer =
			new Q_guildContainer, this.q_internalstrengthContainer = new Q_internalstrengthContainer, this.q_moon_cardContainer =
			new Q_moon_cardContainer, this.q_rank_configContainer = new Q_rank_configContainer, this.q_bot_rewardContainer =
			new Q_bot_rewardContainer, this.q_level_configContainer = new Q_level_configContainer, this.q_miningContainer = new Q_miningContainer,
			this.q_guild_skillContainer = new Q_guild_skillContainer, this.q_LimitTaskContainer = new Q_limit_taskContainer,
			this.q_ArtifaceContainer = new Q_artifactContainer, this.q_equip_fuseContainer = new Q_equip_fuseContainer, this.q_jadeContainer =
			new Q_jadeContainer, this.q_achieve_clientContainer = new Q_achieveContainer, this.q_state_taskContainer = new Q_state_taskContainer,
			this.q_state_lvContainer = new Q_state_lvContainer, this.q_output_introContainer = new Q_output_introContainer,
			this.q_challengeContainer = new Q_challengeContainer, this.q_hide_taskContainer = new Q_hide_taskContainer, this.q_artifact_showContainer =
			new Q_artifact_showContainer, this.q_ma_soulContainer = new Q_ma_soulContainer, this.q_meridianContainer = new Q_meridianContainer,
			this.q_ringContainer = new Q_ringContainer, this.q_cardkuContainer = new Q_cardkuContainer, this.q_pictureContainer =
			new Q_pictureContainer, this.q_successContainer = new Q_successContainer, this.q_gift_taskContainer = new Q_gift_taskContainer,
			this.q_rechargeContainer = new Q_rechargeContainer, this.q_privilegeContainer = new Q_privilegeContainer, this.q_turntableContainer =
			new Q_turntableContainer, this.q_rankRewardContainer = new Q_rank_rewardsContainer, this.q_recharge_shopContainer =
			new Q_recharge_shopContainer, this.q_artifact_upgradeContainer = new Q_artifact_upgradeContainer, this.q_artifact_suitContainer =
			new Q_artifact_suitContainer, this.q_link_taskContainer = new Q_link_taskContainer, this.q_link_rewardContainer =
			new Q_link_rewarksContainer, this.q_samsaraContainer = new Q_samsaraContainer, this.q_samsara_soulContainer = new Q_samsara_soulContainer,
			this.q_samsara_starContainer = new Q_samsara_starContainer, this.q_warpetUpLvContainer = new Q_pet_levelContainer,
			this.q_warpetUpClassContainer = new Q_pet_classContainer, this.q_warpetMouldContainer = new Q_pet_mouldContainer,
			this.q_warpetShowContainer = new Q_pet_showContainer, this.q_warpetEggContainer = new Q_pet_eggContainer, this.q_warpetKunSkillContainer =
			new Q_kun_skillContainer, this.q_lucky_turntableContainer = new Q_lucky_turntableContainer, this.q_active_taskContainer =
			new Q_active_taskContainer, this.q_desireContainer = new Q_desireContainer, this.q_shenluContainer = new Q_stoveContainer,
			this.q_samsara_star_masterContainer = new Q_samsara_star_masterContainer, this.q_yuanbao_turntableContainer = new Q_yuanbao_turntableContainer,
			this.q_flopContainer = new Q_flopContainer, this.q_map_jumpContainer = new Q_map_jumpContainer, this.q_storyActionContainer =
			new Q_storyActionContainer, this.q_storyContainer = new Q_storyContainer, this.q_advanceContainer = new Q_advanceContainer,
			this.q_advance_danContainer = new Q_advance_danContainer, this.q_advance_equipContainer = new Q_advance_equipContainer,
			this.q_trainContainer = new Q_trainContainer, this.q_ware_houseContainer = new Q_ware_houseContainer, this.loadConfig()
	}
	return t.prototype.loadConfig = function() {
		this.register(this.q_achieve_clientContainer), this.register(this.q_error_constContainer), this.register(this.q_auto_notifyContainer),
			this.register(this.q_bufferContainer), this.register(this.q_itemContainer), this.register(this.q_mapContainer),
			this.register(this.q_transferContainer), this.register(this.q_npcContainer), this.register(this.q_petContainer),
			this.register(this.q_monsterContainer), this.register(this.q_surfaceContainer), this.register(this.q_globalContainer),
			this.register(this.q_equipContainer), this.register(this.q_skillModelContainer), this.register(this.q_notify_constContainer),
			this.register(this.q_dynmaic_effectContainer), this.register(this.q_specailConfigContainer), this.register(this.q_surface_componentContainer),
			this.register(this.q_taskModelContainer), this.register(this.q_attributeContainer), this.register(this.q_characterContainer),
			this.register(this.q_functionContainer), this.register(this.q_fightpower_clientContainer), this.register(this.q_zone_mapContainer),
			this.register(this.q_metempsychosisContainer), this.register(this.q_shopContainer), this.register(this.q_sceneMontserContainer),
			this.register(this.q_tipContainer), this.register(this.q_notify_clientContainer), this.register(this.q_activitiesContainer),
			this.register(this.q_enter_buttonContainer), this.register(this.q_vipContainer), this.register(this.q_heraldryContainer),
			this.register(this.q_equip_masterContainer), this.register(this.q_equip_strengContainer), this.register(this.q_active_reward_configContainer),
			this.register(this.q_task_active_clientContainer), this.register(this.q_active_positionContainer), this.register(
				this.q_alert_contentContainer), this.register(this.q_guildContainer), this.register(this.q_internalstrengthContainer),
			this.register(this.q_moon_cardContainer), this.register(this.q_rank_configContainer), this.register(this.q_bot_rewardContainer),
			this.register(this.q_level_configContainer), this.register(this.q_miningContainer), this.register(this.q_guild_skillContainer),
			this.register(this.q_LimitTaskContainer), this.register(this.q_ArtifaceContainer), this.register(this.q_equip_fuseContainer),
			this.register(this.q_jadeContainer), this.register(this.q_output_introContainer), this.register(this.q_challengeContainer),
			this.register(this.q_hide_taskContainer), this.register(this.q_artifact_showContainer), this.register(this.q_ma_soulContainer),
			this.register(this.q_meridianContainer), this.register(this.q_ringContainer), this.register(this.q_cardkuContainer),
			this.register(this.q_pictureContainer), this.register(this.q_successContainer), this.register(this.q_gift_taskContainer),
			this.register(this.q_rechargeContainer), this.register(this.q_privilegeContainer), this.register(this.q_turntableContainer),
			this.register(this.q_rankRewardContainer), this.register(this.q_recharge_shopContainer), this.register(this.q_artifact_upgradeContainer),
			this.register(this.q_artifact_suitContainer), this.register(this.q_link_taskContainer), this.register(this.q_link_rewardContainer),
			this.register(this.q_samsaraContainer), this.register(this.q_samsara_soulContainer), this.register(this.q_samsara_starContainer),
			this.register(this.q_warpetUpLvContainer), this.register(this.q_warpetUpClassContainer), this.register(this.q_warpetMouldContainer),
			this.register(this.q_warpetShowContainer), this.register(this.q_warpetEggContainer), this.register(this.q_warpetKunSkillContainer),
			this.register(this.q_lucky_turntableContainer), this.register(this.q_active_taskContainer), this.register(this.q_desireContainer),
			this.register(this.q_shenluContainer), this.register(this.q_samsara_star_masterContainer), this.register(this.q_yuanbao_turntableContainer),
			this.register(this.q_flopContainer), this.register(this.q_map_jumpContainer), this.register(this.q_storyActionContainer),
			this.register(this.q_storyContainer), this.register(this.q_advanceContainer), this.register(this.q_advance_danContainer),
			this.register(this.q_advance_equipContainer), this.register(this.q_state_taskContainer), this.register(this.q_state_lvContainer),
			this.register(this.q_trainContainer), this.register(this.q_ware_houseContainer)
	}, t.prototype.getConfig = function(t) {
		var e = this._cfgObj[t];
		if (null == e) {
			var i = egret.getDefinitionByName(t);
			i && (e = new i, this._cfgObj[t] = e, this.register(e))
		}
		return e
	}, t.prototype.load = function() {
		var t, e = 0,
			i = this._configContainerList.length;
		for (e = 0; i > e; e++) t = this._configContainerList[e], t.load()
	}, Object.defineProperty(t.prototype, "configList", {
		get: function() {
			return this._configContainerList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.register = function(t) {
		var e = egret.getQualifiedClassName(t);
		return this._errorRegist[e] ? void GameLog.logError("重复注册：" + e) : (this._configContainerList.push(t), void(this._errorRegist[
			e] = !0))
	}, t
}();
__reflect(DataManager.prototype, "DataManager");
var FunctionOpenManager = function() {
	function t() {
		this.openedFunctionId = [], this._isFirst = !0
	}
	return Object.defineProperty(t.prototype, "state", {
		set: function(t) {
			if (this._isFirst) this._isFirst = !1, this._state = t;
			else {
				var e = 1,
					i = 1;
				null != this._state && (e = this.getBit(103), i = this.getBit(68)), this._state = t, 0 == e && 0 != this.getBit(
					103) && App.panel.openPanel(70), 0 == i && 0 != this.getBit(68) && (RoleMainView.isshowsurfaceguild = !0)
			}
			this.showNewFunc(), App.global.enterBtn.showButtonByFunction(), this.createOpenObj()
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.createOpenObj = function() {
		if (!this._isNeedOpenObj) {
			this._isNeedOpenObj = new Object;
			for (var t = App.config.q_functionContainer.list, e = t.length, i = 0; e > i; i++) t[i].q_isopen > 0 && (1 == this
				.isFunctionOpen(t[i].q_function_id) ? this._isNeedOpenObj[t[i].q_function_id] = 2 : this._isNeedOpenObj[t[i].q_function_id] =
				0)
		}
	}, t.prototype.showNewFunc = function() {
		var t = this.openedFunctionId.concat();
		this.openedFunctionId = [];
		for (var e = 0; e < this._state.length; e++)
			for (var i = 1; 32 > i; i++) 1 == (this._state[e] >> i & 1) && this.openedFunctionId.push(32 * e + i);
		for (var n = 0; n < this.openedFunctionId.length; n++)
			if (-1 == t.indexOf(this.openedFunctionId[n])) {
				var a = this.openedFunctionId[n];
				App.dispatcher.dispatchEvent(EventType.FUNCTION_OPEN, a)
			}
	}, t.prototype.setOpenObj = function(t) {
		this._isNeedOpenObj && void 0 != this._isNeedOpenObj[t] && 1 == this._isNeedOpenObj[t] && (this._isNeedOpenObj[t] =
			2)
	}, t.prototype.getOpenObj = function(t) {
		return this._isNeedOpenObj && void 0 != this._isNeedOpenObj[t] ? this._isNeedOpenObj[t] : 0
	}, t.prototype.isFunctionOpen = function(t, e, i) {
		if (void 0 === e && (e = ""), void 0 === i && (i = !1), this._state) {
			var n = (App.config.q_functionContainer.getDataBean(t), this.getBit(t));
			if (0 != n) return !0;
			if (i) {
				var a = App.config.q_functionContainer.getDataBean(t);
				a && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">" + a.q_describe + "</font>")
			}
		}
		return !1
	}, t.prototype.getNearbyFunction = function() {
		if (this._vec || (this._vec = App.config.q_functionContainer.list, this._vec.sort(this.sortFunc)), this._vec) {
			App.global.characterData.level
		}
		return null
	}, t.prototype.isFunctionShow = function(t, e, i) {
		void 0 === e && (e = null), void 0 === i && (i = null);
		var n = App.config.q_functionContainer.getDataBean(t);
		if (null != n && n.q_web && n.q_web.length > 0) {
			e && (e = WebParams.agent), null == i && (i = WebParams.ad);
			var a = StringUtil.JsonParse(n.q_web),
				o = [],
				r = [],
				s = 0;
			for (s = 0; s < a.length; s++) a[s].web == e && (void 0 != a[s].agent && o.push(a[s].agent), void 0 != a[s].notagent &&
				r.push(a[s].notagent));
			if (o.length > 0) {
				for (s = 0; s < o.length; s++)
					if (o[s] == i) return !0;
				return !1
			}
			if (r.length > 0) {
				for (s = 0; s < r.length; s++)
					if (r[s] == i) return !1;
				return !0
			}
			return !0
		}
		return !0
	}, t.prototype.sortFunc = function(t, e) {
		return t.q_notice_level <= e.q_notice_level ? -1 : 1
	}, t.prototype.getBit = function(t) {
		return this._state[Math.floor(t / 32)] >> t & 1
	}, t
}();
__reflect(FunctionOpenManager.prototype, "FunctionOpenManager");
var GlobalManager = function() {
	function t() {
		this.stageX = 0, this.stageY = 0
	}
	return t.prototype.init = function() {
		this.redPoint = new RedPointManager, this.itemUse = new ItemUseManager, this.itemBuy = new ItemBuyManager, this.mapModule =
			new GameMapModule, this.prompt = new ItemPromptManager, this.funcOpen = new FunctionOpenManager, this.gmOperate =
			new GmOperateManager, this.roles = new RoleListManager, this.zone = new ZoneManager, this.enterBtn = new EnterButtonManager,
			this.operate = new OperateManager
	}, t
}();
__reflect(GlobalManager.prototype, "GlobalManager");
var GmOperateManager = function() {
	function t() {}
	return t.prototype.bannSpeak = function(t, e, i) {
		Alert.show("您确定要禁言玩家（角色：" + e + "）吗？", "提示", "确定", this.sendBannSpeak, this, [t, e, i])
	}, t.prototype.sendBannSpeak = function(t, e, i) {}, t.prototype.bannSpeakOneHour = function(t, e) {
		Alert.show("您确定要禁言“" + e + "”1小时吗？", "提示", "确定", this.sendBannSpeak, this, [t, e, 3600])
	}, t.prototype.bannSpeakOneDay = function(t, e) {
		Alert.show("您确定要禁言“" + e + "”1天吗？", "提示", "确定", this.sendBannSpeak, this, [t, e, 86400])
	}, t.prototype.bannSpeakForever = function(t, e) {
		Alert.show("您确定要永久禁言“" + e + "”吗？", "提示", "确定", this.sendBannSpeak, this, [t, e, -1])
	}, t.prototype.bannSpeakRemove = function(t, e) {
		this.bannSpeak(t, e, 0)
	}, t.prototype.forbidAccount = function(t, e) {
		Alert.show("您确定要单服封号（角色：" + e + "）吗？", "提示", "确定", this.sendForbidAccount, this, [t, e, 1])
	}, t.prototype.sendForbidAccount = function(t, e, i) {}, t.prototype.forbidAccountRemove = function(t, e) {
		this.sendForbidAccount(t, e, 0)
	}, t.prototype.forbidPlat = function(t, e, i) {
		if (void 0 === i && (i = -1), 0 == i) this.forbidPlatRemove(t, e);
		else {
			var n = -1 == i ? "永久" : "",
				a = "";
			0 == n.length && (60 > i ? a = i + "分钟" : i >= 60 && 1440 > i ? a = i / 60 + "小时" : i >= 1440 && (a = i / 1440 +
				"天")), Alert.show("您确定要" + n + "平台封号（角色：" + e + "）" + a + "吗？", "提示", "确定", this.sendforbid, this, [t, e, i, 1])
		}
	}, t.prototype.sendforbid = function(t, e, i, n) {}, t.prototype.forbidPlatRemove = function(t, e) {
		this.sendforbid(t, e, 0, 1)
	}, t.prototype.forbidIP = function(t, e, i) {
		if (void 0 === i && (i = -1), 0 == i) this.forbidIPRemove(t, e);
		else {
			var n = -1 == i ? "永久" : "",
				a = "";
			0 == n.length && (60 > i ? a = i + "分钟" : i >= 60 && 1440 > i ? a = i / 60 + "小时" : i >= 1440 && (a = i / 1440 +
				"天")), Alert.show("您确定要" + n + "封IP（角色：" + e + "）" + a + "吗？", "提示", "确定", this.sendforbid, this, [t, e, i, 0])
		}
	}, t.prototype.forbidIPRemove = function(t, e) {
		this.sendforbid(t, e, 0, 0)
	}, t
}();
__reflect(GmOperateManager.prototype, "GmOperateManager");
var KeyManager = function() {
	function t() {
		0 == Config.isMobile && this.init()
	}
	return t.prototype.init = function() {
		var t = new FunctionVO(this.onSkillHandelr, this);
		App.keyBoard.addKeyHandler(Keyboard.NUMBER_1, t), App.keyBoard.addKeyHandler(Keyboard.NUMBER_2, t), App.keyBoard.addKeyHandler(
				Keyboard.NUMBER_3, t), App.keyBoard.addKeyHandler(Keyboard.NUMBER_4, t), App.keyBoard.addKeyHandler(Keyboard.NUMBER_5,
				t), App.keyBoard.addKeyHandler(Keyboard.NUMBER_6, t), App.keyBoard.addKeyHandler(Keyboard.Q, t), App.keyBoard.addKeyHandler(
				Keyboard.W, t), App.keyBoard.addKeyHandler(Keyboard.E, t), App.keyBoard.addKeyHandler(Keyboard.R, t), App.keyBoard
			.addKeyHandler(Keyboard.T, t);
		var e = new FunctionVO(this.onSpaceHandler, this);
		App.keyBoard.addKeyHandler(Keyboard.SPACE, e);
		var i = new FunctionVO(this.onKeyOpenPanel, this);
		App.keyBoard.addKeyHandler(Keyboard.ESCAPE, i), App.keyBoard.addKeyHandler(Keyboard.B, i), App.keyBoard.addKeyHandler(
				Keyboard.D, i), App.keyBoard.addKeyHandler(Keyboard.X, i), App.keyBoard.addKeyHandler(Keyboard.I, i), App.keyBoard
			.addKeyHandler(Keyboard.O, i), App.keyBoard.addKeyHandler(Keyboard.J, i), App.keyBoard.addKeyHandler(Keyboard.HOME,
				i), App.keyBoard.addKeyHandler(Keyboard.C, i), App.keyBoard.addKeyHandler(Keyboard.F, i), App.keyBoard.addKeyHandler(
				Keyboard.G, i), App.keyBoard.addKeyHandler(Keyboard.M, i), App.keyBoard.addKeyHandler(Keyboard.N, i), App.keyBoard
			.addKeyHandler(Keyboard.K, i), App.keyBoard.addKeyHandler(Keyboard.T, i), App.keyBoard.addKeyHandler(Keyboard.P, i),
			App.keyBoard.addKeyHandler(Keyboard.U, i), App.keyBoard.addKeyHandler(Keyboard.L, i), App.keyBoard.addKeyHandler(
				Keyboard.K, i), App.keyBoard.addKeyHandler(Keyboard.V, i), App.keyBoard.addKeyHandler(Keyboard.S, i), App.keyBoard
			.addKeyHandler(Keyboard.Y, i), App.keyBoard.addKeyHandler(Keyboard.Z, i), App.keyBoard.addKeyHandler(Keyboard.H, i),
			App.keyBoard.addKeyHandler(Keyboard.F3, i);
		var n = new FunctionVO(this.onAutoFightHandler, this);
		App.keyBoard.addKeyHandler(Keyboard.A, n)
	}, t.prototype.onSpaceHandler = function(t) {}, t.prototype.onKeyOpenPanel = function(t) {
		return t.keyCode == Keyboard.O && t.ctrlKey && t.shiftKey && !Config.isRelease ? (App.dispatcher.dispatchEvent(
			EventType.SHOW_GM), void(Config.isDebug = !0)) : void 0
	}, t.prototype.onAutoFightHandler = function(t) {}, t.prototype.onSkillHandelr = function(t) {}, t
}();
__reflect(KeyManager.prototype, "KeyManager");
var ObjectCreateManager = function() {
	function t() {
		this._poolHash = new HashMap, this._thingNum = {}
	}
	return t.prototype.create = function(t, e, i) {
		for (var n = [], a = 3; a < arguments.length; a++) n[a - 3] = arguments[a];
		var o;
		if (i) {
			var r = this._poolHash.get(t);
			r || (r = new ObjectPool(t), this._poolHash.put(t, r)), o = r.getObject()
		} else o = new(t.bind.apply(t, [void 0].concat(n)));
		if (0 == Config.isRelease) {
			var s = e.toString() + " <-> " + egret.getQualifiedClassName(t),
				h = this._thingNum[s];
			h || (h = 0), h++, this._thingNum[s] = h
		}
		return o
	}, t.prototype.getUseCountForCls = function(t) {
		var e = this._poolHash.get(t);
		return e ? e.userCount : 0
	}, t.prototype.getCreateCountForCls = function(t) {
		var e = this._poolHash.get(t);
		return e ? e.numCount : 0
	}, t.prototype.getFromCount = function(t) {
		var e = this._thingNum[t];
		return e ? e : 0
	}, t.prototype.putIn = function(t) {
		var e = Object(t).constructor,
			i = this._poolHash.get(e);
		return i ? void i.push(t) : void GameLog.logError("未创建该类型的池！")
	}, t
}();
__reflect(ObjectCreateManager.prototype, "ObjectCreateManager");
var RedPointManager = function() {
	function t() {
		this._booleanObj = {}, this._queue = [], this._enterQueue = [], this.loadConfig(), this.init()
	}
	return t.prototype.loadConfig = function() {
		this._enterIDobj = {}, this._btnIDTofunctionIDsobj = {};
		for (var t, e = App.config.q_functionContainer.list, i = e.length, n = 0; i > n; n++) e[n].q_enter_button > 0 && (
			this._enterIDobj[e[n].q_function_id] = e[n].q_enter_button, t = this._btnIDTofunctionIDsobj[e[n].q_enter_button],
			null == t && (t = [], this._btnIDTofunctionIDsobj[e[n].q_enter_button] = t), t.push(e[n].q_function_id))
	}, t.prototype.init = function() {
		this._functionIDObj = {}, this._roleListObj = {};
		var t = this._functionIDObj,
			e = this._roleListObj;
		t[2] = this.getBagShowPoint, t[123] = this.getWanfaPoint, t[121] = this.getMaterialShowPoint, t[104] = this.getPagodaShowPoint,
			t[58] = this.getRoadOfCQShowPoint, t[3] = this.getSkillShowPoint, t[55] = this.getInsideShowPoint, t[148] = this.getWeaponShowPoint,
			t[147] = this.getJingmaiShowPoint, t[114] = this.getZhuxianShowPoint, e[3] = this.getSkillRoleShowPoint, e[55] =
			this.getInsideRoleShowPoint, e[148] = this.getWeaponSoulRoleShowPoint, e[147] = this.getJingmaiRoleShowPoint, t[
				134] = this.getPersonalBossShowPoint, t[90] = this.getWildBossShowPoint, t[135] = this.getSecretBossShowPoint, t[
				91] = this.getBossHomeShowPoint, t[167] = this.getEquipShowPoint, t[61] = this.getWarpetShowPoint, t[62] = this.getKunShowPoint,
			t[63] = this.getFuhuaShowPoint, t[157] = this.getXFShowPoint, t[158] = this.getHDShowPoint, t[159] = this.getZQShowPoint,
			t[160] = this.getHZShowPoint, t[161] = this.getYPShowPoint, e[157] = this.getXFRoleShowPoint, e[158] = this.getHDRoleShowPoint,
			e[159] = this.getZQRoleShowPoint, e[160] = this.getHZRoleShowPoint, e[161] = this.getYPRoleShowPoint, t[4] = this.getStrengShowPoint,
			t[78] = this.getRefineShowPoint, t[51] = this.getChanShiShowPoint, t[95] = this.getCastShowPoint, t[105] = this.getFushiShowPoint,
			e[4] = this.getStrengRoleShowPoint, e[78] = this.getRefineRoleShowPoint, e[51] = this.getChanShiRoleShowPoint, e[
				105] = this.getFuShiRoleShowPoint, e[95] = this.getCastRoleShowPoint, t[54] = this.getSurfaceShowPoint, e[54] =
			this.getSurfaceRoleShowPoint, t[1] = this.getCharShowPoint, t[115] = this.getMainCharShowPoint, t[26] = this.getZhuansShowPoint,
			t[132] = this.getGodEquipShowPoint, t[133] = this.getHotBloodShowPoint, t[152] = this.getWingGodShowPoint, t[153] =
			this.getWingGodHechengShowPoint, t[5] = this.getWingShowPoint, t[151] = this.getAchieveShowPoint, t[96] = this.getGuildEquipShowPoint,
			e[1] = this.getCharRoleShowPoint, e[26] = this.getZhuansRoleShowPoint, e[132] = this.getGodEquipRoleShowPoint, e[
				133] = this.getHotBloodRoleShowPoint, e[152] = this.getWingGodRoleShowPoint, e[5] = this.getWingShowRolePoint, e[
				96] = this.guildEquipRoleShowPoint, t[14] = this.getMailShowPoint, t[128] = this.getVipShowPoint, t[127] = this.getVipLibaoShowPoint,
			t[174] = this.getMeizhouLibaoShowPoint, t[175] = this.getMeiyueLibaoShowPoint, t[176] = this.getZhongshengLibaoShowPoint,
			t[129] = this.getTanbaoShowPoint, t[100] = this.getPrestigeShowPoint, t[101] = this.getKnightShowPoint, t[102] =
			this.getArtifactShowPoint, t[149] = this.getPictureShowPoint, t[49] = this.getBinghunShowPoint, e[49] = this.getBinghunRoleShowPoint,
			t[203] = this.getStateShowPoint, t[7] = this.getMallRedPoint, t[140] = this.getMoonCardShowPoint, t[41] = this.getMoonCardShowPoint,
			t[45] = this.getFirstRechargeShowPoint, t[130] = this.getFuliShowPoint, t[150] = this.getXsrwShowPoint, t[131] =
			this.getActvitiyRedPoint, t[65] = this.getActvitiyJJRedPoint, t[8] = this.getGuildShowPoint, t[162] = this.getJingangShowPoint,
			e[162] = this.getJingangRoleShowPoint, t[163] = this.getKuangfengShowPoint, e[163] = this.getKuangfengRoleShowPoint,
			t[164] = this.getHongmoShowPoint, e[164] = this.getHongmoRoleShowPoint, t[165] = this.getQidaoShowPoint, e[165] =
			this.getQidaoRoleShowPoint, t[166] = this.getHaijinShowPoint, e[166] = this.getHaijinRoleShowPoint, t[13] = this.getRankShowPoint,
			t[99] = this.getLunhuiShowPoint, e[99] = this.getLunhuiRoleShowPoint, t[170] = this.getDaoJingShowPoint, t[56] =
			this.getMountAdvanceRedPoint, e[56] = this.getMountAdvanceRoleShowPoint, t[202] = this.getFaZhenAdvanceRedPoint, e[
				202] = this.getFaZhenAdvanceRoleShowPoint, t[201] = this.getTianBingAdvanceRedPoint, e[201] = this.getTianBingAdvanceRoleShowPoint,
			this.addEvent()
	}, t.prototype.getShowPoint = function(t) {
		if (!App.global.characterData) return !1;
		if (!App.global.funcOpen.isFunctionOpen(t)) return !1;
		if (null == this._booleanObj[t]) {
			var e = this._functionIDObj[t];
			if (null == e) return !1;
			this._booleanObj[t] = e()
		}
		return this._booleanObj[t]
	}, t.prototype.getEnterID = function(t) {
		return this._enterIDobj[t]
	}, t.prototype.getEnterButtonShowPoint = function(t) {
		var e = this._btnIDTofunctionIDsobj[t];
		if (e)
			for (var i = void 0, n = 0; n < e.length; n++)
				if (i = this.getShowPoint(e[n])) return !0;
		return !1
	}, t.prototype.getRoleListShowPoint = function(t, e) {
		var i = this._roleListObj[e];
		return null == i ? !1 : i(t)
	}, t.prototype.redPointDispatchEvent = function(t) {
		this._booleanObj[t] = null, -1 == this._queue.indexOf(t) && this._queue.push(t);
		var e = this.getEnterID(t); - 1 == this._enterQueue.indexOf(e) && this._enterQueue.push(e), App.timer.doFrameLoop(
			this, 5, this.onCallLater)
	}, t.prototype.onCallLater = function() {
		if (this._queue.length > 0 && App.dispatcher.dispatchEvent(EventType.SHOW_REDPOINT, this._queue.shift()), this._enterQueue
			.length > 0) {
			var t = this._enterQueue.shift(),
				e = this.getEnterButtonShowPoint(t);
			16 == t && (e = App.data.activityCenter.firstFlushRed()), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_RED_POINT,
				t, e)
		}
		0 == this._queue.length && 0 == this._enterQueue.length && App.timer.clearTimer(this.onCallLater, this)
	}, t.prototype.addEvent = function() {
		App.dispatcher.addEventListener(MoneyEvent.CHANGE, this.onMoneyChange, this), App.dispatcher.addEventListener(
				ZoneEvent.ZONE_LIST_UPDATE, this.onZoneUpdate, this), App.dispatcher.addEventListener(ZoneEvent.EXIT_ZONE, this.onZoneExit,
				this), App.dispatcher.addEventListener(ItemEvent.UPDATE, this.onItemUpdate, this), App.dispatcher.addEventListener(
				ItemEvent.ADD, this.onItemChange, this), App.dispatcher.addEventListener(ItemEvent.CHANGE, this.onItemChange,
				this), App.dispatcher.addEventListener(ItemEvent.REMOVE, this.onItemChange, this), App.dispatcher.addEventListener(
				VipEvent.VIP_INFO_REFRESH, this.onVipChange, this), App.dispatcher.addEventListener(VipEvent.VIP_LEVEL_UP, this.onVipChange,
				this), App.dispatcher.addEventListener(VipEvent.VIP_PUTONGLIBAO_CHANGE, this.onVipChange, this), App.dispatcher.addEventListener(
				VipEvent.VIP_BUYLIBAO_CHANGE, this.onVipLibaoChange, this), App.dispatcher.addEventListener(ExploitEvent.REFRESH_XUNZHANG_ID,
				this.onExploitUpdate, this), App.dispatcher.addEventListener(ExploitEvent.REFRESH_EXPLOIT_NUM, this.onExploitUpdate,
				this), App.dispatcher.addEventListener(ExploitEvent.REFRESH_EXPLOIT, this.onExploitUpdate, this), App.dispatcher.addEventListener(
				ExploitEvent.SUCCESS_POSITION_UP, this.onExploitUpdate, this), App.dispatcher.addEventListener(ExploitEvent.REFRESH_TASK,
				this.onExploitUpdate, this), App.dispatcher.addEventListener(ExploitEvent.REFRESH_PRESTIGE, this.onPrestigeUpdate,
				this), App.dispatcher.addEventListener(ExploitEvent.LEVEL_UP_PRESTIGE, this.onPrestigeUpdate, this), App.dispatcher
			.addEventListener(SkillEvent.REFRESH, this.onSkillUpdate, this), App.dispatcher.addEventListener(SkillEvent.CHANGE,
				this.onSkillUpdate, this), App.dispatcher.addEventListener(SkillEvent.ADD, this.onSkillUpdate, this), App.dispatcher
			.addEventListener(AchieveCenter.REFRESH, this.onAchieveUpdate, this), App.dispatcher.addEventListener(
				AchieveCenter.UPDATE, this.onAchieveUpdate, this), App.dispatcher.addEventListener(PictureBookCenter.UPDATE, this
				.onPictureUpdate, this), App.dispatcher.addEventListener(PictureBookCenter.REFRESH, this.onPictureUpdate, this),
			App.dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.onActivityUpdate, this), App.dispatcher.addEventListener(
				ActivityEvent.REFRESH_BRIEF, this.onActivityUpdate, this), App.dispatcher.addEventListener(EventType.MY_METEM_UP_SUSS,
				this.meteSuss, this), App.dispatcher.addEventListener(SkillEvent.MERIDIAN, this.meridian, this), App.dispatcher.addEventListener(
				EnumEvent.EVENT_TREASURE, this.treasureClick, this), App.dispatcher.addEventListener(ItemEvent.UPDATE_SHENMI_SHOP,
				this.shenmishop, this), App.dispatcher.addEventListener(ItemEvent.TANBAO_UPDATE, this.onAdd, this), App.dispatcher
			.addEventListener(ItemEvent.TANBAO_REMOVE, this.onAdd, this), App.dispatcher.addEventListener(EventWarPetType.WarPetStags,
				this.fuhua, this), App.dispatcher.addEventListener(WarpetEvent.WARPET_UPJIEREFRESH, this.onWarpet, this), App.dispatcher
			.addEventListener(WarpetEvent.KUN_REWARD_REFRESH, this.onWarpet, this), App.dispatcher.addEventListener(
				PlayerAttributeEvent.LUNHUISTARFALSERESULT, this.showfailView, this), App.dispatcher.addEventListener(
				PlayerAttributeEvent.LUNHUISTARRESULT, this.showfailView, this), App.dispatcher.addEventListener(
				PlayerAttributeEvent.LUNHUIZHUHUNRESULT, this.showfailView, this), App.dispatcher.addEventListener(EventType.RANK_WORSHIP,
				this.worship, this), App.dispatcher.addEventListener(AdvanceEvent.UPDATE_ADVANCEINFO, this.onUpdateAdvance, this),
			App.dispatcher.addEventListener(AdvanceEvent.ADVANCE_EQUIP_REFRESH, this.advanceEquip, this)
	}, t.prototype.onUpdateAdvance = function(t, e) {
		switch (void 0 === e && (e = null), t) {
			case AdvanceType.guangyi:
				this.redPointDispatchEvent(5);
				break;
			case AdvanceType.zuoqi:
				this.redPointDispatchEvent(56);
				break;
			case AdvanceType.tianbing:
				this.redPointDispatchEvent(201);
				break;
			case AdvanceType.fazhen:
				this.redPointDispatchEvent(202);
				break;
			case AdvanceType.binghun:
				this.redPointDispatchEvent(49)
		}
	}, t.prototype.advanceEquip = function() {
		this.redPointDispatchEvent(56), this.redPointDispatchEvent(202), this.redPointDispatchEvent(201)
	}, t.prototype.worship = function() {
		this.redPointDispatchEvent(13)
	}, t.prototype.showfailView = function() {
		this.redPointDispatchEvent(99), this.redPointDispatchEvent(1), this.redPointDispatchEvent(115)
	}, t.prototype.onWarpet = function() {
		this.redPointDispatchEvent(62)
	}, t.prototype.onForgeRedUpate = function() {
		this.redPointDispatchEvent(4), this.redPointDispatchEvent(51), this.redPointDispatchEvent(95), this.redPointDispatchEvent(
			78), this.redPointDispatchEvent(105)
	}, t.prototype.fuhua = function(t) {
		this.redPointDispatchEvent(63)
	}, t.prototype.onAdd = function(t) {
		this.redPointDispatchEvent(129)
	}, t.prototype.shenmishop = function() {
		this.redPointDispatchEvent(7)
	}, t.prototype.treasureClick = function() {
		this.redPointDispatchEvent(49)
	}, t.prototype.meridian = function(t) {
		this.redPointDispatchEvent(147)
	}, t.prototype.meteSuss = function(t) {
		this.redPointDispatchEvent(132), this.redPointDispatchEvent(133), this.redPointDispatchEvent(1)
	}, t.prototype.onSkillUpdate = function(t) {
		this.redPointDispatchEvent(3)
	}, t.prototype.onVipChange = function(t) {
		this.redPointDispatchEvent(128), this.redPointDispatchEvent(127), App.data.activityCenter.checkJiezhi()
	}, t.prototype.onVipLibaoChange = function() {
		this.redPointDispatchEvent(127)
	}, t.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++)
			if (i = t[a], null != i) {
				switch (i.getDataBean().q_type) {
					case 11:
						this.redPointDispatchEvent(132), this.redPointDispatchEvent(133), this.redPointDispatchEvent(147), this.redPointDispatchEvent(
								153), this.redPointDispatchEvent(49), this.redPointDispatchEvent(5), this.redPointDispatchEvent(51), this.redPointDispatchEvent(
								152), this.redPointDispatchEvent(166), this.redPointDispatchEvent(157), this.redPointDispatchEvent(158), this
							.redPointDispatchEvent(159), this.redPointDispatchEvent(160), this.redPointDispatchEvent(161), this.redPointDispatchEvent(
								162), this.redPointDispatchEvent(163), this.redPointDispatchEvent(164), this.redPointDispatchEvent(165), this
							.redPointDispatchEvent(166), this.redPointDispatchEvent(99), this.redPointDispatchEvent(56), this.redPointDispatchEvent(
								202), this.redPointDispatchEvent(201);
						break;
					case 51:
						this.redPointDispatchEvent(56);
						break;
					case 53:
						this.redPointDispatchEvent(202);
						break;
					case 52:
						this.redPointDispatchEvent(201);
						break;
					case 14:
						this.redPointDispatchEvent(54);
						break;
					case 35:
						this.redPointDispatchEvent(105);
						break;
					case 34:
						this.redPointDispatchEvent(1), this.redPointDispatchEvent(115);
						break;
					case 1:
						this.redPointDispatchEvent(1), this.redPointDispatchEvent(96);
						break;
					case 36:
						this.redPointDispatchEvent(1);
						break;
					case 39:
						this.redPointDispatchEvent(152), this.redPointDispatchEvent(5);
						break;
					case 7:
						this.redPointDispatchEvent(26), this.redPointDispatchEvent(170);
						break;
					case 100:
						this.redPointDispatchEvent(63);
						break;
					case 8:
						this.redPointDispatchEvent(129), this.redPointDispatchEvent(102);
						break;
					case 41:
						this.redPointDispatchEvent(149);
						break;
					case 40:
						this.redPointDispatchEvent(148);
						break;
					case 38:
						this.redPointDispatchEvent(102);
						break;
					case 47:
						this.redPointDispatchEvent(166);
						break;
					case 46:
						this.redPointDispatchEvent(165);
						break;
					case 45:
						this.redPointDispatchEvent(164);
						break;
					case 44:
						this.redPointDispatchEvent(163);
						break;
					case 43:
						this.redPointDispatchEvent(162);
						break;
					case 101:
						this.redPointDispatchEvent(62);
						break;
					case 30:
						this.redPointDispatchEvent(99);
						break;
					case 666:
						this.redPointDispatchEvent(61)
				}
				switch (i.itemId) {
					case forgeNeedItemId.StrengthId:
						this.redPointDispatchEvent(4);
						break;
					case forgeNeedItemId.castId:
						this.redPointDispatchEvent(95);
						break;
					case forgeNeedItemId.RefineId:
						this.redPointDispatchEvent(78);
						break;
					case EnumItemId.FUSHI:
						this.redPointDispatchEvent(105);
						break;
					case EnumItemId.WARPET_DETAIL_BALL_SMALL:
					case EnumItemId.WARPET_DETAIL_BALL_BIG:
						this.redPointDispatchEvent(61);
						break;
					default:
						i.itemId >= forgeNeedItemId.chuanshiStart && i.itemId <= forgeNeedItemId.chuanshiEnd && this.redPointDispatchEvent(
							51)
				}
			} this.redPointDispatchEvent(115), this.redPointDispatchEvent(2)
	}, t.prototype.onItemUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(2), this.redPointDispatchEvent(4), this.redPointDispatchEvent(51), this.redPointDispatchEvent(
			5), this.redPointDispatchEvent(1), this.redPointDispatchEvent(26), this.redPointDispatchEvent(132), this.redPointDispatchEvent(
			133), this.redPointDispatchEvent(149), this.redPointDispatchEvent(105), this.redPointDispatchEvent(103), this.redPointDispatchEvent(
			129), this.redPointDispatchEvent(162), this.redPointDispatchEvent(163), this.redPointDispatchEvent(164), this.redPointDispatchEvent(
			165), this.redPointDispatchEvent(166), this.onForgeRedUpate()
	}, t.prototype.onMoneyChange = function(t, e) {
		void 0 === e && (e = 0), t == EnumMoney.JIN_BI ? (this.redPointDispatchEvent(3), this.redPointDispatchEvent(55)) :
			t == EnumMoney.Prestige ? this.redPointDispatchEvent(100) : t == EnumMoney.YUAN_BAO ? this.redPointDispatchEvent(
				127) : t == EnumMoney.ZHUAN_SHENG ? this.redPointDispatchEvent(26) : t == EnumMoney.PICTURE && this.redPointDispatchEvent(
				149), this.redPointDispatchEvent(55)
	}, t.prototype.onZoneExit = function(t, e) {
		this.onZoneUpdate(e)
	}, t.prototype.onZoneUpdate = function(t) {
		switch (t) {
			case EnumZoneType.PAGODA:
				this.redPointDispatchEvent(104);
				break;
			case EnumZoneType.EXP:
			case EnumZoneType.WING:
			case EnumZoneType.ZHU_ZAO:
			case EnumZoneType.LONG_HUN:
				this.redPointDispatchEvent(121);
				break;
			case EnumZoneType.PERSONAL_BOSS:
				this.redPointDispatchEvent(134);
				break;
			case EnumZoneType.WILD_BOSS:
				this.redPointDispatchEvent(90);
				break;
			case EnumZoneType.SECRET:
				this.redPointDispatchEvent(135);
				break;
			case EnumZoneType.BOSS_HOME:
				this.redPointDispatchEvent(91);
				break;
			case EnumZoneType.GUILD_BOSS:
				this.redPointDispatchEvent(8);
				break;
			case EnumZoneType.ROAD_OF_CQ:
				this.redPointDispatchEvent(58)
		}
	}, t.prototype.onExploitUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(101)
	}, t.prototype.onPrestigeUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(100)
	}, t.prototype.onAchieveUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(151)
	}, t.prototype.onPictureUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(149)
	}, t.prototype.onActivityUpdate = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.redPointDispatchEvent(131), this.redPointDispatchEvent(65), this.redPointDispatchEvent(130)
	}, t.prototype.getXsrwShowPoint = function() {
		return App.data.getXSRWCenter().showRed()
	}, t.prototype.getVipShowPoint = function() {
		return App.data.getVipCenter().showVipRedDot()
	}, t.prototype.getVipLibaoShowPoint = function() {
		return App.data.getVipCenter().showVipLibaoRedDot()
	}, t.prototype.getMeizhouLibaoShowPoint = function() {
		return MeizhouTehuiView.MEIZHOUREDPOINT
	}, t.prototype.getMeiyueLibaoShowPoint = function() {
		return MeiyueTehuiView.MEIYUEREDPOINT
	}, t.prototype.getZhongshengLibaoShowPoint = function() {
		return LibaoView.ZHONGSHENGREDPOINT
	}, t.prototype.getTanbaoShowPoint = function() {
		return App.data.tanbaoCenter.showRedDot()
	}, t.prototype.getBagShowPoint = function() {
		return App.data.bagItemDataCenter.getShowPoint()
	}, t.prototype.getWanfaPoint = function() {
		return App.data.getWangZheZBCenter().showRed()
	}, t.prototype.getPagodaShowPoint = function() {
		return App.data.zoneCenter.pagodaCenter.getShowPoint()
	}, t.prototype.getMaterialShowPoint = function() {
		return App.data.zoneCenter.materialCenter.getShowPoint()
	}, t.prototype.getRoadOfCQShowPoint = function() {
		return App.data.zoneCenter.roadOfCQCenter.getShowPoint()
	}, t.prototype.getSkillShowPoint = function() {
		return App.data.skillCenter.getShowPoint()
	}, t.prototype.getInsideShowPoint = function() {
		return App.data.skillCenter.insidePower.getShowPoint()
	}, t.prototype.getZhuxianShowPoint = function() {
		return App.data.characterCenter.hejiEquipCenter.showHejiRed()
	}, t.prototype.getWeaponShowPoint = function() {
		return App.data.weaponSoulCenter().showRed()
	}, t.prototype.getJingmaiShowPoint = function() {
		return App.data.skillCenter.getMeridianRedpoint()
	}, t.prototype.getSkillRoleShowPoint = function(t) {
		return App.data.skillCenter.getRoleShowPoint(t)
	}, t.prototype.getInsideRoleShowPoint = function(t) {
		return App.data.skillCenter.insidePower.isCanLvUp(t)
	}, t.prototype.getWeaponSoulRoleShowPoint = function(t) {
		return App.data.weaponSoulCenter().showRoleRed(t)
	}, t.prototype.getJingmaiRoleShowPoint = function(t) {
		return App.data.skillCenter.getMeridianroleRedPoint(t)
	}, t.prototype.getPersonalBossShowPoint = function() {
		return App.data.zoneCenter.personalBossCenter.getPersonalShowPoint()
	}, t.prototype.getWildBossShowPoint = function() {
		return App.data.zoneCenter.personalBossCenter.getWildShowPoint()
	}, t.prototype.getSecretBossShowPoint = function() {
		return App.data.zoneCenter.personalBossCenter.getSecretShowPoint()
	}, t.prototype.getEquipShowPoint = function() {
		return App.data.zoneCenter.personalBossCenter.getEquipShowPoint()
	}, t.prototype.getBossHomeShowPoint = function() {
		return App.data.zoneCenter.bossHomeCenter.getShowPoint()
	}, t.prototype.getCharShowPoint = function() {
		return App.data.characterCenter.showRoleRed()
	}, t.prototype.getMainCharShowPoint = function() {
		return App.data.characterCenter.showMainRoleRed()
	}, t.prototype.getZhuansShowPoint = function() {
		return App.data.characterCenter.showZhuansRedDot()
	}, t.prototype.getDaoJingShowPoint = function() {
		return App.data.characterCenter.showDaoJingRedDot()
	}, t.prototype.getGodEquipShowPoint = function() {
		return App.data.godEquipCenter.showGodEquipRed()
	}, t.prototype.getHotBloodShowPoint = function() {
		return App.data.characterCenter.showHotBloodRed()
	}, t.prototype.getGuildEquipShowPoint = function() {
		return App.data.characterCenter.showGuildequipRed()
	}, t.prototype.getWingGodShowPoint = function() {
		return App.data.wingGodCenter().getzhuangbRedPoint()
	}, t.prototype.getWingGodHechengShowPoint = function() {
		return App.data.wingGodCenter().gethechengRedPoint()
	}, t.prototype.getWingShowPoint = function() {
		return App.data.wingGlobalCenter.getWingPoint() || App.data.wingGodCenter().getzhuangbRedPoint() || App.data.wingGodCenter()
			.gethechengRedPoint()
	}, t.prototype.getWingShowRolePoint = function(t) {
		return App.data.wingGlobalCenter.getWingRolePoint(t)
	}, t.prototype.guildEquipRoleShowPoint = function(t) {
		return App.data.characterCenter.guildEquipRedPoint(t, !0)
	}, t.prototype.getWingGodRoleShowPoint = function(t) {
		return App.data.wingGodCenter().getzhuangbRoleRedPoint(t)
	}, t.prototype.getStateShowPoint = function() {
		return App.data.characterCenter.GetStateRedPoint()
	}, t.prototype.getCharRoleShowPoint = function(t) {
		return App.data.characterCenter.showredpos(App.global.roles.getRoleInfoByIndex(t), !1)
	}, t.prototype.getZhuansRoleShowPoint = function(t) {
		return App.data.characterCenter.showZhuansRedDot()
	}, t.prototype.getGodEquipRoleShowPoint = function(t) {
		return App.data.godEquipCenter.godRedDot(App.global.roles.getRoleInfoByIndex(t), !1)
	}, t.prototype.getHotBloodRoleShowPoint = function(t) {
		return App.data.characterCenter.hotRedDot(App.global.roles.getRoleInfoByIndex(t), !1)
	}, t.prototype.getHeijiRedPonit = function() {
		return App.data.characterCenter.hejiEquipCenter.showHejiRed()
	}, t.prototype.getAchieveShowPoint = function() {
		return App.data.achieveCenter.isOk()
	}, t.prototype.getMailShowPoint = function() {
		var t = App.data.mailDataCenter.getMailRedDot();
		return t
	}, t.prototype.getKnightShowPoint = function() {
		return App.data.exploitCenter.getShowPoint()
	}, t.prototype.getPrestigeShowPoint = function() {
		return App.data.exploitCenter.prestigetCenter.getShowPoint()
	}, t.prototype.getArtifactShowPoint = function() {
		return App.data.getArtifactDataCenter().getShowPoint()
	}, t.prototype.getPictureShowPoint = function() {
		return App.data.pictureCenter().showPoint()
	}, t.prototype.getBinghunShowPoint = function() {
		return App.data.bingHunGlobalCenter.getBingHunPoint()
	}, t.prototype.getBinghunRoleShowPoint = function(t) {
		return App.data.bingHunGlobalCenter.getBingHunRolePoint(t)
	}, t.prototype.getMountAdvanceRedPoint = function() {
		return App.data.mountGlobalCenter.getMountRedPoint()
	}, t.prototype.getMountAdvanceRoleShowPoint = function(t) {
		return App.data.mountGlobalCenter.getMountRolePoint(t)
	}, t.prototype.getFaZhenAdvanceRedPoint = function() {
		return App.data.faZhenGlobalCenter.getFaZhenRedPoint()
	}, t.prototype.getFaZhenAdvanceRoleShowPoint = function(t) {
		return App.data.faZhenGlobalCenter.getFaZhenRolePoint(t)
	}, t.prototype.getTianBingAdvanceRedPoint = function() {
		return App.data.tianBingGlobalCenter.getTianBingRedPoint()
	}, t.prototype.getTianBingAdvanceRoleShowPoint = function(t) {
		return App.data.tianBingGlobalCenter.getTianBingRolePoint(t)
	}, t.prototype.getMallRedPoint = function() {
		return App.data.shenmiShopCenter.getShowRedPoint()
	}, t.prototype.getWarpetShowPoint = function() {
		return App.data.warpetCenter.showRed()
	}, t.prototype.getFuhuaShowPoint = function() {
		return App.data.warpetCenter.fuhuared()
	}, t.prototype.getKunShowPoint = function() {
		return App.data.warpetCenter.kunCenter.getShowPoint()
	}, t.prototype.getXFShowPoint = function() {
		return App.data.wearEquipCenter.showShenluTypeRed(ShenLuType.XUFU)
	}, t.prototype.getHDShowPoint = function() {
		return App.data.wearEquipCenter.showShenluTypeRed(ShenLuType.HUDUN)
	}, t.prototype.getZQShowPoint = function() {
		return App.data.wearEquipCenter.showShenluTypeRed(ShenLuType.ZHANQI)
	}, t.prototype.getHZShowPoint = function() {
		return App.data.wearEquipCenter.showShenluTypeRed(ShenLuType.HUNZHU)
	}, t.prototype.getYPShowPoint = function() {
		return App.data.wearEquipCenter.showShenluTypeRed(ShenLuType.YUPEI)
	}, t.prototype.getXFRoleShowPoint = function(t) {
		return App.data.wearEquipCenter.showShenluRoleRed(t, ShenLuType.XUFU)
	}, t.prototype.getHDRoleShowPoint = function(t) {
		return App.data.wearEquipCenter.showShenluRoleRed(t, ShenLuType.HUDUN)
	}, t.prototype.getZQRoleShowPoint = function(t) {
		return App.data.wearEquipCenter.showShenluRoleRed(t, ShenLuType.ZHANQI)
	}, t.prototype.getHZRoleShowPoint = function(t) {
		return App.data.wearEquipCenter.showShenluRoleRed(t, ShenLuType.HUNZHU)
	}, t.prototype.getYPRoleShowPoint = function(t) {
		return App.data.wearEquipCenter.showShenluRoleRed(t, ShenLuType.YUPEI)
	}, t.prototype.getStrengShowPoint = function() {
		return App.data.forgeCenter.canForge(ForgeType.Strength)
	}, t.prototype.getRefineShowPoint = function() {
		return App.data.forgeCenter.canForge(ForgeType.Refine)
	}, t.prototype.getCastShowPoint = function() {
		return App.data.forgeCenter.canForge(ForgeType.Cast)
	}, t.prototype.getChanShiShowPoint = function() {
		return App.data.forgeCenter.canForge(ForgeType.CHUANSHI)
	}, t.prototype.getFushiShowPoint = function() {
		return App.data.forgeCenter.showRedPoint()
	}, t.prototype.getStrengRoleShowPoint = function(t) {
		return App.data.forgeCenter.canForgeRole(t, ForgeType.Strength)
	}, t.prototype.getRefineRoleShowPoint = function(t) {
		return App.data.forgeCenter.canForgeRole(t, ForgeType.Refine)
	}, t.prototype.getCastRoleShowPoint = function(t) {
		return App.data.forgeCenter.canForgeRole(t, ForgeType.Cast)
	}, t.prototype.getChanShiRoleShowPoint = function(t) {
		return App.data.forgeCenter.canForgeRole(t, ForgeType.CHUANSHI)
	}, t.prototype.getFuShiRoleShowPoint = function(t) {
		return App.data.forgeCenter.showRedPoint(t)
	}, t.prototype.getSurfaceShowPoint = function() {
		return App.data.surfaceCenter.showSurfaceRed()
	}, t.prototype.getSurfaceRoleShowPoint = function(t) {
		var e = App.global.roles.roleList[t - 1];
		return e ? App.data.surfaceCenter.roleShowRed(e) : !1
	}, t.prototype.getJingangShowPoint = function() {
		return App.data.characterCenter.showChuanqiequipRed(43)
	}, t.prototype.getKuangfengShowPoint = function() {
		return App.data.characterCenter.showChuanqiequipRed(44)
	}, t.prototype.getHongmoShowPoint = function() {
		return App.data.characterCenter.showChuanqiequipRed(45)
	}, t.prototype.getQidaoShowPoint = function() {
		return App.data.characterCenter.showChuanqiequipRed(46)
	}, t.prototype.getHaijinShowPoint = function() {
		return App.data.characterCenter.showChuanqiequipRed(47)
	}, t.prototype.getRankShowPoint = function() {
		return App.data.characterCenter.getRankPoint()
	}, t.prototype.getJingangRoleShowPoint = function(t) {
		return App.data.characterCenter.ChuanqiEquipRedPoint(t, 43, !0)
	}, t.prototype.getKuangfengRoleShowPoint = function(t) {
		return App.data.characterCenter.ChuanqiEquipRedPoint(t, 44, !0)
	}, t.prototype.getHongmoRoleShowPoint = function(t) {
		return App.data.characterCenter.ChuanqiEquipRedPoint(t, 45, !0)
	}, t.prototype.getQidaoRoleShowPoint = function(t) {
		return App.data.characterCenter.ChuanqiEquipRedPoint(t, 46, !0)
	}, t.prototype.getHaijinRoleShowPoint = function(t) {
		return App.data.characterCenter.ChuanqiEquipRedPoint(t, 47, !0)
	}, t.prototype.getLunhuiShowPoint = function() {
		return App.data.characterCenter.showLunhuiequipRed()
	}, t.prototype.getLunhuiRoleShowPoint = function(t) {
		return App.data.characterCenter.lunhuiEquipRedPoint(t)
	}, t.prototype.getGuildShowPoint = function() {
		return App.data.guildCenter.showRed()
	}, t.prototype.getMoonCardShowPoint = function() {
		return App.data.moonCardCenter.flag
	}, t.prototype.getFirstRechargeShowPoint = function() {
		return App.data.getVipCenter().getFirstRechangeRedDot()
	}, t.prototype.getFuliShowPoint = function() {
		return App.data.activityCenter.getFuliRedPoint()
	}, t.prototype.getTeQuanKaShowPoint = function() {
		return App.data.moonCardCenter.showTeQuanKaRedPoint()
	}, t.prototype.getActvitiyRedPoint = function() {
		return App.data.activityCenter.isShowMainUIRed()
	}, t.prototype.getActvitiyJJRedPoint = function() {
		return App.data.activityCenter.isShowQIRIRed()
	}, t
}();
__reflect(RedPointManager.prototype, "RedPointManager");
var RoleListManager = function() {
	function t() {
		this._roleList = [], this.init()
	}
	return t.prototype.init = function() {
		Config.socket.registerCommand(5133, new FunctionVO(this.onS2C_MyPlayerInfoMessageHandler, this)), Config.socket.registerCommand(
			5414, new FunctionVO(this.onS2C_CreateFollowerMessage, this)), this._partnerIndexHash = new HashMap
	}, t.prototype.onS2C_MyPlayerInfoMessageHandler = function(t) {
		if (t.followerList && t.followerList.length > 0) {
			for (var e = 0; e < t.followerList.length; e++) this.updateOtherRoleData(t.followerList[e]);
			App.dispatcher.dispatchEvent(EventType.ROLE_LIST_CHANGE, -1)
		}
	}, t.prototype.onS2C_CreateFollowerMessage = function(t) {
		t.followerInfo && this.updateOtherRoleData(t.followerInfo);
		var e = t.followerInfo ? t.followerInfo.index : -1;
		App.dispatcher.dispatchEvent(EventType.ROLE_LIST_CHANGE, e), 2 == e ? (App.dispatcher.dispatchEvent(
			EnterButtonEvent.REFRESH, 101, !1), App.dispatcher.dispatchOnce(EnterButtonEvent.THIRDBTN)) : 3 == e && (App.dispatcher
			.dispatchEvent(EnterButtonEvent.REFRESH, 102, !1), App.dispatcher.dispatchOnce(EnterButtonEvent.THIRDREFRESH))
	}, t.prototype.updateOtherRoleData = function(t) {
		var e;
		e = this._partnerIndexHash.has(t.index) ? this._partnerIndexHash.get(t.index) : this.makeRoleInfoByIndex(t.index),
			e.changeOtherRoleData(t)
	}, t.prototype.makeRoleInfoByIndex = function(t) {
		var e = this._partnerIndexHash.get(t);
		return e || (e = new CharcterPartnerRoleData, this._partnerIndexHash.put(t, e)), e
	}, t.prototype.getRoleInfoByIndex = function(t) {
		return 1 >= t ? App.global.characterData : this._partnerIndexHash ? this._partnerIndexHash.get(t) : null
	}, t.prototype.getRoleInfoById = function(t) {
		for (var e, i = this.roleList.length, n = 0; i > n; n++)
			if (e = this.roleList[n], e.personId == t) return e;
		return null
	}, Object.defineProperty(t.prototype, "roleList", {
		get: function() {
			return this._roleList.length != this._partnerIndexHash.length + 1 && (this._roleList = [App.global.characterData]
				.concat(this._partnerIndexHash.values)), this._roleList
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.getRoleDataByJob = function(t) {
		for (var e = this.roleList, i = 0; i < e.length; i++) {
			var n = t == e[i].job;
			if (n) return e[i]
		}
		return null
	}, t
}();
__reflect(RoleListManager.prototype, "RoleListManager");
var DispatcherRegister = function() {
	function t() {
		this._mouseEventHash = new HashMap, this._moduleEventHash = new HashObject
	}
	return t.prototype.addEventListener = function(t, e, i, n) {
		if (n) {
			var a = this._mouseEventHash.get(n),
				o = void 0;
			if (a || (a = new HashObject, this._mouseEventHash.put(n, a)), a.get(t)) {
				if (!this.hasEventListener(t, e, i, n)) {
					var r = a.get(t);
					o = new FunctionVO(e, i), r.push(o)
				}
			} else o = new FunctionVO(e, i), a.put(t, [o]), n.addEventListener(t, this.eventHandler, this)
		} else {
			var s = this._moduleEventHash.get(t);
			if (s || (s = [], this._moduleEventHash.put(t, s)), !this.hasEventListener(t, e, i)) {
				var h = new FunctionVO(e, i);
				s.push(h), App.dispatcher.addEventListener(t, e, i)
			}
		}
	}, t.prototype.dispatchEvent = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		var n = this._moduleEventHash.get(t);
		n && App.dispatcher.dispatchEvent(t, e)
	}, t.prototype.hasEventListener = function(t, e, i, n) {
		if (n) {
			var a = this._mouseEventHash.get(n);
			if (!a) return !1;
			var o = a.get(t);
			if (!o || 0 == o.length) return !1;
			for (var r = void 0, s = void 0, h = 0; h < o.length; h++)
				if (r = o[h].fun, s = o[h].thisObject, r == e && s == i) return !0;
			return !1
		}
		var l = this._moduleEventHash.get(t);
		if (void 0 == !l || 0 == l.length) return !1;
		if (!e) return !0;
		for (var p = l.length, c = 0; p > c; c++)
			if (l[c].fun == e && l[c].thisObject == i) return !0;
		return !1
	}, t.prototype.removeEventListener = function(t, e, i, n) {
		if (n) {
			if (this.hasEventListener(t, e, i, n)) {
				for (var a = this._mouseEventHash.get(n), o = a.get(t), r = 0; r < o.length; r++)
					if (o[r].fun == e && o[r].thisObject == i) {
						o.splice(r, 1);
						break
					} 0 == o.length && (a.del(t), n.removeEventListener(t, this.eventHandler, this)), 0 == a.length && this._mouseEventHash
					.del(n)
			}
		} else {
			var s = this._moduleEventHash.get(t);
			if (s)
				for (var h = s.concat(), l = void 0, p = void 0, c = 0; c < h.length; c++)
					if (l = h[c].fun, p = h[c].thisObject, l == e && i == p) {
						s.splice(c, 1), App.dispatcher.removeEventListener(t, l, p), 0 == s.length && this._moduleEventHash.del(t);
						break
					}
		}
	}, t.prototype.eventHandler = function(t) {
		var e = t.currentTarget,
			i = this._mouseEventHash.get(e);
		if (i) {
			var n = i.get(t.type);
			if (!n || 0 == n.length) return;
			for (var a = void 0, o = void 0, r = void 0, s = 0; s < n.length; s++) a = n[s], o = a.fun, r = a.thisObject,
				FunctionApply.doExecute(o, r, [t])
		}
	}, t.prototype.removeAllListeners = function() {
		var t = 0;
		this._moduleEventHash.foEach(function(e, i) {
			for (t = 0; t < i.length; t++) App.dispatcher.removeEventListener(e, i[t].fun, i[t].thisObject)
		}, this), this._moduleEventHash.clear();
		for (var e, i, n = this._mouseEventHash.keys, a = n.length, o = 0; a > o; o++)
			if (i = n[o], e = this._mouseEventHash.get(i), i && e) {
				var r = e.$_getValueMap();
				for (var s in r) i.removeEventListener(s, this.eventHandler, this)
			} this._mouseEventHash.clear()
	}, t.prototype.dispose = function() {
		this.removeAllListeners(), this._mouseEventHash.dispose(), this._moduleEventHash.dispose(), this._mouseEventHash =
			null, this._moduleEventHash = null
	}, t
}();
__reflect(DispatcherRegister.prototype, "DispatcherRegister");
var EventManager = function() {
	function t() {
		this._eventHash = {}
	}
	return t.prototype.dispatchEvent = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		var n = this._eventHash[t];
		if (n) {
			var a = n.concat(),
				o = a.length,
				r = void 0,
				s = void 0;
			if (o > 0)
				for (var h = 0; o > h; h++) r = a[h].listener, s = a[h].thisArg, r && FunctionApply.doExecute(r, s, e)
		}
	}, t.prototype.dispatchOnce = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		var n = this._eventHash[t];
		if (n) {
			var a = n.concat(),
				o = a.length,
				r = void 0,
				s = void 0;
			if (o > 0)
				for (var h = 0; o > h; h++) r = a[h].listener, s = a[h].thisArg, r && (FunctionApply.doExecute(r, s, e), this.removeEventListener(
					t, r, s))
		}
	}, t.prototype.hasEventListener = function(t, e, i) {
		var n = !1,
			a = this._eventHash[t];
		if (a && 0 != a.length)
			if (e) {
				for (var o = a.length, r = void 0, s = void 0, h = 0; o > h; h++)
					if (r = a[h].listener, s = a[h].thisArg, r == e && i == s) {
						n = !0;
						break
					}
			} else n = !0;
		else n = !1;
		return n
	}, t.prototype.addEventListener = function(t, e, i) {
		var n = this._eventHash[t];
		if (n || (n = [], this._eventHash[t] = n), !this.hasEventListener(t, e, i)) {
			var a = {
				listener: e,
				thisArg: i
			};
			n.push(a)
		}
	}, t.prototype.removeEventListener = function(t, e, i) {
		var n = this._eventHash,
			a = n[t];
		if (a)
			for (var o = a.length, r = void 0, s = void 0, h = 0; o > h; h++)
				if (r = a[h].listener, s = a[h].thisArg, r == e && s == i) {
					a.splice(h, 1), 0 == a.length && delete n[t];
					break
				}
	}, t.prototype.removeAllEventListener = function() {
		var t = this._eventHash;
		for (var e in t) this.removeEventListeners(e)
	}, t.prototype.removeEventListeners = function(t) {
		t ? delete this._eventHash[t] : this.removeAllEventListener()
	}, t
}();
__reflect(EventManager.prototype, "EventManager");
var DragData = function() {
	function t(t, e, i) {
		void 0 === t && (t = null), void 0 === e && (e = DragType.COPY), void 0 === i && (i = null), this._type = 0, this.dragTarget =
			t, this.data = i, this._type = e
	}
	return Object.defineProperty(t.prototype, "type", {
		get: function() {
			return this._type
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "dragTarget", {
		get: function() {
			return this._type == DragType.SELF ? this._dragSelf : this._dragImg
		},
		set: function(t) {
			if (this._type == DragType.SELF) this._dragSelf = t;
			else {
				this._dragImg || (this._dragImg = new h5_engine.GBitmap), this._dragImg.texture && (this._dragImg.texture.dispose(),
					this._dragImg.texture = void 0);
				var e = new egret.RenderTexture;
				e.drawToTexture(t), this._dragImg.texture = e
			}
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(DragData.prototype, "DragData");
var DragManager = function() {
	function t() {
		this._draging = !1
	}
	return t.prototype.getId = function() {
		return 1
	}, t.prototype.startDrag = function(t, e, i, n) {
		!this._draging && t && t.dragTarget && (this._dragData = t, n ? this._clickOffset.offset(-n.x, -n.y) : this._clickOffset =
			new egret.Point(e.localX, e.localY), this._callback = i, this.onMove(e), App.layer.popLayer.addChild(this._dragData
				.dragTarget), this._draging = !0, this.addEvents())
	}, t.prototype.onMove = function(t) {
		this._dragData.dragTarget.x = t.stageX - this._clickOffset.x, this._dragData.dragTarget.y = t.stageY - this._clickOffset
			.y
	}, t.prototype.onTouchEnd = function(t) {
		var e = t.target;
		if (egret.is(e, "IAcceptDragDrop")) e.dropIn(this._dragData);
		else
			for (; e.parent;)
				if (e = e.parent, egret.is(e, "IAcceptDragDrop") && e.hitTestPoint(t.stageX, t.stageY, !0)) {
					e.dropIn(this._dragData);
					break
				} this.dispose()
	}, t.prototype.addEvents = function() {
		App.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.onMove, this), App.stage.addEventListener(egret.TouchEvent
			.TOUCH_END, this.onTouchEnd, this)
	}, t.prototype.removeEvents = function() {
		App.stage.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.onMove, this), App.stage.removeEventListener(egret.TouchEvent
			.TOUCH_MOVE, this.onTouchEnd, this)
	}, t.prototype.dispose = function() {
		this._draging = !1, this.removeEvents(), this._dragData.dragTarget && this._dragData.dragTarget.parent && this._dragData
			.dragTarget.parent.removeChild(this._dragData.dragTarget)
	}, t
}();
__reflect(DragManager.prototype, "DragManager");
var DragType = function() {
	function t() {}
	return t.COPY = 0, t.SELF = 1, t
}();
__reflect(DragType.prototype, "DragType");
var EquipPromptView = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._promptManager = e, i.init(), i
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispacher = new DispatcherRegister, this._view = UIMaker.createViewBase("EquipPromptSkin"), this.addChild(
				this._view), this._itemGrid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._itemGrid.x = 26,
			this._itemGrid.y = 73, this.addChild(this._itemGrid)
	}, e.prototype.show = function(t) {
		App.timer.clearTimer(this.onWearClose, this), this._dispacher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onWearClose,
			this, this._view.btnWear), this._itemGrid.setData(t);
		var e = t.getEquipDataBean();
		e && (this._view.txtName.textColor = GameUtil.getItemNameColor(t.itemId), this._view.txtName.text = t.name + (
			Config.isDebug ? "_" + e.q_id : "")), App.timer.serverTimeEnd(this, this.onTimeCount, ServerTime.getServerTime() +
			10)
	}, e.prototype.onTimeCount = function(t) {
		this._view.txtTime.text = t.spuleTime + "s", t.spuleTime <= 0 && this.onWearClose()
	}, e.prototype.onWearClose = function(t) {
		this.parent && this.parent.removeChild(this), App.timer.clearTimer(this.onWearClose, this), this._dispacher.removeAllListeners(),
			this._itemGrid.setData(null), this._view.txtName.text = "", this._promptManager.onEquipPromptWear()
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(EquipPromptView.prototype, "EquipPromptView");
var ItemBuyManager = function() {
	function t() {}
	return t.prototype.buyItemByItemId = function(t, e, i, n, a) {
		void 0 === e && (e = 1), void 0 === i && (i = !1), void 0 === n && (n = 1), void 0 === a && (a = 0);
		var o = App.data.mallCenter.getItemShopBean(t, n);
		return this.buy(o, e, i, a)
	}, t.prototype.buyItemByShopId = function(t, e, i, n) {
		void 0 === e && (e = 1), void 0 === i && (i = !1), void 0 === n && (n = 0);
		var a = App.config.q_shopContainer.getDataBean(t);
		return this.buy(a, e, i, n)
	}, t.prototype.buy = function(t, e, i, n, a, o, r) {
		void 0 === e && (e = 1), void 0 === i && (i = !1), void 0 === n && (n = 0), void 0 === a && (a = 0), void 0 === o &&
			(o = 1), void 0 === r && (r = 0);
		var s = r;
		if (t) {
			var h = GameUtil.getItemConfigData(t.q_itemModelId);
			if (!h) return void Notice.showMousePosMessage("物品id:" + t.q_itemModelId + "不存在，@全体策划");
			if (ItemUtil.isEquip(h.q_type)) PanelOpenManager.openBagFullAlert();
			else {
				var l = void 0;
				1 == o ? l = App.data.mallCenter.getShopItemInfo(t.q_id) : 6 == o && (l = App.data.shenmiShopCenter.getShopItemInfo(
						s)), null == t.q_times_price || 0 == t.q_times_price.length ? a = t.q_price * e : null != l ? a = App.data.mallCenter
					.getPriceByIndex(e + l.dynamicShopBuyTimes, t.q_times_price) - App.data.mallCenter.getPriceByIndex(l.dynamicShopBuyTimes,
						t.q_times_price) : Alert.show("商店类型为" + o + "的商店没有找到该商品的数据，客户端检查是否商店类型传对了");
				var p = null != l ? l.shenMiShopIndex : 0;
				if (App.data.currencyDataCenter.isMoneyEnough(a, t.q_currency_type, !1)) {
					if (t.q_currency_type == EnumMoney.BIND_YUAN_BAO) {
						var c = a - App.data.currencyDataCenter.getMoney(EnumMoney.BIND_YUAN_BAO);
						if (c > 0) return !1
					}
					return this.okFunc(t, e, i, n, a, p), !0
				}
			}
		}
		return !1
	}, t.prototype.okFunc = function(t, e, i, n, a, o) {
		ItemCommandSender.sendBuyItemMessage(t.q_id, e, t.q_itemModelId, t.q_currency_type, t.q_price, i, n, a, o)
	}, t.prototype.useItemToBuy = function(t, e) {
		var i = JSON.parse(t.q_consume)[0].id,
			n = App.data.bagItemDataCenter.getItemCount(i),
			a = t.q_price * e;
		n >= a ? ItemCommandSender.sendBuyItemMessage(t.q_id, e, t.q_itemModelId, t.q_currency_type, t.q_price, !1, 0, t.q_price *
			e, 0) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">很抱歉，您的" + ItemUtil.getItemName(i) +
			"不足</font>")
	}, t
}();
__reflect(ItemBuyManager.prototype, "ItemBuyManager");
var ItemPromptManager = function() {
	function t() {
		this._equipPart = -1, this._equipList = []
	}
	return t.prototype.addItems = function(t) {
		var e = t.length;
		if (0 != e) {
			for (var i, n, a = 0; e > a; a++)
				if (n = t[a], i = n.getDataBean(), 0 == i.q_itme_prompt && 1 == i.q_type) {
					if (1011110001 == i.q_id || 1010900001 == i.q_id || 1010200001 == i.q_id || 1011430001 == i.q_id || 1011420001 ==
						i.q_id || 1011410001 == i.q_id) return;
					this._equipList.push(n)
				} this._equipList.length > 0
		}
	}, t.prototype.showEquip = function() {
		if (-1 == this._equipPart && this._equipList.length > 0 && (this._equipData = this._equipList.shift(), this._equipData))
			if (App.data.bagItemDataCenter.hasItem(this._equipData))
				if (this._equipPart = App.data.wearEquipCenter.isBetter(this._equipData), -1 != this._equipPart) {
					this.promptEquip.show(this._equipData), this.promptEquip.parent || App.layer.popLayer.addChild(this.promptEquip),
						this.promptEquip.x = Config.SCREEN_WIDTH, this.promptEquip.y = Config.SCREEN_HEIGHT - 420;
					var t = Config.SCREEN_WIDTH - 380;
					TweenLite.to(this.promptEquip, .6, {
						x: t,
						ease: Bounce.easeOut
					}), App.dispatcher.addEventListener(WearEquipCenter.WEAR, this.onWear, this)
				} else this._equipData = null, this.showEquip();
		else this._equipData = null, this.showEquip()
	}, t.prototype.onWear = function(t) {
		this._equipData && t.id == this._equipData.id && this.showEquip()
	}, t.prototype.onEquipPromptWear = function() {
		-1 != this._equipPart && (App.global.itemUse.useItemById(this._equipData.id, 1, this._equipPart), this._equipData =
			void 0, this._equipPart = -1, this.showEquip())
	}, Object.defineProperty(t.prototype, "promptEquip", {
		get: function() {
			return this._equipPromptView || (this._equipPromptView = new EquipPromptView(this)), this._equipPromptView
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(ItemPromptManager.prototype, "ItemPromptManager");
var ItemUseManager = function() {
	function t() {
		this._clickObj = {}
	}
	return t.prototype.useItemById = function(t, e, i, n, a) {
		return void 0 === e && (e = 1), void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), this.useItemByItemId(
			t, e, i, n, a)
	}, t.prototype.useItemByItemId = function(t, e, i, n, a) {
		void 0 === e && (e = 1), void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1);
		var o;
		if (o = TypeUtil.isNumber(t) ? App.data.bagItemDataCenter.getItemIDData(t) : App.data.bagItemDataCenter.getData(t))
			return this.useItemByItemData(o, e, i, n);
		if (a) {
			var r = GameUtil.getItemConfigData(Number(t));
			if (r)
				for (var s = r.q_package_ids.split(";"), h = 0; h < s.length; h++)
					if (App.data.bagItemDataCenter.getItemCount(Number(s[h]), !0) > 0) return this.useItemByItemId(Number(s[h]), 1,
						1, !0, !1), !0
		}
		return !1
	}, t.prototype.useItemByItemData = function(t, e, i, n) {
		if (void 0 === e && (e = 1), void 0 === i && (i = -1), void 0 === n && (n = !0), this.isMatchUseCondition(t, n)) {
			var a = t.getDataBean();
			if (a) {
				if (1 == a.q_type) {
					var o = i;
					if (-1 == o) {
						var r = t.getEquipDataBean();
						(r.q_kind == EnumEquipType.SHOU_ZHUO || r.q_kind == EnumEquipType.SHOU_ZHUO_RIGHT || r.q_kind == EnumEquipType.JIE_ZHI ||
							r.q_kind == EnumEquipType.JIE_ZHI_RIGHT) && (o = App.data.wearEquipCenter.isBetter(t))
					} else WearEquipCommandSender.sendWearEquipMessage(t, o, App.global.characterData.selectindex);
					return !0
				}
				if (31 == a.q_type) WearEquipCommandSender.sendWearFaBaoEquipMessage(t.id, i, App.global.characterData.selectindex);
				else if (App.data.advanceDataCenter.isAdvanceEquipType(a.q_type)) this.advanceEquipUse(t, i);
				else {
					if (!App.data.CDCenter.isInCD(CDType.ITEM, t.itemId)) return this.sendUseItem(t, e), !0;
					Notice.show(1007)
				}
			}
		} else this._clickObj[t.itemId] = !0, App.global.redPoint.redPointDispatchEvent(2);
		return !1
	}, t.prototype.sendUseItem = function(t, e) {
		void 0 === e && (e = 1);
		t.getDataBean();
		if (App.data.CDCenter.addCD(CDType.ITEM, t.itemId, t.getDataBean().q_cooldown), "" != t.bean.q_use_consume) {
			var i = StringUtil.JsonParse(t.bean.q_use_consume),
				n = App.data.currencyDataCenter.isMoneyEnough(i[0].num, i[0].id, !1);
			if (!n) return
		}
		ItemCommandSender.sendUseItemMessage(t.position, t.id, e)
	}, t.prototype.isMatchUseCondition = function(t, e, i) {
		if (void 0 === e && (e = !0), void 0 === i && (i = -1), !this.isMapCanUse(t.itemId, e, i)) return !1;
		if (6 == t.type) {
			for (var n = App.global.roles.roleList, a = !1, o = 0; o < n.length; o++)
				if (this.isMatchBaseCondition(t, !1, !0, n[o])) {
					a = !0;
					break
				} return a ? !0 : !1
		}
		return t.itemId == EnumItemId.BANGHUI_LIBAO ? App.global.characterData.guildId ? !0 : (e && Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">加入帮会方可使用！</font>"), !1) : this.isMatchBaseCondition(t, e)
	}, t.prototype.isMapCanUse = function(t, e, i) {
		void 0 === e && (e = !0), void 0 === i && (i = -1), -1 == i && (i = App.global.characterData.mapId);
		var n = GameUtil.getMapConfigData(i).q_item_sotp;
		if (null != n && n.length > 0)
			for (var a = StringUtil.JsonParse(n), o = 0; o < a.length; o++)
				if (t == Number(a[o])) return e && Notice.show(16, ItemUtil.getItemName(t)), !1;
		return !0
	}, t.prototype.hasClick = function(t) {
		return this._clickObj[t]
	}, t.prototype.isMatchBaseCondition = function(t, e, i, n) {
		if (void 0 === e && (e = !0), void 0 === i && (i = !0), void 0 === n && (n = null), t) {
			if (t.isLostTime) return e && Notice.show(14), !1;
			if (0 == t.isOpenItemTime) return e && Notice.showMousePosMessage("很抱歉，该物品已过期"), !1;
			var a = t.getDataBean();
			if (null == a) return !1;
			if (a.q_use_consume) {
				var o = JSON.parse(a.q_use_consume)[0];
				if (o) {
					var r = o.id,
						s = o.num,
						h = 0 > r ? App.data.currencyDataCenter.getMoney(r) : App.data.bagItemDataCenter.getItemCount(r);
					if (s > h) return e && Notice.showMousePosMessage("消耗不足"), !1
				}
			}
			var l = n ? n : App.global.roles.getRoleInfoByIndex(App.global.characterData.selectindex);
			if (l) {
				if (i) {
					if (a.q_zhuanshen > App.global.characterData.zhuanSheng) return e && Notice.showMousePosMessage("您的转生等级不足"), !1;
					if (a.q_level > App.global.characterData.level) return e && Notice.showMousePosMessage("您的等级不足"), !1
				}
				return a.q_sex != EnumRole.COMMON && a.q_sex != l.sex ? (e && Notice.showMousePosMessage("您的性别不符"), !1) : a.q_job !=
					EnumRole.COMMON && a.q_job != l.job ? (e && Notice.showMousePosMessage("您的职业不符"), !1) : !0
			}
		}
		return !1
	}, t.prototype.advanceEquipUse = function(t, e) {
		var i, n = App.global.characterData.selectindex,
			a = App.data.advanceDataCenter.getAdvanceEquipType(t.itemId),
			o = "";
		switch (a) {
			case AdvanceType.zuoqi:
				i = App.data.mountGlobalCenter.getProxy(n), o = "坐骑";
				break;
			case AdvanceType.tianbing:
				i = App.data.tianBingGlobalCenter.getProxy(n), o = "天兵";
				break;
			case AdvanceType.fazhen:
				i = App.data.faZhenGlobalCenter.getProxy(n), o = "法阵";
				break;
			default:
				o = "未识别的类型"
		}
		return i.getIsUnlockByPos(e) ? void CharacterUICommandSender.sendWearAdvanceEquipMessage(a, t.int64Id, e, n) : void Notice
			.showBottomMessage(o + "进阶等级不足")
	}, t
}();
__reflect(ItemUseManager.prototype, "ItemUseManager");
var EnterButtonInfo = function() {
	function t(t) {
		this.bean = t, this.bean && this.convert()
	}
	return t.prototype.convert = function() {
		var t = this;
		t.id = t.bean.q_id, t.name = t.bean.q_name, t.width = t.bean.q_width, t.height = t.bean.q_height, t.type = t.bean.q_type,
			t.sortId = t.bean.q_sort, t.panelId = Number(t.bean.q_panelID), t.resName = t.bean.q_res_name, t.resName2 = t.bean
			.q_res_name_1, t.specialType = t.bean.q_special_type, t.open = t.bean.q_open, t.functionID = t.bean.q_function_id,
			t.isCommon = t.bean.q_common > 0, t.commonID = t.bean.q_common, t.panelIndex = t.bean.q_panelID_index, t.setHidePlat(
				t.bean.q_hide_plat)
	}, t.prototype.setHidePlat = function(t) {
		t && (this.hidePlat = StringUtil.JsonParse(t))
	}, t.prototype.isHidePlat = function() {
		var t = !1;
		if (this.hidePlat && this.hidePlat.length > 0) {
			var e = WebParams.agent,
				i = -1 != this.hidePlat.indexOf(e);
			t = i
		}
		return t
	}, t
}();
__reflect(EnterButtonInfo.prototype, "EnterButtonInfo");
var EnterButtonManager = function() {
	function t() {
		this._functionDic = {}, this._buttonQueue = [], this._panelIDToEnterIDObj = {}, this._enterPlayerStatesHash = new HashObject,
			this._enterActivityStatesHash = new HashObject, this._enterContainerHash = new HashObject, this.loadConfig()
	}
	return t.prototype.registContainer = function(t, e) {
			this._enterContainerHash.put(t, e)
		}, t.prototype.getContainer = function(t) {
			return this._enterContainerHash.get(t)
		}, t.prototype.loadConfig = function() {
			this._infoDic = {};
			for (var t, e = App.config.q_enter_buttonContainer.list, i = 0; i < e.length; i++) t = new EnterButtonInfo(e[i]), t
				.isHidePlat() || (this._infoDic[e[i].q_id] = t, 1 == t.open && (this._functionDic[e[i].q_id] = e[i]), this._panelIDToEnterIDObj[
					t.panelId] = t.id)
		}, t.prototype.putEnterToQueue = function(t) {
			var e = t.bean.q_enter_button;
			if (e > 0) {
				var i = this._enterActivityStatesHash.get(e);
				null == i && (i = new HashMap, this._enterActivityStatesHash.put(e, i));
				var n = this._enterPlayerStatesHash.get(e);
				null == n && (n = new HashMap, this._enterPlayerStatesHash.put(e, n)), -1 == t.activityStates ? (i.del(t), n.del(t)) :
					(i.put(t, t), this._enterActivityStatesHash.put(e, i), 1 == t.activityStates ? 1 == t.playerStates ? -1 != t.bean
						.q_always_effect && n.put(t, t) : 1 != t.bean.q_always_effect && n.del(t) : n.del(t)), -1 == this._buttonQueue.indexOf(
						e) && this._buttonQueue.push(e)
			}
		}, t.prototype.clearEnterQueue = function() {
			for (var t = 0; t < this._buttonQueue.length; t++) {
				var e = this._buttonQueue[t],
					i = this._enterActivityStatesHash.get(e);
				if (i && i.keys.length > 0) {
					var n = i.values[0];
					this.addButton(e, n)
				} else this.removeButton(e);
				i = this._enterPlayerStatesHash.get(e), i && i.keys.length > 0 ? this.showPoint(e) : this.hidePoint(e)
			}
			this._buttonQueue = []
		}, t.prototype.showButtonByFunction = function() {
			var t;
			for (var e in this._functionDic) t = this._functionDic[e], null != t && (2 == t.q_type || 6 == t.q_type || App.global
				.funcOpen.isFunctionOpen(t.q_function_id, "", !1)) && (140 == t.q_function_id && App.data.moonCardCenter.isCardVip() ?
				App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, e, !1) : App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH,
					e, !0));
			App.data.characterCenter.roleOpenRed()
		}, t.prototype.getInfo = function(t) {
			return this._infoDic[t]
		}, t.prototype.getResName = function(t) {
			var e = this.getInfo(t);
			return null != e ? e.resName : null
		}, t.prototype.getButton = function(t) {
			var e = this.getInfo(t);
			if (!e) return null;
			var i = this.getContainer(e.type);
			return i ? i.getMenuBtnByID(t) : null
		}, t.prototype.hasButton = function(t) {
			return this.getButton(t) ? !0 : !1
		}, t.prototype.addButton = function(t, e) {
			var i = this.getButton(t);
			if (!i) {
				var n = this.getInfo(t);
				if (n) {
					var a = App.data.activityCenter;
					if (0 == n.type) return e && (n.actData = e), void(2007 == n.bean.q_panelID ? a.setNationBtn(n.id, n) : a.setActMainBtn(
						n.id, n));
					var o = this.getContainer(n.type);
					o && App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, t, !0)
				}
			}
		}, t.prototype.removeButton = function(t) {
			var e = this.getInfo(t);
			if (e) {
				var i = App.data.activityCenter;
				if (0 == e.type) return void(1013 == e.bean.q_panelID ? i.deletnationalBtn(e.id) : i.deleteActMainBtn(e.id));
				var n = this.getButton(t);
				if (n) {
					var a = this.getContainer(e.type);
					a && App.dispatcher.dispatchEvent(EnterButtonEvent.REFRESH, t, !1)
				}
			}
		}, t.prototype.showPoint = function(t) {}, t.prototype.hidePoint = function(t) {}, t.prototype.getPanelIDtoEnterID =
		function(t) {
			return this._panelIDToEnterIDObj[t]
		}, t
}();
__reflect(EnterButtonManager.prototype, "EnterButtonManager");
var MusicBgmItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._crtPlayCount = 0, e._inval = 0, e._isLoadingFinish = !1, e._volume = 0, e._delay = 0, e._num = 0, e._isPlaying = !
			1, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "isPlaying", {
		get: function() {
			return this._isPlaying
		},
		set: function(t) {
			this._isPlaying = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "volume", {
		get: function() {
			return this._volume
		},
		set: function(t) {
			this._volume = t, this._soundChannel && (this._soundChannel.volume = this._volume)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.playSound = function(t, e, i, n, a) {
		void 0 === e && (e = 3), void 0 === i && (i = .3), void 0 === n && (n = 0), void 0 === a && (a = null), this._isPlaying ||
			(this._delay = e, this._num = n, this._volume = i, this._isPlaying = !0, this._url = t, this._callBack = a, 0 ==
				this._delay && (this._delay = 1), this._sound || (this._sound = new egret.Sound, this._sound.type = egret.Sound.MUSIC,
					this._sound.addEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._sound.load(t)))
	}, e.prototype.onLoadComplete = function(t) {
		this._isLoadingFinish = !0, this._isPlaying ? Config.isMobile && 0 == Config.iosTouchMusicPlay ? App.stage.addEventListener(
			egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this) : this.wantPlaySound() : this.stopSound()
	}, e.prototype.wantPlaySound = function() {
		this._sound && this._sound.removeEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._soundChannel &&
			this._soundChannel.removeEventListener(egret.Event.SOUND_COMPLETE, this.onSoundComplete, this), this._soundChannel =
			this._sound.play(0, this._num), this._soundChannel.volume = this._volume, this._soundChannel ? this._soundChannel.addEventListener(
				egret.Event.SOUND_COMPLETE, this.onSoundComplete, this) : this.stopSound()
	}, e.prototype.onTouchBegin = function(t) {
		Config.iosTouchMusicPlay = !0, App.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this),
			this.wantPlaySound()
	}, e.prototype.onSoundComplete = function(t) {
		this._crtPlayCount++, this._isPlaying = !1, this.stopSound(), this._inval = egret.setTimeout(this.onTimeHandler,
			this, 1e3 * this._delay)
	}, e.prototype.onTimeHandler = function() {
		this._inval > 0 && egret.clearTimeout(this._inval), this._callBack && this._callBack.exec()
	}, e.prototype.stopSound = function() {
		if (App.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this), this._inval > 0 && egret.clearTimeout(
				this._inval), this._soundChannel && (this._soundChannel.stop(), this._soundChannel.removeEventListener(egret.Event
				.SOUND_COMPLETE, this.onSoundComplete, this)), this._sound && (this._sound.removeEventListener(egret.Event.COMPLETE,
				this.onLoadComplete, this), 0 == this._isLoadingFinish)) try {
			this._sound.close()
		} catch (t) {}
		this._isPlaying = !1, this._volume = 0, this._sound = null, this._soundChannel = null
	}, e
}(egret.HashObject);
__reflect(MusicBgmItem.prototype, "MusicBgmItem");
var MusicEffectItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._volume = 0, e._isPlaying = !1, e._isLoading = !1, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "volume", {
		get: function() {
			return this._volume
		},
		set: function(t) {
			this._volume = t, this._soundChannel && (this._soundChannel.volume = this._volume)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isPlaying", {
		get: function() {
			return this._isPlaying
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.playSound = function(t, e) {
		this._volume = t, this._callBack = e, this._isPlaying || (this._isPlaying = !0, this._sound ? this._isLoading ?
			this.wantPlaySound() : this.stopSound() : (this._sound = new egret.Sound, this._sound.type = egret.Sound.EFFECT,
				this._sound.addEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._sound.addEventListener(
					egret.IOErrorEvent.IO_ERROR, this.onIoErrorHandler, this), this._sound.load(this.path), this._isLoading = !1))
	}, e.prototype.onIoErrorHandler = function(t) {
		GameLog.log("sound-ioerror", this.path), this.stopSound()
	}, e.prototype.onLoadComplete = function(t) {
		this._isLoading = !0, this._sound && this._sound.removeEventListener(egret.Event.COMPLETE, this.onLoadComplete,
			this), this._isPlaying ? Config.isMobile && 0 == Config.iosTouchMusicPlay ? App.stage.addEventListener(egret.TouchEvent
			.TOUCH_BEGIN, this.onTouchBegin, this) : this.wantPlaySound() : this.stopSound()
	}, e.prototype.onTouchBegin = function(t) {
		Config.iosTouchMusicPlay = !0, App.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this),
			this._isPlaying && this.wantPlaySound()
	}, e.prototype.wantPlaySound = function() {
		this._soundChannel && this._soundChannel.removeEventListener(egret.Event.SOUND_COMPLETE, this.onSoundComplete, this),
			this._soundChannel = this._sound.play(0, 1), this._soundChannel.volume = this._volume, this._soundChannel ? this._soundChannel
			.addEventListener(egret.Event.SOUND_COMPLETE, this.onSoundComplete, this) : this.stopSound()
	}, e.prototype.onSoundComplete = function(t) {
		this._soundChannel.removeEventListener(egret.Event.SOUND_COMPLETE, this.onSoundComplete, this), this.stopSound()
	}, e.prototype.stopSound = function() {
		this._isPlaying = !1, null != this._callBack && (this._callBack.param = [this], this._callBack.exec()), this._callBack =
			null, this._soundChannel && (this._soundChannel.stop(), this._soundChannel.removeEventListener(egret.Event.SOUND_COMPLETE,
				this.onSoundComplete, this), this._soundChannel = null)
	}, e.prototype.dispose = function() {
		if (App.stage.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this), this.stopSound(), this._sound)
			try {
				this._sound.removeEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._sound.removeEventListener(
					egret.IOErrorEvent.IO_ERROR, this.onIoErrorHandler, this), this._sound.close()
			} catch (e) {}
		this._sound = null, this._volume = 0, t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(MusicEffectItem.prototype, "MusicEffectItem");
var MusicManager = function() {
	function t(t, e) {
		this._index = 0, this._effectVolume = .8, this._bgmVolume = .65, this._isCloseBgm = !1, this._isCloseSound = !1,
			this._delayPlaySoundTime = 0, this._maxEffectSoundLen = 10, this._soundHash = {}, this._playingSoundHash = new HashObject,
			this._bgmPathFuncVo = t, this._soundPathFuncVo = e, this._bgmPlayEndVo = new FunctionVO(this.playCallBack, this),
			this._soundPlayEndVo = new FunctionVO(this.playEndBlack, this)
	}
	return Object.defineProperty(t.prototype, "bgmVolume", {
		get: function() {
			return this._bgmVolume
		},
		set: function(t) {
			this._bgmVolume = t, this._currentBackBgmSound && (this._currentBackBgmSound.volume = this._bgmVolume)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "effectVolume", {
		get: function() {
			return this._effectVolume
		},
		set: function(t) {
			if (this._effectVolume = t, this._playingSoundHash && this._playingSoundHash.length > 0) {
				var e = this._playingSoundHash.$_getValueMap();
				for (var i in e) e[i].volume = this._effectVolume
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "isCloseBgm", {
		get: function() {
			return this._isCloseBgm
		},
		set: function(t) {
			this._isCloseBgm != t && (this._isCloseBgm = t, t ? this.closeBgm() : this._currentBackBgms && this.playBgm(this
				._currentBackBgms, !0)), App.dispatcher.dispatchEvent(EventType.SET_SOUND_CHANGE)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "isCloseSound", {
		get: function() {
			return this._isCloseSound
		},
		set: function(t) {
			this._isCloseSound != t && (this._isCloseSound = t), App.dispatcher.dispatchEvent(EventType.SET_SOUND_CHANGE)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.playBgm = function(t, e) {
		void 0 === e && (e = !1), (this._currentBackBgms != t || e) && (this._currentBackBgms = t, this._musicList = this._currentBackBgms
			.split(";"), this._index = 0, 0 == this._isCloseBgm && (this._currentBackBgmSound && this._currentBackBgmSound.stopSound(),
				this.playBgmSound()))
	}, t.prototype.playBgmSound = function() {
		if (!(h5_engine.EngineConfig.currentGameFps < 24)) {
			var t, e, i = 0;
			if (0 != this._musicList.length) {
				var n = this._musicList[this._index];
				n ? (this._currentBackBgmSound = new MusicBgmItem, this._currentBackBgmSound.soundManager = this, t = n.split("_")[
					0], i = parseInt(n.split("_")[1]), this._bgmPathFuncVo.param = [t], e = this._bgmPathFuncVo.exec(), e && (this
					._currentBackBgmSound && 0 == this._currentBackBgmSound.isPlaying && this._currentBackBgmSound.playSound(e, i,
						this.bgmVolume, 1, this._bgmPlayEndVo), this._index++)) : this._index > 0 && (this._index = 0, this.playBgmSound())
			}
		}
	}, t.prototype.playCallBack = function() {
		this.playBgmSound()
	}, t.prototype.closeBgm = function() {
		this._currentBackBgmSound && this._currentBackBgmSound.stopSound(), this._currentBackBgmSound = null
	}, t.prototype.playDelaySound = function(t) {
		egret.getTimer() - this._delayPlaySoundTime > 1e3 ? this.playSound(t, 0, .5) : (this._delayPlaySoundList.push(t), 1 ==
			this._delayPlaySoundList.length && App.timer.doTimeLoop(this, 1e3, this.playDelaySoundList))
	}, t.prototype.playDelaySoundList = function() {
		var t = this._delayPlaySoundList.shift();
		this.playSound(t, 0, .5), this._delayPlaySoundList.length <= 0 && App.timer.clearTimer(this.playDelaySoundList,
			this)
	}, t.prototype.playSound = function(t, e, i) {
		if (void 0 === e && (e = 0), void 0 === i && (i = 1), !this._isCloseSound && !(h5_engine.EngineConfig.currentGameFps <
				24) && this._playingSoundHash.length < this._maxEffectSoundLen && t && "0" != t) {
			var n = this._soundHash[t],
				a = egret.getTimer();
			if (n && a - n.lastPlaying < 0) return;
			var o = this.getSoundItem(t);
			if (o) {
				var r = this._soundHash[t];
				r.lastPlaying = a + e;
				var s = i * this._effectVolume;
				o.playSound(s, this._soundPlayEndVo), this._playingSoundHash.put(o.hashCode, o)
			}
		}
	}, t.prototype.playEndBlack = function(t) {
		this._playingSoundHash.has(t.hashCode) && this._playingSoundHash.del(t.hashCode);
		var e = this._soundHash[t.id];
		e.pool.push(t)
	}, t.prototype.getSoundItem = function(t) {
		var e = this._soundHash[t];
		if (!e) {
			this._soundPathFuncVo.param = [t];
			var i = this._soundPathFuncVo.exec();
			if (!i) return null;
			e = new SoundPool, e.path = i, this._soundHash[t] = e
		}
		var n;
		return e.pool.length > 0 ? n = e.pool.pop() : (n = e.make(), n.id = t, n.path = e.path), n
	}, t.prototype.stopAll = function() {
		if (this._playingSoundHash && this._playingSoundHash.length > 0) {
			var t = this._playingSoundHash.$_getValueMap();
			for (var e in t) t[e].stopSound()
		}
		this._currentBackBgmSound && this._currentBackBgmSound.stopSound()
	}, t.prototype.addvanceTime = function() {
		var t = egret.getTimer(),
			e = 3e5;
		for (var i in this._soundHash) {
			var n = this._soundHash[i];
			n && t - n.lastPlaying > e && (n.dispose(), delete this._soundHash[i])
		}
	}, t
}();
__reflect(MusicManager.prototype, "MusicManager");
var SoundPool = function() {
	function t() {
		this.pool = [], this.num = 0
	}
	return t.prototype.make = function() {
		return this.num++, new MusicEffectItem
	}, t.prototype.dispose = function() {
		for (var t = this.pool.length, e = 0; t > e; e++) {
			var i = this.pool[e];
			i.dispose()
		}
	}, t
}();
__reflect(SoundPool.prototype, "SoundPool");
var OperateManager = function() {
	function t() {
		this._msgQueue = [], this.i = 0, this.FixLocation = function(t, e) {
			return t > 0 ? t - e : t + e
		}
	}
	return t.prototype.loginSendMessage = function() {
		var t = this._msgQueue;
		t.push(new FunctionVO(MailCommandSender.C2S_MailList, MailCommandSender)), t.push(new FunctionVO(
				ArtifactCommandSender.sendTreasureInfo, ArtifactCommandSender)), t.push(new FunctionVO(ArtifactCommandSender.sendSuitGodEquipListMessage,
				ArtifactCommandSender)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage, ZoneCommandSender,
				EnumZoneType.EXP)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage, ZoneCommandSender,
				EnumZoneType.PERSONAL_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.WILD_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.SECRET)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.BOSS_HOME)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.PAGODA)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.GUILD_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.ROAD_OF_CQ)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.XSBOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_ZoneInfoListMessage,
				ZoneCommandSender, EnumZoneType.XIANSHI_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_GetBossZoneInfoMessage,
				ZoneCommandSender, EnumZoneType.GUILD_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_GetBossZoneInfoMessage,
				ZoneCommandSender, EnumZoneType.SECRET)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_GetBossZoneInfoMessage,
				ZoneCommandSender, EnumZoneType.WILD_BOSS)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_GetBossZoneInfoMessage,
				ZoneCommandSender, EnumZoneType.BOSS_HOME)), t.push(new FunctionVO(ZoneCommandSender.sendC2S_GetBossZoneInfoMessage,
				ZoneCommandSender, EnumZoneType.ROAD_OF_CQ)), t.push(new FunctionVO(ExploitCommandSender.sendC2S_JadeInfoMessage,
				ExploitCommandSender)), t.push(new FunctionVO(CharacterUICommandSender.getMetempsychosisInfo,
				CharacterUICommandSender)), t.push(new FunctionVO(VipCommandSender.requestC2S_VipBuyLibaoStatus, VipCommandSender)),
			t.push(new FunctionVO(ExploitCommandSender.sendC2S_TuJianListMessage, ExploitCommandSender)), t.push(new FunctionVO(
				ShopCommandSender.sendRequestShopListMessage, ExploitCommandSender, 6)), t.push(new FunctionVO(
				WangZheZBCommandSender.onC2S_OpenNearPkPlanelMessage, WangZheZBCommandSender)), t.push(new FunctionVO(
				ExploitCommandSender.sendC2S_achievementInfoMessage, ExploitCommandSender)), t.push(new FunctionVO(
				ChatCommandSender.sendBlackList, ChatCommandSender)), t.push(new FunctionVO(VipCommandSender.sendPrivilegeList,
				VipCommandSender)), t.push(new FunctionVO(VipCommandSender.sendC2sTurntable, VipCommandSender)), t.push(new FunctionVO(
				VipCommandSender.sendC2S_rechargeLogMessageHandler, VipCommandSender)), t.push(new FunctionVO(WarpetCommandSender
				.sendC2S_hatchList, WarpetCommandSender)), t.push(new FunctionVO(WarpetCommandSender.sendC2S_kunRewardsListMessage,
				WarpetCommandSender));
		var e = App.data.activityCenter.getListActId(13);
		t.push(new FunctionVO(ActivityCommandSender.sendC2S_ActivityDetailInfosMessage, ActivityCommandSender, e)), App.timer
			.doFrameLoop(this, 1, this.onSend)
	}, t.prototype.onSend = function() {
		this._msgQueue.length > 0 ? this._msgQueue.shift().exec() : App.timer.clearTimer(this.onSend, this)
	}, t.prototype.operateJson = function(t) {
		if (null != t && "" != t) {
			var e = StringUtil.JsonParse(StringUtil.replacJosnStr(t));
			e instanceof Array && (e = e[0]), null != e && this.opreateObject(e)
		}
	}, t.prototype.opreateObject = function(t) {
		if (null != t && t.hasOwnProperty("panelid")) {
			var e = void 0;
			for (var i in t) "panelid" != i && (null == e && (e = {}), "selectedindex" == i && t[i] >= 0 ? e.selectedIndex = t[
				i] : "functionid" == i && t[i] >= 0 ? e.functionid = t[i] : "enterid" == i ? e.enterID = t[i] : e[i] = t[i]);
			PanelOpenManager.openPanel(t.panelid, e, !1, !0, e.functionid ? e.functionid : -1)
		}
	}, t.prototype.flyToBag = function(t, e, i, n) {
		void 0 === i && (i = !1);
		for (var a, o, r, s = App.panel.getFlyTarget(4), h = s.localToGlobal(), l = 0, p = t.length, c = 0; p > c; c++) r =
			t[c], egret.is(r, "eui.Image") ? o = r.source : egret.is(r, "CImage") && (o = r.url), a = r.localToGlobal(), this.fly(
				o, e, a.x, a.y, h.x + 5, h.y + 20, l, -1, -1, 1, n), i && (l = .2 * (c + 1))
	}, t.prototype.fly = function(t, e, i, n, a, o, r, s, h, l, p) {
		void 0 === r && (r = 0), void 0 === s && (s = -1), void 0 === h && (h = -1), void 0 === l && (l = 1), void 0 === p &&
			(p = null), p = p ? p : App.layer.tipLayer;
		var c = UIMaker.getCImage(p, e, null, i, n);
		egret.is(t, "egret.Texture") ? c.texture = t : c.url = t, s > 0 && (c.width = s), h > 0 && (c.height = h),
			TweenLite.to(c, l, {
				delay: r,
				x: a,
				y: o,
				ease: Linear.easeOut
			}), TweenLite.to(c, .01, {
				delay: r + l,
				onComplete: this.onBagOver,
				onCompleteParams: [c],
				onCompleteScope: this
			})
	}, t.prototype.onBagOver = function(t) {
		null != t && (TweenLite.killTweensOf(t), t.dispose())
	}, t
}();
__reflect(OperateManager.prototype, "OperateManager");
var PanelManager = function() {
	function t() {
		this._targetHash = new HashObject, this._disposeFailPanelHash = new HashObject, this._panelHash = new HashObject,
			this._infoHash = new HashObject, this._resHash = new HashObject, this._resRegHash = new HashObject, this._expendPanelHash =
			new HashObject, this._showQueue = [], this._modalQueue = [], this._num = 0
	}
	return t.prototype.registerPanel = function(t, e, i, n, a, o, r) {
		if (void 0 === n && (n = !1), void 0 === a && (a = !0), void 0 === r && (r = 0), 0 == Config.isWxGame && 0 ==
			Config.isBaiduGame && e && !ClassUtil.targetClsIsInheritSpecialCls(e, BasePanel)) return void GameLog.log("面板ID为：" +
			t + "的面板没有继承BasePanel,类名:" + egret.getQualifiedClassName(e));
		var s = this.getInfo(t);
		if (!s) {
			s = new PanelInfo(t, i, e, n, a, o, r), this._infoHash.put(t + "", s);
			for (var h = s.resList, l = h.length, p = 0; l > p; p++) {
				var c = h[p];
				if (c) {
					var _ = this._resRegHash.get(c);
					_ || (_ = new Array, this._resRegHash.put(c, _)), _.push(t)
				}
			}
		}
	}, t.prototype.registerSinglePanel = function(t, e, i, n, a, o, r, s, h, l, p) {
		void 0 === o && (o = 640), void 0 === r && (r = 932), void 0 === s && (s = !1), void 0 === h && (h = !0), void 0 ===
			p && (p = !0), this.registerPanel(t, BaseSinglePanel, a, s, h, l);
		var c = this.getInfo(t);
		c.viewClass = e, c.windowClass = i, c.title = n, c.width = o, c.height = r, c.showClose = p
	}, t.prototype.neverClosePanel = function(t) {
		var e = this._infoHash.get(t + "");
		e && (e.neverClose = !0)
	}, t.prototype.registerFlyTarget = function(t, e) {
		this._targetHash.put(t + "", e)
	}, t.prototype.getFlyTarget = function(t) {
		return this._targetHash.get(t + "")
	}, t.prototype.checkRegisterRes = function(t) {
		return this._resRegHash.has(t)
	}, t.prototype.getInfo = function(t) {
		return this._infoHash.get(t + "")
	}, t.prototype.getPanel = function(t) {
		return this._panelHash.get(t + "")
	}, t.prototype.isShowing = function(t) {
		var e = this.getPanel(t);
		return e ? null != e.parent : !1
	}, t.prototype.getPanelNum = function() {
		return this._num
	}, t.prototype.openPanel = function(t, e, i) {
		void 0 === e && (e = null), void 0 === i && (i = !0);
		var n = this,
			a = n.getPanel(t),
			o = n._infoHash.get(t + "");
		if (!a)
			if (o) {
				var r = egret.getTimer(),
					s = o.panelClass;
				s && (a = new s, a.info = o, egret.is(a, "BaseSinglePanel") && a.convert()), 0 == Config.isRelease && Notice.showBottomMessage(
					"面板开启耗时:" + (egret.getTimer() - r).toString(), 16776960), n._panelHash.put(o.panelID + "", a);
				for (var h = o.resList, l = h.length, p = 0; l > p; p++) {
					var c = h[p];
					if (c) {
						var _ = n._resHash.get(c);
						_ || (_ = new PanelResInfo, _.res = c, _.usePanel[o.panelID] = o.panelID, n._resHash.put(c, _)), _.count++
					}
				}
			} else GameLog.logWarn("面板 " + t + "未注册！");
		a && (i && null != a.parent ? n.removePanel(t) : (o.isModal || (n.removeModalPanel(), n.removeTopPanel(!1, !0, !1)),
			n.playSound(t, !0), n.addToStage(t, a, e)))
	}, t.prototype.removeModalPanel = function() {
		for (; this._modalQueue.length > 0;) this.removePanel(this._modalQueue.pop())
	}, t.prototype.addToStage = function(t, e, i) {
		if (void 0 === i && (i = null), App.dispatcher.dispatchEvent(EnterButtonEvent.GUILD_POINT, [19, !1]), null != e) {
			var n = this.getInfo(t);
			App.layer.panelLayer.addChild(e);
			var a = this._showQueue.indexOf(t); - 1 != a && this._showQueue.splice(a, 1), this._showQueue.push(t), n.isModal ?
				this._modalQueue.push(t) : (this._num++, App.sound.effectVolume = .3 * App.sound.effectVolume, App.dispatcher.dispatchEvent(
					EventType.SHOW_HIDE_PANEL, this._num > 0)), this.showModal();
			try {
				e.show(i)
			} catch (o) {
				GameLog.log("面板:" + t + ", show()出错"), GameLog.log(o)
			}
			e.lastShowTime = egret.getTimer(), e.resize()
		}
	}, t.prototype.onTouchStage = function(t) {
		egret.is(t.target, "MaskShape") && this.removeTopPanel()
	}, t.prototype.removePanel = function(t, e, i) {
		void 0 === e && (e = !0), void 0 === i && (i = !0), App.dispatcher.dispatchEvent(EnterButtonEvent.GUILD_POINT, [19,
			!0
		]);
		var n = this,
			a = n.getPanel(t);
		if (a && a.parent) {
			a.parent.removeChild(a), a.lastHideTime = egret.getTimer(), a.hide();
			var o = n._showQueue.indexOf(t); - 1 != o && n._showQueue.splice(o, 1);
			var r = n.getInfo(t);
			if (r.isModal) {
				var s = n._modalQueue.indexOf(t); - 1 != s && n._modalQueue.splice(s, 1)
			} else n._num--, App.sound.effectVolume = App.sound.effectVolume / .3, i && App.dispatcher.dispatchEvent(EventType
				.SHOW_HIDE_PANEL, n._num > 0);
			e && n.playSound(t, !1), n.showModal()
		}
	}, t.prototype.removeTopPanel = function(t, e, i) {
		void 0 === t && (t = !0), void 0 === e && (e = !1), void 0 === i && (i = !0);
		var n = this;
		if (n._showQueue.length > 0) {
			var a = n._showQueue[n._showQueue.length - 1],
				o = n.getInfo(a);
			if (o && o.neverClose) return;
			n.removePanel(n._showQueue.pop(), t, i), !e && void 0 != o.father && o.father > 0 && (o.tabIndex > -1 ? n.openPanel(
				o.father, {
					selectedIndex: o.tabIndex
				}) : n.openPanel(o.father))
		}
	}, t.prototype.removeAllPanel = function() {
		for (var t = this; t._showQueue.length > 0;) t.removePanel(this._showQueue.pop(), !1)
	}, t.prototype.getTopPanelID = function() {
		return this._showQueue.length > 0 ? this._showQueue[this._showQueue.length - 1] : -1
	}, t.prototype.checkHidePanelDispose = function(t) {
		var e = this;
		e._resHash.foEach(function(i, n) {
			var a = e._resHash.get(i);
			if (a.count <= 0 && (a.time = a.time - t, a.time <= 0)) {
				var o = RES.getRes(a.res) ? !0 : !1;
				o ? RES.destroyRes(a.res) ? (e._resHash.del(i), GameLog.logWarn("删除了面板素材：", a.res)) : GameLog.logWarn(a.res +
					": <->资源释放失败！") : (e._resHash.del(i), GameLog.logWarn("这个素材，在这次删除的时候没有使用到：", a.res))
			}
		}, e);
		var i = Config.isRelease ? 12e4 : 0,
			n = egret.getTimer(),
			a = !1;
		e._panelHash.foEach(function(t, o) {
			var r = o.info.checkDispose;
			if (r) {
				if (o.lastHideTime > o.lastShowTime && n - o.lastHideTime > i) {
					e._panelHash.del(t);
					try {
						o.dispose()
					} catch (s) {
						GameLog.logWarn("面板:" + t + ", 销毁出错"), GameLog.logWarn(s), GameLog.logError("面板:" + t + ", 销毁出错")
					}
					for (var h = e._infoHash.get(t), l = h.resList, p = l.length, c = 0; p > c; c++) {
						var _ = l[c];
						if (_) {
							var d = e._resHash.get(_);
							d && d.count--
						}
					}
					a = !0
				}
			} else Config.isDebug && 0 == e._disposeFailPanelHash.has(t) && e._disposeFailPanelHash.put(t, t)
		}, e), a && GameLog.logWarn("面板checkDisposeSucc=false有", e._disposeFailPanelHash.$_getKeyMap())
	}, t.prototype.playSound = function(t, e) {
		var i;
		switch (t) {
			case 3:
				i = e ? EnumSoundId.OPEN_MALL : EnumSoundId.CLOSE_MALL;
				break;
			default:
				i = EnumSoundId.OPEN_PANEL
		}
		App.sound.playSound(i)
	}, t.prototype.showModal = function() {
		for (var t, e = !1, i = this._showQueue.length, n = 0; i > n; n++)
			if (t = this._infoHash.get(this._showQueue[n]), t && t.isModal) {
				e = !0;
				break
			} if (e) {
			FullScreenMask.ins.addMask(App.layer.panelLayer, -1, FullScreen.Panel), App.layer.panelLayer.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouchStage, this);
			var a = this.getPanel(this._showQueue[i - 1]);
			App.layer.panelLayer.addChild(a)
		} else App.layer.panelLayer.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchStage, this),
			FullScreenMask.ins.removeMask(FullScreen.Panel)
	}, t
}();
__reflect(PanelManager.prototype, "PanelManager");
var PanelResInfo = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.usePanel = {}, e._count = 0, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "count", {
		get: function() {
			return this._count
		},
		set: function(t) {
			this._count = t, 0 >= t && (this.time = 3e4)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(PanelResInfo.prototype, "PanelResInfo");
var PanelInfo = function(t) {
	function e(e, i, n, a, o, r, s) {
		void 0 === s && (s = -1);
		var h = t.call(this) || this;
		return h.father = -1, h.tabIndex = -1, h.isModal = !1, h.checkDispose = !0, h.neverClose = !1, h.isLoaded = !1, h.showClose = !
			0, h.panelID = e, h.res = i, h.resList = h.parseRes(i), h.panelClass = n, h.isModal = a, h.checkDispose = o, h.father =
			r, h.tabIndex = s, h
	}
	return __extends(e, t), e.prototype.parseRes = function(t) {
		for (var e = t.split(","), i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			e[n] = a.trim()
		}
		return e
	}, e
}(egret.HashObject);
__reflect(PanelInfo.prototype, "PanelInfo");
var PanelOpenManager = function() {
	function t() {}
	return t.openPanel = function(t, e, i, n, a) {
		return void 0 === e && (e = null), void 0 === i && (i = !0), void 0 === n && (n = !0), void 0 === a && (a = -1), n &&
			this.isDeadJudge() ? !1 : a > 0 && !App.global.funcOpen.isFunctionOpen(a, "", !0) ? !1 : 30 != t && 47 != t || App
			.global.characterData.guildId && "" != App.global.characterData.guildId && "0" != App.global.characterData.guildId ?
			(App.panel.openPanel(t, e, i), !0) : (App.panel.openPanel(31, e, i), !0)
	}, t.isDeadJudge = function(t) {
		void 0 === t && (t = "");
		for (var e = App.global.roles.roleList, i = 0; i < e.length; i++)
			if (!e[i].getIsDead()) return !1;
		return !0
	}, t.openBuyPanel = function(t, e, i, n, a, o) {
		void 0 === t && (t = null), void 0 === e && (e = 1), void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 ===
			a && (a = !1), void 0 === o && (o = !0), this.openPanel(15, {
				data: t,
				shopType: e,
				panelId: i,
				shenMiShopIndex: n
			}, a)
	}, t.openZoneFinishPanel = function(t, e, i, n, a, o) {
		void 0 === n && (n = !1), void 0 === a && (a = 0), void 0 === o && (o = 0), this.openPanel(34, {
			zoneid: t,
			items: e,
			isfailed: i,
			isShowFailReward: n,
			panelID: a,
			selectedIndex: o
		}, !1, !1)
	}, t.openBagFullAlert = function() {
		return App.data.bagItemDataCenter.isFull() ? (App.panel.isShowing(107) || App.panel.isShowing(18) || App.panel.openPanel(
			107, null, !1), !0) : !1
	}, t.openChargePanel = function(t, e) {
		if (void 0 === t && (t = 0), void 0 === e && (e = !0), e) {
			var i = void 0;
			i = t > 0 ? "元宝不足" + t + "，是否前往充值" : "vip等级不足，是否前往充值", Alert.show(i, "提示", "确定|取消", this.okFunc, this)
		} else this.okFunc(null)
	}, t.okFunc = function(t) {
		0 == App.data.activityCenter.isHasFirstFlush() ? App.global.funcOpen.isFunctionOpen(45) ? this.openPanel(55) :
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">充值暂未开放</font>") : this.openPanel(205)
	}, t
}();
__reflect(PanelOpenManager.prototype, "PanelOpenManager");
var BirthSceneAnimation = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.GetRoleData = function() {
		return App.global.characterData
	}, e.prototype.start = function() {
		var e = this;
		t.prototype.start.call(this);
		var i = this.GetRoleData(),
			n = App.global.mapModule,
			a = new BirthAction(n),
			o = new egret.Point(i.pixel_x, i.pixel_y),
			r = n.mapLoader.mapData.getNode(18, 23),
			s = new egret.Point(r.pixelPoint.x, r.pixelPoint.y),
			h = n.mapEffectModel.creatEffect(ResPathUtil.getMapEffect("jindouyun.json"), i.pixel_x, i.pixel_y);
		a.initJumpFlyData(o, s, h, !0), a.endHandler = new FunctionVO(function() {
			App.dispatcher.dispatchOnce(EventType.PLAYER_SCREEN, [!0]), e.gotoNext()
		}, this);
		var l = new Array;
		l.push(a), i.actionList.resetActionList(l)
	}, e
}(BaseLogicHandler);
__reflect(BirthSceneAnimation.prototype, "BirthSceneAnimation");
var StoryData = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.readBean = function(t) {
		this.type = t.q_type, this.direction = t.q_direction, this.duration = t.q_duration, this.data = t.q_data, this.other =
			t.q_other, this.id = t.q_id, this.data && (-1 != this.data.indexOf("{") ? this.dataObject = JSON.parse(this.data) :
				this.dataObject = this.data), this.other && (-1 != this.other.indexOf("{") ? this.otherObject = JSON.parse(this.other) :
				this.otherObject = this.other)
	}, e.prototype.resetGroupIndex = function() {
		this.group && this.group.setCurIndex(-1)
	}, e
}(egret.HashObject);
__reflect(StoryData.prototype, "StoryData");
var StoryGroup = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.itemVect = new Array, e.curIndex = -1, e
	}
	return __extends(e, t), e.prototype.setCurIndex = function(t) {
		this.curIndex = t
	}, e.prototype.addData = function(t) {
		t && (t.index = this.itemVect.length, t.group = this, this.itemVect.push(t))
	}, e.prototype.getDataByIndex = function(t) {
		return 0 > t || t >= this.itemVect.length ? null : this.itemVect[t]
	}, e.prototype.gotoByIndex = function(t) {
		return 0 > t || t >= this.itemVect.length ? null : (this.curIndex = t, this.itemVect[this.curIndex])
	}, e.prototype.gotoNext = function() {
		return this.curIndex++, this.curIndex < 0 || this.curIndex >= this.itemVect.length ? null : this.itemVect[this.curIndex]
	}, e.prototype.gotoEnd = function() {
		this.curIndex = this.itemVect.length
	}, e.prototype.getCurIndex = function() {
		return this.curIndex
	}, e.prototype.getList = function() {
		return this.itemVect.concat()
	}, e.prototype.getCur = function() {
		return this.curIndex < 0 || this.curIndex >= this.itemVect.length ? null : this.itemVect[this.curIndex]
	}, e.prototype.getNext = function() {
		var t = this.curIndex + 1;
		return 0 > t || t >= this.itemVect.length ? null : this.itemVect[t]
	}, e.prototype.isComplete = function() {
		return this.curIndex >= this.itemVect.length ? !0 : !1
	}, e.prototype.readBean = function(t) {
		this.id = t.q_id, this.triggerType = t.q_type, t.q_checkCondition && (this.checkCondition = JSON.parse(t.q_checkCondition))
	}, e
}(egret.HashObject);
__reflect(StoryGroup.prototype, "StoryGroup");
var StoryLogic = function() {
	function t(t) {
		var e = this;
		this.removeMouse = function() {
				App.timer.doTimeLoop(e, 20, e.removeEvent)
			}, this.removeEvent = function() {
				App.global.mapModule.mapMouseModel.removeMapMouseListen()
			}, this.ResetMouse = function() {
				App.layer.mainLayer.visible = !0, App.layer.moduleLayer.visible = !0, e.PassPort = !1, App.timer.clearTimer(e.removeEvent,
					e), App.global.mapModule.mapMouseModel.addMapMouseListen()
			}, this.PassPort = !0, this.group = t, this.handlerDic = {}, this.handlerDic[1] = DialogHandler, this.handlerDic[2] =
			SelfMoveHandler, this.handlerDic[3] = LookMapHandler, this.handlerDic[5] = FenShenHandler, this.handlerDic[6] =
			ChangeSceneAnimationHandler, this.handlerDic[7] = SelfAttackHandler, this.handlerDic[8] = PlayEffectHandler, this.handlerDic[
				9] = SelfDieHandler, this.handlerDic[10] = CommitTaskHandler, this.handlerDic[11] = ExitSceneHandler, this.handlerDic[
				12] = OnlyTimeHandler, this.handlerDic[13] = HeiBianStartHandler, this.handlerDic[14] = HeiBianEndHandler, this.handlerDic[
				15] = PreLoadEffectHandler, this.handlerDic[16] = MaoPaoHandler, this.handlerDic[17] = BirthSceneAnimation, this.handlerDic[
				18] = CreateDummyRoleHandler, this.handlerDic[19] = ClearDummyRoleHandler, this.handlerDic[20] = ChargeRoleHandler,
			App.dispatcher.addEventListener(EnumEvent.EVENT_STORY_FINISH, this.ResetMouse, this)
	}
	return t.prototype.getGroup = function() {
		return this.group
	}, t.prototype.needGuide = function(t) {
		if (this.group.isComplete()) return !1;
		var e;
		if (!this.group.checkCondition) return !0;
		switch (this.group.triggerType) {
			case 1:
				if (e = t, this.group.checkCondition.taskId == e) return !0;
				break;
			case 2:
				if (e = t, this.group.checkCondition.taskId == e) return !0;
				break;
			case 3:
				if (e = t, this.group.checkCondition.taskId == e) return !0
		}
		return !1
	}, Object.defineProperty(t.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.startStory = function() {
		-1 == this.group.getCurIndex() && (this.removeMouse(), App.dispatcher.dispatchEvent(EventType.CLOSE_AUTO_FIGHT),
			this.gotoNextGuide())
	}, t.prototype.stopStory = function() {
		this.stopAction()
	}, t.prototype.breakStory = function() {
		this.stopAction();
		var t = new BreakStoryHandler(null, null);
		t.start()
	}, t.prototype.gotoNextGuide = function() {
		if (this.PassPort) {
			this.stopAction();
			var t = this.group.gotoNext();
			t ? this.startAction(t) : this.stopStory()
		}
	}, t.prototype.startAction = function(t) {
		var e = this.handlerDic[t.type];
		null != e && (this.curHandler = new e(t, this), this.curHandler.start())
	}, t.prototype.stopAction = function() {
		this.curHandler && (this.curHandler.stop(), this.curHandler = null)
	}, t.prototype.checkOtherTrigger = function(t, e) {}, t
}();
__reflect(StoryLogic.prototype, "StoryLogic");
var StoryTriggerManager = function() {
	function t() {
		this.groupArr = new Array, this.groupDic = {}, this.logicDic = {}
	}
	return t.prototype.init = function() {
		for (var t, e, i, n, a = App.config.q_storyActionContainer.list, o = 0; o < a.length; o++) e = a[o], n = new StoryData,
			n.readBean(e), i = this.groupDic[e.q_groupId], null == i && App.config.q_storyContainer.hasDataBean(e.q_groupId) &&
			(t = App.config.q_storyContainer.getDataBean(e.q_groupId), i = new StoryGroup, i.readBean(t), this.groupArr.push(i),
				this.groupDic[e.q_groupId] = i, this.registerLogic(i.id, new StoryLogic(i))), i && i.addData(n)
	}, t.prototype.getGroup = function(t) {
		return this.groupDic[t]
	}, t.prototype.registerLogic = function(t, e) {
		e.triggerManager = this, this.logicDic[t] = e
	}, t.prototype.getLogic = function(t) {
		return this.logicDic[t]
	}, t.prototype.triggerByType = function(t, e) {
		for (var i = [], n = 2; n < arguments.length; n++) i[n - 2] = arguments[n];
		for (var a, o, r = 0; r < this.groupArr.length; r++) a = this.groupArr[r], o = this.logicDic[a.id], o && (a.triggerType ==
			t ? o.needGuide(i) && e && o.startStory() : o.checkOtherTrigger(t, i))
	}, t.prototype.isGroupIng = function(t) {
		var e = this.getGroup(t);
		return e ? e.getCurIndex() > -1 && !e.isComplete() : !1
	}, t.prototype.getGroupIndex = function(t) {
		var e = this.getGroup(t);
		return e ? e.getCurIndex() : -1
	}, t
}();
__reflect(StoryTriggerManager.prototype, "StoryTriggerManager");
var Alert = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._showBoo = !0, e.init(), e
	}
	return __extends(e, t), Object.defineProperty(e, "instance", {
		get: function() {
			return this._instance || (this._instance = new e), this._instance
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onStageSize = function() {
		this.showIn()
	}, e.prototype.init = function() {
		this._winLayer || (App.layer ? this._winLayer = App.layer.panelLayer : this._winLayer = egret.MainContext.instance.stage),
			this._window = new WindowThird, this.addChild(this._window), this._view = UIMaker.createViewBase("AlertSkin"),
			this._window.addChild(this._view), this._window.groupClick.visible = !1
	}, e.show = function(t, i, n, a, o, r, s, h, l, p, c) {
		return void 0 === i && (i = "提示"), void 0 === n && (n = e.DEFAULT_BTN_LABEL), void 0 === a && (a = null), void 0 ===
			o && (o = null), void 0 === r && (r = null), void 0 === s && (s = !1), void 0 === h && (h = !0), void 0 === l && (
				l = !0), void 0 === p && (p = !1), void 0 === c && (c = !1), p = !1, e.isCheckRepeat = c, this._dialog = l ? this
			.instance : new e, !e._dialog._showBoo && c ? null : (this._dialog.setData(t, i, n, a, o, r, s, h, l, p), this._dialog
				.showIn(), this._dialog)
	}, e.showAlert = function(t, i, n, a, o, r, s, h, l) {
		void 0 === r && (r = !1), void 0 === s && (s = !1), void 0 === h && (h = !0), void 0 === l && (l = !1);
		var p = "",
			c = GameUtil.getAlertTipsConfigDataById(t);
		if (null != c) {
			null != i ? p += StringUtil.substitute(c.q_alertDesc, i) : p = c.q_alertDesc;
			var _ = "" == c.q_title ? "提示" : c.q_title,
				d = "" == c.q_ok_label ? "确 定" : c.q_ok_label,
				u = "" == c.q_cancel_label ? "取 消" : c.q_cancel_label,
				g = 0 == c.q_show_cancelBtn,
				f = g ? d + "|" + u : d;
			e.show(p, _, f, n, a, o, r, s, h, l)
		}
	}, e.prototype.setData = function(t, i, n, a, o, r, s, h, l, p) {
		void 0 === i && (i = "提示"), void 0 === n && (n = "确定|取消"), void 0 === a && (a = null), void 0 === o && (o = null),
			void 0 === r && (r = null), void 0 === s && (s = !1), void 0 === h && (h = !1), void 0 === l && (l = !0), void 0 ===
			p && (p = !1), e.isCheckRepeat ? this._view.checkBox.visible = !0 : this._view.checkBox.visible = !1, this._isModal =
			h, this._callback = a, this._thisArg = o, this._args = r, this._window.setTitle(i), this.setMsg(t, s);
		var c = n.split("|");
		c.length > 1 ? (this._view.btnCancel.visible = !0, this._view.btnSure.label = c[0], this._view.btnCancel.label = c[
				1], p ? (this._view.btnSure.x = 39, this._view.btnCancel.x = 221) : (this._view.btnSure.x = 221, this._view.btnCancel
				.x = 39), this._view.btnSure.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this), this._view.btnCancel
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this)) : (this._view.btnCancel.visible = !1, this._view
			.btnSure.label = c[0], this._view.btnSure.x = this.width - this._view.btnSure.width >> 1, this._view.btnSure.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClose, this))
	}, Object.defineProperty(e.prototype, "showBoo", {
		get: function() {
			return this._showBoo
		},
		set: function(t) {
			this._showBoo = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setMsg = function(t, e) {
		e ? this._view.desc_txt.textFlow = (new egret.HtmlTextParser).parse(t) : this._view.desc_txt.text = t
	}, e.prototype.showIn = function() {
		this._eventRegister || (this._eventRegister = new DispatcherRegister);
		var t = App.stage ? App.stage : egret.MainContext.instance.stage;
		this._eventRegister.addEventListener(egret.Event.RESIZE, this.onStageSize, this, t), this._winLayer.contains(this) ?
			this._winLayer.setChildIndex(this, this._winLayer.numChildren - 1) : this._winLayer.addChildAt(this, this._winLayer
				.numChildren), this._isModal && this.drawModalBg(), this.x = t.stageWidth - this.width >> 1, this.y = t.stageHeight -
			this.height >> 1
	}, e.prototype.drawModalBg = function() {
		this._modalBg || (this._modalBg = new egret.Shape), this._modalBg.touchEnabled = !0, this._modalBg.graphics.clear(),
			this._modalBg.graphics.beginFill(0, .4), this._modalBg.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT),
			this._modalBg.graphics.endFill(), this._winLayer.contains(this._modalBg) || this._winLayer.addChildAt(this._modalBg,
				this._winLayer.numChildren - 1)
	}, e.prototype.onClose = function(t) {
		if (this.checkHandler(), this._callback && this._thisArg) {
			var i = 0,
				n = {
					type: i,
					data: this._args
				};
			switch (t.currentTarget) {
				case this._view.btnSure:
					e.isCheckRepeat ? FunctionApply.doExecute(this._callback, this._thisArg, [n]) : FunctionApply.doExecute(this._callback,
						this._thisArg, [this._args]);
					break;
				case this._view.btnCancel:
			}
		}
		this.dispose()
	}, e.prototype.removeListeners = function() {
		this._view.btnSure.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this), this._view.btnCancel.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClose, this)
	}, e.prototype.dispose = function() {
		var t = this;
		this._isModal = !1, this._callback = null, this._thisArg = null, this._args = null, this._dialog = null, this._winLayer
			.contains(t) && this._winLayer.removeChild(t), this._modalBg && this._winLayer.contains(this._modalBg) && this._winLayer
			.removeChild(this._modalBg), this.removeListeners(), this._eventRegister && (this._eventRegister.removeEventListener(
				egret.Event.RESIZE, this.onStageSize, this, egret.MainContext.instance.stage), this._eventRegister = null)
	}, e.prototype.checkHandler = function() {
		this._showBoo = !this._view.checkBox.selected
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 378
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 344
		},
		enumerable: !0,
		configurable: !0
	}), e.DEFAULT_BTN_LABEL = "确定|取消", e
}(h5_engine.GDisplayObjectContainer);
__reflect(Alert.prototype, "Alert");
var BreakStoryHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), console.log("BreakStoryHandler  start");
		App.layer.storyLayer;
		this.stopStory()
	}, e.prototype.stopStory = function() {
		this.finish(), console.log("end stopStory")
	}, e
}(BaseLogicHandler);
__reflect(BreakStoryHandler.prototype, "BreakStoryHandler");
var ChangeSceneAnimationHandler = function(t) {
	function e(e, i) {
		var n = t.call(this, e, i) || this;
		return n.LookFirstPoint = function() {
			App.dispatcher.dispatchEvent(EventType.PLAYER_SCREEN, !1);
			var t = App.global.mapModule,
				e = t.mapLoader.mapData.getNode(18, 23),
				i = new egret.Point;
			i.x = e.pixelPoint.x, i.y = e.pixelPoint.y, t.mapSceneModel.updateMapScreenCencterPosition(i), t.secne.update(t.mapSceneModel
				.screen.x, t.mapSceneModel.screen.y)
		}, n.playOnce = !1, n.showMaskConent = function() {
			if (!n.playOnce) {
				n.playOnce = !0;
				var t = App.layer.storyLayer;
				n.backRect = new egret.Shape, n.backRect.graphics.beginFill(0), n.backRect.graphics.drawRect(0, 0, Config.SCREEN_WIDTH,
					Config.SCREEN_HEIGHT), n.backRect.graphics.endFill(), t.addChild(n.backRect);
				var e = UIMaker.getCImage(t, n, ResPathUtil.getImgPath("first1", "story")),
					i = UIMaker.getCImage(t, n, ResPathUtil.getImgPath("first2", "story"));
				n.img3 = UIMaker.getCImage(t, n, ResPathUtil.getImgPath("first3", "story")), e.y = i.y = n.img3.y = (Config.SCREEN_HEIGHT >>
					1) - 270, e.width = i.width = n.img3.width = 40, e.height = i.height = n.img3.height = 535, e.x = (Config.SCREEN_WIDTH >>
					1) - 200, i.x = e.x + 180, n.img3.x = i.x + 180, n.moveRect = n.createMaskShape(t, e);
				var a = n.createMaskShape(t, i);
				n.moveRect3 = n.createMaskShape(t, n.img3), TweenLite.to(n.moveRect, n.curAction.duration / 1e3, {
					y: e.y + e.height,
					onComplete: n.NextImgTween,
					onCompleteScope: n,
					onCompleteParams: [a, i]
				})
			}
		}, n.NextImgTween = function(t, e) {
			TweenLite.to(t, n.curAction.duration / 1e3, {
				y: e.y + e.height,
				onComplete: n.LastImgTween,
				onCompleteScope: n
			})
		}, n.LastImgTween = function() {
			n.img3 ? TweenLite.to(n.moveRect3, n.curAction.duration / 1e3, {
				y: n.img3.y + n.img3.height,
				onComplete: n.stop,
				onCompleteScope: n
			}) : n.stop()
		}, n.createMaskShape = function(t, e) {
			var i = new egret.Shape;
			return i.graphics.beginFill(0), i.graphics.drawRect(0, 0, e.width, e.height), i.graphics.endFill(), t.addChild(i),
				i.x = e.x, i.y = e.y, i
		}, n
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resizeHandler, this),
			this.showMaskConent(), App.global.mapModule.mapMouseModel.controlRoleData.ai.isRuning = !1, this.LookFirstPoint()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.playOnce = null;
		var i = App.layer.storyLayer;
		App.dispatcher.removeEventListener(egret.Event.RESIZE, this.resizeHandler, this);
		var n = [];
		i.$children.map(function(t) {
				n.push(t)
			}), n.map(function(t) {
				i.removeChild(t)
			}), TweenLite.killTweensOf(this.moveRect), TweenLite.killTweensOf(this.moveRect3), this.moveRect = null, this.backRect =
			null, this.moveRect3 = null, this.img3 = null, App.dispatcher.dispatchOnce(EnumEvent.EVENT_STORY_TRANSITION), e.StopMoving = !
			0, App.global.mapModule.mapMouseModel.controlRoleData.ai.isRuning = !0, App.sound.stopAll()
	}, e.prototype.resizeHandler = function(t) {
		void 0 === t && (t = null), this.backRect && (this.backRect.graphics.beginFill(0), this.backRect.graphics.drawRect(
			0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this.backRect.graphics.endFill())
	}, e.StopMoving = !0, e
}(BaseLogicHandler);
__reflect(ChangeSceneAnimationHandler.prototype, "ChangeSceneAnimationHandler");
var ChargeRoleHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.calllaterH()
	}, e.prototype.calllaterH = function() {
		var t, e, i, n = App.global.mapModule.mapLoader.mapData.getNode(this.curAction.dataObject.x, this.curAction.dataObject
			.y);
		if (FenShenHandler.tempRoleArray)
			for (i = 0; i < FenShenHandler.tempRoleArray.length; i++) t = new ChargeAction2(App.global.mapModule, n, -1, 1,
				null), e = FenShenHandler.tempRoleArray[i], e.actionList.setNext(t);
		var a = (t = new ChargeAction2(App.global.mapModule, n, -1, 1, null), App.global.mapModule.mapMouseModel.controlRoleData);
		if (a.actionList.setNext(t), CreateDummyRoleHandler.tempRoleArray)
			for (i = 0; i < CreateDummyRoleHandler.tempRoleArray.length; i++) e = CreateDummyRoleHandler.tempRoleArray[i],
				TweenLite.to(e.roleView, .1 + .05 * i, {
					delay: .1,
					alpha: 0,
					onComplete: this.BeHitFlyComplete,
					onCompleteParams: [e.personId, i],
					onCompleteScope: this
				}), App.timer.doTimeOnce(e.actionList, 100 + 50 * i, e.actionList.setNext, [new BeHitFlyAction(App.global.characterData)])
	}, e.prototype.BeHitFlyComplete = function(t, e) {
		App.global.mapModule.mapDummyModel.deleteRole(t), e == CreateDummyRoleHandler.tempRoleArray.length - 1 && this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(ChargeRoleHandler.prototype, "ChargeRoleHandler");
var ClearDummyRoleHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), App.global.mapModule.mapDummyModel.clear(), this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(ClearDummyRoleHandler.prototype, "ClearDummyRoleHandler");
var CommitTaskHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.gotoNext()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this)
	}, e
}(BaseLogicHandler);
__reflect(CommitTaskHandler.prototype, "CommitTaskHandler");
var CreateDummyRoleHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), App.dispatcher.dispatchOnce(EnumEvent.EVENT_STORY_RETURN, !1);
		var i, n, a = this.curAction.dataObject;
		e.tempRoleArray = [];
		for (var o, r = 0, s = a.length; s > r; r++) i = a[r], n = App.global.mapModule.mapLoader.mapData.getNode(i.x, i.y),
			n && (o = App.global.mapModule.mapDummyModel.createDummyByVirtual((1e4 * i.id + r).toString(), i.id, n.pixelPoint.x,
				n.pixelPoint.y, i.dir), e.tempRoleArray.push(o));
		e.tempRoleArray.map(function(t) {
			t.roleView.addAvatar(), t.roleView.hpBar.visible = !1, t.roleView.hidenName(), t.roleView.shadow.setContainer(
				App.global.mapModule.secne.shadowLayer), t.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, 5)
		}), this.startTime()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this)
	}, e
}(BaseLogicHandler);
__reflect(CreateDummyRoleHandler.prototype, "CreateDummyRoleHandler");
var DialogHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), App.timer.doTimeOnce(this, 1e3, this.callLaterSetData)
	}, e.prototype.callLaterSetData = function() {
		var t, e = this.curAction.dataObject;
		this.delayTimerArr = [], t = e[0], this.setDialogViewData(t)
	}, e.prototype.clearDelayTime = function() {
		if (null != this.delayTimerArr)
			for (var t; this.delayTimerArr.length;) t = this.delayTimerArr.pop(), App.timer.clearTimer(t, this)
	}, e.prototype.setDialogViewData = function(t) {
		var e = this;
		this.curAction.dataObject.push(new FunctionVO(function() {
			e.gotoNext()
		}, this)), App.panel.openPanel(109, this.curAction.dataObject)
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.clearStartTime(), this.clearDelayTime()
	}, e
}(BaseLogicHandler);
__reflect(DialogHandler.prototype, "DialogHandler");
var ExitSceneHandler = function(t) {
	function e(e, i) {
		var n = t.call(this, e, i) || this;
		return n.NextImgTween = function(t, e) {
			console.log("NextImgTween"), TweenLite.to(t, n.curAction.duration / 1e3, {
				x: e.x + e.width,
				onComplete: n.stopStory,
				onCompleteScope: n
			})
		}, n.createMaskShape = function(t, e) {
			var i = new egret.Shape;
			return i.graphics.beginFill(0), i.graphics.drawRect(0, 0, e.width, e.height), i.graphics.endFill(), t.addChild(i),
				i.x = e.x, i.y = e.y, i
		}, n.playerEffect = function() {
			var t = ResPathUtil.getMapEffect(n.curAction.dataObject.effectId);
			n.Effect = EffectUtils.showCEffect(n, App.layer.storyLayer, t, 0, 0, n.Effect), n.Effect.setTo((Config.SCREEN_WIDTH >>
				1) + 20, (Config.SCREEN_HEIGHT >> 1) - 290)
		}, n
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), console.log("ExitSceneHandler  start");
		var e = App.layer.storyLayer;
		if (null == this.shape) {
			App.global.mapModule.mapMouseModel.controlRoleData.actionList.isRuning = !1, this.shape = new egret.Shape, this.shape
				.graphics.beginFill(0), this.shape.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this.shape
				.graphics.endFill(), e.addChild(this.shape);
			var i = UIMaker.getCImage(e, this, ResPathUtil.getImgPath("last1", "story")),
				n = UIMaker.getCImage(e, this, ResPathUtil.getImgPath("last2", "story"));
			i.y = (Config.SCREEN_HEIGHT >> 1) - 100, n.y = i.y + 50, i.x = (Config.SCREEN_WIDTH >> 1) - 200, n.x = i.x, i.width =
				n.width = 442, i.height = n.height = 43;
			var a = this.createMaskShape(e, i),
				o = this.createMaskShape(e, n);
			this.playerEffect(), TweenLite.to(a, this.curAction.duration / 1e3, {
				x: i.x + i.width,
				onComplete: this.NextImgTween,
				onCompleteScope: this,
				onCompleteParams: [o, n]
			})
		}
	}, e.prototype.stopStory = function() {
		this.Effect && (this.Effect = null);
		var t = App.layer.storyLayer,
			e = [];
		t.$children.map(function(t) {
			e.push(t)
		}), e.map(function(e) {
			t.removeChild(e)
		}), ZoneCommandSender.sendC2S_ZoneFinishMessage(), this.finish(), console.log("end stopStory")
	}, e.prototype.removeShape = function() {
		this.shape && (this.shape.parent.removeChild(this.shape), this.shape = null)
	}, e
}(BaseLogicHandler);
__reflect(ExitSceneHandler.prototype, "ExitSceneHandler");
var FenShenHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this);
		var i, n, a = this.curAction.dataObject,
			o = App.global.mapModule.mapLoader.mapData.getNode(this.roleData.mapNode_x, this.roleData.mapNode_y);
		e.tempRoleArray = [];
		for (var r, s = 0, h = a.length; h > s; s++)
			if (i = a[s], n = App.global.mapModule.mapLoader.mapData.getNode(i.x, i.y)) {
				var l = new JumpAction(App.global.mapModule);
				l.initJumpFlyData(n, null, null, null), l.reason = 0, r = App.global.mapModule.mapDummyModel.createDummyByVirtual(
						(1e4 * i.id + s).toString(), i.id, o.pixelPoint.x, o.pixelPoint.y, i.dir, l, !0), r.roleView.hpBar.visible = !1,
					r.roleView.hidenName(), e.tempRoleArray.push(r)
			} this.startTime()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(FenShenHandler.prototype, "FenShenHandler");
var HeiBianEndHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(HeiBianEndHandler.prototype, "HeiBianEndHandler");
var HeiBianStartHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(HeiBianStartHandler.prototype, "HeiBianStartHandler");
var LookMapHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		if (t.prototype.start.call(this), this.curAction.otherObject)
			for (var e = this.curAction.otherObject, i = void 0, n = void 0, a = 0, o = e.length; o > a; a++) i = e[a], n =
				App.global.mapModule.mapLoader.mapData.getNode(i.x, i.y), n && App.global.mapModule.mapDummyModel.createDummyByVirtual(
					(100 * i.id + a).toString(), i.id, n.pixelPoint.x, n.pixelPoint.y, i.dir);
		if (this._targetPoint = App.global.mapModule.mapLoader.mapData.getNode(this.curAction.dataObject.x, this.curAction.dataObject
				.y), this._moveToPoint = new egret.Point(this.roleData.pixel_x, this.roleData.pixel_y), 79 == this.curAction.dataObject
			.x) {
			var r = App.global.mapModule.mapLoader.mapData.getNode(89, 13);
			this._moveToPoint = new egret.Point(r.pixelPoint.x, r.pixelPoint.y)
		}
		TweenLite.to(this._moveToPoint, this.curAction.duration / 1e3, {
			x: this._targetPoint.pixelPoint.x,
			y: this._targetPoint.pixelPoint.y,
			onComplete: this.onCompete,
			onUpdate: this.onUpdate,
			onCompleteScope: this,
			onUpdateScope: this,
			ease: Linear.easeInOut
		})
	}, e.prototype.onUpdate = function() {
		this._moveToPoint && App.global.mapModule.mapMouseModel.moveMapCenterToPoint(this._moveToPoint.x, this._moveToPoint
			.y)
	}, e.prototype.onCompete = function() {
		this.gotoNext()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), App.global.mapModule.mapDummyModel.clear(), this._moveToPoint && TweenLite.killTweensOf(
			this._moveToPoint), this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(LookMapHandler.prototype, "LookMapHandler");
var MaoPaoHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.roleData.roleView.showChatBubble(this.curAction.dataObject.self), this.startTime()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(MaoPaoHandler.prototype, "MaoPaoHandler");
var OnlyTimeHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.startTime()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(OnlyTimeHandler.prototype, "OnlyTimeHandler");
var PlayEffectHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		if (t.prototype.start.call(this), this.curAction.dataObject) {
			var e = App.global.mapModule.mapLoader.mapData.getNode(this.curAction.dataObject.x, this.curAction.dataObject.y);
			e && (this.effect = App.thing.create(CPlayOnceEffect, "PlayEffectHandler", !0), this.effect.url = ResPathUtil.getMapEffect(
					this.curAction.dataObject.effectId), this.effect.play(), this.effect.setTo(e.pixelPoint.x, e.pixelPoint.y),
				this.effect.addParent(App.global.mapModule.secne.groundMagic))
		}
		this.curAction.duration ? this.startTime() : this.gotoNext()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.effect.finishCallBackFun = null, this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(PlayEffectHandler.prototype, "PlayEffectHandler");
var PreLoadEffectHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this);
		var e = App.thing.create(CPlayOnceEffect, "PreLoadEffectHandler", !0);
		e.url = ResPathUtil.getMapEffect(this.curAction.dataObject.effectId), this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(PreLoadEffectHandler.prototype, "PreLoadEffectHandler");
var PreLoadRoleHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.gotoNext()
	}, e
}(BaseLogicHandler);
__reflect(PreLoadRoleHandler.prototype, "PreLoadRoleHandler");
var SelfAttackHandler = function(t) {
	function e(e, i) {
		var n = t.call(this, e, i) || this;
		return n.curAction.direction = 2, n
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.gotoNext()
	}, e.prototype.updateHandler = function() {
		if (0 == this.roleData.actionList.length && this.skills)
			for (var t, e = 0; e < this.skills.length; e++) t = this.skills[e], this.roleData.operation.onUserSkill(!1, t, 1,
				!1), this.changeDirection()
	}, e.prototype.getSkillArr = function() {
		var t = App.data.skillCenter.getJobSkillList(EnumRole.HOU_ZI);
		if (t) {
			for (var e = [], i = t.length, n = 0; i > n; n++) e.push(t[n].q_skillID);
			return e
		}
		return null
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), App.timer.clearTimer(this.updateHandler, this), this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(SelfAttackHandler.prototype, "SelfAttackHandler");
var SelfDieHandler = function(t) {
	function e(e, i) {
		return t.call(this, e, i) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), this.roleData.changeDirAction(AvatarActionType.ACTION_TYPE_DIE, -1, !1), this.roleData
			.roleView.roleHeadLayout.visible = !1, this.startTime()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), this.roleData.roleView.roleHeadLayout.visible = !0, this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(SelfDieHandler.prototype, "SelfDieHandler");
var SelfMoveHandler = function(t) {
	function e(e, i) {
		var n = t.call(this, e, i) || this;
		return n.RestPos = function() {
			var t = App.global.mapModule.mapMouseModel.controlRoleData;
			t.actionList.clearList();
			var e = App.global.mapModule.mapLoader.mapData.getNode(74, 30);
			t.move_to_x = e.pixelPoint.x, t.move_to_y = e.pixelPoint.y
		}, n
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this), App.timer.doTimeOnce(this, 50, this.startCalllater)
	}, e.prototype.startCalllater = function() {
		this.func = new FunctionVO(this.doFinish, this), this.curAction.duration && (13 == this.curAction.id ? App.dispatcher
			.dispatchEvent(EventType.CHARACTER_MOVE_TO_POSITION, this.roleData.mapId, this.curAction.dataObject.x, this.curAction
				.dataObject.y, [new FunctionVO(this.RestPos, this), new FunctionVO(this.doFinish, this)]) : (App.timer.doTimeOnce(
				this, this.curAction.duration, this.doFinish), App.dispatcher.dispatchEvent(EventType.CHARACTER_MOVE_TO_POSITION,
				this.roleData.mapId, this.curAction.dataObject.x, this.curAction.dataObject.y)))
	}, e.prototype.doFinish = function() {
		App.timer.clearTimer(this.startCalllater, this), this.gotoNext()
	}, e.prototype.stop = function() {
		t.prototype.stop.call(this), App.timer.clearTimer(this.startCalllater, this), this.func = null, this.clearStartTime()
	}, e
}(BaseLogicHandler);
__reflect(SelfMoveHandler.prototype, "SelfMoveHandler");
var TipData = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n.type = 1, n.isHtml = !1, n.type = e, n.data = i, n
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this.type = null, this.data = null
	}, e
}(egret.HashObject);
__reflect(TipData.prototype, "TipData");
var TipManager = function() {
	function t() {
		this._tipStyleHash = new HashMap, this._tipTargetDataHash = new HashMap, this._tipViewHash = new HashMap, this.register()
	}
	return t.prototype.register = function() {
		this.registerTipStyle(1, TextTip), this.registerTipStyle(2, ItemTip), this.registerTipStyle(4, EquipTip), this.registerTipStyle(
				9, EquipUpStarSuitTip), this.registerTipStyle(10, HejiSkillTip), this.registerTipStyle(12, SurfaceTip), this.registerTipStyle(
				13, ArtifactTip), this.registerTipStyle(14, WeaponSoulSkilltip), this.registerTipStyle(15, GodWingTIP), this.registerTipStyle(
				16, GodWingTZTIP), this.registerTipStyle(17, KunSkillTip), this.registerTipStyle(18, WarpetSkillTip), this.registerTipStyle(
				19, WarpetTip), this.registerTipStyle(20, ChuanQiTaoZhuangTip), this.registerTipStyle(21, RexueTaozhuangTip),
			this.registerTipStyle(22, StateTip), this.registerTipStyle(23, FaBaoEquipTip), this.registerTipStyle(24,
				RunesTipView)
	}, t.prototype.registerTipStyle = function(t, e) {
		this._tipStyleHash.put(t, e)
	}, t.prototype.getTipStyle = function(t) {
		var e = this._tipViewHash.get(t);
		if (null == e) {
			var i = this._tipStyleHash.get(t);
			i && (e = new i, this._tipViewHash.put(t, e))
		}
		return e
	}, t.prototype.getTipData = function(t) {
		return this._tipTargetDataHash.get(t)
	}, t.prototype.addTip = function(t, e) {
		if (t) {
			if (!e) return void GameLog.logError("TipManager", "无效的 TipData");
			this.removeTip(t), this._tipTargetDataHash.put(t, e), t.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTipShow,
				this), this._currentTarget && this._currentTarget == t && this._currentTarget.stage && this.showTip(e)
		}
	}, t.prototype.removeTip = function(t, e) {
		if (void 0 === e && (e = !0), t) {
			var i = this.getTipData(t);
			if (null != i && void 0 != i) {
				var n = this.getTipStyle(i.type);
				n == this._currentTipStyle && e && this._currentTarget == t && this.removeTipFromeStage(n), t.removeEventListener(
					egret.TouchEvent.TOUCH_TAP, this.onTipShow, this), this._tipTargetDataHash.del(t)
			}
		}
	}, t.prototype.resize = function() {
		this._currentTipStyle && this._currentTipStyle.stage && this._currentTipStyle.resize()
	}, t.prototype.onTipShow = function(t) {
		var e = this.getTipData(t.currentTarget);
		e && (this._currentTarget = t.currentTarget, this.showTip(e))
	}, t.prototype.showTip = function(t) {
		var e = this.getTipStyle(t.type);
		return e ? (this._currentTipStyle = e, e.show(t), e.scaleX = 0, e.scaleY = 0, e.x = Config.SCREEN_WIDTH / 2, e.y =
			Config.SCREEN_HEIGHT / 2, TweenLite.to(e, .25, {
				x: 0,
				y: 0,
				scaleX: 1,
				scaleY: 1
			}), App.layer.tipLayer.addChild(e), App.layer.tipLayer.addChildAt(this._currentTipStyle.modalBg, 0), void this._currentTipStyle
			.modalBg.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTipHide, this)) : void GameLog.logError("未注册Tip样式" +
			t.type)
	}, t.prototype.onTipHide = function(t) {
		this._currentTipStyle && egret.is(t.target, "h5_engine.GShape") && TweenLite.to(this._currentTipStyle, .25, {
			x: Config.SCREEN_WIDTH / 2,
			y: Config.SCREEN_HEIGHT / 2,
			scaleX: 0,
			scaleY: 0,
			onComplete: this.tweenEnd,
			onCompleteScope: this
		})
	}, t.prototype.removeTipFromeStage = function(t) {
		t && (t.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTipHide, this), t.parent && (App.layer.tipLayer.removeChild(
			t.modalBg), t.hide(), t.parent.removeChild(t)))
	}, t.prototype.hideTip = function(t) {
		this.removeTipFromeStage(this._currentTipStyle), this._currentTarget = void 0, this._currentTipStyle = void 0
	}, t.prototype.tweenEnd = function() {
		this._currentTipStyle && (this.removeTipFromeStage(this._currentTipStyle), this._currentTarget = void 0, this._currentTipStyle =
			void 0)
	}, t.prototype.tipBelongTarget = function(t) {
		return this._currentTarget == t
	}, t
}();
__reflect(TipManager.prototype, "TipManager");
var TipRegister = function() {
	function t() {
		this._clsObj = {}, this.init()
	}
	return t.prototype.init = function() {}, t.prototype.register = function(t, e) {
		this._clsObj[t] = e
	}, t.prototype.getClass = function(t) {
		return this._clsObj[t]
	}, t
}();
__reflect(TipRegister.prototype, "TipRegister");
var EnumGrid = function() {
	function t() {}
	return t.LAYER = 0, t.BAG = 1, t.DEPOT = 2, t.SHOP = 3, t.SKILL = 4, t.MAIN_SHORTCUT = 5, t.CHAR = 6, t.GUILD_BAG = 7,
		t.GUILD_DEPOT = 8, t.DEAL = 9, t.RECOVERYBAG = 10, t.RECOVERYDEPOT = 11, t.TIP = 12, t.MALL = 13, t.AWARD = 14, t.ZONE_FINISH =
		15, t.STRENGTHER = 16, t.FORGESS = 17, t.FORGEBAG = 18, t.INSCRIPTION = 20, t.TRANSFERORIGINAL = 21, t.TRANSFERTARGET =
		22, t.COMPOSEBAG = 23, t.COMPOSEUP = 24, t.COMPOSELEFT = 25, t.COMPOSERIGHT = 26, t.EQUIPMASTER = 27, t.TANBAO = 28,
		t.TALENT = 128, t.WARPET_DEPOT = 30, t.WARPET_FUSE_MAIN = 31, t.WARPET_FUSE_VICE = 32, t.WARPET_CHOOSE = 33, t.WARPET_HEAD =
		34, t.WARPET_FIT = 35, t.SOULSTONE = 37, t.SOULSTONEBAG = 38, t.GODEQUIP = 39, t
}();
__reflect(EnumGrid.prototype, "EnumGrid");
var DebugPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new DebugPanelUI, this.addChild(this._view), this._dataSouce = new eui.ArrayCollection, this._view.list
			.itemRendererSkinName = "DebugItemRender", this._view.list.dataProvider = this._dataSouce, this._dataArr = [],
			this._index = 1, this._first = !0
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 654
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 862
		},
		enumerable: !0,
		configurable: !0
	}), e.show = function(t, e) {
		void 0 === e && (e = "")
	}, e
}(BasePanel);
__reflect(DebugPanel.prototype, "DebugPanel");
var FuncOpenView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "FuncOpenSkin", e.bg_img.source = ResPathUtil.getImgPath("bg", "func_open"), e
	}
	return __extends(e, t), e.prototype.init = function(t, e) {
		if (void 0 === e && (e = null), this.funcVo = e, this.funcOpenId = t, this.funcOpenId > 0) {
			var i = App.config.q_functionContainer.getDataBean(this.funcOpenId);
			this.des_txt.text = i.q_describe_func, this.func_img.source = ResPathUtil.getImgPath("" + this.funcOpenId,
				"func_open"), this.open_btn.label = "激活" + i.q_function_name, this.guide.show("点击激活" + i.q_function_name, Guide.RIGHT,
				79, this.open_btn.y + 30, this.open_btn, !0, this.open_btn.x, this.open_btn.y), this.parent && (this.parent.visible = !
				0)
		} else this.dispose()
	}, e.prototype.createEffect = function() {
		null == this._lightEffect && (this._lightEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"function", "light"), 310, 260, this._lightEffect)), null == this._upEffect && (this._upEffect = EffectUtils.showCEffect(
			this, this, ResPathUtil.getMenuEffect("function", "up"), 310, 90, this._upEffect)), null == this._downEffect && (
			this._downEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("function", "down"), 310, 750,
				this._downEffect)), 49 == this.funcOpenId ? (null == this._funcEffect && (this._funcEffect = EffectUtils.showCEffect(
				this, this, ResPathUtil.getMenuEffect("treasure", "treasure"), 310, 440, this._funcEffect), this._funcEffect.visible = !
			0), null == this._funcEffect1 && (this._funcEffect1 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"treasure", "treasure1"), 310, 440, this._funcEffect1), this._funcEffect1.visible = !0), this._avatar && (this._avatar
			.visible = !1)) : 5 == this.funcOpenId && (this.addAvatarUI(), this._funcEffect && (this._funcEffect.visible = !1),
			this._funcEffect1 && (this._funcEffect1.visible = !1)), App.timer.doTimeOnce(this, 2e3, this.onTimer)
	}, e.prototype.addAvatarUI = function() {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.touchEnabled = !1, this._avatar.x = 310,
			this._avatar.y = 630, this.addChild(this._avatar)), this._avatar.visible = !0;
		var t = App.config.q_surfaceContainer.getDataBean(501);
		if (!t) return void Notice.showMousePosMessage("id:501的翅膀配置不存在");
		var e = t.q_scene_show_id;
		this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 10, e)
	}, e.prototype.onTimer = function() {
		App.timer.clearTimer(this.onTimer, this), App.global.funcOpen.isFunctionOpen(this.funcOpenId) && (this.funcVo &&
			this.funcVo.exec(), App.global.funcOpen.setOpenObj(this.funcOpenId), this.dispose())
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.heidi_img.visible = !1, this.open_btn.visible = !0, this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onOpen, this, this.open_btn), this._dispatcher.addEventListener(EventType.SHOW_HIDE_PANEL,
			this.showbackBtn, this)
	}, e.prototype.showbackBtn = function(t) {
		0 == t && (App.global.funcOpen.setOpenObj(this.funcOpenId), this.dispose())
	}, e.prototype.onOpen = function() {
		this.hideGuide(this.open_btn, 227, 794), App.global.funcOpen.isFunctionOpen(this.funcOpenId, "", !0) && (this.open_btn
			.visible = !1, this.heidi_img.visible = !0, this.createEffect())
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.funcVo = null, App.timer.clearTimer(this.onTimer, this), this.hideGuide(this.open_btn, 227, 794), this._lightEffect &&
			this._lightEffect.dispose(), this._lightEffect = null, this._upEffect && this._upEffect.dispose(), this._upEffect =
			null, this._downEffect && this._downEffect.dispose(), this._downEffect = null, this._funcEffect && this._funcEffect
			.dispose(), this._funcEffect = null, this._funcEffect1 && this._funcEffect1.dispose(), this._funcEffect1 = null,
			this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(),
				this._avatar = null), this.parent && (this.parent.visible = !1, this.parent.removeChild(this)), t.prototype.dispose
			.call(this)
	}, e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this.addChild(t), t.x = e, t.y = i)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(FuncOpenView.prototype, "FuncOpenView");
var GameScreen = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.onInitGame(), e
	}
	return __extends(e, t), e.prototype.onInitGame = function() {
		this._eventRegister = new DispatcherRegister, this._eventRegister.addEventListener(egret.Event.RESIZE, this.onStageSize,
				this, App.stage), this._eventRegister.addEventListener(egret.Event.ACTIVATE, this.onActiveChange, this, App.stage),
			this._eventRegister.addEventListener(egret.Event.DEACTIVATE, this.onActiveChange, this, App.stage), this.initMain()
	}, e.prototype.initMain = function() {
		this._mainPanel = new MainPanel, App.layer.mainLayer.addChild(this._mainPanel), this._mainPanel.resize()
	}, e.prototype.onStageSize = function(t) {
		void 0 === t && (t = null), Config.SCREEN_WIDTH = App.stage.stageWidth, Config.SCREEN_HEIGHT = App.stage.stageHeight,
			App.layer.moduleLayer.width = Config.SCREEN_WIDTH, App.layer.moduleLayer.height = Config.SCREEN_HEIGHT, null !=
			this._mainPanel && this._mainPanel.resize(), App.tip.resize(), App.dispatcher.dispatchEvent(EventType.STGAE_RESIZE),
			Notice.resize()
	}, e.prototype.onActiveChange = function(t) {
		t.type == egret.Event.ACTIVATE ? GameLog.log("Flash焦点恢复") : GameLog.log("Flash焦点失去")
	}, e
}(Dispose);
__reflect(GameScreen.prototype, "GameScreen");
var RewardConfirmUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ConfirmRewardPanelSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.setTitle = function(t) {
		this.title_txt.text = t
	}, e.prototype.setHeight = function(t) {
		this.height = t + 50
	}, e
}(ViewBase);
__reflect(RewardConfirmUI.prototype, "RewardConfirmUI");
var WindowActivity = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WindowActivitySkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._moneyBar = new MoneyBar, this._moneyBar.moveTo(185, 59, this), this._moneyBar.showBg(!1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._moneyBar.show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar.hide(), this._tabBar && this._tabBar.removeAll()
	}, e.prototype.showTab = function(t) {
		for (var e, i = [], n = t.split(","), a = n.length, o = 128 * a - 6, r = 0; a > r; r++) e = new eui.ToggleButton, e
			.skinName = "ToggleButtonBigSkin", e.label = n[r], this.tabGroup.addChild(e), e.width = 132, e.height = 59, e.x =
			(640 - o >> 1) - 5 + 128 * r, i.push(e);
		return this._tab = new TabBar(i), this._tab
	}, e.prototype.onSelected = function(t) {
		this._tabCallback && this._tabCallback.exec(this._tabBar.list.selectedIndex)
	}, e.prototype.dispose = function() {
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._tabBar && (this._tabBar.dispose(), this._tabBar =
			null), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(WindowActivity.prototype, "WindowActivity");
var WindowMain = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._fightPowerY = 167, e.fightPowerShowState = !1, e._showMoney = !1, e._showFightPower = !1, e._showRoleList = !
			1, e.euiSkinName = "WindowMainSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._moneyBar = new MoneyBar, this._moneyBar.moveTo(304, 16, this), this.showMoney(!0), this.showRoleList(!1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._moneyBar.show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar.hide(), this.showFightPower(!1), this._tab && this._tab.clear()
	}, e.prototype.showTab = function(t) {
		for (var e, i = [], n = t.split(","), a = n.length, o = 128 * a - 6, r = 0; a > r; r++) e = new eui.ToggleButton, e
			.skinName = "ToggleButtonBigSkin", e.label = n[r], this.tabGroup.addChild(e), e.width = 132, e.height = 59, e.x =
			(640 - o >> 1) - 5 + 128 * r, i.push(e);
		return this._tab = new TabBar(i), this._tab
	}, e.prototype.showFightPower = function(t) {
		return void 0 === t && (t = !1), t ? (null == this.fightPower && (this.fightPower = new FightPower, this.addChild(
					this.fightPower)), this.fightPower.visible = !0, this.fightPower.x = 156, this.fightPower.y = this._fightPowerY,
				this.fightPower.setVis(!0)) : null != this.fightPower && (this.fightPower.visible = !1, this.fightPower.setVis(!1)),
			this.fightPower
	}, e.prototype.showOpenFunc = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = null), this.fightPowerShowState = !1, t > 0 && App.config.q_functionContainer
			.getDataBean(t).q_isopen > 0 && 1 == App.global.funcOpen.getOpenObj(t) && 55 != t ? (this.funcOpenGroup.visible = !
				0, null == this.funcOpenView && (this.funcOpenView = new FuncOpenView, this.funcOpenGroup.addChild(this.funcOpenView),
					this.funcOpenView.show()), this.funcOpenView.init(t, e), this.fightPower && 1 == this.fightPower.visible && (
					this.fightPowerShowState = !0, this.fightPower.visible = !1)) : (this.funcOpenGroup.visible = !1, e && e.exec())
	}, e.prototype.showMoney = function(t) {
		void 0 === t && (t = !1), this._moneyBar.visible = t
	}, e.prototype.showRoleList = function(t) {
		void 0 === t && (t = !1), t ? (null == this.roleList && (this.roleList = new RoleListView, this.roleGroup.addChild(
				this.roleList)), this.roleList.selectIndex = this.roleList.getRoleData().roleIndex, this.roleList.visible = !0,
			this.roleGroup.visible = !0, this._fightPowerY = 167) : (this.roleList && (this.roleList.visible = !1), this.roleGroup
			.visible = !1, this._fightPowerY = 122)
	}, e.prototype.dispose = function() {
		this.roleList && (this.roleList.destroy(), this.roleList = null), this.fightPower && (this.fightPower.dispose(),
				this.fightPower = null), this.funcOpenView && (this.funcOpenView.dispose(), this.funcOpenView = null), this._moneyBar &&
			(this._moneyBar.dispose(), this._moneyBar = null), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(WindowMain.prototype, "WindowMain");
var WindowSecond = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.euiSkinName = "WindowSecondSkin", e.init();
		var i = new MaskShape;
		return i.graphics.beginFill(0, .01), i.graphics.drawRect(0, 0, 459, 42), i.graphics.endFill(), i.touchEnabled = !0,
			e.groupClick.addChild(i), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.setTitle = function(t) {
		this.title_txt.text = t
	}, e.prototype.setHeight = function(t) {
		this.height = t + 50
	}, e
}(ViewBase);
__reflect(WindowSecond.prototype, "WindowSecond");
var WindowThird = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WindowThirdSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.setTitle = function(t) {
		this.title_txt.text = t
	}, e
}(ViewBase);
__reflect(WindowThird.prototype, "WindowThird");
var AchieveItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AchieveItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._hpbar = new HpBar, this._hpbar.setUiComponent(this.bar, null, 100, 14, this.exp_txt)
	}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), e) {
			this.name_txt.text = e.name, this.icon.source = e.url;
			var i = e.exp,
				n = e.max;
			this._hpbar.setValue(i, n), i >= n ? (this.ok_txt.visible = !0, this.bg_light.visible = !0, this.bg_gray.visible = !
				1, this.exp_txt.visible = this.bar.visible = this.bar_bg.visible = !1) : (this.ok_txt.visible = !1, this.bg_light
				.visible = !1, this.bg_gray.visible = !0, this.exp_txt.visible = this.bar.visible = this.bar_bg.visible = !0)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this)
	}, e.prototype.onTouch = function(t) {
		var e = App.data.achieveCenter.getOperateObj(this.index);
		App.panel.openPanel(e.panelid, {
			selectedIndex: e.selectedindex
		}, !1)
	}, e.prototype.dispose = function() {
		this._hpbar.dispose(), this._hpbar = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(AchieveItem.prototype, "AchieveItem");
var AchieveView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AchieveSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._star = new StarLayout, this.addChild(this._star), this._star.x = 61, this._star.y = 286, this._itemList = [];
		for (var t, e = 0; 7 > e; e++) t = new AchieveItem, t.x = 29 + 150 * Math.floor(e % 4), t.y = 450 + 172 * Math.floor(
			e / 4), t.index = e, this.addChild(t), this._itemList.push(t)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(AchieveCenter.REFRESH, this.refresh, this), this._dispatcher
			.addEventListener(AchieveCenter.UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this.btn), ExploitCommandSender.sendC2S_achievementInfoMessage(), null == this._bg ? (this._bg =
				UIMaker.getCImage(null, this, ResPathUtil.getImgPath("bg_016", "achieve"), 0, 60), this.addChildAt(this._bg, 0)) :
			this._bg.url = ResPathUtil.getImgPath("bg_016", "achieve")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._url = "", this._star && this._star.clear(), this._bg && this._bg.clear(), null !=
			this._effect && (this._effect.stop(), this._effect.dispose(), this._effect = null), null != this._effect2 && (this
				._effect2.stop(), this._effect2.dispose(), this._effect2 = null)
	}, e.prototype.refresh = function() {
		var t = App.config.q_successContainer.getDataBean(App.data.achieveCenter.id);
		if (null != t) {
			this._star.setValue(t.q_success_star), this._url != t.q_card && (this._url = t.q_card, this._effect = EffectUtils.showCEffect(
						this, this, ResPathUtil.getMenuEffect("achieve", this._url + "/1_0"), 318, 220, this._effect), this._effect.scaleX =
					.7, this._effect.scaleY = .7, Number(this._url) > 7 && (this._effect2 = EffectUtils.showCEffect(this, this,
							ResPathUtil.getMenuEffect("achieve", this._url + "/2_0"), 318, 220, this._effect2), this._effect2.scaleX = .7,
						this._effect2.scaleY = .7)), this.icon.source = "achieve_icon_0" + (t.q_success_stage + 67) + "_png", this.name_txt
				.text = t.q_success_name;
			var e = new BaseAttributeDataBean;
			if (e.convertAndAdd(t.q_add_attribute), this.curPro_txt.text = e.getStrByBaseAttributeBean(e), t.q_sucess_next_id >
				0) {
				var i = App.config.q_successContainer.getDataBean(t.q_sucess_next_id);
				e = new BaseAttributeDataBean, e.convertAndAdd(i.q_add_attribute), this.nextPro_txt.text = e.getStrByBaseAttributeBean(
					e), this.name_txt2.text = i.q_success_name
			} else this.nextPro_txt.text = "", this.name_txt2.text = "", this.imgCenter.visible = !1, this.name_txt.x = 262,
				this.curPro_txt.x = 258, this.btn.label = "已满级";
			for (var n = App.data.achieveCenter.getDataProvider(), a = n.length, o = 0; a > o; o++) this._itemList[o].show(n[o]);
			var r = App.data.achieveCenter.isOk(n);
			this.btn.enabled = r, FilterUtil.gray(this.btn, !r)
		}
	}, e.prototype.onUpdate = function() {
		EffectUtils.showSuccessEffect(this, this), this.refresh()
	}, e.prototype.onClick = function(t) {
		ExploitCommandSender.sendC2S_achievementLevelupMessage()
	}, e.prototype.dispose = function() {
		if (this._star && (this._star.dispose(), this._star = null), this._bg && (this._bg.dispose(), this._bg = null),
			null != this._itemList) {
			for (var e = 0; e < length; e++) this._itemList[e].dispose();
			this._itemList = null
		}
		null != this._effect && (this._effect.stop(), this._effect.dispose(), this._effect = null), null != this._effect2 &&
			(this._effect2.stop(), this._effect2.dispose(), this._effect2 = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(AchieveView.prototype, "AchieveView");
var EquipGrid = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		if (i._part = -1, i.showGet = !1, i._place = EnumGrid.LAYER, null == e && (e = EnumGridStyle.GRID_STYLE_NORMAL), !i.starGroup) {
			i.starGroup = new eui.Group;
			var n = new eui.HorizontalLayout;
			n.gap = 0, i.starGroup.layout = n, i.addChild(i.starGroup)
		}
		return i.showStar = !1, i
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, Object.defineProperty(e.prototype, "showStar", {
		get: function() {
			return this._showStar
		},
		set: function(t) {
			this._showStar = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isHasSuit", {
		get: function() {
			return this._isHasSuit
		},
		set: function(t) {
			this._isHasSuit = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onTxtFunc = function(t) {
		t.stopImmediatePropagation()
	}, e.prototype.setRedDot = function(t) {
		UIMaker.showPoint(this.redgroup, this, t, this.gridBgSize.width + 4, -4)
	}, Object.defineProperty(e.prototype, "star", {
		get: function() {
			return this._star
		},
		set: function(t) {
			if (this.showStar && this._star != t) {
				this._star = t, this.starGroup.removeChildren();
				for (var e = 0; t > e; e++) {
					var i = new eui.Image;
					i.source = "common1_star_light_png", i.width = i.height = 20, this.starGroup.addChild(i)
				}
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "part", {
		get: function() {
			return this._part
		},
		set: function(t) {
			if (this._part != t) {
				this._part = t;
				var e = this._part;
				e == EnumEquipType.JIE_ZHI_RIGHT ? e = EnumEquipType.JIE_ZHI : e == EnumEquipType.SHOU_ZHUO_RIGHT && (e =
					EnumEquipType.SHOU_ZHUO)
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "place", {
		get: function() {
			return this._place
		},
		set: function(t) {
			this._place = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		t.prototype.clear.call(this)
	}, e
}(ItemGrid);
__reflect(EquipGrid.prototype, "EquipGrid");
var ForgeGrid = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		return i._isShowNum = !0, i._showBorder = !1, i
	}
	return __extends(e, t), e.prototype.setData = function(t) {
		if (GridUtil.has(this)) throw "警告：正在尝试操作已释放的格子！";
		t ? (this.clear(), this.strengthInfo = t, this.refresh()) : this.strengthInfo && this.clear()
	}, Object.defineProperty(e.prototype, "strengthInfo", {
		get: function() {
			return this._strengthInfo
		},
		set: function(t) {
			this._strengthInfo = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refresh = function() {
		this.setGradeBg(), this.isShowNum && this.setStrengthNum(this.strengthInfo.level)
	}, e.prototype.setGradeBg = function(t) {
		if (t) this.gridBg.source != t && (this.gridBg.source = t);
		else {
			var i = StringUtil.substitute(e.GRADEBG_TEXT, this.strengthInfo.pos);
			this.gridBg.source != i && (this.gridBg.width = this.gridBgSize.width, this.gridBg.height = this.gridBgSize.height,
				this.gridBg.source = i)
		}
	}, e.prototype.setStrengthNum = function(t) {
		if (!this._strengthNumText) {
			this._strengthNumText = new h5_engine.GTextField;
			var e = this.gridBgSize.width - this.size.width >> 1,
				i = this.gridBgSize.height - this.size.height >> 1;
			this._strengthNumText.y = i, this._strengthNumText.width = this.gridBgSize.width - e, this._strengthNumText.height =
				this.gridBgSize.height - i, this._strengthNumText.textAlign = egret.HorizontalAlign.RIGHT, this._strengthNumText.verticalAlign =
				egret.VerticalAlign.TOP, this._strengthNumText.size = 20, this._strengthNumText.textColor = this.numColor, this.addChild(
					this._strengthNumText)
		}
		this._strengthNumText.text = t ? "+" + t : "+0"
	}, Object.defineProperty(e.prototype, "isShowNum", {
		get: function() {
			return this._isShowNum
		},
		set: function(t) {
			this._isShowNum = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "numColor", {
		get: function() {
			return this._strengthNumTextColor || (this._strengthNumTextColor = 16758322), this._strengthNumTextColor
		},
		set: function(t) {
			this._strengthNumTextColor != t && (this._strengthNumTextColor = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showBorder", {
		get: function() {
			return this._showBorder
		},
		set: function(t) {
			this._showBorder != t && (this._showBorder = t, this.border || (this.border = new eui.Rect, this.border.width =
				this.gridBgSize.width - 4, this.border.height = this.gridBgSize.height - 4, this.border.x = 2, this.border.y =
				2, this.border.fillAlpha = 0, this.border.strokeWeight = 2, this.border.strokeColor = 16758322), this.contains(
				this.border) || this.addChild(this.border), t ? this.border.visible = !0 : this.border.visible = !1)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "border", {
		get: function() {
			return this._border
		},
		set: function(t) {
			this._border = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bean", {
		get: function() {
			return this.strengthInfo.level > 0 ? GameUtil.getEquipForgeConfigData(ForgeType.Strength, this.strengthInfo.pos,
				this.strengthInfo.level) : null
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		this.gridBg.source = void 0, this.icon.url = void 0, this._strengthNumText && (this._strengthNumText.text = "",
			this._strengthNumText.textFlow = void 0), this._strengthInfo = void 0
	}, e.prototype.resetAndClear = function() {
		this.clear(), this.touchEnabled = !0, this.touchChildren = !1, this._isShowNum = !0, this.showBorder = !1, this.contains(
			this.border) && this.removeChild(this.border), this.border = void 0
	}, e.GRADEBG_TEXT = "forge_qh_{0}_png", e
}(BaseGrid);
__reflect(ForgeGrid.prototype, "ForgeGrid");
var GridContainer = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = 2), void 0 === a && (a = 2);
		var o = t.call(this) || this;
		return o._clearCurrentTip = !0, o._dataSource = new Array, o._renderDataHash = new HashObject, o._layerHash = {}, o._uiComponentToIdHash =
			new HashMap, o._controller = new GridContainerController, o._controller.setStyle(e, i, n, a), o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._layerContainer = new eui.Group, this.addChild(this._layerContainer)
	}, e.prototype.initLayers = function(t) {
		t = this._controller.getTypes(t);
		for (var e, i, n = t.length, a = 0; n > a; a++) i = t[a], e = new RenderContainer(i), e.moveTo(this._controller.layerGapX,
				this._controller.layerGapY, this._layerContainer), e.touchEnabled = i == GridLayout.BG, e.touchChildren = i ==
			GridLayout.BG, this._layerHash[i] = e;
		this._controller.layoutList = t
	}, e.prototype.getLayer = function(t) {
		return this._layerHash[t]
	}, Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._controller.dataProvider
		},
		set: function(t) {
			this._controller.dataProvider = t, this._controller.repeatY = Math.ceil(t.length / this._controller.repeatX),
				App.timer.doFrameOnce(this, 2, this.callLater, [t], !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.callLater = function(t) {
		this._clearCurrentTip = !1, this.clear();
		for (var e = t.length, i = 0; e > i; i++) this.getRenderData(i).data = t[i];
		this._dataSource = t, this.updateLayers(), this._scroller && this.onChange(), this._alphaImage && (this._alphaImage
			.y = this._controller.getAlphaImageY(this._dataSource.length))
	}, e.prototype.updateLayers = function() {
		for (var t, e = this._controller.layoutList.length, i = this._dataSource.length, n = 0; e > n; n++) {
			t = this._controller.layoutList[n];
			for (var a = 0; i > a; a++) this.addToLayer(t, this.getLayer(t), this.getRenderData(a))
		}
		this.renderLayers(this._controller.layoutList)
	}, e.prototype.addToLayer = function(t, e, i) {
		var n = this._controller.getUiComponent(t, i);
		egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.put(n, i.id), n.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this), t == GridLayout.BG && this._controller.showTip && i.data &&
			this._controller.isShowTip(i.data) && App.tip.addTip(n, this._controller.getTipData(i.data))), i.setUiComponent(t,
			n), t == GridLayout.SELECT && i.setGridLayoutVisible(t, !1), e && e.add(i)
	}, e.prototype.removeFromLayer = function(t, e, i) {
		var n = i.getUiComponent(t);
		if (egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.del(n), n.removeEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this), t == GridLayout.BG)) {
			var a = !this._clearCurrentTip && App.tip.tipBelongTarget(n);
			i.data && this._controller.isShowTip(i.data) && App.tip.removeTip(n, !a)
		}
		e && e.remove(i), i.data = null
	}, e.prototype.renderLayers = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.getLayer(t[i]).renderLayer()
	}, e.prototype.getRenderData = function(t) {
		var e = this._renderDataHash.get(t + "");
		return null == e && (e = new GridRenderData, e.id = t, e.x = this._controller.getGridX(t), e.y = this._controller.getGridY(
			t), this._renderDataHash.put(t + "", e)), e
	}, e.prototype.setCallback = function(t, e) {
		this._gridClickCallBack = t, this._gridClickParam = e
	}, e.prototype.setSelectedIndex = function(t) {
		var e = this.getRenderData(t);
		if (null != this._gridClickCallBack) {
			var i = [e];
			this._gridClickParam && i.concat(this._gridClickParam), this._gridClickCallBack.exec(i)
		}
	}, e.prototype.onClick = function(t) {
		if (t.target instanceof eui.Image) {
			var e = this._uiComponentToIdHash.get(t.target);
			this.setSelectedIndex(e)
		}
	}, e.prototype.setShowTip = function(t) {
		this._controller.showTip = t
	}, e.prototype.clear = function() {
		for (var t, e = this._controller.layoutList, i = e.length, n = this._renderDataHash.length, a = 0; i > a; a++) {
			t = e[a];
			for (var o = 0; n > o; o++) this.removeFromLayer(t, this.getLayer(t), this.getRenderData(o))
		}
	}, e.prototype.useScroller = function(t, e) {
		this._scroller = UIMaker.getScroller(this, this, 0, 0, t, e), this._scroller.viewport = this._layerContainer, this._scroller
			.addEventListener(eui.UIEvent.CHANGE, this.onChange, this), this._alphaImage = UIMaker.getImage(this._layerContainer,
				this, GridUtil.getGridGradeBg(-1), 0, 0, !1, this._alphaImage), this._alphaImage.alpha = .01
	}, e.prototype.onChange = function(t) {
		void 0 === t && (t = null);
		for (var e = this._scroller.localToGlobal().y - this._controller.horGap, i = e + this._scroller.height + 3 * this._controller
				.horGap, n = this._dataSource.length, a = 0; n > a; a++) this.getRenderData(a).setVisibleArea(e, i)
	}, e.prototype.stopScroller = function() {
		this._scroller && (this._scroller.stopAnimation(), this._scroller.viewport && (this._scroller.viewport.scrollV = 0))
	}, e.prototype.useSelectedImage = function(t, e, i) {
		void 0 === e && (e = 89), void 0 === i && (i = 89), this._controller.selectedWidth = e, this._controller.selectedHeight =
			i, this._imageSelected = UIMaker.getImage(null, this, GridUtil.getSelectedUrl()), this._layerContainer.addChildAt(
				this._imageSelected, 0)
	}, e.prototype.setImageSelectedXY = function(t) {
		this._imageSelected && (this._imageSelected.x = this._controller.getSelectedImageX(t), this._imageSelected.y = this
			._controller.getSelectedImageY(t))
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t - this._controller.layerGapX, this.y = e - this._controller.layerGapY, i && i.addChild(this)
	}, e.prototype.getIconList = function() {
		var t = this.getLayer(GridLayout.ICON);
		return t ? t.targetList : null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._controller ? this._controller.getWidth() : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._controller ? this._controller.getHeight() : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getController = function() {
		return this._controller
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.callLater, this), this._clearCurrentTip = !0, this.clear(), this._scroller && this._scroller
			.removeEventListener(eui.UIEvent.CHANGE, this.onChange, this), UIMaker.putToPool(this._scroller), UIMaker.putToPool(
				this._alphaImage), UIMaker.putToPool(this._imageSelected), this._uiComponentToIdHash.dispose(), this._renderDataHash =
			null, this._layerHash = null, this._uiComponentToIdHash = null, this._gridClickCallBack = null, this._gridClickParam =
			null, this._dataSource = null, this._controller = null, this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(GridContainer.prototype, "GridContainer");
var GridLayout;
! function(t) {
	t[t.SELECT = 0] = "SELECT", t[t.Special = 1] = "Special", t[t.BG = 2] = "BG", t[t.ICON = 3] = "ICON", t[t.TEXT_BOTTOM =
			4] = "TEXT_BOTTOM", t[t.ICON_BOTTOM = 5] = "ICON_BOTTOM", t[t.TEXT_COUNT = 6] = "TEXT_COUNT", t[t.TEXT_QH = 7] =
		"TEXT_QH", t[t.TEXT_ZZ = 8] = "TEXT_ZZ", t[t.EFFECT = 9] = "EFFECT", t[t.JOB = 10] = "JOB", t[t.REDPOINT = 11] =
		"REDPOINT"
}(GridLayout || (GridLayout = {}));
var GridContainerController = function() {
	function t() {
		this.showTip = !0, this.layoutList = new Array
	}
	return t.prototype.getTypes = function(t) {
		return t.push(GridLayout.EFFECT), t.sort(this.sort), t
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.setStyle = function(t, e, i, n) {
		void 0 === i && (i = 2), void 0 === n && (n = 2);
		var a = t.split("|"),
			o = a[0].split(","),
			r = a[1].split(",");
		this.bgBorderWidth = parseInt(o[0]), this.bgBorderHeight = parseInt(o[1]), this.iconWidth = parseInt(r[0]), this.iconHeight =
			parseInt(r[1]), this.iconX = this.bgBorderWidth - this.iconWidth >> 1, this.iconY = this.bgBorderHeight - this.iconHeight >>
			1, this.repeatX = e, this.horGap = i, this.verGap = n, this.layerGapX = 10, this.layerGapY = 10
	}, t.prototype.setLayer = function() {
		this.layoutList = [GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM,
			GridLayout.TEXT_COUNT
		]
	}, t.prototype.getWidth = function() {
		return this.dataProvider ? (this.bgBorderWidth + this.horGap) * Math.min(this.dataProvider.length, this.repeatX) -
			this.horGap : 0
	}, t.prototype.getHeight = function() {
		return this.dataProvider ? (this.bgBorderHeight + this.verGap) * Math.min(this.dataProvider.length, this.repeatY) -
			this.verGap : 0
	}, t.prototype.getGridX = function(t) {
		return t % this.repeatX * (this.bgBorderWidth + this.horGap)
	}, t.prototype.getGridY = function(t) {
		return Math.floor(t / this.repeatX) * (this.bgBorderHeight + this.verGap)
	}, t.prototype.getSelectedImageX = function(t) {
		return this.layerGapY + this.getGridX(t) + (this.bgBorderWidth - this.selectedWidth >> 1)
	}, t.prototype.getSelectedImageY = function(t) {
		return this.layerGapY + this.getGridY(t) + (this.bgBorderHeight - this.selectedHeight >> 1)
	}, t.prototype.getAlphaImageY = function(t) {
		return this.getGridY(t - 1) + this.layerGapY + 30
	}, t.prototype.getTipData = function(t) {
		var e;
		return e = new TipData(ItemUtil.isEquip(t.itemId) ? 4 : ItemUtil.isWarpet(t.itemId) ? 19 : ItemUtil.isFaBao(t.itemId) ?
			23 : 2), e.data = t, e
	}, t.prototype.isShowTip = function(t) {
		return t.itemId == EnumItemId.NAMECHANGECARD ? !1 : !0
	}, t.prototype.getUiComponent = function(t, e) {
		var i = e.data;
		if (null == i || null == i.getDataBean()) return null;
		switch (t) {
			case GridLayout.Special:
				return this.getSpecial(e);
			case GridLayout.EFFECT:
				return this.getEffect(e);
			case GridLayout.ICON:
				return this.getIcon(e);
			case GridLayout.BG:
				return this.getBg(e);
			case GridLayout.REDPOINT:
				return this.getRedPoint(e);
			case GridLayout.JOB:
				return this.getJob(e);
			case GridLayout.TEXT_BOTTOM:
				return this.getDescTxt(e);
			case GridLayout.ICON_BOTTOM:
				return this.getMarkIcon(e);
			case GridLayout.TEXT_COUNT:
				return this.getCountTxt(e);
			case GridLayout.SELECT:
				return this.getSelect(e)
		}
	}, t.prototype.getSelect = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "common1_img_xuanzhong01_public_png", t.x - 8, t.y - 8));
		return e.width = 92, e.height = 92, e
	}, t.prototype.getSpecial = function(t) {
		var e = (t.data, this.specialParams.url),
			i = UIMaker.getImage(null, this, e, t.x + this.specialParams.x, t.y + this.specialParams.y);
		return i.width = this.specialParams.w, i.height = this.specialParams.h, i
	}, t.prototype.getIcon = function(t) {
		var e = t.data,
			i = ResPathUtil.getIcon(e.bean.q_tiny_icon, "item/" + this.iconWidth);
		"" == e.bean.q_tiny_icon && (i = null);
		var n = UIMaker.getCImage(null, this, i, t.x + 5, t.y + 5);
		return n.width = this.bgBorderWidth - 10, n.height = this.bgBorderHeight - 10, n
	}, t.prototype.getBg = function(t) {
		var e = t.data,
			i = GridUtil.getSizeGridGradeBg(this.bgBorderWidth, e.bean.q_default),
			n = UIMaker.getImage(null, this, i, t.x, t.y, !0);
		return n.width = this.bgBorderWidth, n.height = this.bgBorderHeight, n
	}, t.prototype.getJob = function(t) {
		var e = t.data;
		if (1 == e.bean.q_type) {
			var i = e.bean.q_job;
			if (i > 0) {
				var n = GridUtil.getGridJob(i),
					a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
				return a
			}
		} else if (39 == e.bean.q_type) {
			var n = GridUtil.getGridWingGod(e.bean.q_level),
				a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
			return a
		}
		return null
	}, t.prototype.getRedPoint = function(t) {
		var e = t.data;
		if (7 == e.bean.q_type && App.data.bagItemDataCenter.hasItem(e) && App.data.bagItemDataCenter.getItemRemainNum(e.itemId) >
			0 && App.global.itemUse.isMatchUseCondition(e, !1)) {
			var i = GridUtil.getGridRedPointUrl(),
				n = UIMaker.getImage(null, this, i, t.x + this.bgBorderWidth - 15, t.y - 5);
			return n
		}
		return null
	}, t.prototype.getDescTxt = function(t) {
		var e = t.data,
			i = this.bgBorderWidth == EnumGridStyle.DEFAULT_SIZE ? 4 : 1,
			n = UIMaker.getTextField(null, this, t.x + (this.bgBorderWidth - 124) / 2, t.y + this.bgBorderHeight + i, 124, 20,
				Style.COLOR, 18),
			a = ItemUtil.getItemName(e.itemId);
		if (ItemUtil.isEquip(e.itemId)) {
			var o = e.getEquipDataBean();
			o && 14 != o.q_kind && (a = e.bean.q_zhuanshen > 0 ? e.bean.q_zhuanshen + "转" : "lv." + e.bean.q_level)
		}
		return n.text = a, n.textColor = GameUtil.getItemNameColor(e.itemId), n
	}, t.prototype.getMarkIcon = function(t) {
		var e = t.data,
			i = "guild_up_png",
			n = App.data.wearEquipCenter.getRoleWearData(e.getEquipDataBean().q_kind, App.global.characterData.roleIndex);
		n && (i = n.getEquipDataBean().q_score > e.getEquipDataBean().q_score ? "guild_down_png" : n.getEquipDataBean().q_score <
			e.getEquipDataBean().q_score ? "guild_up_png" : "");
		var a = UIMaker.getImage(null, this, i, t.x + 60, t.y + 50);
		return a
	}, t.prototype.getCountTxt = function(t) {
		var e = t.data,
			i = UIMaker.getTextField(null, this, t.x, t.y + this.bgBorderHeight - 18 - 3, this.bgBorderWidth - 6, 18, 12168079,
				18);
		return i.textAlign = egret.HorizontalAlign.RIGHT, i.stroke = 1, e.itemId < 0 ? e.count >= 1e8 ? i.text = StringUtil
			.formatMoney(e.count, "亿", 1e8) : i.text = StringUtil.formatMoney(e.count, "w") : i.text = e.showCompleteCount ? e
			.count + "" : e.count > 1 ? e.count + "" : "", i
	}, t.prototype.getEffect = function(t) {
		var e = t.data;
		if (0 == e.bean.q_effect) return null;
		var i = ResPathUtil.getMenuEffect("item", e.bean.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE),
			n = EffectUtils.showCEffect(this, null, i, t.x + this.bgBorderWidth / 2, t.y + this.bgBorderHeight / 2);
		return n.scaleX = this.bgBorderWidth / EnumGridStyle.DEFAULT_SIZE, n.scaleY = this.bgBorderHeight / EnumGridStyle.DEFAULT_SIZE,
			n
	}, t
}();
__reflect(GridContainerController.prototype, "GridContainerController");
var ActEvdChargePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("ActEvdChargeSkin"), this._view.touchChildren = !0,
			this._view.touchEnabled = !0, this.addChild(this._view), this._scrollPanel = new VScrollPanel(400, 130,
				ActRewardItemRender, 2, null, 2), this._scrollPanel.move(65, 428, this), this._btnGo = this._view.btnGo, this._btnClose =
			this._view.btnClose, this._btnGet = this._view.btnGet, this._view.x = 30, this._view.y = 210, this._money =
			NumberBitmapCache.show("", "10", 0, 0, "chargeNumber"), this._money.x = 5, this._money.y = 0, this._view.moneyRoot
			.addChild(this._money)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(ActivityEvent.REFRESH_BRIEF, this.updatePanel, this), this._dispatcher.addEventListener(
			ActivityEvent.REFRESH_DETAIL, this.updatePanel, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onBtnGot, this, this._btnGo), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnGot,
			this, this._btnGet), this._dispatcher.addEventListener(ActivityEvent.UPDATEEVD_NUM, this.setMoneyNumberBitmap,
			this)
	}, e.prototype.updatePanel = function() {
		for (var t = App.data.activityCenter, e = t.getList(13), i = !0, n = 0; n < e.length; n++) {
			var a = e[n];
			if (a && 1 == a.activityStates) {
				if (0 == a.playerStates) {
					this._btnGo.enabled = !1;
					continue
				}
				this._scrollPanel.dataProvider = ItemUtil.getRewardDataList(a.bean.q_show_rewards);
				var o = a.bean.q_name.match("\\d+"),
					r = Number(o[0]),
					s = void 0;
				if ("" == a.extendMap) s = 1e6;
				else {
					var h = StringUtil.JsonParse(a.extendMap);
					s = Number(h.gold) / 100
				}
				1 == a.playerStates ? (null != this._eff && (this._eff.stop(), this._eff.dispose(), this._eff = null), this._btnGet
					.visible = !0, this._btnGo.visible = !1, DisplayObjectUtil.setAllVisible(this._view.imgRoot, !1)) : (this._eff =
					EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect("evdcharge", "1_0"), 194 + this._btnGo.width /
						2, 353 + this._btnGo.height / 2, this._eff), this._btnGo.visible = !0, this._btnGo.enabled = !0,
					DisplayObjectUtil.setAllVisible(this._view.imgRoot, !0), this._money.show((r - s).toString(), 0, 0,
						"meirichong"), this._btnGet.visible = !1), i = !1, this._actData = a;
				break
			}
		}
		i && (this._btnGo.visible = !1, this._btnGet.visible = !1), this.setMoneyNumberBitmap()
	}, e.prototype.setMoneyNumberBitmap = function() {
		this._money && (this._money.alpha = 1, this._money.visible = !0, this._money.x = this._view.moneyRoot.width - this._money
			.width >> 1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), null == this._bg ? (this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath(
				"meirichong")), this._view.addChildAt(this._bg, 0)) : this._bg.url = ResPathUtil.getImgPath("meirichong"), this.addEvent(),
			this.updatePanel()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg.clear(), null != this._eff && this._eff.clear(), this._view.hide(), this._scrollPanel
			.removeAll(), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		null != this._scrollPanel && (this._scrollPanel.dispose(), this._scrollPanel = null), null != this._bg && (this._bg
				.dispose(), this._bg = null), null != this._eff && (this._eff.dispose(), this._eff = null), null != this._money &&
			(this._money.dispose(), this._money = null), null != this._view && (this._view.dispose(), this._view = null), t.prototype
			.dispose.call(this)
	}, e.prototype.onBtnGot = function(t) {
		t.stopImmediatePropagation();
		var e = this._actData;
		1 == e.playerStates ? (ActivityCommandSender.sendC2S_JoinActivityMessage(e.id), 1007 == e.id && App.panel.removePanel(
			105)) : (PanelOpenManager.openPanel(205), this.onClose())
	}, e
}(BasePanel);
__reflect(ActEvdChargePanel.prototype, "ActEvdChargePanel");
var ActivityFanPaiItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._pos = 1, e.flag = !1, e.skinName = "ActivityFanPaiItemSkin", e._grid = GridUtil.getGrid(ItemGrid,
				EnumGridStyle.GRID_STYLE_NORMAL), e._grid.anchorOffsetX = 38, e._grid.anchorOffsetY = 38, e._grid.y = 62.5, e._grid
			.x = 56, e.itemgroup.addChild(e._grid), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._pos = e, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this), this._dispatcher.addEventListener(VipEvent.FANPAICURR, this.onItemTouch, this), App.dispatcher.dispatchEvent(
			VipEvent.FANPAICURR, !1)
	}, e.prototype.onItemTouch = function(t) {
		this.flag = t
	}, e.prototype.setData = function(t) {
		this.fanpaiData = t, this._bean = App.config.q_flopContainer.getDataBean(this.fanpaiData.id), App.data.moonCardCenter
			.fanpaiFirst ? (this.img.source = "kfhd_fanpai_03_png", this.mianfei.visible = this.title_bg.visible = this.goldgroup
				.visible = this.selectimg.visible = this.yihuode.visible = !1) : App.data.moonCardCenter.fanpaiStart ? (this.itemgroup
				.scaleX = -1, this.goldgroup.visible = !1, this._grid.setData(App.data.moonCardCenter.fanpaiArr[this._pos - 1].itemid),
				this._grid.setCount("" + App.data.moonCardCenter.fanpaiArr[this._pos - 1].itemsum), this._grid.scaleX = -1, this.img
				.source = "kfhd_fanpai_04_png", this.mianfei.visible = this.selectimg.visible = this.yihuode.visible = !1) : App.data
			.moonCardCenter.fanpaiYulan ? (this.itemgroup.scaleX = -1, this.goldgroup.visible = !1, this._grid.setData(App.data
					.moonCardCenter.fanpaiYulanArr[this._pos - 1].itemid), this._grid.setCount("" + App.data.moonCardCenter.fanpaiYulanArr[
					this._pos - 1].itemsum), this._grid.scaleX = -1, this.img.source = "kfhd_fanpai_04_png", this.mianfei.visible =
				this.yihuode.visible = !1, App.data.moonCardCenter.fanpaiYulanArr[this._pos - 1].pos > 0 && (this.selectimg.visible =
					this.yihuode.visible = !0)) : (this.img.source = "kfhd_fanpai_03_png", this.selectimg.visible = this.yihuode.visible = !
				1, this.title_bg.visible = !0, this._bean.q_need_yuanbao > 0 ? (this.goldtext.text = "" + this._bean.q_need_yuanbao,
					this.mianfei.visible = !1, this.goldgroup.visible = !0) : (this.goldgroup.visible = !1, this.mianfei.visible = !
					0), this.fanpaiData.pos == this._pos && (this.itemgroup.scaleX = -1, this.mianfei.visible = this.goldgroup.visible = !
					1, this._grid.setData(this.fanpaiData.itemid), this._grid.setCount("" + this.fanpaiData.itemsum), this._grid.scaleX = -
					1, this.img.source = "kfhd_fanpai_04_png", this.yihuode.visible = !0))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._grid.setData(0), App.timer.clearTimer(this.showGridData, this), this.itemgroup.scaleX =
			1, this.img.source = "kfhd_fanpai_05_png", TweenLite.killTweensOf(this.itemgroup)
	}, e.prototype.onTouch = function(t) {
		if (!(this.flag || App.data.moonCardCenter.fanpaiFirst || App.data.moonCardCenter.fanpaiStart || App.data.moonCardCenter
				.fanpaiYulan)) {
			if (App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) < this._bean.q_need_yuanbao) return void Alert.show(
				"元宝不足 前往充值", "提示", "确定|取消", this.okFunc, this);
			this.mianfei.visible = this.goldgroup.visible = !1, 1 == this.itemgroup.scaleX && (App.dispatcher.dispatchEvent(
				VipEvent.FANPAICURR, !0), TweenLite.to(this.itemgroup, .24, {
				scaleX: -1,
				onComplete: this.tweenOver,
				onCompleteScope: this
			}), App.timer.doTimeOnce(this, .12, this.showGridData)), this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onTouch, this, this)
		}
	}, e.prototype.okFunc = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.showGridData = function() {
		this._grid.setData(App.data.moonCardCenter.fanpaiArr[App.data.moonCardCenter.getFanPaiNum() - 1].itemid), this._grid
			.setCount("" + App.data.moonCardCenter.fanpaiArr[App.data.moonCardCenter.getFanPaiNum() - 1].itemsum), this._grid.scaleX = -
			1, this.img.source = "kfhd_fanpai_04_png"
	}, e.prototype.tweenOver = function() {
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("fanpai", "fanpai"), 56, 62), this.yihuode.visible = !
			0, VipCommandSender.sendC2S_FanPaiRewardMessage(App.data.moonCardCenter.fanpaiArr[App.data.moonCardCenter.getFanPaiNum() -
				1].id, this._pos)
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.showGridData, this), this.itemgroup.scaleX = 1, this.img.source = "kfhd_fanpai_05_png",
			TweenLite.killTweensOf(this.itemgroup), this._grid && (this._grid.dispose(), this._grid = null), t.prototype.dispose
			.call(this)
	}, e
}(ViewBase);
__reflect(ActivityFanPaiItem.prototype, "ActivityFanPaiItem");
var GridRenderData = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.setVisibleArea = function(t, e) {
		var i = this.getUiComponent(GridLayout.BG);
		i && (i.localToGlobal().y + i.height < t || i.localToGlobal().y + i.height > e) ? this.setUiComponentVisible(!1) :
			this.setUiComponentVisible(!0)
	}, e
}(RenderData);
__reflect(GridRenderData.prototype, "GridRenderData");
var CoolDown = function(t) {
	function e(e, i, n, a, o, r, s) {
		void 0 === n && (n = 0), void 0 === a && (a = !1), void 0 === o && (o = null), void 0 === r && (r = !1), void 0 ===
			s && (s = !1);
		var h = t.call(this) || this;
		return h._width = 0, h._height = 0, h._color = 0, h._isCircle = !1, h._isShowEffect = !1, h._leftTime = 0, h._totalTime =
			0, h._prevTime = 0, h._playing = !1, h._showText = !1, h.touchEnabled = !1, h.touchChildren = !1, h.setSize(e, i, n,
				a, o, r, s), h
	}
	return __extends(e, t), e.prototype.setSize = function(t, e, i, n, a, o, r) {
		void 0 === i && (i = 0), void 0 === n && (n = !1), void 0 === a && (a = null), void 0 === o && (o = !1), void 0 ===
			r && (r = !1), this._width = .5 * t, this._height = .5 * e, this._callback = a, this._isCircle = o, this._showText =
			r, this._color = i, this._isShowEffect = n, this.x = this._width, this.y = this._height, this._isCircle ? (this._circleMask ||
				(this._circleMask = new egret.Shape), this._circleMask.graphics.clear(), this._circleMask.graphics.beginFill(i, 0),
				this._circleMask.graphics.drawCircle(0, 0, this._width), this._circleMask.graphics.endFill(), this.addChild(this._circleMask),
				this.mask = this._circleMask) : this._circleMask && (this._circleMask.graphics.clear(), this.removeChild(this._circleMask),
				this._circleMask = null, this.mask = void 0)
	}, e.prototype.setTextFormat = function(t, e, i, n) {
		void 0 === t && (t = 12), void 0 === e && (e = 16777215), void 0 === i && (i = !0), void 0 === n && (n = "SimSun"),
			(Config.isDebug || this._showText) && (this._timeTxt || (this._timeTxt = new h5_engine.GTextField, this.addChild(
					this._timeTxt)), this._timeTxt.fontFamily = n, this._timeTxt.textAlign = egret.HorizontalAlign.LEFT, this._timeTxt
				.size = t, this._timeTxt.textColor = e, this._timeTxt.bold = i, this._timeTxt.strokeColor = 3591, this._timeTxt.stroke =
				2)
	}, e.prototype.setValue = function(t, e) {
		this._leftTime = t, this._totalTime = e, this.setText((.001 * t).toFixed(1)), this.draw((this._totalTime - this._leftTime) /
			this._totalTime * 360)
	}, e.prototype.play = function(t, e) {
		this.setValue(t, e), this._prevTime = egret.getTimer(), App.timer.doTimeLoop(this, 50, this.onEnterFrame), this._playing = !
			0
	}, e.prototype.onEnterFrame = function() {
		var t = egret.getTimer() - this._prevTime;
		t <= this._leftTime ? (this.setText((.001 * (this._leftTime - t)).toFixed(1)), this.draw((this._totalTime - this._leftTime +
			t) / this._totalTime * 360), .001 * (this._leftTime - t) <= 10) : (this.stop(), this._callback && this._callback.exec())
	}, e.prototype.stop = function() {
		this._playing && (App.timer.clearTimer(this.onEnterFrame, this), this._playing = !1, this.setText(""), this._isCircle ?
			this._circleMask.graphics.clear() : this.graphics.clear())
	}, e.prototype.setText = function(t) {
		(Config.isDebug || this._showText) && (this._timeTxt || (this._timeTxt = new h5_engine.GTextField, this._timeTxt.textAlign =
				egret.HorizontalAlign.LEFT, this._timeTxt.fontFamily = "SimSun", this._timeTxt.size = 12, this._timeTxt.textColor =
				16777215, this._timeTxt.bold = !0, this._timeTxt.strokeColor = 3591, this._timeTxt.stroke = 2, this.addChild(this
					._timeTxt)), this._timeTxt.text = t, this._timeTxt.x = (2 * this._width - this._timeTxt.width >> 1) - this._width,
			this._timeTxt.y = (2 * this._height - this._timeTxt.height >> 1) - this._height)
	}, e.prototype.draw = function(t) {
		if (this.graphics.clear(), 0 > t || t >= 360) 0 == t && (this.graphics.clear(), this.graphics.lineStyle(0, 0, 1),
			this.graphics.beginFill(this._color, 1), this.graphics.drawCircle(0, 0, Math.sqrt(this._width * this._width +
				this._height * this._height)), this.graphics.endFill());
		else {
			var e = Math.tan(t * Math.PI / 180);
			this.graphics.clear(), this.graphics.lineStyle(0, 0, 0), this.graphics.beginFill(this._color, .5), this.graphics.moveTo(
					0, 0), t >= 0 && 45 > t ? (this.graphics.lineTo(this._width * e, -this._height), this.graphics.lineTo(this._width,
						-this._height), this.graphics.lineTo(this._width, this._height), this.graphics.lineTo(-this._width, this._height),
					this.graphics.lineTo(-this._width, -this._height)) : t >= 45 && 135 > t ? (this.graphics.lineTo(this._width, -
						this._width / e), this.graphics.lineTo(this._width, this._height), this.graphics.lineTo(-this._width, this._height),
					this.graphics.lineTo(-this._width, -this._height)) : t >= 135 && 225 > t ? (this.graphics.lineTo(-this._height *
					e, this._height), this.graphics.lineTo(-this._width, this._height), this.graphics.lineTo(-this._width, -this._height)) :
				t >= 225 && 315 > t ? (this.graphics.lineTo(-this._width, this._width / e), this.graphics.lineTo(-this._width, -
					this._height)) : t >= 315 && 360 > t && this.graphics.lineTo(this._width * e, -this._height), this.graphics.lineTo(
					0, -this._height), this.graphics.lineTo(0, 0), this.graphics.endFill()
		}
	}, e
}(h5_engine.GSprite);
__reflect(CoolDown.prototype, "CoolDown");
var ActivityRankItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ActivityRankItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 3 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.x = 90 * t + 60, e.y = 10, this.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.rankdata = this.data;
		var t;
		"" != this.rankdata.expandMap && (t = StringUtil.JsonParse(this.rankdata.expandMap)), this.name1.text = this.rankdata
			.name, this.level.text = "" + (this.rankdata.topindex + 1);
		var e, i = this.getrolenumber(ServerTime.openday),
			n = App.data.activityCenter.getList(i, !1, !1);
		e = this.rankdata.topindex < 3 ? ItemUtil.getRewardDataList(n[this.rankdata.topindex].bean.q_show_rewards) :
			ItemUtil.getRewardDataList(n[3].bean.q_show_rewards);
		for (var a = 0; a < this._gridDict.length; a++) this._gridDict.get(a).setData(null);
		for (var a = 0; a < this._gridDict.length; a++) this._gridDict.get(a).setData(e[a]);
		if (743 == i) {
			var o = App.config.q_samsaraContainer.getDataBean(t.rankData);
			this.num.text = "" + o.q_class_name
		} else 708 == i ? this.num.text = "" + this.rankdata.level : 714 == i ? this.num.text = "" + this.rankdata.fightPower :
			724 == i ? t ? this.num.text = "" + t.rankData : this.num.text = "" : t ? t.maxLevel ? this.num.text = "" + t.maxLevel :
			t.rankData ? this.num.text = "" + t.rankData : this.num.text = "" : this.num.text = ""
	}, e.prototype.getrolenumber = function(t) {
		return 1 == t ? 711 : 2 == t ? 1111 : 3 == t ? 1112 : 4 == t ? 1113 : 5 == t ? 709 : 6 == t ? 713 : 7 == t ? 714 :
			8 == t ? 710 : 9 == t ? 712 : 10 == t ? 708 : t >= 11 && 13 >= t ? 741 : t >= 15 && 17 >= t ? 743 : t >= 19 && 21 >=
			t ? 742 : t >= 24 && 26 >= t ? 744 : t >= 28 && 30 >= t ? 740 : 733
	}, e
}(ItemRenderer);
__reflect(ActivityRankItem.prototype, "ActivityRankItem");
var ActivityRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"ActivityRankPanelSkin"), this._window.viewContainer.addChild(this._view), this._vscroller = new VScrollPanel(500,
				556, ActivityRankItem, 2), this._vscroller.move(10, 45, this), this._btnClose = this._window.close_btn, this._window
			.setTitle("排行榜")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e;
		this._vscroller.dataProvider = i
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 700
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e.isNational = !1, e
}(BasePanel);
__reflect(ActivityRankPanel.prototype, "ActivityRankPanel");
var ActivityTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.JoinActivity = function() {
			if (-1 != App.data.getWangZheZBCenter().xsWanfaIdArr.indexOf(e._activityData.id)) {
				if (e._activityData.id == wfid.guildboss1 && !App.data.guildCenter.hasGuild()) return void Alert.show(
					"请先加入帮会后才能参加帮会战场", "提示", "确定|取消",
					function() {
						PanelOpenManager.openPanel(31)
					}, e);
				ActivityCommandSender.sendC2S_JoinActivityMessage(e._activityData.id)
			} else e._activityData.id == wfid.miner ? ZoneCommandSender.sendC2S_ZoneIntoMessage(wfid.miner, EnumZoneType.MINE_ZONE) :
				e._activityData.id == wfid.fujinPlayer ? PanelOpenManager.openPanel(e._activityData.id, null, !0, !0, 123) : e._activityData
				.id == wfid.wangzhe ? PanelOpenManager.openPanel(e._activityData.id, null, !0, !0, 124) : PanelOpenManager.openPanel(
					e._activityData.id);
			e.dispose()
		}, e.closeView = function() {
			e.dispose()
		}, e.euiSkinName = "ActivityTipSkin", e
	}
	return __extends(e, t), e.prototype.show = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeView, this, this.btn_close), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.JoinActivity, this, this.btn_join), UIMaker.getCImage(this,
				this, ResPathUtil.getResImage(t.bean.q_icon, "enterbutton"), 7, 2), this._activityData = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.$children.indexOf(this) && this.parent.removeChild(this), this._activityData = null,
			this.activityback = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ActivityTipView.prototype, "ActivityTipView");
var RenderContainer = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._renderList = [], i.targetList = new Array, i._type = e, i
	}
	return __extends(e, t), e.prototype.add = function(t) {
		this._renderList.push(t)
	}, e.prototype.remove = function(t) {
		var e = this._renderList.indexOf(t); - 1 != e && (t.remove(this._type), this._renderList.splice(e, 1))
	}, e.prototype.update = function(t) {
		var e = this._renderList.indexOf(t); - 1 != e && (this._renderList[e] = t)
	}, e.prototype.renderLayer = function() {
		this._renderList = this.sortTheSameUrl(this._renderList);
		for (var t = this._renderList.length, e = 0; t > e; e++) this.render(this._renderList[e])
	}, e.prototype.renderItemLayer = function(t) {
		void 0 === t && (t = null), t && this.render(t)
	}, e.prototype.render = function(t) {
		var e = t.getUiComponent(this._type);
		e && (egret.is(e, "egret.DisplayObject") ? (this.addChild(e), this.targetList.push(e)) : egret.is(e, "CEffect") &&
			e.addParent(this))
	}, e.prototype.sortTheSameUrl = function(t) {
		for (var e, i, n = [], a = [], o = 0; o < t.length; o++) i = t[o].getUrl(this._type), e = a.indexOf(i), -1 == e ? (
			a.push(i), n.push(t[o])) : (a.splice(e, 0, i), n.splice(e, 0, t[o]));
		return n
	}, e.prototype.moveTo = function(t, e, i) {
		void 0 === i && (i = null), this.x = t, this.y = e, i && i.addChild(this)
	}, e.prototype.dispose = function() {
		for (; this._renderList.length > 0;) this.remove(this._renderList[0]);
		this._renderList = null, this.targetList = null
	}, e
}(eui.Group);
__reflect(RenderContainer.prototype, "RenderContainer");
var ActRewardConfirmPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new RewardConfirmUI, this.addChild(this._view), this._btnClose = this._view.close_btn, this._view.setTitle(
			"购买物品"), this._itemList = new VScrollPanel(400, 150, ActRewardItemRender, 2, null, 2), this._itemList.move(66, 0,
			this._view.itemGroup), this._itemList.touchEnabled = !1, this._actId = []
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._isAfford = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this._view.btnOk), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
			this, this._view.btnCancel), this._view.labDesc.text = "购买全部开服礼包，即领取88888元宝神装礼包";
		for (var i = App.data.activityCenter.getList(14), n = 0, a = "", o = 0; o < i.length; o++) {
			var r = i[o];
			if (r.id != ActivityCenter.specialId) {
				if (1 == r.playerStates) null == this._actId[o] ? this._actId.push(r.id) : this._actId[o] = r.id;
				else if (0 == r.playerStates) continue;
				var s = StringUtil.JsonParse(r.bean.q_need_item),
					h = Number(s[0].num);
				n += h
			} else a = r.bean.q_show_rewards
		}
		n += 1;
		var l = ItemUtil.getRewardDataList(a);
		this._itemList.dataProvider = l;
		var p = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
		this._isAfford = p >= n, this._isAfford ? (this._view.btnOk.label = "一键购买", this._view.priceBar.setMoney(n, 65280)) :
			(this._view.btnOk.label = "前往充值", this._view.priceBar.setMoney(n, 16711680))
	}, e.prototype.hide = function() {
		this._isAfford = !1, t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 354
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null), this._view && (this._view.dispose(), this._view =
			null), this._actId = null, t.prototype.dispose.call(this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.btnOk:
				if (this._isAfford) {
					for (var e = 0; e < this._actId.length; e++) ActivityCommandSender.sendC2S_JoinActivityMessage(this._actId[e]);
					ActivityCommandSender.sendC2S_JoinActivityMessage(ActivityCenter.specialId), this.onClose()
				} else PanelOpenManager.openChargePanel(0, !1);
				break;
			case this._view.btnCancel:
				this.onClose()
		}
	}, e
}(BasePanel);
__reflect(ActRewardConfirmPanel.prototype, "ActRewardConfirmPanel");
var ActRewardConfirmTuhaoPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new RewardConfirmUI, this.addChild(this._view), this._btnClose = this._view.close_btn, this._view.setTitle(
			"购买物品"), this._itemList = new VScrollPanel(400, 150, ActRewardItemRender, 2, null, 2), this._itemList.move(66, 0,
			this._view.itemGroup), this._itemList.touchEnabled = !1, this._actId = []
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._isAfford = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this._view.btnOk), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
			this, this._view.btnCancel), this._view.labDesc.text = "购买全部开服礼包，即领取2250000元宝破天礼包";
		for (var i = App.data.activityCenter.getList(14), n = 0, a = "", o = 0; o < i.length; o++) {
			var r = i[o];
			if (r.id != ActivityCenter.specialId1) {
				if (0 != r.playerStates) {
					if (1 == r.playerStates) null == this._actId[o] ? this._actId.push(r.id) : this._actId[o] = r.id;
					else if (0 == r.playerStates) continue;
					var s = StringUtil.JsonParse(r.bean.q_need_item),
						h = Number(s[0].num);
					n += h
				}
			} else a = r.bean.q_show_rewards
		}
		n += 1;
		var l = ItemUtil.getRewardDataList(a);
		this._itemList.dataProvider = l;
		var p = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
		this._isAfford = p >= n, this._isAfford ? (this._view.btnOk.label = "一键购买", this._view.priceBar.setMoney(n, 65280)) :
			(this._view.btnOk.label = "前往充值", this._view.priceBar.setMoney(n, 16711680))
	}, e.prototype.hide = function() {
		this._isAfford = !1, t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 354
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null), this._view && (this._view.dispose(), this._view =
			null), this._actId = null, t.prototype.dispose.call(this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.btnOk:
				if (this._isAfford) {
					for (var e = 0; e < this._actId.length; e++) ActivityCommandSender.sendC2S_JoinActivityMessage(this._actId[e]);
					ActivityCommandSender.sendC2S_JoinActivityMessage(ActivityCenter.specialId1), this.onClose()
				} else PanelOpenManager.openChargePanel(0, !1);
				break;
			case this._view.btnCancel:
				this.onClose()
		}
	}, e
}(BasePanel);
__reflect(ActRewardConfirmTuhaoPanel.prototype, "ActRewardConfirmTuhaoPanel");
var Cpage = function(t) {
	function e(e, i, n, a) {
		void 0 === a && (a = 1);
		var o = t.call(this) || this;
		return o.isChangePageNo = !0, o._totalCount = 0, o._pageNo = -1, o._pageSize = 0, o._totalPages = 0, o._btnPre = e,
			o._numFiled = i, o._btnNext = n, o.pageSize = a > 0 ? a : 1, o._btnPre.addEventListener(egret.TouchEvent.TOUCH_BEGIN,
				o.onPreClick, o), o._btnNext.addEventListener(egret.TouchEvent.TOUCH_BEGIN, o.onNextClick, o), o
	}
	return __extends(e, t), e.prototype.onPreClick = function(t) {
		this._totalPages > 0 && (this.pageNo = this._pageNo - 1, this.updateLayout())
	}, e.prototype.onNextClick = function(t) {
		this.pageNo = this._pageNo + 1, this.updateLayout()
	}, Object.defineProperty(e.prototype, "data", {
		get: function() {
			return this._data
		},
		set: function(t) {
			this._data = t, this._data && this._data.length > 0 ? (this._totalCount = this.data.length, this._totalCount <=
					0 ? this._totalCount = -1 : (this._totalPages = Math.floor(this._totalCount / this._pageSize), this._totalCount %
						this._pageSize > 0 && this._totalPages++)) : this.reset(), this.isChangePageNo ? this.pageNo = 1 : this.pageNo <
				this._totalPages ? this.pageNo = this._pageNo : this.pageNo = 1
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pageNo", {
		get: function() {
			return this._pageNo
		},
		set: function(t) {
			this.updatePageNo(t), this.dispatchEvent(new egret.Event(e.PAGE_CHANGE))
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastPageSize", {
		get: function() {
			var t = this._totalCount % this._pageSize;
			return 0 == t ? this._pageSize : t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.updatePageNo = function(t) {
		this._pageNo = t > 0 ? t : 1, t > 0 ? (t > this._totalPages && (t = this._totalPages), this._pageNo = t) : t = 1,
			this._pageNo = t, this.updateLayout()
	}, Object.defineProperty(e.prototype, "pageData", {
		get: function() {
			if (this._data) {
				var t = this.pageFirstIndex,
					e = this._pageNo == this.totalPages ? -1 : t + this._pageSize;
				return -1 == e ? this._data.slice(t) : this._data.slice(t, e)
			}
			return null
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pageSize", {
		get: function() {
			return this._pageSize
		},
		set: function(t) {
			this._pageSize = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "totalPages", {
		get: function() {
			return this._totalPages
		},
		set: function(t) {
			this._totalPages = t, this.updateLayout()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "pageFirstIndex", {
		get: function() {
			return (this._pageNo - 1) * this._pageSize
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.updateLayout = function() {
		this.hasPre() ? this._btnPre.enabled = !0 : this._btnPre.enabled = !1, this.hasNext() ? this._btnNext.enabled = !0 :
			this._btnNext.enabled = !1, this._numFiled.textFlow = HtmlUtil.getHtmlStr("<font color='#ffffff'>" + this._pageNo +
				"</font>/" + this._totalPages)
	}, e.prototype.hasPre = function() {
		return this._pageNo > 1
	}, e.prototype.hasNext = function() {
		return this._pageNo < this.totalPages
	}, Object.defineProperty(e.prototype, "totalCount", {
		get: function() {
			return this._totalCount
		},
		set: function(t) {
			this._totalCount != t && (this._totalCount = t, this.totalPages = Math.ceil(t / this._pageSize), this._pageNo >
				this.totalPages && (this.pageNo = this.totalPages))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.reset = function() {
		this._data = null, this._totalCount = 0, this._totalPages = 0, this._pageNo = 1, this.updateLayout()
	}, e.prototype.dispose = function() {
		this.reset(), this._btnPre.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onPreClick, this), this._btnNext.removeEventListener(
				egret.TouchEvent.TOUCH_BEGIN, this.onNextClick, this), this._btnPre = null, this._btnNext = null, this._numFiled =
			null
	}, e.PAGE_CHANGE = "pageChange", e
}(egret.EventDispatcher);
__reflect(Cpage.prototype, "Cpage", ["IDispose"]);
var RoleGrid = function(t) {
	function e() {
		var e = t.call(this, EnumGridStyle.GRID_STYLE_ROLE) || this;
		return e._roleIndex = -1, e._selected = !1, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._jobImg = new eui.Image, this._jobImg.x = 67, this._jobImg.y = -4, this._redDian = new eui.Image, this._redDian
			.x = 60, this._redDian.y = 66, this._lock = new eui.Image, this._lock.touchEnabled = !1, this._lock.x = 19, this._lock
			.y = 20, this._selectimg = new eui.Image, this._selectimg.touchEnabled = !1, this._selectimg.x = 44, this._selectimg
			.y = 42, this._selectimg.anchorOffsetX = 50, this._selectimg.anchorOffsetY = 50, this._conditionLabel = new h5_engine
			.GTextField, this._conditionLabel.size = 18, this._conditionLabel.width = 76, this._conditionLabel.height = 76,
			this._conditionLabel.verticalAlign = egret.HorizontalAlign.CENTER, this._conditionLabel.verticalAlign = egret.VerticalAlign
			.MIDDLE, this._conditionLabel.textColor = 10066329, this._role = new eui.Image, this.addChild(this._conditionLabel),
			this.addChild(this._lock), this.addChild(this._role), this.addChild(this._selectimg), this.addChild(this._redDian),
			this.addChild(this._jobImg), this._role.scaleX = .9, this._role.scaleY = .9, this._role.x = 8, this._role.y = 8
	}, Object.defineProperty(e.prototype, "selected", {
		get: function() {
			return this._selected
		},
		set: function(t) {
			this._selected != t && (this._selected = t, this._selectimg.source = this._selected ? "common1_roleSelected_png" :
				void 0, this._selected ? App.timer.doFrameLoop(this, 1, this.onRun) : App.timer.clearTimer(this.onRun, this))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onRun = function() {
		this._selectimg.rotation += 1
	}, Object.defineProperty(e.prototype, "state", {
		set: function(t) {
			this._redDian.source = t ? "common1_red_point_png" : void 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleIndex", {
		get: function() {
			return this._roleIndex
		},
		set: function(t) {
			this.destroy(), this._roleIndex = t, this._roleData = App.global.roles.getRoleInfoByIndex(this._roleIndex), this
				.gridBg.source = "common1_head_bg_png", this.roleData ? (this._role.source = GridUtil.getHead(this.roleData.job,
					this.roleData.sex), this._jobImg.source = "common1_icon_" + this.roleData.job + "_png") : 2 == t ? (this._lock
					.source = "common1_lock_5_png", this._lock.x = 10) : 3 == t && (this._lock.source = "common1_lock_4_png", this
					._lock.x = 10)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return this._roleData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.destroy = function() {
		App.timer.clearTimer(this.onRun, this), this._roleIndex = -1, this._roleData = null, this.selected = !1, this.state = !
			1, this._jobImg.source = void 0, this._redDian.source = void 0, this._conditionLabel.text = "", this.gridBg.source =
			void 0, this._role.source = void 0
	}, e
}(BaseGrid);
__reflect(RoleGrid.prototype, "RoleGrid");
var ActTanBaoItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.tag = -1, e.skinName = "ActTanBaoItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.isShowDesc = !1, this.groupGrid
			.addChild(this._grid)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this.groupGrid)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), UIMaker.showPoint(this.groupGrid, this, !1)
	}, e.prototype.setBean = function(t) {
		if (this._bean = t, null != t) {
			this.id = t.q_id, this._rewards = ItemUtil.getRewardDataList(t.q_show_rewards);
			var e = new ItemData;
			e.itemId = Number(this._bean.q_info), e.count = 1, this._grid.setData(e), this._grid.isShowTip = !1
		}
	}, e.prototype.setSelected = function(t) {
		this.imgSelected.visible = t
	}, e.prototype.updateState = function() {
		if (null != this._bean) {
			var t = App.data.activityCenter.getData(this._bean.q_id);
			if (null != t) {
				var e = StringUtil.JsonParse(t.extendMap);
				if (null != e) {
					var i = e.mydata,
						n = Number(this._bean.q_desc);
					this.txt.text = "寻宝" + Math.min(i, n) + "/" + n, this.bar.width = i > this.start ? 44 * Math.min(1, (i - this.start) /
						(n - this.start)) : 0
				}
				UIMaker.showPoint(this.groupGrid, this, 1 == t.playerStates), this.imgYlq.visible = 0 == t.playerStates, this.tag =
					t.playerStates
			}
		}
	}, e.prototype.onClick = function(t) {
		1 == this.tag && ActivityCommandSender.sendC2S_JoinActivityMessage(this.id), this.exec()
	}, e.prototype.exec = function() {
		this.callback && this.callback.exec(this.id, this._rewards)
	}, e.prototype.dispose = function() {
		this._grid && (this._grid.dispose(), this._grid = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ActTanBaoItem.prototype, "ActTanBaoItem");
var ActTanBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ActTanBaoSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._type = 734, this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 2, 38, 46), this._gridLayer.initLayers(
			[GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]
		), this._gridLayer.moveTo(410, 300, this), this._itemList = [];
		for (var t, e = App.data.activityCenter.getList(this._type, !0, !1), i = e.length - 1; i >= 0; i--) t = new ActTanBaoItem,
			t.setBean(e[i].bean), t.callback = new FunctionVO(this.onUpdateRewards, this), t.x = 612 - 122 * (e.length - i), t
			.y = 639, this.addChild(t), t.start = 0 > i - 1 ? 0 : Number(e[i - 1].bean.q_desc), this._itemList.unshift(t);
		this._moneyBar = new MoneyBar, this._moneyBar.moveTo(181, 60, this), this._moneyBar.setMoneyLocationX(-75, 85),
			this._moneyBar.showBg(!1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.ouUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.btn_close), this._effect = EffectUtils.showCEffect(this,
				this, ResPathUtil.getMenuEffect("rexue", "gongji"), 200, 390, this._effect), this._effect.scaleX = .7, this._effect
			.scaleY = .7;
		for (var i = 0; i < this._itemList.length; i++) this._itemList[i].show();
		ActivityCommandSender.sendDetailMessageByType(this._type);
		var n = DateUtil.getTodayMaxUtc();
		App.timer.serverTimeEnd(this, this.onTimer, n), this._moneyBar.show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this);
		for (var e = 0; e < this._itemList.length; e++) this._itemList[e].hide();
		this._effect && this._effect.stop(), App.timer.clearTimer(this.onTimer, this), this._moneyBar.hide()
	}, e.prototype.ouUpdate = function(t) {
		if (-1 != t.indexOf(this._type)) {
			for (var e, i, n = 0; n < this._itemList.length; n++) e = this._itemList[n], e.updateState(), i || 0 == e.tag || (
				i = e);
			null == i && (i = this._itemList[this._itemList.length - 1]), i.exec()
		}
	}, e.prototype.onUpdateRewards = function(t, e, i) {
		e && (this._gridLayer.dataProvider = e);
		for (var n = 0; n < this._itemList.length; n++) this._itemList[n].setSelected(t == this._itemList[n].id)
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = StringUtil.convertTime(t.spuleTime) : App.timer.clearTimer(this.onTimer,
			this)
	}, e.prototype.onClick = function(t) {
		PanelOpenManager.openPanel(8)
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(1012)
	}, e.prototype.dispose = function() {
		if (this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._gridLayer && (this._gridLayer.dispose(),
				this._gridLayer = null), this._itemList) {
			for (var e = 0; e < this._itemList.length; e++) this._itemList[e].dispose();
			this._itemList = null
		}
		this._effect && (this._effect.dispose(), this._effect = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ActTanBaoView.prototype, "ActTanBaoView");
var SkillGrid = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		return i._isShowTip = !0, i._needGray = !1, i._skillLv = 1, i
	}
	return __extends(e, t), e.prototype.setData = function(t, e) {
		if (void 0 === e && (e = 1), GridUtil.has(this)) throw "警告：正在尝试操作已释放的格子！";
		t ? (this.clear(), this.skillId = t, this._skillLv = e, this.refresh()) : this._skillId && this.clear()
	}, e.prototype.refresh = function() {
		this.setGradeBg(), this.setIcon(), this.checkTip()
	}, e.prototype.setGradeBg = function(t) {
		if (t) this.gridBg.source != t && (this.gridBg.source = t);
		else {
			var e = GridUtil.getGridGradeBg(-1);
			this.gridBg.source != e && (this.gridBg.source = e)
		}
		this.gridBg.width = this.gridBgSize.width, this.gridBg.height = this.gridBgSize.height
	}, e.prototype.setIcon = function(t) {
		if (t) this.icon.url != t && (this.icon.url = t);
		else {
			var e = App.data.skillCenter.getSkill(this._skillId);
			if (null != e ? (this._skillLv = e.level, this._needGray && (this.icon.filters = null)) : this._needGray && (this.icon
					.filters = FilterUtil.FILTER_GRAY), this.bean = GameUtil.getSkillConfigData(this._skillId, this._skillLv), this.bean) {
				var i = ResPathUtil.getIcon(this.bean.q_small_icon + "", "skill/80", ".jpg");
				this.icon.url != i && (this.icon.url = i), this.icon.width = this.gridBgSize.width - 10, this.icon.height = this.gridBgSize
					.height - 10, this.icon.x = this.gridBgSize.width - this.icon.width >> 1, this.icon.y = this.gridBgSize.height -
					this.icon.height >> 1
			} else this.icon.url = void 0
		}
	}, e.prototype.checkTip = function() {
		if (this.isShowTip) {
			var t = new TipData(18, this.bean);
			App.tip.addTip(this, t)
		} else App.tip.removeTip(this)
	}, Object.defineProperty(e.prototype, "skillId", {
		get: function() {
			return this._skillId
		},
		set: function(t) {
			this._skillId = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bean", {
		get: function() {
			return this._bean
		},
		set: function(t) {
			this._bean = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isShowTip", {
		get: function() {
			return this._isShowTip
		},
		set: function(t) {
			this._isShowTip = t, this.checkTip()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		this.gridBg.source = void 0, this.icon.url = void 0, App.tip.removeTip(this), this.skillId = 0
	}, e.prototype.resetAndClear = function() {
		this.clear(), this.touchEnabled = !0, this.touchChildren = !1, this._isShowTip = !0, this._needGray = !1
	}, e
}(BaseGrid);
__reflect(SkillGrid.prototype, "SkillGrid");
var ActToggleItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ToggleActBtn", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data,
			e = App.data.activityCenter;
		if (null != t && null != t.actData) {
			var i = "kfhd_kaifu_" + t.actData.type + "_png";
			App.data.activityCenter.isXianGou(t.actData.type) && (i = "kfhd_kaifu_746_png"), this.img.source = i, this.redpoint
				.visible = e.isShowKfhdRed(t.actData.type)
		}
	}, e.prototype.selectItem = function(t) {
		this.selectImg.visible = t
	}, e.selectEvent = "ActToggleItemRender.SELECTEVENT", e
}(ItemRenderer);
__reflect(ActToggleItemRender.prototype, "ActToggleItemRender");
var IconCimg = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "IconSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, Object.defineProperty(e.prototype, "source", {
		get: function() {
			return this.iconCimg ? this.iconCimg.url : ""
		},
		set: function(t) {
			this._iconCimg || (this._iconCimg = UIMaker.getCImage(this, this, null, 0, 0, !1)), this.iconCimg.url = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._iconCimg && (this._iconCimg.dispose(), this._iconCimg = null)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 64
		},
		set: function(t) {
			this.iconCimg.width = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 64
		},
		set: function(t) {
			this.iconCimg.height = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "iconCimg", {
		get: function() {
			return this._iconCimg || (this._iconCimg = UIMaker.getCImage(this, this, null, 0, 0, !1)), this._iconCimg
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(IconCimg.prototype, "IconCimg");
var FightPower = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "FightPowerSkin", e.touchEnabled = e.touchChildren = !1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("main", "fightPower_effect"), 160, 12),
			this.addChild(this.imgFight)
	}, e.prototype.setValue = function(t, e) {
		void 0 === e && (e = 0), this._fightNumberBmp ? (this._fightNumberBmp.show(t + "", e, 0, BitmapNumberType.FIGHT_POWER),
			this.addChild(this._fightNumberBmp)) : (this._fightNumberBmp = NumberBitmapCache.show(BitmapNumberType.FIGHT_POWER,
				t + "", e, 0, EnumNumberSheetType.FIGHT_POWER_NUMBER), this._fightNumberBmp.x = this.imgFight.x + 85, this._fightNumberBmp
			.y = this.imgFight.y + 12, this.addChild(this._fightNumberBmp)), this._fightNumberBmp.alpha = 1
	}, e.prototype.setVis = function(t) {
		this._effect.visible = this.bg.visible = t, t ? this._effect.play() : this._effect.stop()
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._fightNumberBmp && (this._fightNumberBmp.dispose(),
			this._fightNumberBmp = null), this.imgFight = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(FightPower.prototype, "FightPower");
var ItemGridContainer = function(t) {
	function e(e, i, n, a) {
		var o = t.call(this) || this;
		return o._clearCurrentTip = !0, o._dataSource = new Array, o._renderDataHash = new HashObject, o._layerHash = {}, o._uiComponentToIdHash =
			new HashMap, o._uiComponentToLayerIdHash = new HashMap, o._controller = new ItemGridContainerController, o._controller
			.setStyle(e, i, n, a), o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._layerContainer = new eui.Group, this.addChild(this._layerContainer)
	}, e.prototype.setPosList = function(t) {
		this._controller.setPosList(t)
	}, e.prototype.initLayers = function(t) {
		t = this._controller.getTypes(t);
		for (var e, i, n = t.length, a = 0; n > a; a++) i = t[a], e = new RenderContainer(i), e.moveTo(this._controller.layerGapX,
				this._controller.layerGapY, this._layerContainer), e.touchEnabled = i == GridLayout.BG, e.touchChildren = i ==
			GridLayout.BG, this._layerHash[i] = e;
		this._controller.layoutList = t
	}, e.prototype.getLayer = function(t) {
		return this._layerHash[t]
	}, e.prototype.getLayerChildItem = function(t, e) {
		var i = this.getLayer(t),
			n = i.getChildAt(e);
		return n
	}, Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._controller.dataProvider
		},
		set: function(t) {
			this._controller.dataProvider = t, App.timer.doFrameOnce(this, 2, this.callLater, [t], !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.callLater = function(t) {
		this._clearCurrentTip = !1, this.clear();
		for (var e = t.length, i = 0; e > i; i++) this.getRenderData(t[i].position).data = t[i];
		this._dataSource = t, this.updateLayers()
	}, e.prototype.updateLayers = function() {
		for (var t, e = this._controller.layoutList.length, i = this._dataSource.length, n = 0; e > n; n++) {
			t = this._controller.layoutList[n];
			for (var a = 0; i > a; a++) this.addToLayer(t, this.getLayer(t), this.getRenderData(this._dataSource[a].position))
		}
		this.renderLayers(this._controller.layoutList)
	}, e.prototype.addToLayer = function(t, e, i) {
		var n = this._controller.getUiComponent(t, i);
		this._uiComponentToLayerIdHash.put(i.id + "_" + t, n), egret.is(n, "egret.DisplayObject") && n && n.touchEnabled &&
			(this._uiComponentToIdHash.put(n, i.id), t == GridLayout.BG && this._controller.showTip && i.data && this._controller
				.isShowTip(i.data) && App.tip.addTip(n, this._controller.getTipData(i.data))), i.setUiComponent(t, n), t ==
			GridLayout.SELECT && i.setGridLayoutVisible(t, !1), e && e.add(i)
	}, e.prototype.removeFromLayer = function(t, e, i) {
		var n = i.getUiComponent(t);
		if (this._uiComponentToLayerIdHash.del(i.id + "_" + t), egret.is(n, "egret.DisplayObject") && n && n.touchEnabled &&
			(this._uiComponentToIdHash.del(n), t == GridLayout.BG)) {
			var a = !this._clearCurrentTip && App.tip.tipBelongTarget(n);
			i.data && this._controller.isShowTip(i.data) && App.tip.removeTip(n, !a)
		}
		e && e.remove(i), i.data = null
	}, e.prototype.renderLayers = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.getLayer(t[i]).renderLayer()
	}, e.prototype.getRenderData = function(t) {
		var e = this._renderDataHash.get(t + "");
		return null == e && (e = new GridRenderData, e.id = t, e.x = this._controller.getGridX(t), e.y = this._controller.getGridY(
			t), this._renderDataHash.put(t + "", e)), e
	}, e.prototype.setCallback = function(t, e) {
		this._gridClickCallBack = t, this._gridClickParam = e
	}, e.prototype.setShowTip = function(t) {
		this._controller.showTip = t
	}, e.prototype.clear = function() {
		for (var t, e = this._controller.layoutList, i = e.length, n = this._renderDataHash.length, a = 0; i > a; a++) {
			t = e[a];
			for (var o = 0; n > o; o++) this.removeFromLayer(t, this.getLayer(t), this.getRenderData(this._dataSource[o].position))
		}
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t - this._controller.layerGapX, this.y = e - this._controller.layerGapY, i && i.addChild(this)
	}, e.prototype.getIconList = function() {
		var t = this.getLayer(GridLayout.ICON);
		return t ? t.targetList : null
	}, e.prototype.getController = function() {
		return this._controller
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.callLater, this), this._clearCurrentTip = !0, this.clear(), UIMaker.putToPool(this._alphaImage),
			UIMaker.putToPool(this._imageSelected), this._uiComponentToIdHash.dispose(), this._uiComponentToLayerIdHash.dispose(),
			this._renderDataHash = null, this._layerHash = null, this._uiComponentToIdHash = null, this._uiComponentToLayerIdHash =
			null, this._gridClickCallBack = null, this._gridClickParam = null, this._dataSource = null, this._controller =
			null, this.parent && this.parent.removeChild(this)
	}, e.prototype.isHasItemData = function(t) {
		for (var e = 0; e < this._dataSource.length; e++) {
			var i = this._dataSource[e];
			if (i.position == t.position) return this._dataSource[e] = t, !0
		}
		return !1
	}, e.prototype.updateItemLayers = function(t) {
		for (var e, i = this._controller.layoutList.length, n = 0; i > n; n++) {
			e = this._controller.layoutList[n];
			var a = this.getRenderData(t.position),
				o = a.id + "_" + e,
				r = this._uiComponentToLayerIdHash.get(o);
			this._controller.setUiComponentInfo(e, r, a)
		}
	}, e.prototype.addItemToLayers = function(t) {
		if (this.isHasItemData(t)) return void this.updateItemLayers(t);
		this._dataSource.push(t);
		for (var e, i = this._controller.layoutList.length, n = 0; i > n; n++) e = this._controller.layoutList[n], this.addToLayer(
			e, this.getLayer(e), this.getRenderData(t.position));
		this.renderItemLayers(this._controller.layoutList, this.getRenderData(t.position))
	}, e.prototype.renderItemLayers = function(t, e) {
		for (var i = t.length, n = 0; i > n; n++) this.getLayer(t[n]).renderItemLayer(e)
	}, e
}(eui.Group);
__reflect(ItemGridContainer.prototype, "ItemGridContainer");
var ItemGridContainerController = function() {
	function t() {
		this.showTip = !0, this.layoutList = new Array, this.posList = []
	}
	return t.prototype.getTypes = function(t) {
		return t.push(GridLayout.EFFECT), t.sort(this.sort), t
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.setStyle = function(t, e, i, n) {
		this.bgBorderWidth = t, this.bgBorderHeight = e, this.iconWidth = i, this.iconHeight = n, this.layerGapX = 10, this
			.layerGapY = 10
	}, t.prototype.setLayer = function() {
		this.layoutList = [GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM,
			GridLayout.TEXT_COUNT
		]
	}, t.prototype.setPosList = function(t) {
		this.posList = t
	}, t.prototype.getGridX = function(t) {
		return this.posList[t].x
	}, t.prototype.getGridY = function(t) {
		return this.posList[t].y
	}, t.prototype.getTipData = function(t) {
		var e;
		return e = new TipData(ItemUtil.isEquip(t.itemId) ? 4 : ItemUtil.isWarpet(t.itemId) ? 19 : ItemUtil.isFaBao(t.itemId) ?
			23 : 2), e.data = t, e
	}, t.prototype.isShowTip = function(t) {
		return t.itemId == EnumItemId.NAMECHANGECARD ? !1 : !0
	}, t.prototype.getUiComponent = function(t, e) {
		var i = e.data;
		if (null == i || null == i.getDataBean()) return null;
		switch (t) {
			case GridLayout.Special:
				return this.getSpecial(e);
			case GridLayout.EFFECT:
				return this.getEffect(e);
			case GridLayout.ICON:
				return this.getIcon(e);
			case GridLayout.BG:
				return this.getBg(e);
			case GridLayout.REDPOINT:
				return this.getRedPoint(e);
			case GridLayout.JOB:
				return this.getJob(e);
			case GridLayout.TEXT_BOTTOM:
				return this.getDescTxt(e);
			case GridLayout.ICON_BOTTOM:
				return this.getMarkIcon(e);
			case GridLayout.TEXT_COUNT:
				return this.getCountTxt(e);
			case GridLayout.TEXT_QH:
				return this.getQianghuaTxt(e);
			case GridLayout.TEXT_ZZ:
				return this.getZhuzaoTxt(e)
		}
	}, t.prototype.setUiComponentInfo = function(t, e, i) {
		var n = i.data;
		if (null == n || null == n.getDataBean()) return null;
		switch (t) {
			case GridLayout.Special:
				return this.setSpecial(i, e);
			case GridLayout.EFFECT:
				return this.setEffect(i, e);
			case GridLayout.ICON:
				return this.setIcon(i, e);
			case GridLayout.BG:
				return this.setBg(i, e);
			case GridLayout.REDPOINT:
				return this.setRedPoint(i, e);
			case GridLayout.JOB:
				return this.setJob(i, e);
			case GridLayout.TEXT_BOTTOM:
				return this.setDescTxt(i, e);
			case GridLayout.ICON_BOTTOM:
				return this.setMarkIcon(i, e);
			case GridLayout.TEXT_COUNT:
				return this.setCountTxt(i, e);
			case GridLayout.TEXT_QH:
				return this.setQianghuaTxt(i, e);
			case GridLayout.TEXT_ZZ:
				return this.setZhuzaoTxt(i, e)
		}
	}, t.prototype.getSpecial = function(t) {
		var e = (t.data, this.specialParams.url),
			i = UIMaker.getImage(null, this, e, t.x + this.specialParams.x, t.y + this.specialParams.y);
		return i.width = this.specialParams.w, i.height = this.specialParams.h, i
	}, t.prototype.getIcon = function(t) {
		var e = t.data,
			i = ResPathUtil.getIcon(e.bean.q_tiny_icon, "item/80");
		"" == e.bean.q_tiny_icon && (i = null);
		var n = UIMaker.getCImage(null, this, i, t.x + 5, t.y + 5);
		return n.width = this.bgBorderWidth - 10, n.height = this.bgBorderHeight - 10, n
	}, t.prototype.getBg = function(t) {
		var e = t.data,
			i = GridUtil.getSizeGridGradeBg(this.bgBorderWidth, e.bean.q_default),
			n = UIMaker.getImage(null, this, i, t.x, t.y, !0);
		return n.width = this.bgBorderWidth, n.height = this.bgBorderHeight, n
	}, t.prototype.getJob = function(t) {
		var e = t.data;
		if (1 == e.bean.q_type) {
			var i = e.bean.q_job;
			if (i > 0) {
				var n = GridUtil.getGridJob(i),
					a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
				return a
			}
		} else if (39 == e.bean.q_type) {
			var n = GridUtil.getGridWingGod(e.bean.q_level),
				a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
			return a
		}
		return null
	}, t.prototype.getRedPoint = function(t) {
		var e = t.data;
		if (7 == e.bean.q_type && App.data.bagItemDataCenter.hasItem(e) && App.data.bagItemDataCenter.getItemRemainNum(e.itemId) >
			0 && App.global.itemUse.isMatchUseCondition(e, !1)) {
			var i = GridUtil.getGridRedPointUrl(),
				n = UIMaker.getImage(null, this, i, t.x + this.bgBorderWidth - 15, t.y - 5);
			return n
		}
		return null
	}, t.prototype.getDescTxt = function(t) {
		var e = t.data,
			i = this.bgBorderWidth == EnumGridStyle.DEFAULT_SIZE ? 4 : 1,
			n = UIMaker.getBitmapLabel(null, this, "test_fnt", "1", t.x + (this.bgBorderWidth - 124) / 2, t.y + this.bgBorderHeight +
				i, 124, 20);
		n.font = "test_fnt";
		var a = ItemUtil.getItemName(e.itemId);
		if (ItemUtil.isEquip(e.itemId)) {
			var o = e.getEquipDataBean();
			o && 14 != o.q_kind && (a = e.bean.q_zhuanshen > 0 ? e.bean.q_zhuanshen + "转" : "lv" + e.bean.q_level)
		}
		return n.text = a, n
	}, t.prototype.getMarkIcon = function(t) {
		var e = t.data,
			i = "guild_up_png",
			n = App.data.wearEquipCenter.getRoleWearData(e.getEquipDataBean().q_kind, App.global.characterData.roleIndex);
		n && (i = n.getEquipDataBean().q_score > e.getEquipDataBean().q_score ? "guild_down_png" : n.getEquipDataBean().q_score <
			e.getEquipDataBean().q_score ? "guild_up_png" : "");
		var a = UIMaker.getImage(null, this, i, t.x + 60, t.y + 50);
		return a
	}, t.prototype.getCountTxt = function(t) {
		var e = t.data,
			i = UIMaker.getBitmapLabel(null, this, "test_fnt", "1", t.x, t.y + this.bgBorderHeight - 18 - 3, this.bgBorderWidth -
				6, 18);
		i.font = "test_fnt", i.textAlign = egret.HorizontalAlign.RIGHT;
		return e.itemId < 0 ? e.count >= 1e8 ? i.text = StringUtil.formatMoney(e.count, "亿", 1e8) : i.text = StringUtil.formatMoney(
			e.count, "w") : i.text = e.showCompleteCount ? e.count + "" : e.count > 1 ? e.count + "" : "", i
	}, t.prototype.getQianghuaTxt = function(t) {
		var e = UIMaker.getBitmapLabel(null, this, "fnt_qianghua_fnt", "1", t.x, t.y + this.bgBorderHeight - 18 - 3, this.bgBorderWidth -
			6, 18);
		return e.font = "fnt_qianghua_fnt", e.textAlign = egret.HorizontalAlign.RIGHT, e.verticalAlign = egret.VerticalAlign
			.MIDDLE, e.text = t.data.qianghua > 0 ? t.data.qianghua + "" : "", e
	}, t.prototype.getZhuzaoTxt = function(t) {
		var e = UIMaker.getBitmapLabel(null, this, "fnt_zhuzao_fnt", "1", t.x, t.y + this.bgBorderHeight - 18 - 3, this.bgBorderWidth -
			6, 18);
		return e.font = "fnt_zhuzao_fnt", e.width = this.bgBorderWidth - 5, e.height = 20, e.textAlign = egret.HorizontalAlign
			.LEFT, e.verticalAlign = egret.VerticalAlign.MIDDLE, e.text = t.data.zhuzao > 0 ? t.data.zhuzao + "" : "", e
	}, t.prototype.getEffect = function(t) {
		var e = t.data;
		if (0 == e.bean.q_effect) return null;
		var i = ResPathUtil.getMenuEffect("item", e.bean.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE),
			n = EffectUtils.showCEffect(this, null, i, t.x + this.bgBorderWidth / 2, t.y + this.bgBorderHeight / 2);
		return n.scaleX = this.bgBorderWidth / EnumGridStyle.DEFAULT_SIZE, n.scaleY = this.bgBorderHeight / EnumGridStyle.DEFAULT_SIZE,
			n
	}, t.prototype.setSpecial = function(t, e) {
		var i = (t.data, this.specialParams.url),
			n = e;
		n.source = i
	}, t.prototype.setIcon = function(t, e) {
		var i = t.data,
			n = ResPathUtil.getIcon(i.bean.q_tiny_icon, "item/80");
		"" == i.bean.q_tiny_icon && (n = null);
		var a = e;
		return a.url = n, a
	}, t.prototype.setBg = function(t, e) {
		var i = t.data,
			n = GridUtil.getSizeGridGradeBg(this.bgBorderWidth, i.bean.q_default),
			a = e;
		a.source = n
	}, t.prototype.setJob = function(t, e) {
		var i = t.data;
		if (1 == i.bean.q_type) {
			var n = i.bean.q_job;
			if (n > 0) {
				var a = GridUtil.getGridJob(n),
					o = e;
				o.source = a
			}
		} else if (39 == i.bean.q_type) {
			var a = GridUtil.getGridWingGod(i.bean.q_level),
				o = e;
			o.source = a
		}
	}, t.prototype.setRedPoint = function(t, e) {
		var i = t.data;
		if (7 == i.bean.q_type && App.data.bagItemDataCenter.hasItem(i) && App.data.bagItemDataCenter.getItemRemainNum(i.itemId) >
			0 && App.global.itemUse.isMatchUseCondition(i, !1)) {
			var n = GridUtil.getGridRedPointUrl(),
				a = e;
			a.source = n
		}
		return null
	}, t.prototype.setDescTxt = function(t, e) {
		var i = t.data,
			n = (this.bgBorderWidth == EnumGridStyle.DEFAULT_SIZE ? 4 : 1, e),
			a = ItemUtil.getItemName(i.itemId);
		if (ItemUtil.isEquip(i.itemId)) {
			var o = i.getEquipDataBean();
			o && 14 != o.q_kind && (a = i.bean.q_zhuanshen > 0 ? i.bean.q_zhuanshen + "转" : "lv." + i.bean.q_level)
		}
		n.text = a, n.textColor = GameUtil.getItemNameColor(i.itemId)
	}, t.prototype.setMarkIcon = function(t, e) {
		var i = t.data,
			n = "guild_up_png",
			a = App.data.wearEquipCenter.getRoleWearData(i.getEquipDataBean().q_kind, App.global.characterData.roleIndex);
		a && (n = a.getEquipDataBean().q_score > i.getEquipDataBean().q_score ? "guild_down_png" : a.getEquipDataBean().q_score <
			i.getEquipDataBean().q_score ? "guild_up_png" : "");
		var o = e;
		o.source = n
	}, t.prototype.setCountTxt = function(t, e) {
		var i = t.data,
			n = e;
		n.textAlign = egret.HorizontalAlign.RIGHT, n.stroke = 1, i.itemId < 0 ? i.count >= 1e8 ? n.text = StringUtil.formatMoney(
				i.count, "亿", 1e8) : n.text = StringUtil.formatMoney(i.count, "w") : n.text = i.showCompleteCount ? i.count + "" :
			i.count > 1 ? i.count + "" : ""
	}, t.prototype.setQianghuaTxt = function(t, e) {
		var i = e;
		i.width = this.bgBorderWidth - 5, i.height = 20, i.stroke = 1, i.strokeColor = 0, i.textColor = 16757760, i.textAlign =
			egret.HorizontalAlign.RIGHT, i.verticalAlign = egret.VerticalAlign.MIDDLE, i.size = 20, i.text = t.data.qianghua >
			0 ? t.data.qianghua + "" : ""
	}, t.prototype.setZhuzaoTxt = function(t, e) {
		var i = e;
		i.width = this.bgBorderWidth - 5, i.height = 20, i.stroke = 1, i.strokeColor = 0, i.textColor = 6407139, i.textAlign =
			egret.HorizontalAlign.LEFT, i.verticalAlign = egret.VerticalAlign.MIDDLE, i.size = 20, i.text = t.data.zhuzao > 0 ?
			t.data.zhuzao + "" : ""
	}, t.prototype.setEffect = function(t, e) {
		var i = t.data;
		if (0 == i.bean.q_effect) return null;
		var n = ResPathUtil.getMenuEffect("item", i.bean.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE),
			a = e;
		a.url = n, a.scaleX = this.bgBorderWidth / EnumGridStyle.DEFAULT_SIZE, a.scaleY = this.bgBorderHeight /
			EnumGridStyle.DEFAULT_SIZE
	}, t
}();
__reflect(ItemGridContainerController.prototype, "ItemGridContainerController");
var FullScreenMask = function() {
	function t() {
		if (this.alphaDefault = .7, this.hash = new HashObject, t._instrance) throw new Error("this is a singleton!").message;
		this.initConfig()
	}
	return Object.defineProperty(t, "ins", {
		get: function() {
			return t._instrance || (t._instrance = new t), t._instrance
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.initConfig = function() {
		App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this)
	}, t.prototype.resize = function() {
		this.hash.length > 0 && this.hash.foEach(this.resizeMask, this)
	}, t.prototype.resizeMask = function(t, e) {
		if (e.stage) {
			var i = Config.SCREEN_WIDTH,
				n = Config.SCREEN_HEIGHT;
			(i != e.width || n != e.height) && (e.graphics.clear(), e.graphics.beginFill(0, this.alphaDefault), e.graphics.drawRect(
				0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), e.graphics.endFill(), e.touchEnabled = !0)
		}
	}, t.prototype.addMask = function(t, e, i) {
		void 0 === e && (e = -1);
		var n = i.toString(),
			a = this.hash.get(n);
		null == a && (a = this.createMask(), this.hash.put(n, a)), 0 > e ? (t.addChild(a), this.resize()) : t.addChildAt(a,
			e)
	}, t.prototype.removeMask = function(t) {
		var e = t.toString(),
			i = this.hash.get(e);
		null != i && i.parent && i.parent.removeChild(i), this.hash.del(e)
	}, t.prototype.createMask = function() {
		var t = new MaskShape;
		return t.graphics.beginFill(0, this.alphaDefault), t.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT),
			t.graphics.endFill(), t.touchEnabled = !0, t
	}, t.prototype.setMaskAlpha = function(t, e) {
		var i = t.toString(),
			n = this.hash.get(i);
		null != n && (n.alpha = e)
	}, t.prototype.resetMaskAlpha = function(t) {
		this.setMaskAlpha(t, this.alphaDefault)
	}, t
}();
__reflect(FullScreenMask.prototype, "FullScreenMask");
var FullScreen;
! function(t) {
	t[t.Panel = 0] = "Panel", t[t.Guide = 1] = "Guide"
}(FullScreen || (FullScreen = {}));
var MaskShape = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(egret.Shape);
__reflect(MaskShape.prototype, "MaskShape");
var CircleLayout = function(t) {
	function e(i, n, a, o, r) {
		void 0 === o && (o = 0), void 0 === r && (r = e.DIRECTION_RIGHT);
		var s = t.call(this) || this;
		return s.init(), s.radius = i, s.clsName = n, s.callBackFn = a, s.coreIndex = o, s.direction = r, s
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher = new DispatcherRegister, this.gridArr = [], this.duration = 0
	}, Object.defineProperty(e.prototype, "radius", {
		get: function() {
			return this._radius
		},
		set: function(t) {
			this._radius != t && (this._radius = t, this.width = 2 * t, this.height = 2 * t, this.anchorOffsetX = this.width /
				2, this.anchorOffsetY = this.height / 2)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "count", {
		get: function() {
			return this._count
		},
		set: function(t) {
			this._count != t && (this._count = t, this.gap = 360 / t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "clsName", {
		get: function() {
			return this._clasName
		},
		set: function(t) {
			this._clasName != t && (this.clsName = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			if (this.clearGridArr(), this._dataProvider = t, this._dataProvider) {
				this.count = t.length;
				for (var e, i, n = 0; n < this.count; n++) {
					var a = GridUtil.getGrid(this.clsName, EnumGridStyle.GRID_STYLE_NORMAL);
					e = Math.cos(n * this.gap) * this.radius - a.width / 2, i = Math.sin(n * this.gap) * this.radius - a.height /
						2, a.x = e, a.y = i, this.addChild(a), this._gridArr.push(a), this.callBackFn && (this.callBackFn.param = [a,
							t[n]
						], this.callBackFn.exec())
				}
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "coreIndex", {
		get: function() {
			return this._coreIndex
		},
		set: function(t) {
			this._coreIndex != t && (this._coreIndex = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "direction", {
		get: function() {
			return this._direction
		},
		set: function(t) {
			this._direction != t && (this._direction = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "gap", {
		get: function() {
			return this._gap
		},
		set: function(t) {
			this._gap != t && (this._gap = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "gridArr", {
		get: function() {
			return this._gridArr
		},
		set: function(t) {
			this._gridArr != t && (this._gridArr = t)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "duration", {
		get: function() {
			return this._duration
		},
		set: function(t) {
			this._duration = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearGridArr = function() {
		if (this.gridArr) {
			for (var t = 0; t < this.gridArr.length; t++) this.gridArr[t] && this.gridArr[t].dispose();
			this.gridArr = []
		}
	}, e.prototype.rotate = function() {
		if (this._direction == e.DIRECTION_RIGHT) {
			for (var t = 0; t < this.gridArr.length; t++) TweenLite.to(this.gridArr[t], this.duration, {
				x: this.gridArr[(t + 1) % this.gridArr.length].x,
				y: this.gridArr[(t + 1) % this.gridArr.length].y,
				onComplete: this.itemEndHandler,
				onCompleteParams: [this.gridArr[t]],
				onCompleteScope: this
			});
			this.coreIndex = (this.coreIndex - 1 + this.count) % this.count
		} else {
			for (var t = this.gridArr.length - 1; t >= 0; t--) TweenLite.to(this.gridArr[t], this.duration, {
				x: this.gridArr[(t - 1 + this.gridArr.length) % this.gridArr.length].x,
				y: this.gridArr[(t - 1 + this.gridArr.length) % this.gridArr.length].y,
				onComplete: this.itemEndHandler,
				onCompleteParams: [this.gridArr[t]],
				onCompleteScope: this
			});
			this.coreIndex = (this.coreIndex + 1) % this.count
		}
	}, e.prototype.itemEndHandler = function(t) {
		TweenLite.killTweensOf(t)
	}, Object.defineProperty(e.prototype, "callBackFn", {
		get: function() {
			return this._callBackFn
		},
		set: function(t) {
			this._callBackFn = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._dispatcher && this._dispatcher.removeAllListeners(), this._dispatcher = void 0,
			this._radius = void 0, this._clasName = void 0, this._count = void 0, this._gap = void 0, this.clearGridArr(),
			this._gridArr = void 0, this._direction = void 0, this._duration = void 0, this._callBackFn = void 0, this._coreIndex =
			void 0, this._dataProvider = void 0
	}, e.DIRECTION_LEFT = 1, e.DIRECTION_RIGHT = 2, e
}(h5_engine.GDisplayObjectContainer);
__reflect(CircleLayout.prototype, "CircleLayout");
var NationalActivityChaozhiView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(732);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			var e = StringUtil.JsonParse(t[0].extendMap);
			this.endTime = ServerTime.remianZeroTime, App.timer.doTimeLoop(this, 1e3, this.ontimer1), this._view.tfCharge.text =
				StringUtil.substitute("已充值：{0}元", e.gold / 100), this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text =
				StringUtil.convertTime(this.endTime);
			var i = this.getActivityFlag(t);
			i = t.length - i >= 3 ? i : t.length - 3, this.scrollBottom(i)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, this.bgimg = UIMaker.getCImage(this._view.bggroup,
			this, ResPathUtil.getImgPath("kfhd/czfl", "", ".jpg"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function() {
		this.endTime--, this.endTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_3(this.endTime) : (this._view.tfTime
			.text = "", App.timer.clearTimer(this.ontimer1, this))
	}, e
}(ActChargeBaseView);
__reflect(NationalActivityChaozhiView.prototype, "NationalActivityChaozhiView");
var NationalActivityLianchongView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.flag = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.addgrid = function() {
		for (var t = 0; 4 > t; t++) {
			var e = new ItemGrid;
			e.x = 400 + 100 * (t % 2), 2 > t ? e.y = 50 : e.y = 160, this._view.itemgroup.addChild(e), this.gridhash.put(t, e)
		}
		for (var i = 0; 3 > i; i++) {
			var e = new ItemGrid;
			e.x = 50 + 150 * i, e.y = 10, e.name = "" + i, e.isShowTip = !1, e.isShowDesc = !1, this._view.lianchonggroup.addChild(
				e), this.lianchonggridhash.put(i, e)
		}
	}, e.prototype.updatePanel = function() {
		if (this.clearEff(), this.listData = App.data.activityCenter.getList(731), null != this.listData[0] && void 0 !=
			this.listData[0].extendMap && "" != this.listData[0].extendMap) {
			for (var t = StringUtil.JsonParse(this.listData[0].extendMap), e = ItemUtil.getRewardDataList(this.listData[0].bean
					.q_show_rewards), i = 0; i < e.length; i++) {
				var n = this.gridhash.get(i);
				n.setData(e[i])
			}
			for (var a = 0; a < this.listData.length; a++) {
				var o = this.listData[a],
					r = ItemUtil.getRewardDataList(o.bean.q_show_rewards),
					n = this.lianchonggridhash.get(a);
				n.setData(r[0]), this._view["desc" + a].text = "累充" + t.regday + "/" + o.bean.q_desc + "天", this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.openGrid, this, n), 0 == o.playerStates ? this._view.lianchonggroup.addChild(
					this._view["img" + a]) : 1 == o.playerStates && (this.lelingquEff = EffectUtils.showCEffect(this, this._view.lianchonggroup,
					ResPathUtil.getMenuEffect("panel", "kelingqu"), n.x + 36, n.y + 40))
			}
			this._view.bar.width = 300 * (t.regday / 6);
			var s = Number(t.endtime);
			this.key = App.timer.serverTimeEnd(this, this.ontimer, s), this._view.descmiaoshu.text = this.listData[0].bean.q_info,
				this._view.tfCharge.text = StringUtil.substitute("已充值：{0}元", t.gold / 100), this._view.tfTime.text = StringUtil.convertTime_4(
					this.endTime), this._view.tfDesc.text = this.listData[0].bean.q_desc;
			for (var h = StringUtil.JsonParse(this.listData[0].bean.q_show_finish), i = 0; i < h.length; i++)
				if (h[i].sex == App.global.characterData.sex || 0 == h[i].sex) {
					var l = App.config.q_surfaceContainer.getDataBean(h[i].surfaceid);
					4 == l.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, l.q_scene_show_id) :
						5 == l.q_type ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, l.q_scene_show_id) :
						1 == l.q_type && this._avatar.changePlayerRolePartResource(AvatarPartType.WING, this.roleData.sex, l.q_scene_show_id)
				}
		}
	}, e.prototype.clearEff = function() {
		this.lelingquEff && (this.lelingquEff.stop(), this.lelingquEff.dispose(), this.lelingquEff = null)
	}, e.prototype.openGrid = function(t) {
		for (var e = t.currentTarget, i = ItemUtil.getRewardDataList(this.listData[Number(e.name)].bean.q_show_rewards), n =
				0; n < this.lianchonggridhash.length; n++) {
			var a = this.gridhash.get(n);
			a.setData(i[n])
		}
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.listData[Number(e.name)].bean.q_id)
	}, e.prototype.addAvatarUI = function() {
		if (null == this._avatar) {
			this._avatar = new CUIShowAvatar;
			var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
			this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t), this._avatar.touchEnabled = !
				1, this._avatar.touchChildren = !1, this._avatar.x = 225, this._avatar.y = 465, this._avatar.scaleX = .75, this._avatar
				.scaleY = .75, this.parent.parent.parent.addChild(this._avatar)
		}
	}, e.prototype.clearAvatar = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.itemgroup.visible = !0, this._view.lianchonggroup.visible = !0, this._scrollPanel
			.visible = !1, this.gridhash = new HashObject, this.lianchonggridhash = new HashObject, this.bgimg = UIMaker.getCImage(
				this._view.bggroup, this, ResPathUtil.getImgPath("kfhd/lcfl", "", ".jpg")), this.itembg = UIMaker.getCImage(this._view
				.bggroup, this, ResPathUtil.getImgPath("kfhd/bj", "", ".jpg"), 0, 156), this.clearAvatar(), this.addAvatarUI(),
			this.addgrid(), this.updatePanel(), this.isOpen = !1
	}, e.prototype.hide = function() {
		if (this.clearAvatar(), this.clearEff(), this.flag = !1, this.itembg && (this.itembg.dispose(), this.itembg = null),
			this.gridhash) {
			for (var e = 0; e < this.gridhash.length; e++) {
				var i = this.gridhash.get(e);
				i.parent.removeChild(i), i.dispose(), i = null
			}
			this.gridhash.dispose(), this.gridhash = null
		}
		if (this.lianchonggridhash) {
			for (var e = 0; e < this.lianchonggridhash.length; e++) {
				var i = this.lianchonggridhash.get(e);
				i.parent.removeChild(i), i.dispose(), i = null
			}
			this.lianchonggridhash.dispose(), this.lianchonggridhash = null
		}
		this._view.itemgroup.visible = !1, this._view.lianchonggroup.visible = !1, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.ontimer = function(t) {
		this.endTime--, t.spuleTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_4(t.spuleTime) : (this._view.tfTime
			.text = "", App.timer.clearTimer(this.key, this))
	}, e
}(ActChargeBaseView);
__reflect(NationalActivityLianchongView.prototype, "NationalActivityLianchongView");
var NationalActivityloginView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getList(730);
		if (this._scrollPanel.dataProvider = t, null != t[0] && void 0 != t[0].extendMap && "" != t[0].extendMap) {
			StringUtil.JsonParse(t[0].extendMap);
			this.endTime = ServerTime.remianZeroTime, App.timer.doTimeLoop(this, 1e3, this.ontimer1), this._view.tfCharge.visible = !
				1, this._view.tfDesc.text = t[0].bean.q_desc, this._view.tfTime.text = StringUtil.convertTime(this.endTime);
			var e = this.getActivityFlag(t);
			e = t.length - e >= 3 ? e : t.length - 3, this.scrollBottom(e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.updatePanel(), this.isOpen = !1, this.bgimg = UIMaker.getCImage(this._view.bggroup,
			this, ResPathUtil.getImgPath("kfhd/gqkh", "", ".jpg"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.ontimer1, this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.ontimer1, this), t.prototype.dispose.call(this)
	}, e.prototype.ontimer1 = function() {
		this.endTime--, this.endTime > 0 ? this._view.tfTime.text = StringUtil.convertTime_3(this.endTime) : (this._view.tfTime
			.text = "", App.timer.clearTimer(this.ontimer1, this))
	}, e
}(ActChargeBaseView);
__reflect(NationalActivityloginView.prototype, "NationalActivityloginView");
var NationalActivityXiaofeiItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "severActivityRankItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		t.prototype.clear.call(this), this._grid && (this._grid.dispose(), this._grid = null)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.isShowJobImg = !1, this._grid.x = 20, this._grid.y = 45, this._grid.scaleX = .9, this._grid.scaleY = .9,
			this.addChild(this._grid)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		if (this.ad = this.data, this.ad.extendMap) {
			var t = StringUtil.JsonParse(this.ad.extendMap);
			this.nametext.visible = !0, "" == t.rankname ? (this._grid.x = 87, this.nametext.text = "", this.fighttext.text =
					"") : (this._grid.x = 25, this.nametext.text = t.rankname, this.fighttext.text = "消费元宝\n" + t.rankdata), 1 ==
				this.itemIndex ? this.labRank.text = "第三名" : 2 == this.itemIndex ? this.labRank.text = "第4-20名" : this.labRank.text =
				"第二名";
			var e = ItemUtil.getRewardDataList(this.ad.bean.q_show_rewards);
			this._grid.setData(e[0])
		}
	}, e
}(ItemRenderer);
__reflect(NationalActivityXiaofeiItem.prototype, "NationalActivityXiaofeiItem");
var NationalActivityXiaofeiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.day = 1, e.skinName = "SeverActivityRankSkin", e.init(), e.y = -89, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(305, 420, NationalActivityXiaofeiItem, 1), this._vscroller.move(380, 250, this),
			this._gridDict = new HashObject;
		for (var t = 0; 2 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.x = t % 2 * 120 + 72, e.y = 276, this.firstgroup.addChild(e), this._gridDict.put(t, e)
		}
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
			"kfhd/nationalxffl", "", ".jpg")))
	}, e.prototype.show = function(t) {
		this.day = ServerTime.openday, this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity,
				this), this._dispatcher.addEventListener(EventType.RANK_LIST_REFRESH, this.changePageData, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.getbtn);
		var e = App.data.activityCenter.getList(733);
		e && this.showfirstView(e.shift()), this._vscroller.dataProvider = e, App.timer.serverTimeEnd(this, this.timeOnClick,
			ServerTime.getServerTime() + ServerTime.remianZeroTime), RankListCommandSender.getRankListInfo(1, EnumRankType.NATIONALXIAOFEI,
			1)
	}, e.prototype.onBtnClick = function(t) {
		void 0 == this._rankInfo ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有排名信息</font>") :
			(ActivityRankPanel.isNational = !0, App.panel.openPanel(103, this._rankInfo.rankInfoVec))
	}, e.prototype.changePageData = function(t) {
		this._rankInfo = t
	}, e.prototype.timeOnClick = function(t) {
		t.spuleTime > 0 ? this.shijian.textFlow = HtmlUtil.getHtmlStr("活动时间:<font color='0x35ea35'>" + StringUtil.convertTime_3(
			t.spuleTime) + "</font>") : this.shijian.textFlow = HtmlUtil.getHtmlStr("00:00:00")
	}, e.prototype.showfirstView = function(t) {
		for (var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards), i = 0; i < this._gridDict.length; i++) this._gridDict
			.get(i).setData(e[i]);
		if (this.desc.textFlow = HtmlUtil.getHtmlStr("活动说明:" + t.bean.q_desc), this.clearLabelEff(), this._saEff =
			EffectUtils.showCEffect(this, this.firstgroup, ResPathUtil.getTitleEffect("" + t.bean.q_icon2), 175, 160), t.extendMap
		) {
			var n = StringUtil.JsonParse(t.extendMap);
			this.firstname.text = "" + ("" == n.rankname ? "无" : n.rankname), this.firstscore.text = "消费元宝:" + ("" == n.rankdata ?
					"0" : n.rankdata), this.myranklevel.text = "消费元宝：" + ("" == n.myrankdata ? "无" : n.myrankdata), n.myrank <= 20 &&
				n.myrank > 0 ? this.myrank.text = "我的排名：" + n.myrank : this.myrank.text = "我的排名：未上榜"
		}
	}, e.prototype.showactivity = function() {
		var t = App.data.activityCenter.getList(733);
		t.shift(), this._vscroller.dataProvider = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearLabelEff(), this._vscroller.removeAll(), App.timer.clearTimer(this.timeOnClick,
			this)
	}, e.prototype.clearLabelEff = function() {
		this._saEff && (this._saEff.stop(), this._saEff.dispose(), this._saEff = null)
	}, e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (
				this._vscroller.dispose(), this._vscroller = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
	}, e
}(ViewBase);
__reflect(NationalActivityXiaofeiView.prototype, "NationalActivityXiaofeiView");
var NationalDayActivityPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.maxNumOnPage = 5, e.lastIndex = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		var i = this;
		t.prototype.init.call(this);
		var n = App.data.activityCenter;
		this._scroll = new VScrollPanel(490, 117, ActToggleItemRender, 2, null, 2), this._scroll.itemRender =
			ActToggleItemRender, this._scroll.move(80, 0, this.window.tabGroup), this._preBtn = this.window.preBtn, this._nextBtn =
			this.window.nextBtn, this._tfPage = this.window.tfPage, this.maxNumOnPage = 5, this._actBtn = n.getNationalBtn(),
			this._actBtnCount = this._actBtn.length, this._scroll.dataProvider = this._actBtn.getValueArray();
		var a = 0;
		this._actBtn = n.getNationalBtn(), this._actBtn.foEach(function(t, n) {
			var o = n,
				r = "kfhd_kf_title_" + o.actData.type + "_png";
			App.data.activityCenter.isXianGou(o.actData.type) && (r = "kfhd_kf_title_746_png"), i.registerSubPanel(a, e.cls[
				o.panelIndex], r), a++
		}, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.selectedIndex = this.lastIndex, App.timer.doFrameOnce(this, 1,
			this.callLater, [this.selectedIndex])
	}, e.prototype.callLater = function(t) {
		void 0 === t && (t = 0), this._scroll.selectedIndex = t, this.curritem && this.curritem.selectItem(!1);
		var e = this._scroll.list.getChildAt(t);
		this.curritem = e, e && e.selectItem(!0)
	}, e.prototype.dispose = function() {
		this.window && (this.window.dispose(), this.window = null), this._scroll && (this._scroll.parent && this._scroll.parent
			.removeChild(this._scroll), this._scroll.dispose(), this._scroll = null), this.curritem && (this.curritem.dispose(),
			this.curritem = null), t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		this.lastIndex = this.selectedIndex, t.prototype.hide.call(this)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onPreBtn, this, this._preBtn), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onNextBtn, this, this._nextBtn), this._dispatcher.addEventListener(eui.ItemTapEvent
			.ITEM_TAP, this.onUpdateList, this, this._scroll.list), this._dispatcher.addEventListener(ActivityEvent.REFRESH_BRIEF,
			this.showToggleBtnRed, this), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showToggleBtnRed,
			this);
		var t = App.data.activityCenter;
		this._actBtn = t.getNationalBtn(), this._actBtn.foEach(function(t, e) {
			var i = e,
				n = App.data.activityCenter.getListActId(i.actData.type);
			ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(n)
		}, this)
	}, e.prototype.updateTabButton = function() {
		var t = this,
			i = App.data.activityCenter,
			n = i.getNationalBtn();
		if (null != n && (this._scroll.dataProvider = n.getValueArray(), this._actBtnCount != n.length)) {
			this.hideCurSubPanel(), this.resetSubPanel();
			var a = 0;
			n.foEach(function(i, n) {
				var o = n,
					r = "kfhd_kf_title_" + o.actData.type + "_png";
				App.data.activityCenter.isXianGou(o.actData.type) && (r = "kfhd_kf_title_746_png"), t.registerSubPanel(a, e.cls[
					o.panelIndex], r), a++
			}, this), this.selectedIndex = 0, this._actBtn = n, this._actBtnCount = n.length
		}
	}, e.prototype.updateTabRed = function() {
		var t = this,
			e = App.data.activityCenter,
			i = e.getNationalBtn();
		null != i && (this._actRedCache = [], i.foEach(function(i, n) {
			var a = n,
				o = e.isShowKfhdRed(a.actData.type);
			t._actRedCache.push(o)
		}, this))
	}, e.prototype.showNextBtnRed = function() {
		if (this._actBtnCount < this.maxNumOnPage) return !1;
		for (var t = !1, e = this.maxNumOnPage; e < this._actBtnCount && !(t = this._actRedCache[e]); e++);
		return t
	}, e.prototype.showPreBtnRed = function() {
		if (this._actBtnCount < this.maxNumOnPage) return !1;
		for (var t = !1, e = this._actBtnCount < this.maxNumOnPage ? this._actBtnCount : this.maxNumOnPage, i = 0; e > i &&
			!(t = this._actRedCache[i]); i++);
		return t
	}, e.prototype.onPreBtn = function(t) {
		t.stopImmediatePropagation();
		this._actBtnCount > 5 && (this._scroll.selectClick2(0), this.selectedIndex = 0), UIMaker.showPoint(this._preBtn,
			this, !1, 0, -10), UIMaker.showPoint(this._nextBtn, this, this.showNextBtnRed(), 0, -10)
	}, e.prototype.onNextBtn = function(t) {
		t.stopImmediatePropagation(), 5 < this._actBtnCount && this._actBtnCount <= 10 && (this._scroll.selectClick2(5),
			this.selectedIndex = 5), UIMaker.showPoint(this._preBtn, this, this.showPreBtnRed(), 0, -10), UIMaker.showPoint(
			this._nextBtn, this, !1, 0, -10)
	}, e.prototype.onUpdateList = function(t) {
		t.stopImmediatePropagation();
		var e = this._scroll.list.selectedIndex;
		e >= 0 && e != this.selectedIndex && (this.selectedIndex = e)
	}, e.prototype.showToggleBtnRed = function(t) {
		this.updateTabButton(), this.updateTabRed(), this.selectedIndex < this.maxNumOnPage ? (UIMaker.showPoint(this._preBtn,
			this, !1, 0, -10), UIMaker.showPoint(this._nextBtn, this, this.showNextBtnRed(), 0, -10)) : (UIMaker.showPoint(
			this._preBtn, this, this.showPreBtnRed(), 0, -10), UIMaker.showPoint(this._nextBtn, this, !1, 0, -10))
	}, e.cls = {
		1003: SeverActivityjingjiView,
		1005: SeverActivityRankView,
		9999: ChoujiangYuanbaoView,
		1006: SeverActivityxiangouView,
		1004: SeverActivityjingjiAllView,
		2001: KaiFuActivityView,
		2003: KaiFuXianGouActivityView,
		2002: KaiFuJingJiActivityView
	}, e
}(ActTabPanel);
__reflect(NationalDayActivityPanel.prototype, "NationalDayActivityPanel");
var PingTai37ActivityView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.activityId = 101, e.euiSkinName = "PingTai37ActivityViewSkin", e._gridDict = new HashObject;
		for (var i = 0; 4 > i; i++) {
			var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			n.x = 100 * i + 40, n.y = 340, e.addChild(n), e._gridDict.put(i, n)
		}
		return null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath("kfhd/fx_bg"))), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn_guanzhu), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.close_img),
			this._dispatcher.addEventListener(PlatformEventType.PLATFORM_RETURN_PARMAS, this.ptRefreView, this), this._dispatcher
			.addEventListener(ActivityEvent.REFRESH_DETAIL, this.refreView, this), e && (this.activityId = e), this.refreView(),
			App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_GET_PARMAS)
	}, e.prototype.refreLab = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		t.receivedTimes >= 1 ? this.btn_guanzhu.label = "领取大奖" : this.btn_guanzhu.label = "领取奖励"
	}, e.prototype.ptRefreView = function(t) {
		switch (this.btn_guanzhu.label = "领取大奖", this.activityId) {
			case 101:
				2 == t.wx_is_subscribe && this.refreLab();
				break;
			case 102:
				2 == t.shared_switch && this.refreLab();
				break;
			case 103:
				2 == t.wd_download_switch && this.refreLab();
				break;
			case 104:
				2 == t.desktop_switch && this.refreLab();
				break;
			case 105:
				2 == t.id_verify && this.refreLab()
		}
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(2031)
	}, e.prototype.onTouch = function(t) {
		App.data.activityCenter.getData(this.activityId);
		"领取奖励" == this.btn_guanzhu.label ? ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityId) : App.dispatcher
			.dispatchEvent(PlatformEventType.ACTIVITY_37_ID, this.activityId)
	}, e.prototype.refreView = function() {
		this.titleimg.source = "pt_37_fx_a" + this.activityId + "_png", this.itemimg.source = "pt_37_fx_b" + this.activityId +
			"_png";
		for (var t = App.config.q_activitiesContainer.getDataBean(this.activityId), e = ItemUtil.getRewardDataList(t.q_show_rewards),
				i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i])
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PingTai37ActivityView.prototype, "PingTai37ActivityView");
var PingTaiSelectItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._activityid = 101, e.skinName = "PingTaiSelectItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this._activityid = this.data, this.icon.source = "pt_37_youxi" + this._activityid + "_png"
	}, e
}(ItemRenderer);
__reflect(PingTaiSelectItem.prototype, "PingTaiSelectItem");
var PingTaiSelectView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PingTaiSelectViewSkin", e._vscroller = new VScrollPanel(100, 100, PingTaiSelectItem, 10,
			null, 2), e.itemgroup.addChild(e._vscroller), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(PlatformEventType.PLATFORM_RETURN_PARMAS, this.ptRefreView,
				this), this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP, this.showView, this, this._vscroller.list),
			App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_GET_PARMAS)
	}, e.prototype.showView = function(t) {
		var e = t.itemRenderer;
		e ? App.panel.openPanel(2031, e._activityid) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">未点击到有效选项</font>")
	}, e.prototype.ptRefreView = function(t) {
		var e = [];
		if (0 != t.wx_is_subscribe) {
			var i = App.data.activityCenter.getData(101);
			i.receivedTimes >= 1 || e.push(101)
		}
		if (0 != t.shared_switch && e.push(102), 0 != t.wd_download_switch && e.push(103), 0 != t.desktop_switch && e.push(
				104), 0 != t.id_verify) {
			var i = App.data.activityCenter.getData(105);
			i.receivedTimes >= 1 || e.push(105)
		}
		this._vscroller.width = 84 * e.length, this._vscroller.dataProvider = e, this._vscroller.scrollPolicyH = eui.ScrollPolicy
			.OFF
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.removeAll(), this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose
			.call(this)
	}, e
}(ViewBase);
__reflect(PingTaiSelectView.prototype, "PingTaiSelectView");
var PTButterflyBindPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityId = 106, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PTButterflyBindSkin"), this.addChild(this._view), this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 100 * t + 50, e.y = 90, this._view.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreView(), this.setButtonState(), this.resize(), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._view.close_btn), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.getRewardHandle, this, this._view.getReward), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.bindHandle, this, this._view.bingBtn), this._dispatcher.addEventListener(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS,
			this.ptReturnParma, this)
	}, e.prototype.bindHandle = function() {
		App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, this.activityId)
	}, e.prototype.ptReturnParma = function() {
		this.setButtonState()
	}, e.prototype.getRewardHandle = function() {
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityId), this.onClose()
	}, e.prototype.onClose = function() {
		App.panel.removePanel(40001)
	}, e.prototype.refreView = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(this.activityId), e = ItemUtil.getRewardDataList(t.q_show_rewards),
				i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i])
	}, e.prototype.setButtonState = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		switch (Platfrom_HDHD.bind_status) {
			case 1:
				this._view.bingBtn.enabled = !1, this._view.bingBtn.label = "已绑定", this._view.bingBtn.filters = FilterUtil.FILTER_GRAY,
					t.receivedTimes > 0 ? (this._view.getReward.enabled = !1, this._view.getReward.label = "已领取", this._view.getReward
						.filters = FilterUtil.FILTER_GRAY) : (this._view.getReward.enabled = !0, this._view.getReward.label = "领 取",
						this._view.getReward.filters = []);
				break;
			default:
				this._view.bingBtn.enabled = !0, this._view.bingBtn.label = "立即绑定", this._view.bingBtn.filters = [], this._view.getReward
					.enabled = !1, this._view.getReward.label = "领 取", this._view.getReward.filters = FilterUtil.FILTER_GRAY
		}
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT - 300 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflyBindPanel.prototype, "PTButterflyBindPanel");
var PTButterflyKeFuPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e.time = 1e4, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window.close_btn, this._window.imgTitle
			.source = "titleview_kefu_png", this._window.imgBottom.visible = !1, this._view = UIMaker.createViewBase(
				"PTButterflyKeFuSkin"), this._view.txtMsg.type = egret.TextFieldType.INPUT, this._window.viewContainer.addChild(
				this._view);
		var t = this._view.con;
		this._vscroller = new VScrollPanel(t.width, t.height, KefuMessageRender, 10), this._vscroller.scrollPolicyH = eui.ScrollPolicy
			.OFF, this._vscroller.scrollPolicyV = eui.ScrollPolicy.ON, t.addChild(this._vscroller)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._window.show(), this._shopAry.length = 0, this._view.btn_send.enabled = !1;
		var i = new KefuChatVO;
		i.content = "- 正在请求客服会话连接，请稍等...", i.nickname = null, this.addChat(i);
		var n = App.global.characterData;
		PlatfromCommandSender.sendSign("HOODINN", n.serverid, WebParams.sid), this._dispatcher.addEventListener(egret.FocusEvent
			.FOCUS_IN, this.onTexClick, this, this._view.txtMsg), this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_OUT,
			this.onTexOutClick, this, this._view.txtMsg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSend,
			this, this._view.btn_send), this._dispatcher.addEventListener(PlatformEventType.BUTTERFLY_KEFU_ADDCHAT, this.addChat,
			this), this._dispatcher.addEventListener(PlatformEventType.BUTTERFLY_KEFU_SUCCESS, this.connectSuccess, this)
	}, e.prototype.connectSuccess = function(t) {
		var e = new KefuChatVO;
		e.nickname = null, t ? e.content = "- 请求客服会话连接成功！" : e.content = "- 请求客服会话连接失败！", this.addChat(e), t && this.startChat()
	}, e.prototype.startChat = function() {
		this._view.btn_send.enabled = !0, App.timer.doTimeLoop(this, this.time, this.checkChat)
	}, e.prototype.checkChat = function() {
		App.dispatcher.dispatchEvent(PlatformEventType.BUTTERFLY_KEFU_CHECK)
	}, e.prototype.onTexClick = function() {
		"点击输入聊天内容" == this._view.txtMsg.text && (this._view.txtMsg.text = "")
	}, e.prototype.onTexOutClick = function() {
		"" == this._view.txtMsg.text && (this._view.txtMsg.text = "点击输入聊天内容")
	}, e.prototype.onSend = function(t) {
		var e = this._view.txtMsg.text;
		return "" == e ? void Notice.showBottomMessage("发送内容为空") : "点击输入聊天内容" == e ? void Notice.showBottomMessage(
			"请输入聊天内容") : (this._view.txtMsg.text = "", void App.dispatcher.dispatchEvent(PlatformEventType.BUTTERFLY_KEFU_POST,
			e))
	}, e.prototype.clearMessage = function() {
		Platfrom_HDHD.chatData && (Platfrom_HDHD.chatData.length = 0), App.dispatcher.dispatchEvent(PlatformEventType.BUTTERFLY_KEFU_CLOSE),
			this._vscroller && this._vscroller.removeAll()
	}, e.prototype.addChat = function(t) {
		this._shopAry.push(t), this._vscroller.dataProvider = this._shopAry, this.scrollBottom()
	}, e.prototype.scrollBottom = function() {
		this._vscroller.viewport && (this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller
			.viewport.contentHeight > this._vscroller.viewport.height ? this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - this._vscroller.viewport.height + 10 : this._vscroller.viewport.scrollV = 0)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.checkChat, this), this.clearMessage(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflyKeFuPanel.prototype, "PTButterflyKeFuPanel");
var PTButterflySubscribePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityId = 101, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PTButterflyVerifySkin"), this._view.title_lb.text = "微信关注礼包", this.addChild(
			this._view), this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 100 * t + 120, e.y = 80, this._view.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreView(), this.setButtonState(), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onClose, this, this._view.close_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.execHandle, this, this._view.execBtn), this._dispatcher.addEventListener(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS,
			this.ptReturnParma, this), this.resize()
	}, e.prototype.setButtonState = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		switch (Platfrom_HDHD.subscribe_status) {
			case 1:
				this._view.execBtn.label = "立即领取", t.receivedTimes > 0 ? (this._view.execBtn.label = "已领取", this._view.execBtn.enabled = !
					1, this._view.execBtn.filters = FilterUtil.FILTER_GRAY) : (this._view.execBtn.enabled = !0, this._view.execBtn.filters = []);
				break;
			default:
				this._view.execBtn.enabled = !0, this._view.execBtn.filters = [], this._view.execBtn.label = "我要领取"
		}
	}, e.prototype.execHandle = function() {
		1 == Platfrom_HDHD.subscribe_status ? (ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityId), this.onClose()) :
			App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, this.activityId)
	}, e.prototype.ptReturnParma = function() {
		this.setButtonState()
	}, e.prototype.refreView = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(this.activityId), e = ItemUtil.getRewardDataList(t.q_show_rewards),
				i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i])
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT - 300 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.execBtn.enabled = !1
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflySubscribePanel.prototype, "PTButterflySubscribePanel");
var PTButterflyToDesktopPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityId = 104, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PTButterflyVerifySkin"), this._view.title_lb.text = "添加桌面礼包", this.addChild(
			this._view), this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 100 * t + 120, e.y = 80, this._view.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreView(), this.setButtonState(), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onClose, this, this._view.close_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.execHandle, this, this._view.execBtn), this._dispatcher.addEventListener(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS,
			this.ptReturnParma, this), this.resize()
	}, e.prototype.setButtonState = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		switch (Platfrom_HDHD.todesktop_status) {
			case 1:
				this._view.execBtn.label = "立即领取", t.receivedTimes > 0 ? (this._view.execBtn.label = "已领取", this._view.execBtn.enabled = !
					1, this._view.execBtn.filters = FilterUtil.FILTER_GRAY) : (this._view.execBtn.enabled = !0, this._view.execBtn.filters = []);
				break;
			default:
				this._view.execBtn.enabled = !0, this._view.execBtn.filters = [], this._view.execBtn.label = "我要领取"
		}
	}, e.prototype.execHandle = function() {
		1 == Platfrom_HDHD.todesktop_status ? (ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityId), this.onClose()) :
			App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, this.activityId)
	}, e.prototype.ptReturnParma = function() {
		this.setButtonState()
	}, e.prototype.refreView = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(this.activityId), e = ItemUtil.getRewardDataList(t.q_show_rewards),
				i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i])
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT - 300 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.execBtn.enabled = !1
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflyToDesktopPanel.prototype, "PTButterflyToDesktopPanel");
var PTButterflyVerifyPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityId = 105, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PTButterflyVerifySkin"), this._view.title_lb.text = "实名认证礼包", this.addChild(
			this._view), this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 100 * t + 120, e.y = 80, this._view.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreView(), this.setButtonState(), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onClose, this, this._view.close_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.execHandle, this, this._view.execBtn), this._dispatcher.addEventListener(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS,
			this.ptReturnParma, this), this.resize()
	}, e.prototype.setButtonState = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		switch (Platfrom_HDHD.verify_status) {
			case 1:
				this._view.execBtn.label = "立即领取", t.receivedTimes > 0 ? (this._view.execBtn.label = "已领取", this._view.execBtn.enabled = !
					1, this._view.execBtn.filters = FilterUtil.FILTER_GRAY) : (this._view.execBtn.enabled = !0, this._view.execBtn.filters = []);
				break;
			default:
				this._view.execBtn.enabled = !0, this._view.execBtn.filters = [], this._view.execBtn.label = "我要领取"
		}
	}, e.prototype.onClose = function() {
		App.panel.removePanel(4e4)
	}, e.prototype.execHandle = function() {
		1 == Platfrom_HDHD.verify_status ? (ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityId), this.onClose()) :
			App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, this.activityId)
	}, e.prototype.ptReturnParma = function() {
		this.setButtonState()
	}, e.prototype.refreView = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(this.activityId), e = ItemUtil.getRewardDataList(t.q_show_rewards),
				i = 0; i < e.length; i++) this._gridDict.get(i).setData(e[i])
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT - 300 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.execBtn.enabled = !1
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflyVerifyPanel.prototype, "PTButterflyVerifyPanel");
var PTButterflyVIPKeFuPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityId = 109, e.qq = "800098876", e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PTButterflyVIPKeFuSkin"), this.addChild(this._view), this.grid = GridUtil.getGrid(
			ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.x = 325, this.grid.y = 274, this._view.addChild(this.grid)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreView(), this.setButtonState(), this.resize(), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.getRewardHandle, this, this._view.getReward), this._dispatcher.addEventListener(
			ActivityEvent.REFRESH_DETAIL, this.setButtonState, this)
	}, e.prototype.refreView = function() {
		var t = App.config.q_activitiesContainer.getDataBean(this.activityId),
			e = ItemUtil.getRewardDataList(t.q_show_rewards);
		this.grid.setData(e[0])
	}, e.prototype.setButtonState = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		switch (t.playerStates) {
			case 0:
				this._view.getReward.enabled = !1, this._view.getReward.filters = FilterUtil.FILTER_GRAY, this._view.QQ_lb.text =
					this.qq;
				break;
			case 1:
				this._view.getReward.enabled = !0, this._view.getReward.filters = [], this._view.QQ_lb.text = this.qq;
				break;
			case 2:
				this._view.getReward.enabled = !0, this._view.getReward.filters = [], this._view.QQ_lb.text = "??????"
		}
		var e = "0";
		if (t.extendMap && "" != t.extendMap) {
			var i = StringUtil.JsonParse(t.extendMap);
			e = Number(i.gold) / 100 + ""
		}
		this._view.condition1_lb.text = e + "/1000", this._view.condition2_lb.text = e + "/5000"
	}, e.prototype.getRewardHandle = function() {
		var t = App.data.activityCenter.getData(this.activityId);
		this._view.getReward.enabled = !0, this._view.getReward.filters = [], 1 == t.playerStates ? (ActivityCommandSender.sendC2S_JoinActivityMessage(
			this.activityId), this.onClose()) : Notice.showBottomMessage("未达到领取条件")
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 612 >> 1, this._view.y = Config.SCREEN_HEIGHT - 973 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), this.grid && (this.grid.dispose(), this.grid = null), t.prototype
			.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PTButterflyVIPKeFuPanel.prototype, "PTButterflyVIPKeFuPanel");
var GridLayoutContainer = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = 2), void 0 === a && (a = 2);
		var o = t.call(this) || this;
		return o._isShowCount = !0, o._isShowDesc = !0, o._isShowJob = !0, o._isShowTip = !0, o._iconSize = 64, o._style = e,
			o._column = i, o._horGap = n, o._verGap = a, o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bgRect = new egret.Rectangle(0, 0, 0, 0);
		var t = this._style.split("|"),
			e = t[0].split(",");
		this._bgRect.width = parseInt(e[0]), this._bgRect.height = parseInt(e[1]), e = t[1].split(","), this._iconRect =
			new egret.Rectangle, this._iconRect.width = parseInt(e[0]), this._iconRect.height = parseInt(e[1]), this._iconRect
			.x = this._bgRect.width - this._iconRect.width >> 1, this._iconRect.y = this._bgRect.height - this._iconRect.height >>
			1, this._iconSize = this._iconRect.width, this._layerHash = new HashObject, this._layerContainer = new eui.Group,
			this.addChild(this._layerContainer), this._bgLayer = this.makeLayer(GridLayout.BG, eui.Group, !0, !0), this._iconLayer =
			this.makeLayer(GridLayout.ICON, IconLayer), this._jobLayer = this.makeLayer(GridLayout.JOB, eui.Group), this._redPointLayer =
			this.makeLayer(GridLayout.REDPOINT, eui.Group), this._textLayer = this.makeLayer(GridLayout.TEXT_BOTTOM, eui.Group),
			this._layerList = [GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM],
			this.resizeLayer(this._layerList)
	}, e.prototype.makeLayer = function(t, e, i, n) {
		void 0 === i && (i = !1), void 0 === n && (n = !1);
		var a = new e;
		return a.touchEnabled = i, a.touchChildren = n, a.y = 10, this._layerHash.put(t, a), a
	}, e.prototype.resizeLayer = function(t) {
		for (var e, i = 0; i < t.length; i++) e = this._layerHash.get(t[i]), e && this._layerContainer.addChild(e)
	}, Object.defineProperty(e.prototype, "showCount", {
		get: function() {
			return this._isShowCount
		},
		set: function(t) {
			this._isShowCount = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showDesc", {
		get: function() {
			return this._isShowDesc
		},
		set: function(t) {
			this._isShowDesc = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "descFun", {
		set: function(t) {
			this._showDescFun = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showJob", {
		get: function() {
			return this._isShowJob
		},
		set: function(t) {
			this._isShowJob = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "showTip", {
		get: function() {
			return this._isShowTip
		},
		set: function(t) {
			this._isShowTip = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "itemClick", {
		get: function() {
			return this._gridClickCallBack
		},
		set: function(t) {
			this._gridClickCallBack = t, this._gridClickCallBack ? this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onItemClick,
				this) : this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onItemClick, this)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onItemClick = function(t) {
		if (t.target instanceof eui.Image && -1 != t.target.name.indexOf("BG|")) {
			var e = parseInt(t.target.name.replace("BG|", ""));
			this._gridClickCallBack.exec(this._dataProvider[e]), this._gridClickCallBack.exec(this._dataProvider[e])
		}
	}, Object.defineProperty(e.prototype, "iconSize", {
		get: function() {
			return this._iconSize
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._dataProvider
		},
		set: function(t) {
			this.clear(), this._dataProvider = t, this.refreshSmallTexture(), this.refreshIcon(), this.refreshText()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refreshSmallTexture = function() {
		if (this.dataProvider)
			for (var t = this._max > 0 ? this._max > this.dataProvider.length ? this.dataProvider.length : this._max : this.dataProvider
					.length, e = 0; t > e; e++) this.createBg(e, this.dataProvider[e]), this.createRedPoint(e, this.dataProvider[e]),
				this.showJob && this.createJob(e, this.dataProvider[e])
	}, e.prototype.refreshIcon = function() {
		if (this.dataProvider)
			for (var t = this._max > 0 ? this._max > this.dataProvider.length ? this.dataProvider.length : this._max : this.dataProvider
					.length, e = 0; t > e; e++) this.createIcon(e, this.dataProvider[e])
	}, e.prototype.refreshText = function() {
		if (this.dataProvider)
			if (this._scroller) this.showTextInViewport();
			else
				for (var t = this._max > 0 ? this._max > this.dataProvider.length ? this.dataProvider.length : this._max : this.dataProvider
						.length, e = 0; t > e; e++) this.showCount && this.createCountText(e, this.dataProvider[e]), this.showDesc &&
					this.createDescText(e, this.dataProvider[e])
	}, e.prototype.createBg = function(t, e) {
		var i;
		if (e) {
			var n = GameUtil.getItemConfigData(e.itemId);
			i = n ? GridUtil.getGridGradeBg(n.q_default) : void 0
		} else i = GridUtil.getGridGradeBg(-1);
		var a = UIMaker.getImage(this._bgLayer, this, i, t % this._column * (this._bgRect.width + this._horGap), Math.floor(
			t / this._column) * (this._bgRect.height + this._verGap), !0);
		if (a.name = "BG|" + t, this.showTip && e) {
			var o = void 0;
			o = new TipData(ItemUtil.isEquip(e.itemId) ? 4 : 2), o.data = e, App.tip.addTip(a, o)
		}
		if (this.dataProvider.length - 1 == t) {
			var r = UIMaker.getImage(this._bgLayer, this, i, a.x, a.y + 23);
			r.name = "INVISIBLE|" + t, r.alpha = .01
		}
	}, e.prototype.createJob = function(t, e) {
		if (e && ItemUtil.isEquip(e.itemId)) {
			var i = GameUtil.getItemConfigData(e.itemId),
				n = this._bgLayer.getChildByName("BG|" + t);
			UIMaker.getImage(this._jobLayer, this, GridUtil.getGridJob(i.q_job), n.x + this._bgRect.width - 35, n.y)
		}
	}, e.prototype.createRedPoint = function(t, e) {
		if (e && !ItemUtil.isEquip(e.itemId)) {
			var i = (GameUtil.getItemConfigData(e.itemId), this._bgLayer.getChildByName("BG|" + t));
			UIMaker.getImage(this._redPointLayer, this, GridUtil.getGridRedPointUrl(), i.x + this._bgRect.width - 15, i.y - 5)
		}
	}, e.prototype.createIcon = function(t, e) {
		if (e) {
			var i = GameUtil.getItemConfigData(e.itemId),
				n = this._bgLayer.getChildByName("BG|" + t);
			UIMaker.getImage(this._iconLayer, this, ResPathUtil.getIcon(i.q_tiny_icon, "item/" + this.iconSize), n.x + this._iconRect
				.x, n.y + this._iconRect.y)
		}
	}, e.prototype.createCountText = function(t, e) {
		var i = this._textLayer.getChildByName("COUNTTEXT|" + t);
		if (e && e.count > 1) {
			var n = this._bgLayer.getChildByName("BG|" + t);
			if (null == i) {
				var a = this._bgRect.width - this.iconSize >> 1,
					o = this._bgRect.height - this.iconSize >> 1;
				i = UIMaker.getTextField(this._textLayer, this, n.x, n.y, this._bgRect.width - a, this._bgRect.height - o), i.name =
					"COUNTTEXT|" + t, i.textAlign = egret.HorizontalAlign.RIGHT
			}
			e.itemId < 0 ? e.count >= 1e8 ? i.textFlow = HtmlUtil.getHtmlStr(StringUtil.formatMoney(e.count, "亿", 1e8)) : i.textFlow =
				HtmlUtil.getHtmlStr(StringUtil.formatMoney(e.count, "w")) : i.text = e.count + ""
		} else i && (i.text = "")
	}, e.prototype.createDescText = function(t, e) {
		var i = this._textLayer.getChildByName("DESCTEXT|" + t);
		if (this._showDescFun || e) {
			var n = this._bgLayer.getChildByName("BG|" + t);
			if (null == i && (i = UIMaker.getTextField(this._textLayer, this, n.x, n.y + this._bgRect.height + 2, this._bgRect
					.width, 20), i.name = "DESCTEXT|" + t), this._showDescFun) i.textFlow = this._showDescFun.exec();
			else {
				var a = GameUtil.getItemConfigData(e.itemId),
					o = ItemUtil.isEquip(e.itemId);
				if (o) i.text = "lv." + a.q_level;
				else {
					var r = GameUtil.getItemNameColor(e.itemId),
						s = ItemUtil.getItemName(e.itemId);
					i.textFlow = HtmlUtil.getHtmlStr("<font color=" + r + ">" + s + "</font>")
				}
			}
		} else i && (i.text = "")
	}, e.prototype.showEmptyGrid = function(t) {
		this._max = t;
		for (var e = 0; e < this._max; e++) {
			UIMaker.getImage(this._emptyLayer, this, GridUtil.getGridGradeBg(-1), e % this._column * (this._bgRect.width +
				this._horGap), Math.floor(e / this._column) * (this._bgRect.height + this._verGap))
		}
	}, e.prototype.useScroller = function(t, e) {
		this._scroller = UIMaker.getScroller(this, this, 0, 0, t, e), this._scroller.viewport = this._layerContainer, this._scroller
			.addEventListener(eui.UIEvent.CHANGE_START, this.onStartHandler, this)
	}, e.prototype.clearScroller = function() {
		this._scroller && (this._scroller.stopAnimation(), this._scroller.viewport && (this._scroller.viewport.scrollV = 0))
	}, e.prototype.onStartHandler = function(t) {
		this._textLayer.visible = !1, this.showChildren(), this._scroller.addEventListener(eui.UIEvent.CHANGE_END, this.onEndHandler,
			this)
	}, e.prototype.onEndHandler = function(t) {
		this._textLayer.visible = !0, this.showInViewport(), this._scroller.removeEventListener(eui.UIEvent.CHANGE_END,
			this.onEndHandler, this)
	}, e.prototype.showChildren = function() {
		if (this._layerList && this._scroller)
			for (var t, e, i = this._layerList.length, n = 0; i > n; n++)
				if (t = this._layerHash.get(this._layerList[n]), t && t != this._textLayer) {
					e = t.numChildren;
					for (var a = 0; e > a; a++) t.getChildAt(a).visible = !0
				}
	}, e.prototype.showInViewport = function() {
		if (this._layerList && this._scroller)
			for (var t, e, i, n = this._layerList.length, a = this._scroller.localToGlobal().y, o = a + this._scroller.height,
					r = 0; n > r; r++)
				if (t = this._layerHash.get(this._layerList[r]), t && t != this._textLayer) {
					e = t.numChildren;
					for (var s = 0; e > s; s++) i = t.getChildAt(s), i.visible = !(i.localToGlobal().y + i.height < a || i.localToGlobal()
						.y > o)
				} else this.showTextInViewport()
	}, e.prototype.showTextInViewport = function() {
		if (this._layerList && this._scroller)
			for (var t, e, i, n = this.dataProvider ? this.dataProvider.length : 0, a = this._scroller.localToGlobal().y, o =
					a + this._scroller.height, r = 0; n > r; r++) t = this._textLayer.getChildByName("DESCTEXT|" + r), e = this._textLayer
				.getChildByName("COUNTTEXT|" + r), i = this._bgLayer.getChildByName("BG|" + r), i.localToGlobal().y + i.height <
				a || i.localToGlobal().y + i.height > o ? (t && UIMaker.putToPool(t), e && UIMaker.putToPool(e)) : (this.showCount &&
					this.createCountText(r, this.dataProvider[r]), this.showDesc && this.createDescText(r, this.dataProvider[r]))
	}, e.prototype.clear = function() {
		this._dataProvider = void 0, this._layerHash.foEach(this.removeAll, this), this._iconLayer.clear()
	}, e.prototype.removeAll = function(t, e) {
		for (var i; e.numChildren > 0;) i = e.removeChildAt(0), egret.is(i, "eui.Image") ? (i.$bitmapData = void 0, App.tip
			.removeTip(i)) : egret.is(i, "egret.TextField") && (i.text = ""), i.name = "", i.touchEnabled = !1, UIMaker.putToPool(
			i)
	}, e.prototype.dispose = function() {
		this.clear(), this._scroller = null, this._gridClickCallBack = null, this._bgRect = null, this._iconRect = null,
			this._redPointLayer = null, this._textLayer = null, this._jobLayer = null, this._iconLayer = null, this._bgLayer =
			null, this._emptyLayer = null, this._layerContainer = null, this._layerList = null, this._layerHash = null, this.parent &&
			this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(GridLayoutContainer.prototype, "GridLayoutContainer");
var IconLayer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._textureList = new Array, e
	}
	return __extends(e, t), e.prototype.addIcon = function(e) {
		e.touchEnabled = !1;
		var i = e.source,
			n = this._textureList.indexOf(i); - 1 == n ? (this._textureList.push(i), t.prototype.addChild.call(this, e)) : (
			this._textureList.splice(n, 0, i), t.prototype.addChildAt.call(this, e, n))
	}, e.prototype.clear = function() {
		this._textureList = new Array
	}, e
}(eui.Group);
__reflect(IconLayer.prototype, "IconLayer");
var ItemRenderData = function() {
	function t() {
		this.uiComponentHash = new HashMap, this.urlHash = new HashMap, this.layerList = new Array
	}
	return t.prototype.getUrl = function(t) {
		return this.urlHash.get(t)
	}, t.prototype.getUiComponent = function(t) {
		return this.uiComponentHash.get(t)
	}, t.prototype.setUiComponent = function(t, e) {
		e && (this.remove(t), this.uiComponentHash.put(t, e), this.layerList.push(t), egret.is(e, "eui.Image") && this.urlHash
			.put(t, e.source), egret.is(e, "CImage") && this.urlHash.put(t, e.url))
	}, t.prototype.remove = function(t) {
		var e = this.uiComponentHash.get(t);
		e && e.parent && (UIMaker.putToPool(e), this.uiComponentHash.del(t))
	}, t.prototype.dispose = function() {
		for (var t = this.layerList.length, e = 0; t > e; e++) this.remove(this.layerList[e]);
		this.uiComponentHash.dispose(), this.uiComponentHash = null, this.layerList = null, this.itemData = null, this.tag =
			null
	}, t
}();
__reflect(ItemRenderData.prototype, "ItemRenderData");
var severActivityRankItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "severActivityRankItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		if (t.prototype.clear.call(this), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict = null
		}
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._gridDict = new HashObject;
		for (var i = 0; 3 > i; i++) {
			var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			n.isShowJobImg = !1, n.x = 300 + 95 * i, n.y = 8, this.addChild(n), this._gridDict.put(i, n)
		}
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		if (this.ad = this.data, this.ad.extendMap) {
			var t = StringUtil.JsonParse(this.ad.extendMap);
			if (this.nametext.visible = !0, "" == t.rankname) this.nametext.text = "上榜需求:", this.fighttext.text = this.ad.bean
				.q_desc;
			else if (this.nametext.text = t.rankname, 743 == this.ad.type) {
				var e = App.config.q_samsaraContainer.getDataBean(t.rankdata);
				this.fighttext.text = e.q_class_name
			} else this.fighttext.text = this.getroletext(this.ad.type) + "\n" + t.rankdata;
			1 == this.itemIndex ? this.labRank.text = "第三名" : 2 == this.itemIndex ? this.labRank.text = "第4-20名" : this.labRank
				.text = "第二名";
			for (var i = ItemUtil.getRewardDataList(this.ad.bean.q_show_rewards), n = 0; n < i.length; n++) this._gridDict.get(
				n).setData(i[n])
		}
	}, e.prototype.getroletext = function(t) {
		return 708 == t ? "角色等级" : 709 == t ? "兵魂星级" : 710 == t ? "转生等级" : 711 == t ? "光翼星级" : 1111 == t ? "坐骑星级" : 1112 ==
			t ? "天兵星级" : 1113 == t ? "法阵星级" : 712 == t ? "装备评分" : 713 == t ? "魔宠战力" : 714 == t ? "战斗力" : 733 == t ? "消费元宝" :
			740 == t ? "天赋评分" : 741 == t ? "神炉等级" : 742 == t ? "狂风战力" : 743 == t ? "道境" : 744 == t ? "轮回战力" : void 0
	}, e
}(ItemRenderer);
__reflect(severActivityRankItem.prototype, "severActivityRankItem");
var LayoutAlign = function() {
	function t() {}
	return t.LEFT = "left", t.CENTER = "center", t.RIGHT = "right", t
}();
__reflect(LayoutAlign.prototype, "LayoutAlign");
var SeverAvtivityxiangouItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._needviplel = 0, e.skinName = "SeverActivityxiangouItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._gridDict = new HashObject;
		for (var i = 0; 2 > i; i++) {
			var n = new ItemGrid;
			n.isShowJobImg = !1, n.x = 100 * i + 120, n.y = 20, this.addChild(n), this._gridDict.put(i, n)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.buybtn)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.clear()
	}, e.prototype.dataChanged = function() {
		if (this.bean = this.data, this.bean.extendMap) {
			var t = StringUtil.JsonParse(this.bean.bean.q_need_item),
				e = StringUtil.JsonParse(this.bean.extendMap);
			this.showMoney.text = "" + Math.floor(t[0].num / (Number(this.bean.bean.q_info) / 10)), this.currMoney.text = "" +
				t[0].num, this.geimg.source = "kfhd_" + this.bean.bean.q_info + "_png", e.needvip ? (this.vip.source =
					"kfhd_vipposb" + e.needvip + "_png", this.vipgroup.visible = !0, this._needviplel = e.needvip) : (this.vipgroup.visible = !
					1, this._needviplel = 0), this.buybtn.label = "购 买", 0 == this.bean.playerStates ? (this.buybtn.visible = !1,
					this.yilingqu.visible = !0) : 1 == this.bean.playerStates ? (this.buybtn.visible = !0, this.yilingqu.visible = !
					1) : 2 == this.bean.playerStates && (this.buybtn.visible = !0, this.yilingqu.visible = !1);
			for (var i = ItemUtil.getRewardDataList(this.bean.bean.q_show_rewards), n = 0; n < i.length; n++) this._gridDict.get(
				n).setData(i[n]);
			this.canbuyCount.text = "可购买:" + e.remaintimes
		}
	}, e.prototype.onTouch = function(t) {
		if (1 == this.bean.playerStates) ActivityCommandSender.sendC2S_JoinActivityMessage(this.bean.id);
		else if (this._needviplel > App.global.characterData.vipLevel) Alert.show("VIP等级不足,提升VIP等级后可购买", "提示", "确定|取消",
			this.okFunc, this);
		else {
			var e = StringUtil.JsonParse(this.bean.bean.q_need_item),
				i = Number(e[0].num);
			PanelOpenManager.openChargePanel(i, !0)
		}
	}, e.prototype.okFunc = function(t) {
		App.global.enterBtn.getButton(16) ? App.global.funcOpen.isFunctionOpen(45) ? PanelOpenManager.openPanel(55) :
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">充值暂未开放</font>") : PanelOpenManager.openPanel(
				205)
	}, e.prototype.clear = function() {
		if (t.prototype.clear.call(this), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				this._gridDict.get(e).dispose();
				var i = this._gridDict.get(e);
				i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
	}, e
}(ItemRenderer);
__reflect(SeverAvtivityxiangouItem.prototype, "SeverAvtivityxiangouItem");
var LayoutContainer = function(t) {
	function e(e, i, n, a, o) {
		void 0 === i && (i = 80), void 0 === n && (n = 80), void 0 === a && (a = 1);
		var r = t.call(this) || this;
		return r._sourseArr = [], r._alignStartX = 0, r._itemsPool = [], r._cols = -1, r._vGap = 0, r._hGap = 0, r._verSpan =
			50, r._horSpan = 50, r._align = "left", r._sourse = e, r._cellFunction = o, r._verSpan = i, r._horSpan = n, r._cols =
			a, r.touchEnabled = !0, r.touchChildren = !0, r
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._dataProvider
		},
		set: function(t) {
			if (this.clear(), this._dataProvider = t, this._dataProvider) {
				var e = t.length;
				this._align == LayoutAlign.CENTER ? this._alignStartX = -(this._cols * this._verSpan - this._vGap) / 2 : this._align ==
					LayoutAlign.RIGHT ? this._alignStartX = -(this._cols * this._verSpan - this._vGap) : this._alignStartX = 0,
					this._sourseArr = [];
				for (var i, n = 0; e > n; n++) i = this.getItemTarget(), -1 != this._cols ? (i.x = n % this._cols * this._verSpan +
					this._alignStartX + 20, i.y = Math.floor(n / this._cols) * this._horSpan) : (i.x = n * this._verSpan + 20, i.y =
					0), this.addChild(i), this._sourseArr.push(i), this._cellFunction && (this._cellFunction.param = [i, t[n]],
					this._cellFunction.exec())
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refreshData = function() {
		if (this._cellFunction)
			for (var t, e = this.dataProvider.length, i = 0; e > i; i++) t = this.dataGroup[i], this._cellFunction.param = [t,
				this.dataProvider[i]
			], this._cellFunction.exec()
	}, Object.defineProperty(e.prototype, "dataGroup", {
		get: function() {
			return this._sourseArr
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "vGap", {
		set: function(t) {
			this._vGap = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "hGap", {
		set: function(t) {
			this._hGap = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "align", {
		set: function(t) {
			this._align = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getItemTarget = function() {
		var t, e = egret.getQualifiedClassName(this._sourse);
		switch (e) {
			case "ItemGrid":
				t = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
				break;
			default:
				t = this._itemsPool.length > 0 ? this._itemsPool.pop() : new this._sourse
		}
		return t
	}, e.prototype.clear = function() {
		for (; this.numChildren > 0;) {
			var t = this.removeChildAt(0);
			if (!egret.is(t, "IDispose")) throw Error("使用LayoutContainer必须实现 IDispose接口");
			t.dispose();
			var e = t instanceof BaseGrid;
			e || -1 == this._itemsPool.indexOf(t) && this._itemsPool.push(t)
		}
	}, e
}(eui.Group);
__reflect(LayoutContainer.prototype, "LayoutContainer");
var SeverAvtivityjingjiItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "SeverActivityjingjiItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		if (t.prototype.clear.call(this), this.clearEffect(), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict.dispose(), this._gridDict = null
		}
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._gridDict = new HashObject;
		for (var i = 0; 3 > i; i++) {
			var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			n.isShowJobImg = !1, n.x = 100 * i + 120, n.y = 20, this.addChild(n), this._gridDict.put(i, n)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.getbtn)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.ad = this.data, this.leveltitle.text = this.gettext(this.ad.type), this.leveltext.text = this.ad.bean.q_info,
			this.clearEffect(), 0 == this.ad.playerStates ? (this.getbtn.visible = !1, this.yilingqu.visible = !0) : 1 == this
			.ad.playerStates ? (this.getbtn.visible = !0, this.getbtn.label = "领 取", this.yilingqu.visible = !1, this._titleEffect ?
				this._titleEffect.url = ResPathUtil.getMenuEffect("panel", "btneffect") : this._titleEffect = EffectUtils.showCEffect(
					this, this.getbtn, ResPathUtil.getMenuEffect("panel", "btneffect"), 61, 24, this._titleEffect)) : 2 == this.ad.playerStates &&
			(this.getbtn.visible = !0, "" == this.ad.bean.q_icon ? this.getbtn.label = "未完成" : this.getbtn.label = "前 往", this
				.yilingqu.visible = !1);
		for (var t = ItemUtil.getRewardDataList(this.ad.bean.q_show_rewards), e = 0; e < t.length; e++) this._gridDict.get(
			e) && this._gridDict.get(e).setData(t[e])
	}, e.prototype.clearEffect = function() {
		this._titleEffect && (this._titleEffect.stop(), this._titleEffect.dispose(), this._titleEffect = null)
	}, e.prototype.onTouch = function(t) {
		if ("前 往" == this.getbtn.label) {
			var e = StringUtil.JsonParse(this.ad.bean.q_icon);
			App.panel.openPanel(e.panelid, {
				selectedIndex: e.selectIndex
			})
		} else ActivityCommandSender.sendC2S_JoinActivityMessage(this.ad.id)
	}, e.prototype.gettext = function(t) {
		return 701 == t ? "等级" : 702 == t ? "兵魂" : 703 == t ? "转生" : 1001 == t ? "坐骑" : 1002 == t ? "天兵" : 1003 == t ? "法阵" :
			704 == t ? "光翼" : 705 == t ? "装备" : 706 == t ? "魔宠战力" : 707 == t ? "战斗力" : 751 == t ? "天赋" : 752 == t ? "神炉" : 753 ==
			t ? "狂风" : 754 == t ? "道境" : 755 == t ? "轮回" : "等级"
	}, e
}(ItemRenderer);
__reflect(SeverAvtivityjingjiItem.prototype, "SeverAvtivityjingjiItem");
var MoneyBar = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "MoneySkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn_yuanbao), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onjinbiTouch, this, this.btn_jinbi), this.updateMyMoney(
				EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI)
	}, e.prototype.showBg = function(t) {
		this.bg1.visible = t, this.bg2.visible = t
	}, e.prototype.setMoneyLocationX = function(t, e) {
		this.bar1.x = t, this.bar2.x = e
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.onTouch = function(t) {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.onjinbiTouch = function(t) {
		App.global.funcOpen.isFunctionOpen(7, "", !0) && App.panel.openPanel(3, {
			selectedIndex: 1
		})
	}, e
}(ViewBase);
__reflect(MoneyBar.prototype, "MoneyBar");
var BitmapNumberType = function() {
	function t() {}
	return t.BAO_JI = 1, t.BAO_JI_RED = 100, t.BAO_JI_PURPLE = 101, t.BAO_JI_BLUE = 102, t.SHAN_BI = 2, t.GE_DANG = 3, t.WU_GONG =
		4, t.WU_FANG = 5, t.MO_GONG = 6, t.DAO_GONG = 7, t.HP_VALUE = 8, t.MP_VALUE = 9, t.BAOJI_LV = 10, t.REN_XING = 11, t
		.SHAN_BI2 = 12, t.XING_YUN = 13, t.ZHUN_QUE = 14, t.MAP_EXP = 15, t.ARENA_FIGHT_NAME = 16, t.ADD_SKILL_POINT = 17, t
		.SHENSHENG_GONGJI = 18, t.SHENSHENG_FANGYU = 19, t.HEJI_SKILL = 20, t.WEI_SHE = 21, t.JUN_GONG = 22, t.XIU_WEI = 23,
		t.MIAN_YI = 24, t.FIGHT_JG = "jungong", t.FIGHT_XW = "xiuwei", t.FIGHT_RED = "fight_red", t.FIGHT_PURPLE =
		"fight_purple", t.FIGHT_BLUE = "fight_blue", t.WARPET_FIGHT_RED = "mcsh", t.FIGHT_GREEN = "huifu", t.FIGHT_BAOJI =
		"baoji", t.FIGHT_BAOJI_RED = "baoji_red", t.FIGHT_BAOJI_PURPLE = "baoji_purple", t.FIGHT_BAOJI_BLUE = "baoji_blue",
		t.ROLE_EXP_NUM = "huifu", t.FIGHT_GREEN_MYSELF = "huifu", t.FIGHT_RED_MYSELF = "shoushang", t.FIGHT_HURT_WARPET =
		"shoushang", t.FIGHT_POWER = "fightPower", t.ADD_FIGHT_POWER = "addFightNum", t.CURR_FIGHT_POWER = "currFightNum", t
		.SKILL_HEJI_NUM = "heji", t.SKILL_HEJI_NUM_NEW = "heji_new", t.SKILL_HEJI_COMBO = "combo", t.FIGHT_WEISHE = "weishe",
		t.RMBNUMBER = "rmb", t.YUANBAONUMBER = "yuanbao", t.LIANZHAN = "lianzhan", t
}();
__reflect(BitmapNumberType.prototype, "BitmapNumberType");
var ActivityToggleRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ToggleActBtn", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data,
			e = App.data.activityCenter,
			i = e.getList(t)[0];
		i && (this.img.source = "kfhd_kaifu_1_png")
	}, e
}(ItemRenderer);
__reflect(ActivityToggleRender.prototype, "ActivityToggleRender");
var BaseActivityPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(e) {
		null != e && e.hasOwnProperty("enterID") && (this._enterID = e.enterID), t.prototype.show.call(this, e)
	}, e.prototype.setEnterID = function(t) {
		this._enterID != t
	}, e.prototype.clear = function() {}, e
}(TabPanel);
__reflect(BaseActivityPanel.prototype, "BaseActivityPanel");
var BaseActivityView = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._id = 0, i._type = e, i
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.onUpdate, this),
			this._dispatcher.addEventListener(ActivityEvent.SUCCESS_JOIN, this.onSuccess, this), ActivityCommandSender.sendDetailMessageByType(
				this._type)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onUpdate = function(t) {
		-1 != t.indexOf(this._type) && this.updateState(this._type)
	}, e.prototype.updateState = function(t) {}, e.prototype.onSuccess = function(t) {
		(t == this._id || 0 == this._id) && this.success(t)
	}, e.prototype.success = function(t) {}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BaseActivityView.prototype, "BaseActivityView", ["IActivityView"]);
var EnumNumberSheetType = function() {
	function t() {}
	return t.NUM_FIGHT = "fightNumber", t.FIGHT_POWER_NUMBER = "fightPowerNumber", t.MAIN_NUMBER = "main_json", t.COMMON_NUMBER =
		"commonNumber", t
}();
__reflect(EnumNumberSheetType.prototype, "EnumNumberSheetType");
var PromiseAlert = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PromiseAlertSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.move(35, 100, this), this._grid
			.isShowTip = !1, this._grid.isShowDesc = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e;
		if (null != i) {
			this._info = i;
			var n = i.itemData;
			this._grid.setData(n), this.name_txt.text = n.bean.q_name, this.name_txt.textColor = ItemUtil.getItemNameColor(n.itemId),
				this.num_txt.text = "数量： " + n.count;
			var a = GameUtil.getItemConfigData(n.itemId).q_level.toString();
			if (ItemUtil.isEquip(n.itemId)) {
				var o = n.getEquipDataBean();
				o && 14 != o.q_kind && (a = n.bean.q_zhuanshen > 0 ? n.bean.q_zhuanshen + "转" : "" + n.bean.q_level)
			}
			this.lv_txt.text = "等级： " + a, this.desc_txt.textFlow = HtmlUtil.getHtmlStr(n.bean.q_describe), this.btn.y = this.desc_txt
				.y + Math.max(this.desc_txt.height, 18) + 11, this.btn.visible = !App.data.promiseCenter.full, this.btn.label = i
				.bingo ? "已许愿" : "许 愿", FilterUtil.gray(this.btn, i.bingo), this.bg.height = Math.max(296, this.btn.y + this.btn.height +
					10), this.groupClick.y = this.bg.height + 6, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
					this, this.btn)
		}
	}, e.prototype.onTouch = function(t) {
		ActivityCommandSender.sendC2S_PromiseSelectItemMessage(this._info.index), App.panel.removePanel(7004)
	}, e.prototype.dispose = function() {
		this._grid && (this._grid.dispose(), this._grid = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PromiseAlert.prototype, "PromiseAlert");
var PromiseGrid = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PromiseGridSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._grid = new ItemGrid, this.addChildAt(this._grid, 1), this._grid.move(4, 4), this._grid.isShowTip = !1, this._grid
			.useStroke = !0, this.imgSelected.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this)
	}, e.prototype.resize = function() {}, e.prototype.checkGuide = function() {
		this._info && 1 == this._info.type && this._info.itemData && 3013901 == this._info.itemData.itemId && !this._info.bingo &&
			Guide.getGuide().show("点击许愿", Guide.LEFT, this.localToGlobal().x + 270, this.localToGlobal().y + 40, this, !0,
				this.localToGlobal().x, this.localToGlobal().y)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.setData = function(t) {
		this._info = t, null != this._info && (this.checkGuide(), this._grid.setData(t.itemData), this.bg_grid.visible =
			null == t.itemData, this.imgBingo.visible = t.bingo, FilterUtil.gray(this._grid.icon, t.bingo), App.timer.clearTimer(
				this.onTimer, this), -1 != t.time ? (this.imgTag.visible = !0, App.timer.serverTimeEnd(this, this.onTimer,
				ServerTime.getServerTime() + t.time)) : null == t.itemData ? (this.promise_txt.text = "可许愿", this.imgTag.visible = !
				1) : (this.imgTag.visible = !1, this.promise_txt.text = ""))
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.promise_txt.text = StringUtil.convertTime(t.spuleTime) : (this.promise_txt.text = "可许愿",
			this.imgTag.visible = !1, App.timer.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		1 == this._info.type ? App.panel.openPanel(7004, this._info) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">请选择上方许愿道具！</font>"), Guide.getGuide().hide()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.onTimer, this), this._grid && (this._grid.dispose(), this._grid = null), this._info =
			null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PromiseGrid.prototype, "PromiseGrid");
var PromiseView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._allPromise = [], e._myPromise = [], e.euiSkinName = "PromiseViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		for (var t, e = 0; 7 > e; e++) t = new PromiseGrid, 4 > e ? t.moveTo(162 + 100 * e, 310, this.groupMain) : t.moveTo(
			213 + 100 * (e - 4), 416, this.groupMain), this._allPromise.push(t);
		for (var e = 0; 4 > e; e++) t = new PromiseGrid, t.moveTo(162 + 100 * e, 603, this.groupMain), this._myPromise.push(
			t);
		this.desc_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("玩法说明"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ItemEvent.SHOW_ADD_ITEM, this.onAdd, this), this._dispatcher
			.addEventListener(PromiseCenter.UPDATE, this.updateState, this), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClose, this, this.btnClose), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onGet, this, this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this), App.tip.addTip(this.desc_txt, new TipData(1, [App.config.q_tipContainer.getDataBean(176).q_tipDesc, "玩法说明"]));
		for (var i = 0; i < this._allPromise.length; i++) this._allPromise[i].show();
		for (var i = 0; i < this._myPromise.length; i++) this._myPromise[i].show();
		this.groupMain.visible = !1, this.end_txt.visible = !1, ActivityCommandSender.sendC2S_PromiseInfoMessage()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.tip.removeTip(this.desc_txt);
		for (var e = 0; e < this._allPromise.length; e++) this._allPromise[e].hide();
		for (var e = 0; e < this._myPromise.length; e++) this._myPromise[e].hide()
	}, e.prototype.updateState = function() {
		var t = App.data.promiseCenter;
		this.groupMain.visible = !t.end, this.end_txt.visible = t.end, this.imgTomorrow.visible = !t.isOk, this.btn.enabled =
			t.isOk, FilterUtil.gray(this.btn, !t.isOk);
		for (var e = t.promiseList, i = 0; i < this._allPromise.length; i++) this._allPromise[i].setData(e[i]);
		for (var n = t.mineList, i = 0; i < this._myPromise.length; i++) this._myPromise[i].setData(n[i])
	}, e.prototype.onAdd = function(t, e) {
		1323 == e && PanelOpenManager.openPanel(115, t)
	}, e.prototype.onGet = function(t) {
		ActivityCommandSender.sendC2S_PromiseReceiveMessage()
	}, e.prototype.onClick = function(t) {
		t.stageY > this.btn.localToGlobal().y + 80 && App.panel.removePanel(7003)
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(7003)
	}, e.prototype.dispose = function() {
		if (App.tip.removeTip(this.desc_txt), this._allPromise) {
			for (var e = 0; e < this._allPromise.length; e++) this._allPromise[e].dispose();
			this._allPromise = null
		}
		if (this._myPromise) {
			for (var e = 0; e < this._myPromise.length; e++) this._myPromise[e].dispose();
			this._myPromise = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PromiseView.prototype, "PromiseView");
var NumberBitmap = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._gap = 0, e._fontTypeGap = 0, e._bitMapArr = [], e.touchEnabled = !1, e.touchChildren = !1, e._showNumFunc =
			new FunctionVO(e.showNum, e), e
	}
	return __extends(e, t), e.prototype.setSheetType = function(t) {
		var e = this;
		e._sheetType != t && (e._sheetType = t, e._data = NumberBitmapCache.getNumberData(e._sheetType))
	}, e.prototype.show = function(t, e, i, n, a) {
		void 0 === e && (e = 0), void 0 === i && (i = 0), void 0 === n && (n = ""), void 0 === a && (a = 0);
		var o = this;
		for (n == BitmapNumberType.FIGHT_POWER && (t = StringUtil.formatNum(parseInt(t), !0, !1, !0)), o._childType = n, o._fontType =
			i, o._gap = e, o._fontTypeGap = a, o._value = t; o.numChildren > 0;) NumberBitmapCache.putChar(o.removeChildAt(0));
		0 != i && (o._font = NumberBitmapCache.getChar(), o._font.x = 0, o._font.y = 0, o.addChild(o._font)), o._data.addNetLoad(
			o, o._showNumFunc)
	}, e.prototype.showNum = function() {
		var t = this,
			e = this._value,
			i = 0;
		if (t._fontType > 0 && (t._font.texture = t._data.getCharTexture(t._fontType + ""), i = i + t._font.width + t._fontTypeGap),
			e && "" != e && e.length > 0) {
			var n = void 0;
			t._bitMapArr.length = 0;
			for (var a = 0; a < e.length; a++) n = NumberBitmapCache.getChar(), n.texture = t._data.getCharTexture(e.charAt(a),
					t._childType), n.x = i, n.y = t._font && 0 != i && 0 != t._fontType ? t._font.height - n.height >> 1 : 0, i = i +
				t._gap + n.width, t.addChild(n), t._bitMapArr.push(n)
		}
		App.dispatcher.dispatchEvent(ActivityEvent.UPDATEEVD_NUM)
	}, e.prototype.getbitMapArr = function() {
		return this._bitMapArr
	}, e.prototype.dispose = function() {
		for (var t = this; t.numChildren > 0;) NumberBitmapCache.putChar(t.removeChildAt(0));
		for (t._data.deleteNetLoad(t), NumberBitmapCache.putNumberBitmap(t); t._bitMapArr.length > 0;) {
			var e = t._bitMapArr.pop();
			e.dispose(), e = null
		}
		t._bitMapArr = [], t._font && (t._font.dispose(), t._font = null), t.parent && t.parent.removeChild(t)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(NumberBitmap.prototype, "NumberBitmap");
var AdvanceEquipTipView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("AdvanceEquipTipSkin"), this.addChild(this._view);
		var t = new eui.HorizontalLayout;
		t.gap = 30, this._view.tujingGroup.layout = t, this.equipGrid = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._view.addChild(this.equipGrid), this.equipGrid.x = this._view.part0.x, this.equipGrid.y = this._view.part0.y,
			this.equipGrid.isShowTip = !1, this.equipGrid.isShowDesc = !1
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 392 >> 1, this._view.y = Config.SCREEN_HEIGHT - 627 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.resize(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.changeEquipHandle,
			this, this._view.changeEquip_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.qianghuaHandle,
			this, this._view.qianghua_btn), this._dispatcher.addEventListener(AdvanceEvent.ADVANCE_EQUIP_REFRESH, this.setData,
			this);
		var i = e;
		if (i) {
			var n = i[0];
			this.pos = i[1], this.equipData = i[2], this.itemBean = App.config.q_itemContainer.getDataBean(n), this.equipBean =
				App.config.q_equipContainer.getDataBean(n), this.setData()
		}
		UIMaker.showPoint(this._view.changeEquip_btn, this, App.data.advanceDataCenter.getProxyByType(this.equipData.index,
			this.equipData.type).getEquipRedDotByPos(this.equipData.pos, !1))
	}, e.prototype.setBaseAttribute = function() {
		var t = new BaseAttributeDataBean;
		t.convertAndAdd(this.equipBean.q_add_attribute_client);
		var e = t.getStrByBaseAttributeBean(t, "  ", "", "|"),
			i = e.split("|"),
			n = i.length,
			a = "";
		if (n > 2)
			for (var o = 0; n > o; o++) a += i[o] + (o % 2 == 1 ? "\n" : " ");
		else a = t.getStrByBaseAttributeBean(t);
		this._view.jichushuxing_lb.text = a
	}, e.prototype.updateStrengRed = function() {
		UIMaker.showPoint(this._view.qianghua_btn, this, App.data.advanceDataCenter.getProxyByType(this.equipData.index,
			this.equipData.type).getStrengRedByPos(this.equipData.pos), 0, 0)
	}, e.prototype.setStrengAttribute = function() {
		var t = "物攻:0 |魔攻:0 |道攻:0 |生命:0";
		if (this.equipAdvanceBean) {
			var e = new BaseAttributeDataBean;
			e.convertAndAdd(this.equipAdvanceBean.q_prop), t = e.getStrByBaseAttributeBean(e, "  ", "", "|")
		}
		var i = t.split("|"),
			n = i.length,
			a = "";
		if (n > 2)
			for (var o = 0; n > o; o++) a += i[o] + (o % 2 == 1 ? "\n" : " ");
		else a = t.replace("|", "\n");
		this._view.qianghuashuxing_lb.text = a
	}, e.prototype.setData = function() {
		this.equipGrid.setData(this.itemBean.q_id), this.equipData && this.equipData.gradeNum && (this.equipAdvanceBean =
				App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(this.pos, this.equipData.gradeNum)), this._view.lvName_lb
			.text = this.equipData && this.equipData.gradeNum ? this.equipData.gradeNum + "级" + this.itemBean.q_name : this.itemBean
			.q_name, this._view.lvName_lb.textColor = GameUtil.getItemNameColor(this.itemBean.q_id), this._view.zhuangbeiscore_lb
			.text = "装备评分：" + (this.equipBean.q_score + (this.equipAdvanceBean ? this.equipAdvanceBean.q_score : 0)), this._view
			.zonghescore_lb.text = "", this.setBaseAttribute(), this.setStrengAttribute();
		var t = this.equipBean.q_skill_id,
			e = App.config.q_skillModelContainer.getDataBean(t);
		e ? this._view.tejishuxing_lb.text = e.q_desc : this._view.tejishuxing_lb.text = "";
		for (var i = StringUtil.JsonParse(this.itemBean.q_input_intro), n = 0; n < i.length; ++n) {
			var a = App.config.q_output_introContainer.getDataBean(i[0]),
				o = new eui.Label;
			o.name = a.q_change_ui + "", o.textFlow = new Array({
				text: a.q_output_title,
				style: {
					underline: !0
				}
			}), this._view.tujingGroup.addChild(o), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getClick,
				this, o)
		}
		switch (this._view.lv_lb.text = (this.equipData ? this.equipData.gradeNum : 0) + "级", App.data.advanceDataCenter.getAdvanceEquipType(
			this.equipBean.q_id)) {
			case AdvanceType.zuoqi:
				this._view.type_lb.text = "坐骑";
				break;
			case AdvanceType.guangyi:
				this._view.type_lb.text = "光翼";
				break;
			case AdvanceType.fazhen:
				this._view.type_lb.text = "法阵";
				break;
			case AdvanceType.tianbing:
				this._view.type_lb.text = "天兵";
				break;
			default:
				this._view.type_lb.text = "未知"
		}
		this._view.buwei_lb.text = this.itemBean.q_name, this.updateStrengRed()
	}, e.prototype.getClick = function(t) {
		var e = t.currentTarget,
			i = Number(e.name);
		App.panel.openPanel(i)
	}, e.prototype.changeEquipHandle = function() {
		App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeAdvanceEquips(this.equipData.index, this.equipData
			.type, this.pos)), App.panel.removePanel(9e3)
	}, e.prototype.qianghuaHandle = function() {
		this.equipData && (App.panel.openPanel(9002, [this.equipData]), App.panel.removePanel(9e3))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.itemBean = null, this.equipBean = null, this.equipAdvanceBean = null, this.equipData =
			null, this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(AdvanceEquipTipView.prototype, "AdvanceEquipTipView");
var AdvancePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("AdvancePanelSkin"), this.viewContainer.addChild(
			this._view), this._view.imgBg.source = "", this.showTab("光翼,坐骑,天兵,法阵,兵魂"), this.registerSubPanel(0,
			WingAdvanceView, "titleview_chibang_png", 5, !0, !0), this.registerSubPanel(1, MountAdvanceView,
			"titleview_zuoqi_png", 56, !0, !0), this.registerSubPanel(2, TianBingAdvanceView, "titleview_tianBing_png", 201,
			!0, !0), this.registerSubPanel(3, FaZhenAdvanceView, "titleview_fazhen_png", 202, !0, !0), this.registerSubPanel(
			4, BingHunAdvanceView, "titleview_baowu_png", 49, !0, !0)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.tabSelectHandler = function(e) {
		switch (App.data.advanceDataCenter._currTabSelete = this.tab.selectedIndex, this.tab.selectedIndex) {
			case AdvanceTabType.guangyi:
				this._view.imgBg.source = ResPathUtil.getImgPath("wing", "advance", ".jpg");
				break;
			case AdvanceTabType.zuoqi:
				this._view.imgBg.source = ResPathUtil.getImgPath("zuoqi", "advance", ".jpg");
				break;
			case AdvanceTabType.tianbing:
				this._view.imgBg.source = ResPathUtil.getImgPath("fazhen", "advance", ".jpg");
				break;
			case AdvanceTabType.fazhen:
				this._view.imgBg.source = ResPathUtil.getImgPath("fazhen", "advance", ".jpg");
				break;
			case AdvanceTabType.binghun:
				this._view.imgBg.source = ResPathUtil.getImgPath("wing", "advance", ".jpg");
				break;
			default:
				this._view.imgBg.source = ResPathUtil.getImgPath("wing", "advance", ".jpg")
		}
		t.prototype.tabSelectHandler.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._view = null, t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(AdvancePanel.prototype, "AdvancePanel");
var AdvanceStrengView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("AdvanceStrengSkin"), this.addChild(this._view), this.smallIcon = UIMaker.getCImage(
				this._view.xiaohaoGroup, this, "", 55, 0), this.smallIcon.width = this.smallIcon.height = 30, this.equipGrid =
			GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(this.equipGrid), this.equipGrid.x =
			this._view.part0.x, this.equipGrid.y = this._view.part0.y, this.equipGrid.isShowTip = !1, this.bg = UIMaker.getCImage(
				this._view.bg_group, this, ResPathUtil.getImgPath("strengBg", "advance"))
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 519 >> 1, this._view.y = Config.SCREEN_HEIGHT - 573 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.resize();
		var i = e;
		i && (this.equipData = i[0], this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.qianghuaHandle,
			this, this._view.qianghua_btn), this._dispatcher.addEventListener(AdvanceEvent.ADVANCE_EQUIP_STRENG, this.strengSuccess,
			this), this.update())
	}, e.prototype.getTotalProp = function(t, e) {
		t = t.replace("[", ""), t = t.replace("]", "");
		var i = t.split(",");
		e = e.replace("[", ""), e = e.replace("]", "");
		for (var n = e.split(","), a = "", o = 0; o < i.length; o++) {
			for (var r = i[o], s = r.split(":")[0], h = Number(r.split(":")[1]), l = h, p = 0; p < n.length; p++) {
				var c = n[p],
					_ = c.split(":")[0],
					d = Number(c.split(":")[1]);
				if (s == _) {
					l += d;
					break
				}
			}
			a += s + ":" + l, o != i.length - 1 && (a += ",")
		}
		return "[" + a + "]"
	}, e.prototype.strengSuccess = function() {
		this.update();
		var t = App.thing.create(CPlayOnceEffect, this, !0);
		t.url = ResPathUtil.getMenuEffect("forge", "forge"), t.x = this._view.part0.x + 38, t.y = this._view.part0.y + 28,
			t.addParent(this._view), t.play(), App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3)
	}, e.prototype.update = function() {
		var t = App.data.advanceDataCenter.getProxyByType(this.equipData.index, this.equipData.type);
		this.equipData = t.getEquipDataByPos(this.equipData.pos);
		var e = this.equipData.itemId;
		this.equipGrid.setData(e), this.equipGrid.Desc(this.equipGrid.data.name), this.equipBean = App.config.q_equipContainer
			.getDataBean(e), this.equipAdvanceBean = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(this.equipData.pos,
				this.equipData.gradeNum), this.equipAdvanceBean ? this.showFigh(FightPowerUtil.getFightPower([this.getTotalProp(
				this.equipBean.q_add_attribute_client, this.equipAdvanceBean.q_prop)])) : this.showFigh(FightPowerUtil.getFightPower(
				[this.equipBean.q_add_attribute_client])), this.setStrengthInfo()
	}, e.prototype.setStrengthInfo = function() {
		var t = this.equipData ? this.equipData.gradeNum : 0,
			e = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(this.equipData.pos, t + 1),
			i = "";
		i = this.equipAdvanceBean ? this.getTotalProp(this.equipBean.q_add_attribute_client, this.equipAdvanceBean.q_prop) :
			this.getTotalProp(this.equipBean.q_add_attribute_client, "");
		var n = new BaseAttributeDataBean;
		if (n.convertAndAdd(i), this._view.shuxing1_lb.text = n.getStrByBaseAttributeBean(n), e) {
			this._view.jiantou_im.visible = !0, this._view.xiaohaoGroup.visible = !0;
			var a = StringUtil.JsonParse(e.q_consume),
				o = a[0].id,
				r = a[0].num;
			this.smallIcon.url = ResPathUtil.getIcon(GameUtil.getItemConfigData(o).q_tiny_icon, EnumImageType.ITEM_80), this._view
				.xiaohao_lb.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(o, r) + "/" + r), this._view.shuxing1_lb.x = 91;
			var s = this.getTotalProp(this.equipBean.q_add_attribute_client, e.q_prop),
				h = new BaseAttributeDataBean;
			h.convertAndAdd(s), this._view.shuxing2_lb.text = h.getStrByBaseAttributeBean(h)
		} else this._view.xiaohaoGroup.visible = !1, this.smallIcon.url = "", this._view.xiaohao_lb.text = "", this._view.shuxing2_lb
			.text = "", this._view.shuxing1_lb.x = 195, this._view.jiantou_im.visible = !1
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#F33333'>" + n + "</font>"
	}, Object.defineProperty(e.prototype, "costState", {
		get: function() {
			var t = this.equipData ? this.equipData.gradeNum : 0,
				e = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(this.equipData.pos, t + 1);
			if (!e) return 2;
			var i = StringUtil.JsonParse(e.q_consume),
				n = i[0].id,
				a = i[0].num,
				o = App.data.bagItemDataCenter.getItemCount(n);
			return a > o ? (PanelOpenManager.openPanel(19, n), 3) : 1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp._effect.visible = !0,
			this._fightBmp.setValue(e), this._view.addChild(this._fightBmp), this._fightBmp.x = 100, this._fightBmp.y = 50)
	}, e.prototype.qianghuaHandle = function() {
		if (this.equipData) switch (this.costState) {
			case 1:
				CharacterUICommandSender.sendAdvanceEquipStrengthMessage(this.equipData.type, 0, this.equipData.pos, this.equipData
					.index);
				break;
			case 2:
				Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">已达到最高级</font>");
				break;
			case 3:
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.itemBean = null, this.equipBean = null, this.equipAdvanceBean = null, this.smallIcon &&
			(this.smallIcon.url = ""), this.equipData = null, this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bg && this.bg.dispose(), this.smallIcon && this.smallIcon.dispose()
	}, e
}(BasePanel);
__reflect(AdvanceStrengView.prototype, "AdvanceStrengView");
var AdvanceUsePropView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._roleIndex = 1, e.barwidth = 193, e._curLevel = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("AdvanceUsePropSkin"), this.addChild(this._view), this.resize(), this.equipGrid =
			GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(this.equipGrid), this.equipGrid.x =
			this._view.part0.x, this.equipGrid.y = this._view.part0.y, this.equipGrid.isShowTip = !1, this.equipGrid.isShowDesc = !
			1, this._view.jindu_im.mask = this._view.jindu_mask, this.smallIcon = UIMaker.getCImage(this._view, this, "", this
				._view.smallIconImg.x, this._view.smallIconImg.y), this.smallIcon.width = this.smallIcon.height = 30
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 392 >> 1, this._view.y = Config.SCREEN_HEIGHT - 545 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.resize();
		var i = e;
		if (i) {
			var n = i[0];
			this._roleIndex = i[1], this._type = i[2], this._curLevel = i[3];
			var a = App.data.advanceDataCenter.getAdvanceDanByType(this._type);
			this.q_advance_danBean = a[n - 1];
			var o = StringUtil.JsonParse(StringUtil.replacJosnStr(this.q_advance_danBean.q_consume)),
				r = o[0].id;
			this.itemBean = App.config.q_itemContainer.getDataBean(r), this.setData()
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.useHandle, this, this._view.use_btn)
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.useHandle = function() {
		var t = App.data.advanceDataCenter.getStrongStoneUseNum(this._roleIndex, this.q_advance_danBean.q_id, this._type);
		if (this._curLevel < this.q_advance_danBean.q_needStage) return void Notice.showMousePosMessage("<font color=" +
			Notice.MIDDLE_COLOR_2 + ">需要达到" + this.q_advance_danBean.q_needStage + "阶才能喂养</font>");
		if (t >= this.q_advance_danBean.q_max_level) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">喂养数已达到最大</font>");
		var e = App.data.bagItemDataCenter.getItemCount(this.itemBean.q_id);
		e > 0 ? (e > this.q_advance_danBean.q_max_level - t ? ItemCommandSender.useStrongStone(this._type, this._roleIndex,
			this.q_advance_danBean.q_id, this.q_advance_danBean.q_max_level - t) : ItemCommandSender.useStrongStone(this._type,
			this._roleIndex, this.q_advance_danBean.q_id, e), App.panel.removePanel(9001)) : (Notice.showBottomMessage(this.itemBean
			.q_name + "数量不足"), PanelOpenManager.openPanel(19, this.itemBean.q_id))
	}, e.prototype.setBaseAttribute = function() {
		var t = new BaseAttributeDataBean;
		t.convertAndAdd(this.q_advance_danBean.q_prop);
		var e = t.getStrByBaseAttributeBean(t, "  ", "", "|"),
			i = e.split("|"),
			n = i.length,
			a = "";
		if (n > 2)
			for (var o = 0; n > o; o++) a += i[o] + (o % 2 == 1 ? "\n" : " ");
		else a = t.getStrByBaseAttributeBean(t);
		this._view.everyAdd_lb.text = a
	}, e.prototype.setTotalAttribute = function() {
		var t = App.data.advanceDataCenter.getStrongStoneUseNum(this._roleIndex, this.q_advance_danBean.q_id, this._type),
			e = new BaseAttributeDataBean;
		e.convertAndAdd(this.q_advance_danBean.q_prop);
		for (var i = e.getStrByBaseAttributeBean(e, "  ", "", "|"), n = i.split("|"), a = n.length, o = [], r = 0; a > r; ++
			r) {
			var s = n[r];
			s = s.split(":")[0] + ":" + Number(s.split(":")[1]) * t, o.push(s)
		}
		var h = "";
		if (a > 2)
			for (var l = 0; a > l; l++) h += o[l] + (l % 2 == 1 ? "\n" : " ");
		else h = (o[0] ? o[0] : "") + (o[1] ? " " + o[1] : "");
		this._view.totalAdd_lb.text = h
	}, e.prototype.setData = function() {
		if (this.itemBean) {
			this.smallIcon.url = ResPathUtil.getIcon(this.itemBean.q_tiny_icon, EnumImageType.ITEM_80), this._view.name_lb.text =
				this.itemBean.q_name;
			var t = App.data.advanceDataCenter.getStrongStoneUseNum(this._roleIndex, this.q_advance_danBean.q_id, this._type);
			this.showFigh(FightPowerUtil.getFightPower([this.q_advance_danBean.q_prop]) * t), this.equipGrid.setData(this.itemBean
				.q_id), this.showProgress(t, this.q_advance_danBean.q_max_level), this.setBaseAttribute(), this.setTotalAttribute();
			for (var e = this.itemBean.q_describe.split("\n"), i = "", n = 0; n < e.length; ++n) {
				var a = e[n];
				"描述" != a && -1 == a.indexOf("<font") && -1 == a.indexOf("</font") && (i += a)
			}
			this._view.intro_lb.text = i;
			var t = App.data.bagItemDataCenter.getItemCount(this.itemBean.q_id);
			this._view.has_lb.textFlow = HtmlUtil.getHtmlStr("<font color='0x35ea35'>" + t + "</font>颗")
		}
	}, e.prototype.showProgress = function(t, e) {
		this._view.jindu_mask.x = 142 + t / e * this.barwidth - this.barwidth, this._view.jindu_im.mask = this._view.jindu_mask,
			this._view.jindu_lb.text = t + "/" + e
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp.bg.source = "", this
			._fightBmp._effect.visible = !1, this._fightBmp.setValue(e), this._view.groupFight.addChild(this._fightBmp))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners(), this.q_advance_danBean = null, this.itemBean =
			null
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.q_advance_danBean && (this.q_advance_danBean = null), this.itemBean && (this.itemBean =
			null), this.equipGrid && (this.equipGrid.dispose(), this.equipGrid = null), this.smallIcon && this.smallIcon.dispose()
	}, e
}(BasePanel);
__reflect(AdvanceUsePropView.prototype, "AdvanceUsePropView");
var AdvanceZhiShengDanView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._roleIndex = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("AdvanceZhiShengDanSkin"), this.addChild(this._view), this.resize(), this.equipGrid =
			GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(this.equipGrid), this.equipGrid.isShowTip = !
			1, this.equipGrid.isShowDesc = !1, this.equipGrid.setRedDot(!1), this.updatePos()
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 392 >> 1, this._view.y = Config.SCREEN_HEIGHT - 370 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.resize();
		var i = e;
		if (i) {
			this._type = i[0], this._roleIndex = i[1];
			var n = i[2];
			this.itemBean = App.config.q_itemContainer.getDataBean(n), this.setData()
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.useHandle, this, this._view.use_btn)
	}, e.prototype.useHandle = function() {
		return App.data.bagItemDataCenter.getItemCount(this.itemBean.q_id) < 1 ? void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">直升丹数量不足</font>") : (CharacterUICommandSender.advanceLevelUp(this._type,
			!0, this._roleIndex), App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3), void App.panel.removePanel(9003))
	}, Object.defineProperty(e.prototype, "validArr", {
		get: function() {
			for (var t = App.data.bagItemDataCenter.getPropItemList(55), e = [], i = 0; i < t.length; ++i) {
				var n = t[i];
				this.itemBean.q_id == n.itemId && !n.isLostTime && n.lostTime && e.push(n)
			}
			return e.sort(this.danSort), e
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.danSort = function(t, e) {
		return t.lostTime < e.lostTime ? -1 : t.lostTime > e.lostTime ? 1 : 0
	}, e.prototype.setData = function() {
		if (this.itemBean) {
			this._view.name_lb.text = this.itemBean.q_name, this.equipGrid.setData(this.itemBean.q_id);
			for (var t = this.itemBean.q_describe.split("\n"), e = "", i = 0; i < t.length; ++i) {
				var n = t[i];
				"描述" != n && -1 == n.indexOf("<font") && -1 == n.indexOf("</font") && (e += n)
			}
			this._view.intro_lb.text = e;
			var a = App.data.bagItemDataCenter.getItemCount(this.itemBean.q_id);
			this._view.has_lb.textFlow = HtmlUtil.getHtmlStr("<font color='0x35ea35'>" + a + "</font>颗");
			var o = this.validArr[0];
			if (o) {
				var r = o.lostTime - ServerTime.getServerTime();
				r > 0 ? this._view.time_lb.text = "有效时间：" + StringUtil.convertTime_4(r) : this._view.time_lb.text = "已失效", this._view
					.part0.x = 24
			} else this._view.time_lb.text = "", this._view.part0.x = 159;
			this.updatePos()
		}
	}, e.prototype.updatePos = function() {
		this.equipGrid.x = this._view.part0.x, this.equipGrid.y = this._view.part0.y
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners(), this.itemBean = null
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.itemBean && (this.itemBean = null), this.equipGrid && (this.equipGrid.dispose(),
			this.equipGrid = null)
	}, e
}(BasePanel);
__reflect(AdvanceZhiShengDanView.prototype, "AdvanceZhiShengDanView");
var BingHunAdvanceView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.globalCenter = App.data.bingHunGlobalCenter
	}, e.prototype.onUpdate = function(e, i) {
		void 0 === i && (i = null), this.curType == e && (this.curQ_advanceBean = App.config.q_advanceContainer.getDataBean(
			this.curProxy.curAdvanceId), this.curShowQ_advanceBean = this._curQ_advanceBean, t.prototype.onUpdate.call(this,
			e, i))
	}, e.prototype.setAvatarData = function(t, e) {
		null == this._eff && (this._eff = new CEffect, this._eff.addParent(this._view.avatarGroup)), null == this._eff1 &&
			(this._eff1 = new CEffect, this._eff1.addParent(this._view.avatarGroup));
		var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
		if (i) {
			i.q_model;
			this._eff.url = ResPathUtil.getMenuEffect("treasure", "treasure"), this._eff.x = 320, this._eff.y = 400, this._eff
				.play(), this._eff1.url = ResPathUtil.getMenuEffect("treasure", "treasure1"), this._eff1.x = 320, this._eff1.y =
				400, this._eff1.play()
		}
	}, Object.defineProperty(e.prototype, "curProxy", {
		get: function() {
			return this.globalCenter.getProxy(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._eff && (this._eff.dispose(), this._eff = null), this._eff1 && (this._eff1.dispose(),
			this._eff1 = null)
	}, e
}(AdvanceCommonView);
__reflect(BingHunAdvanceView.prototype, "BingHunAdvanceView");
var FaZhenAdvanceView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.globalCenter = App.data.faZhenGlobalCenter, this.initEquipGrid()
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addGridEvent()
	}, e.prototype.onUpdate = function(e, i) {
		void 0 === i && (i = null), this.curType == e && (this.curQ_advanceBean = App.config.q_advanceContainer.getDataBean(
			this.curProxy.curAdvanceId), this.curShowQ_advanceBean = this._curQ_advanceBean, t.prototype.onUpdate.call(this,
			e, i))
	}, e.prototype.setAvatarData = function(t, e) {
		null == this.mainEffect && (this.mainEffect = new CEffect, this.mainEffect.addParent(this._view.avatarGroup));
		var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
		if (i) {
			var n = i.q_model;
			this.mainEffect.url = ResPathUtil.getMenuEffect("fazhen", n), this.mainEffect.x = 320, this.mainEffect.y = 460,
				this.mainEffect.play(), this._url = ResPathUtil.getMenuEffect("fazhen", n)
		}
	}, e.prototype.setEquipRed = function() {
		t.prototype.setEquipRed.call(this), this._view.advancedGroup.visible ? UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.getEquipRed(), 10, 10) : this._view.equipGroup.visible && UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.advanceRed(), 10, 10)
	}, Object.defineProperty(e.prototype, "curProxy", {
		get: function() {
			return this.globalCenter.getProxy(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this.mainEffect && (this.mainEffect.dispose(), this.mainEffect = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
	}, e.prototype.initEquipGrid = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 4 > t; ++t) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.icon.visible = !0, e.touchEnabled = !0, e.isShowTip = !
				1, e.touchChildren = !0, e.gridBg.touchEnabled = !0, e.isShowJobImg = !1, this._view.equipGroup.addChild(e), e.x =
				this._view["part" + t].x, e.y = this._view["part" + t].y, this._gridDict.put(e.part, e)
		}
		this.selectEquipPos = -1
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = 6021 : 1 == t ? t = 6022 : 2 == t ? t = 6023 : 3 == t && (t = 6024), t
	}, e.prototype.addGridEvent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, e)
		}
	}, e.prototype.updateGrid = function() {
		for (var t = this._gridDict.length, e = 0; t > e; ++e) {
			var i = this._gridDict.get(this.getPart(e));
			i.setData(this.curProxy.getEquipIdByPos(i.part)), i.gridBg.filters = i.icon.filters = this.curProxy.isWearEquipByPos(
				i.part) ? [] : FilterUtil.FILTER_GRAY, i.Desc(i.data.name), i.setRedDot(this.curProxy.getEquipRedDotByPos(i.part))
		}
		this.setEquipRed()
	}, e.prototype.onWearClick = function() {
		for (var t = this._gridDict.length, e = !1, i = 0; t > i; ++i) {
			var n = this._gridDict.get(this.getPart(i)),
				a = this.curProxy.getBestEquipByPos(n.part);
			a && (e = !0, CharacterUICommandSender.sendWearAdvanceEquipMessage(AdvanceType.fazhen, a.int64Id, n.part, this.roleIndex))
		}
		e || Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有合适的装备可以穿戴！</font>")
	}, e.prototype.openChangeEquip = function(t) {
		var e = t.currentTarget;
		this.selectEquipPos = e.part - 6021;
		var i = this.curProxy.getEquipDataByPos(e.part);
		i ? App.panel.openPanel(9e3, [e.itemId, e.part, i]) : App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeAdvanceEquips(
			this.roleIndex, AdvanceType.fazhen, e.part))
	}, e.prototype.setSelectShow = function() {
		this._selectEquipPos > -1 ? (this._view.selected_im.visible = !0, this._view.selected_im.x = this._view["part" +
				this._selectEquipPos].x - 2, this._view.selected_im.y = this._view["part" + this._selectEquipPos].y - 2) : this._view
			.selected_im.visible = !1
	}, Object.defineProperty(e.prototype, "selectEquipPos", {
		get: function() {
			return this._selectEquipPos
		},
		set: function(t) {
			this._selectEquipPos = t, this.setSelectShow()
		},
		enumerable: !0,
		configurable: !0
	}), e
}(AdvanceCommonView);
__reflect(FaZhenAdvanceView.prototype, "FaZhenAdvanceView");
var MountAdvanceView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.globalCenter = App.data.mountGlobalCenter, this.initEquipGrid()
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addGridEvent()
	}, e.prototype.onUpdate = function(e, i) {
		void 0 === i && (i = null), this.curType == e && (this.curQ_advanceBean = App.config.q_advanceContainer.getDataBean(
			this.curProxy.curAdvanceId), this.curShowQ_advanceBean = this._curQ_advanceBean, t.prototype.onUpdate.call(this,
			e, i))
	}, e.prototype.updateState = function() {
		if (t.prototype.updateState.call(this), !this._curShowQ_advanceBean) return this._view.wear_btn.visible = !1, void(
			this._view.state_im.visible = !1);
		var e = this.curProxy.getMountState(this._curShowQ_advanceBean.q_id);
		switch (e) {
			case EnumAdvanceState.have:
				this._view.wear_btn.visible = !0, this._view.state_im.visible = !1;
				break;
			case EnumAdvanceState.haveNo:
				this._view.wear_btn.visible = !1, this._view.state_im.visible = !0, this._view.state_im.source =
					"mountView_weijihuo_png";
				break;
			case EnumAdvanceState.using:
				this._view.wear_btn.visible = !1, this._view.state_im.visible = !0, this._view.state_im.source =
					"mountView_huanhuazhong_png";
				break;
			case EnumAdvanceState.none:
				this._view.wear_btn.visible = !0, this._view.state_im.visible = !1
		}
	}, e.prototype.wearHandle = function() {
		var t = App.config.q_surfaceContainer.getDataBean(this._curShowQ_advanceBean.q_unlockModel);
		t && CharacterUICommandSender.showSerface(t.q_id, this.roleIndex)
	}, e.prototype.setAvatarData = function(t, e) {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.touchEnabled = !1, this._avatar.x = 320,
			this._avatar.y = 480, this._view.avatarGroup.addChild(this._avatar));
		var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
		if (i) {
			var n = i.q_model;
			this._avatar.changePlayerRolePartResource(AvatarPartType.HORSE, 1, n), this._url = ResPathUtil.getAvatarPartUrl(
				ResPathUtil.getMapAvatarPartRes(AvatarPartType.HORSE, 1, n), AvatarActionType.ACTION_TYPE_UI, 0)
		}
	}, e.prototype.setEquipRed = function() {
		t.prototype.setEquipRed.call(this), this._view.advancedGroup.visible ? UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.getEquipRed(), 10, 10) : this._view.equipGroup.visible && UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.advanceRed(), 10, 10)
	}, Object.defineProperty(e.prototype, "curProxy", {
		get: function() {
			return this.globalCenter.getProxy(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this._avatar && (this._avatar.dispose(), this._avatar = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
	}, e.prototype.initEquipGrid = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 4 > t; ++t) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.icon.visible = !0, e.touchEnabled = !0, e.isShowTip = !
				1, e.touchChildren = !0, e.gridBg.touchEnabled = !0, e.isShowJobImg = !1, this._view.equipGroup.addChild(e), e.x =
				this._view["part" + t].x, e.y = this._view["part" + t].y, this._gridDict.put(e.part, e)
		}
		this.selectEquipPos = -1
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = 6001 : 1 == t ? t = 6002 : 2 == t ? t = 6003 : 3 == t && (t = 6004), t
	}, e.prototype.addGridEvent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, e)
		}
	}, e.prototype.updateGrid = function() {
		for (var t = this._gridDict.length, e = 0; t > e; ++e) {
			var i = this._gridDict.get(this.getPart(e));
			i.setData(this.curProxy.getEquipIdByPos(i.part)), i.gridBg.filters = i.icon.filters = this.curProxy.isWearEquipByPos(
				i.part) ? [] : FilterUtil.FILTER_GRAY, i.Desc(i.data.name), i.setRedDot(this.curProxy.getEquipRedDotByPos(i.part))
		}
		this.setEquipRed()
	}, e.prototype.onWearClick = function() {
		for (var t = this._gridDict.length, e = !1, i = 0; t > i; ++i) {
			var n = this._gridDict.get(this.getPart(i)),
				a = this.curProxy.getBestEquipByPos(n.part);
			a && (e = !0, CharacterUICommandSender.sendWearAdvanceEquipMessage(AdvanceType.fazhen, a.int64Id, n.part, this.roleIndex))
		}
		e || Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有合适的装备可以穿戴！</font>")
	}, e.prototype.openChangeEquip = function(t) {
		var e = t.currentTarget;
		this.selectEquipPos = e.part - 6001;
		var i = this.curProxy.getEquipDataByPos(e.part);
		i ? App.panel.openPanel(9e3, [e.itemId, e.part, i]) : App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeAdvanceEquips(
			this.roleIndex, AdvanceType.fazhen, e.part))
	}, e.prototype.setSelectShow = function() {
		this._selectEquipPos > -1 ? (this._view.selected_im.visible = !0, this._view.selected_im.x = this._view["part" +
				this._selectEquipPos].x - 2, this._view.selected_im.y = this._view["part" + this._selectEquipPos].y - 2) : this._view
			.selected_im.visible = !1
	}, Object.defineProperty(e.prototype, "selectEquipPos", {
		get: function() {
			return this._selectEquipPos
		},
		set: function(t) {
			this._selectEquipPos = t, this.setSelectShow()
		},
		enumerable: !0,
		configurable: !0
	}), e
}(AdvanceCommonView);
__reflect(MountAdvanceView.prototype, "MountAdvanceView");
var TianBingAdvanceView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.globalCenter = App.data.tianBingGlobalCenter, this.initEquipGrid()
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addGridEvent()
	}, e.prototype.onUpdate = function(e, i) {
		void 0 === i && (i = null), this.curType == e && (this.curQ_advanceBean = App.config.q_advanceContainer.getDataBean(
			this.curProxy.curAdvanceId), this.curShowQ_advanceBean = this._curQ_advanceBean, t.prototype.onUpdate.call(this,
			e, i))
	}, e.prototype.setAvatarData = function(t, e) {
		null == this.mainEffect && (this.mainEffect = new CEffect, this.mainEffect.addParent(this._view.avatarGroup));
		var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
		if (i) {
			var n = i.q_model;
			this.mainEffect.url = ResPathUtil.getMenuEffect("tianbing", n), this.mainEffect.x = 320, this.mainEffect.y = 400,
				this.mainEffect.play(), this._url = ResPathUtil.getMenuEffect("tianbing", n)
		}
	}, e.prototype.setEquipRed = function() {
		t.prototype.setEquipRed.call(this), this._view.advancedGroup.visible ? UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.getEquipRed(), 10, 10) : this._view.equipGroup.visible && UIMaker.showPoint(this._view.turnRedGroup,
			this, this.curProxy.advanceRed(), 10, 10)
	}, Object.defineProperty(e.prototype, "curProxy", {
		get: function() {
			return this.globalCenter.getProxy(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this.mainEffect && (this.mainEffect.dispose(), this.mainEffect = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
	}, e.prototype.initEquipGrid = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 4 > t; ++t) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.icon.visible = !0, e.touchEnabled = !0, e.isShowTip = !
				1, e.touchChildren = !0, e.gridBg.touchEnabled = !0, e.isShowJobImg = !1, this._view.equipGroup.addChild(e), e.x =
				this._view["part" + t].x, e.y = this._view["part" + t].y, this._gridDict.put(e.part, e)
		}
		this.selectEquipPos = -1
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = 6011 : 1 == t ? t = 6012 : 2 == t ? t = 6013 : 3 == t && (t = 6014), t
	}, e.prototype.addGridEvent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, e)
		}
	}, e.prototype.updateGrid = function() {
		for (var t = this._gridDict.length, e = 0; t > e; ++e) {
			var i = this._gridDict.get(this.getPart(e));
			i.setData(this.curProxy.getEquipIdByPos(i.part)), i.gridBg.filters = i.icon.filters = this.curProxy.isWearEquipByPos(
				i.part) ? [] : FilterUtil.FILTER_GRAY, i.Desc(i.data.name), i.setRedDot(this.curProxy.getEquipRedDotByPos(i.part))
		}
		this.setEquipRed()
	}, e.prototype.onWearClick = function() {
		for (var t = this._gridDict.length, e = !1, i = 0; t > i; ++i) {
			var n = this._gridDict.get(this.getPart(i)),
				a = this.curProxy.getBestEquipByPos(n.part);
			a && (e = !0, CharacterUICommandSender.sendWearAdvanceEquipMessage(AdvanceType.fazhen, a.int64Id, n.part, this.roleIndex))
		}
		e || Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有合适的装备可以穿戴！</font>")
	}, e.prototype.openChangeEquip = function(t) {
		var e = t.currentTarget;
		this.selectEquipPos = e.part - 6011;
		var i = this.curProxy.getEquipDataByPos(e.part);
		i ? App.panel.openPanel(9e3, [e.itemId, e.part, i]) : App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeAdvanceEquips(
			this.roleIndex, AdvanceType.fazhen, e.part))
	}, e.prototype.setSelectShow = function() {
		this._selectEquipPos > -1 ? (this._view.selected_im.visible = !0, this._view.selected_im.x = this._view["part" +
				this._selectEquipPos].x - 2, this._view.selected_im.y = this._view["part" + this._selectEquipPos].y - 2) : this._view
			.selected_im.visible = !1
	}, Object.defineProperty(e.prototype, "selectEquipPos", {
		get: function() {
			return this._selectEquipPos
		},
		set: function(t) {
			this._selectEquipPos = t, this.setSelectShow()
		},
		enumerable: !0,
		configurable: !0
	}), e
}(AdvanceCommonView);
__reflect(TianBingAdvanceView.prototype, "TianBingAdvanceView");
var WingAdvanceView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.globalCenter = App.data.wingGlobalCenter
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.setEquipRed()
	}, e.prototype.onUpdate = function(e, i) {
		void 0 === i && (i = null), this.curType == e && (this.curQ_advanceBean = App.config.q_advanceContainer.getDataBean(
			this.curProxy.curAdvanceId), this.curShowQ_advanceBean = this._curQ_advanceBean, t.prototype.onUpdate.call(this,
			e, i))
	}, e.prototype.refreshRoleData = function(e) {
		t.prototype.refreshRoleData.call(this, e), this.setEquipRed()
	}, e.prototype.setAvatarData = function(t, e) {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.touchEnabled = !1, this._avatar.x = 320,
			this._avatar.y = 480, this._view.avatarGroup.addChild(this._avatar));
		var i = this.model.getAdvanceBeanByTypeLevelStar(this.curType, t, e);
		if (i) {
			var n = i.q_model;
			this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 1, n), this._url = ResPathUtil.getAvatarPartUrl(
				ResPathUtil.getMapAvatarPartRes(AvatarPartType.WING, 1, n), AvatarActionType.ACTION_TYPE_UI, 0)
		}
	}, e.prototype.setEquipRed = function() {
		App.data.wingGodCenter().gethechengRedPoint() || App.data.wingGodCenter().getzhuangbRoleRedPoint(this.roleIndex) ?
			UIMaker.showPoint(this._view.turnRedGroup, this, !0, 10, 10) : UIMaker.showPoint(this._view.turnRedGroup, this, !1,
				10, 10)
	}, Object.defineProperty(e.prototype, "curProxy", {
		get: function() {
			return this.globalCenter.getProxy(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._avatar && (this._avatar.dispose(), this._avatar = null)
	}, e
}(AdvanceCommonView);
__reflect(WingAdvanceView.prototype, "WingAdvanceView");
var ArtifacOneAttrPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ArtifacOneAttrSkin"), this.addChild(this._view), this._view.fight || (this._view
			.fight = new FightPower, this._view.fight.x = 18, this._view.fight.y = 76, this._view.addChild(this._view.fight))
	}, e.prototype.dispose = function() {
		this._view.fight && this._view.fight.dispose(), this._view.fight = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		this.hideGuide(), t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._currId = e, this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onJhClick, this, this._view.jh_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onCloseClick, this, this._view.groupClick), this.refresh()
	}, e.prototype.onCloseClick = function() {
		this.hideGuide(), App.panel.removePanel(66)
	}, e.prototype.onJhClick = function() {
		this.hideGuide(), ArtifactCommandSender.sendUpGradeTreasuer(), App.panel.removePanel(66)
	}, e.prototype.refresh = function() {
		var t = App.config.q_ArtifaceContainer.getDataBean(this._currId),
			e = StringUtil.JsonParse(t.q_num),
			i = GameUtil.getItemConfigData(e[0].id);
		this._view.name_txt.text = i.q_name, this._view.fight.setValue(FightPowerUtil.getFightPower([t.q_add_current])),
			this._view.fight.setVis(!1);
		var n = new BaseAttributeDataBean;
		n.convertAndAdd(t.q_add_current), this._view.attr_txt.text = n.getStrByBaseAttributeBean1(n), this._view.getdes_txt
			.text = "通关第" + t.q_desc + "关获得", e[0].num > App.data.bagItemDataCenter.getItemCount(e[0].id) || this.dataCenter.id >=
			t.q_id ? (this._view.getdes_txt.visible = !0, this._view.jh_btn.visible = !1) : (this._view.getdes_txt.visible = !
				1, this._view.jh_btn.visible = !0, App.data.taskCenter.getThreadTaskShowGuide(6) && this.guide.show("点击激活碎片",
					Guide.RIGHT, this._view.jh_btn.x - 180, this._view.jh_btn.y + 25, this))
	}, Object.defineProperty(e.prototype, "dataCenter", {
		get: function() {
			return App.data.getArtifactDataCenter()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 357
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 410
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null, App.dispatcher.dispatchEvent(EventType.BACKGUIDE))
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(ArtifacOneAttrPanel.prototype, "ArtifacOneAttrPanel");
var ArtifacRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ArtifacRenderSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function(t) {
		for (var e, i, n = App.data.getArtifactDataCenter().getJieBeanArr(t), a = n.length, o = 0; 8 > o; o++) i = this[
			"spda_img" + o], a > o ? (e = n[o], i.visible = !0, i.source = ResPathUtil.getIcon(e.q_pos_info, "image/artifact"),
			i.x = e.q_weizhi_x, i.y = e.q_weizhi_y, App.data.getArtifactDataCenter().id >= e.q_id ? i.filters = null : i.filters =
			FilterUtil.FILTER_GRAY) : i.visible = !1
	}, e.prototype.createEffect = function(t) {
		if (41 > t) {
			for (var e = void 0, i = 0; 8 > i; i++) e = this["spda_img" + i], e.visible = !1;
			this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("artifact", "jie_" + t), 205, 260,
				this._effect)
		}
		TweenMax.killTweensOf(this), this.y = -60, TweenMax.to(this, .7, {
			y: this.y - 30,
			repeat: -1,
			yoyo: !0,
			ease: Linear.easeOut
		})
	}, e.prototype.dispose = function() {
		TweenMax.killTweensOf(this), this._effect && this._effect.dispose(), this._effect = null
	}, e
}(ViewBase);
__reflect(ArtifacRender.prototype, "ArtifacRender");
var ArtifacSpItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.show(), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this)
	}, e.prototype.onClick = function() {
		App.panel.openPanel(66, this.artid)
	}, e.prototype.refresh = function(t) {
		if (this.artid = t, t > 0) {
			var e = App.config.q_ArtifaceContainer.getDataBean(t),
				i = StringUtil.JsonParse(e.q_num);
			this.icom_img.visible = this.name_txt.visible = !0, this.icom_img.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(
				i[0].id).q_tiny_icon, EnumImageType.ITEM_80);
			var n = App.config.q_ArtifaceContainer.getDataBean(t);
			this.name_txt.textFlow = HtmlUtil.getHtmlStr("<u>第" + n.q_desc + "关获得</u>"), this.artid <= App.data.getArtifactDataCenter()
				.id ? (this.name_txt.textColor = 16315319, this.name_txt.visible = !1, FilterUtil.gray(this.icom_img, !1),
					FilterUtil.gray(this.name_txt, !1), FilterUtil.gray(this.back_cir, !1)) : (this.name_txt.textColor = 9803157,
					FilterUtil.gray(this.icom_img, !0), FilterUtil.gray(this.name_txt, !0), FilterUtil.gray(this.back_cir, !0)), App
				.data.bagItemDataCenter.getItemCount(i[0].id) >= i[0].num && this.artid > App.data.getArtifactDataCenter().id ? (
					this.seleted_img.visible = !0, this.name_txt.textFlow = HtmlUtil.getHtmlStr("<u>点击激活</u>"), this.name_txt.textColor =
					65280, this.name_txt.width = 120, FilterUtil.gray(this.name_txt, !1)) : this.seleted_img.visible = !1
		} else this.seleted_img.visible = this.icom_img.visible = this.name_txt.visible = !1
	}, e.prototype.setAll = function(t) {
		void 0 === t && (t = 1), 1 == t ? this.name_txt.size = 22 : this.name_txt.size = 24
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), this.icom_img && this.icom_img.dispose(), t.prototype.dispose.call(
			this)
	}, e
}(ArtifacSpItemUI);
__reflect(ArtifacSpItem.prototype, "ArtifacSpItem");
var ArtifactPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currJie = 0, e._currPage = 0, e._itemArr = [], e._isFrist = !0, e._chipPos8 = {
			0: {
				x: 190,
				y: 175
			},
			1: {
				x: 350,
				y: 175
			},
			2: {
				x: 65,
				y: 300
			},
			3: {
				x: 410,
				y: 300
			},
			4: {
				x: 65,
				y: 470
			},
			5: {
				x: 410,
				y: 470
			},
			6: {
				x: 190,
				y: 610
			},
			7: {
				x: 350,
				y: 610
			}
		}, e._chipPos6 = {
			0: {
				x: 245,
				y: 175
			},
			1: {
				x: 65,
				y: 300
			},
			2: {
				x: 410,
				y: 300
			},
			3: {
				x: 65,
				y: 470
			},
			4: {
				x: 410,
				y: 470
			},
			5: {
				x: 245,
				y: 610
			}
		}, e._chipPos5 = {
			0: {
				x: 245,
				y: 175
			},
			1: {
				x: 65,
				y: 300
			},
			2: {
				x: 410,
				y: 300
			},
			3: {
				x: 65,
				y: 470
			},
			4: {
				x: 410,
				y: 470
			}
		}, e._chipPos4 = {
			0: {
				x: 65,
				y: 300
			},
			1: {
				x: 410,
				y: 300
			},
			2: {
				x: 65,
				y: 470
			},
			3: {
				x: 410,
				y: 470
			}
		}, e._chipPos2 = {
			0: {
				x: 65,
				y: 385
			},
			1: {
				x: 410,
				y: 385
			}
		}, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ArtifactSkin"), this.addChild(this._view), this._currItemArr = [];
		for (var t, i = 0; 8 > i; i++) t = new ArtifacSpItem, this._currItemArr.push(t), this._view.item_group.addChild(t),
			i > 3 ? (t.y = 50, t.x = 150 * (i - 4) + 5) : (t.y = 0, t.x = 150 * i + 5);
		this._view.visible = !1, this._view.scrollerItem.scrollPolicyH = eui.ScrollPolicy.ON, this._view.scrollerItem.scrollPolicyV =
			eui.ScrollPolicy.OFF, this._combinatorialCimg = UIMaker.getCImage(this._view.redgroup, e, ResPathUtil.getImgPath(
				"btn_070", "tazhuang"), 0, 0, !0)
	}, e.prototype.hide = function() {
		this.hideGuide(), UIMaker.showPoint(this._view.redgroup, this, !1), App.tip.removeTip(this._view.xq_btn), t.prototype
			.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._currItemArr)
			for (var e = 0; 8 > e; e++) this._currItemArr[e].dispose();
		if (this._itemArr)
			for (var i = this._itemArr.length, e = 0; i > e; e++) this._itemArr[e].dispose();
		this._chipPos2 = null, this._chipPos4 = null, this._chipPos6 = null, this._chipPos8 = null, this._chipPos5 = null,
			this._view.con_bw.removeChildren(), this._view.scrollerItem.dispose(), t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._isFrist = !0, ArtifactCommandSender.sendTreasureInfo(),
			this._dispatcher.addEventListener(EnumEvent.EVENT_ARTIFACT_UP, this.onLvUp, this), this._dispatcher.addEventListener(
				EnumEvent.EVENT_ARTIFACT, this.refreshAll, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onCombinatorialCimg, this, this._combinatorialCimg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onPre, this, this._view.preBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNext,
				this, this._view.nextBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onXqClick, this,
				this._view.xq_btn), this._dispatcher.addEventListener(VScrollPanelMoveOne.EVENT_SCROLL_COMPLETE, this.onScrollerEnd,
				this), this._currJie = 0, this._currPage = 0, this.onXqClick(), UIMaker.showPoint(this._view.redgroup, this, App.data
				.getArtifactDataCenter().zuheisshowred())
	}, e.prototype.onCombinatorialCimg = function(t) {
		void 0 === t && (t = null), App.panel.openPanel(118)
	}, e.prototype.onScrollerEnd = function(t) {
		var e = t + 1;
		this._currPage = this._currPage - this._currJie + e, this._currPage >= 1 && (this._currPage = 1), this.onPageChange(
			e)
	}, e.prototype.onPre = function(t) {
		void 0 === t && (t = null), this._currPage--, this._view.scrollerItem.scrollToLast()
	}, e.prototype.onNext = function(t) {
		void 0 === t && (t = null), this._currPage++, this._view.scrollerItem.scrollToNext()
	}, e.prototype.onPageChange = function(t) {
		this._currJieBeanArr = this.dataCenter.getJieBeanArr(t), this._currJieBeanArr && (this._currId = this._currJieBeanArr[
			0].q_id, this.refresh())
	}, e.prototype.onXqClick = function(t) {
		if (void 0 === t && (t = null), this.dataCenter.id > 0) {
			var e = new BaseAttributeDataBean;
			e = App.data.getArtifactDataCenter().getOneArtifactAttr(e), e.convertAndAdd(App.config.q_ArtifaceContainer.getDataBean(
				this.dataCenter.id).q_add_attribute), App.tip.addTip(this._view.xq_btn, new TipData(13, e.getStrByBaseAttributeBean1(
				e)))
		} else t && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">还未激活神器部位，未获得属性</font>")
	}, e.prototype.onLvUp = function(t) {
		var e = App.config.q_ArtifaceContainer.getDataBean(t);
		if (1 == e.q_last) {
			var i = App.config.q_ArtifaceContainer.getDataBean(t).q_class;
			this._url = ResPathUtil.getMenuEffect("artifact", "jie_" + i), App.dispatcher.dispatchEvent(EventType.ShowSuccess,
				this._url, 0)
		}
		this.dataCenter.id > 1 ? (this._currId = this.dataCenter.id - 1, this._currJie < App.config.q_ArtifaceContainer.getDataBean(
			this._currId + 2).q_class && (this._currPage = -1, this.addEffect())) : this._currId = this.dataCenter.id, this.onUpdate()
	}, e.prototype.addEffect = function() {
		var t = App.thing.create(CPlayOnceEffect, "ArtifactPanel", !0);
		t.url = ResPathUtil.getMenuEffect("panel", "jihuosucc"), t.x = 320, t.y = 550, t.addParent(this), t.play()
	}, e.prototype.refreshAll = function() {
		this._currId = this.dataCenter.id, this.onUpdate()
	}, e.prototype.onUpdate = function() {
		0 == this._view.visible && (this._view.visible = !0), this.dataCenter.id > 0 ? this.fightPower.setValue(this.dataCenter
			.getFightPower()) : this.fightPower.setValue(0), this.refresh()
	}, e.prototype.refresh = function() {
		this._currId <= 0 && (this._currId = 1), this._currBean = App.config.q_ArtifaceContainer.getDataBean(this._currId);
		var t = App.config.q_ArtifaceContainer.getDataBean(this._currId + 1);
		if (t || (t = this._currBean), t) {
			this._currJie = t.q_class, this._view.img_jie0.source = ResPathUtil.getIcon("nameTitle" + this._currJie,
					"image/artifact"), this._view.jiedes_txt0.text = t.q_icon_info, this._view.jiebuff_img0.source = ResPathUtil.getIcon(
					"buffTitle" + this._currJie, "image/artifact"), this._currJieBeanArr = this.dataCenter.getJieBeanArr(this._currJie),
				this.createItem();
			var e = this._currJieBeanArr.length,
				i = void 0,
				n = void 0;
			this._view.jh_txt.text = "已激活", this._view.jh_txt.textColor = 3261441, this._view.jh_img0.visible = !1;
			for (var a = 0; 8 > a; a++)
				if (i = this._currItemArr[a], e > a)
					if (i.visible = !0, 2 >= e ? (i.x = this._chipPos2[a].x, i.y = this._chipPos2[a].y, i.setAll(2)) : 4 >= e ? (i.x =
							this._chipPos4[a].x, i.y = this._chipPos4[a].y, i.setAll(2)) : 5 >= e ? (i.x = this._chipPos5[a].x, i.y = this
							._chipPos5[a].y, i.setAll(1)) : 6 >= e ? (i.x = this._chipPos6[a].x, i.y = this._chipPos6[a].y, i.setAll(1)) :
						(i.x = this._chipPos8[a].x, i.y = this._chipPos8[a].y, i.setAll(1)), n = this._currJieBeanArr[a], i.refresh(n.q_id),
						this.dataCenter.id >= n.q_id);
					else if (this._view.jh_txt.text = "未激活", this._view.jh_txt.textColor = 16711680, this._view.jh_img0.visible = !0,
				App.data.taskCenter.getThreadTaskShowGuide(6) && 0 == this._currPage) {
				var o = StringUtil.JsonParse(n.q_num);
				App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num && n.q_id > App.data.getArtifactDataCenter().id && (
					a % 2 == 0 ? this.guide.show("点击激活碎片", Guide.LEFT, i.x + 323, i.y + 30, this._view.item_group) : this.guide.show(
						"点击激活碎片", Guide.RIGHT, i.x - 150, i.y + 30, this._view.item_group))
			} else this.guide.hide();
			else i.visible = !1, i.refresh(0);
			this._view.con_bw.y = 0, 0 == this._view.jh_img0.visible && this._currJie - 1 < this._itemArr.length && this._itemArr[
				this._currJie - 1].createEffect(this._currJie)
		}
		this._currPage >= 1 || !this.dataCenter.getJieBeanArr(this._currJie + 1) ? this._view.nextBtn.visible = !1 : this._view
			.nextBtn.visible = !0, this._currJie <= 1 ? this._view.preBtn.visible = !1 : this._view.preBtn.visible = !0
	}, e.prototype.createItem = function() {
		var t, e = this._itemArr.length,
			i = this.dataCenter.id;
		this.dataCenter.id <= 0 && (i = 1);
		var n = App.config.q_ArtifaceContainer.getDataBean(i + 1);
		n || (n = App.config.q_ArtifaceContainer.getDataBean(i));
		for (var a = e; a < n.q_class + 1; a++) this.dataCenter.getJieBeanArr(a + 1) && (t = new ArtifacRender, t.dataChanged(
			a + 1), this._view.con_bw.addChild(t), t.x = 414 * a, t.y = 0, this._itemArr.push(t), this._isFrist = !0);
		this._currJie - 1 < this._itemArr.length && this._itemArr[this._currJie - 1].dataChanged(this._currJie), this._isFrist &&
			(this._view.scrollerItem.dataPushEnd(this._currJie - 1), this._isFrist = !1)
	}, Object.defineProperty(e.prototype, "dataCenter", {
		get: function() {
			return App.data.getArtifactDataCenter()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(ArtifactPanel.prototype, "ArtifactPanel");
var CombinatorialArtifactItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CombinatorialArtifactItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.show(), this._iconCimg = new CImage, this._iconCimg.scaleX = .45, this._iconCimg.scaleY = .45, this._iconCimg.x =
			10, this._iconCimg.y = 6, this.icon_group.addChild(this._iconCimg)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._iconCimg && this._iconCimg.dispose(), this._iconCimg = null, this.parent && this.parent.removeChild(this), t.prototype
			.dispose.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this), this._dispatcher.addEventListener(EnumEvent.EVENT_SUITGODEQUIP_UP, this.onLvUp, this)
	}, e.prototype.onLvUp = function(t) {
		this._data && this._data.id == t.id && (this._data.convert(t), this.refresh(this._data))
	}, e.prototype.onClick = function(t) {
		null == this.filters ? App.panel.openPanel(117, this._data) : this._data.bean.q_artifact_id == App.data.getArtifactDataCenter()
			.getCurrJie() + 1 ? App.panel.openPanel(108, App.data.zoneCenter.guanQiaCenter.id) : Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">请先激活神器</font>")
	}, e.prototype.refresh = function(t) {
		this._data = t;
		var e = StringUtil.JsonParse(t.bean.q_num),
			i = GameUtil.getItemNameColor(e[0].id, !0);
		this.name_txt.text = t.getName(), this.name_txt.textColor = i, this._iconCimg.url = ResPathUtil.getIcon(t.bean.q_pos,
				"image/target"), this.lv_txt.text = "Lv" + t.lv, this.lv_txt.textColor = i, t.lv <= 0 ? this.filters = FilterUtil
			.FILTER_GRAY : this.filters = null
	}, e
}(ViewBase);
__reflect(CombinatorialArtifactItem.prototype, "CombinatorialArtifactItem");
var CombinatorialArtifactPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this._window.imgTitle.source = "titleview_zhugeshenqi_png", this.addChild(this._window),
			this._window.imgBottom.visible = !1, this._btnClose = this._window.close_btn, this._currList = new VScrollPanel(
				628, 810, CombinatorialArtifactRender, 6), this._currList.y = 65, this._currList.x = 6, this._window.viewContainer
			.addChild(this._currList)
	}, e.prototype.hide = function() {
		this._currList.removeAll(), this._window.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._currList.dispose(), this._currList = null, this._window.dispose(), this._window = null, t.prototype.dispose.call(
			this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._window.show(), ArtifactCommandSender.sendSuitGodEquipListMessage(),
			this._dispatcher.addEventListener(EnumEvent.EVENT_SUITGODEQUIP_LIST, this.onRefresh, this)
	}, e.prototype.onRefresh = function() {
		this._currList.dataProvider = App.data.getArtifactDataCenter().artfactArr;
		for (var t = App.data.getArtifactDataCenter().artfactArr, e = 1; e <= t.length; e++) {
			var i = App.data.getArtifactDataCenter().suitId(e);
			App.data.getArtifactDataCenter().taozhuangHash.put(e, i)
		}
	}, e
}(BasePanel);
__reflect(CombinatorialArtifactPanel.prototype, "CombinatorialArtifactPanel");
var CombinatorialArtifactRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CombinatorialArtifactRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(t) {}, e.prototype
		.clear = function() {
			if (this._temList) {
				for (var t = 0; 4 > t; t++) this._temList[t].dispose(), this._temList[t] = null;
				this._temList = null
			}
		}, e.prototype.dataChanged = function() {
			var t;
			if (!this._temList) {
				this._temList = [];
				for (var e = 0; 4 > e; e++) t = new CombinatorialArtifactItem, this.addChild(t), t.x = 4 + 155 * e, t.y = 48, this
					._temList.push(t)
			}
			for (var i = this.data, e = 0; 4 > e; e++) t = this._temList[e], t.refresh(i[e]);
			this.imgtitle.source = "artifact_title" + i[0].hor + "_png";
			var n = App.data.getArtifactDataCenter().suitId(i[0].hor),
				a = App.config.q_artifact_suitContainer.getDataBean(n);
			a ? (this.des_txt.textColor = 16757336, this.needlv_txt.textColor = 11639929) : (a = App.data.getArtifactDataCenter()
					.getFristSuitBean(i[0].hor), this.needlv_txt.textColor = this.des_txt.textColor = 7829367), this.needlv_txt.textFlow =
				HtmlUtil.getHtmlStr(a.q_des1), this.des_txt.text = a.q_des2
		}, e
}(ItemRenderer);
__reflect(CombinatorialArtifactRender.prototype, "CombinatorialArtifactRender");
var CombinatorialArtifactUpLvPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this._window.setTitle("神器升级"), this._window.height = 729, this.addChild(this._window),
			this._view = new CombinatorialArtifactUpLvView, this._window.viewContainer.addChild(this._view), this._btnClose =
			this._window.close_btn
	}, e.prototype.hide = function() {
		this._window.hide(), this._view.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._window.show(), this._view.show(e)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 520
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 729
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CombinatorialArtifactUpLvPanel.prototype, "CombinatorialArtifactUpLvPanel");
var CombinatorialArtifactUpLvView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._barW = 495, e._flag = !0, e._id = 0, e.euiSkinName = "CombinatorialArtifactUpLvSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._bg.dispose(), this._bg = null, this._iconCimg && this._iconCimg.dispose(), this._iconCimg = null, this.barMask =
			null, this.bar_img.mask = null, this._baseAttributeDataBean = null, TweenMax.killTweensOf(this._iconCimg), t.prototype
			.dispose.call(this)
	}, e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("bg_031", "", ".jpg"), 4, 50, !1), this.addChildAt(
				this._bg, 0), this._iconCimg = new CImage, this._iconCimg.x = 115, this._iconCimg.y = 130, this.addChild(this._iconCimg),
			this.barMask = new egret.Rectangle(0, 0, this._barW, 27), this.bar_img.mask = this.barMask, TweenMax.to(this._iconCimg,
				.7, {
					y: this._iconCimg.y - 30,
					repeat: -1,
					yoyo: !0,
					ease: Linear.easeOut
				})
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onUpBtnClick, this, this.up_btn), this._dispatcher.addEventListener(EnumEvent.EVENT_SUITGODEQUIP_UP, this.onLvUp,
			this), this.refresh(e)
	}, e.prototype.onLvUp = function(t) {
		this._data && this._data.id == t.id && (this._data.convert(t), this.refresh(this._data), this.showNewSkill(1e3 *
			this._data.id + this._data.lv))
	}, e.prototype.showNewSkill = function(t) {
		var e = App.data.getArtifactDataCenter().artfactArr,
			i = App.config.q_artifact_upgradeContainer.getDataBean(t);
		if (e && i) {
			var n = i.q_artifact_position,
				a = (e.length, App.data.getArtifactDataCenter().suitId(n)),
				o = App.data.getArtifactDataCenter().taozhuangHash.get(n);
			a > o && (EffectUtils.showSuccessEffect(this, this), App.data.getArtifactDataCenter().taozhuangHash.put(n, a))
		}
	}, e.prototype.onUpBtnClick = function() {
		this._flag ? ArtifactCommandSender.sendSuitGodEquipUpMessage(this._data.id, this._data.lv) : App.panel.openPanel(19,
			this._id)
	}, e.prototype.refresh = function(t) {
		if (this._data = t, this.lv_txt.text = "等级:" + t.lv, this._iconCimg.url = ResPathUtil.getIcon(t.bean.q_pos,
				"image/target"), App.config.q_artifact_upgradeContainer.hasDataBean(1e3 * t.id + t.lv + 1)) {
			var e = App.config.q_artifact_upgradeContainer.getDataBean(1e3 * t.id + t.lv + 1);
			this.money_txt.visible = this.up_btn.visible = !0;
			var i = StringUtil.JsonParse(t.bean.q_num),
				n = App.data.bagItemDataCenter.getItemCount(i[0].id),
				a = void 0;
			i[0].num > n ? (a = "<font color='#F33333'>" + n + "</font>", this._flag = !1) : (a = "<font color='#35ea35'>" + n +
					"</font>", this._flag = !0), this._id = i[0].id, this.money_txt.textFlow = HtmlUtil.getHtmlStr(GameUtil.getItemConfigData(
					i[0].id).q_name + ":" + a + "/" + i[0].num), this.progress_num.text = t.exp + "/" + t.bean.q_exp, this.barMask.x =
				(0 == t.bean.q_exp ? this._barW : (t.exp / t.bean.q_exp > 1 ? 1 : t.exp / t.bean.q_exp) * this._barW) - this._barW,
				this.bar_img.mask = this.barMask, this.attr_txt.textFlow = HtmlUtil.getHtmlStr(this.getAtrrStr(e.q_add_attribute))
		} else this.money_txt.visible = this.up_btn.visible = !1, this.progress_num.text = "MAX", this.bar_img.width = this
			._barW, this.attr_txt.textFlow = HtmlUtil.getHtmlStr(this.getAtrrStr(this._data.bean.q_add_attribute))
	}, e.prototype.getAtrrStr = function(t) {
		return this._baseAttributeDataBean = null, this._baseAttributeDataBean = new BaseAttributeDataBean, this._baseAttributeDataBean
			.convertAndAdd(t), this._baseAttributeDataBean.getStrByBaseAttributeBean3(this._baseAttributeDataBean)
	}, e
}(ViewBase);
__reflect(CombinatorialArtifactUpLvView.prototype, "CombinatorialArtifactUpLvView");
var ArtifactData = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.modelId = 0, e.id = 0, e.lv = 0, e.exp = 0, e.hor = 1, e
	}
	return __extends(e, t), e.prototype.convert = function(t) {
		t.id > App.data.getArtifactDataCenter().getCurrJie() && (t.lv = 0), t.lv <= 0 ? this.modelId = 1e3 * t.id + 1 :
			this.modelId = 1e3 * t.id + t.lv, this.bean = App.config.q_artifact_upgradeContainer.getDataBean(this.modelId),
			this.bean && (this.hor = this.bean.q_artifact_position), this.id = t.id, this.lv = t.lv, this.exp = t.exp
	}, e.prototype.getName = function() {
		return App.data.getArtifactDataCenter().getName(this.bean.q_artifact_id)
	}, e
}(egret.HashObject);
__reflect(ArtifactData.prototype, "ArtifactData");
var ArtifactDataCenter = function() {
	function t() {
		this.id = -1, this.taozhuangHash = new HashObject, this._nameObj = {}, this.GetNearbyBean = function(t, e) {
			var i = [];
			if (1 != e[t].q_last) {
				for (var n = t, a = !0; a && !(0 > n);) 1 != e[n].q_last ? (i.push(e[n]), n--) : a = !1;
				for (var o = t, r = !0; r;) 1 != e[o].q_last ? (i.push(e[o]), o++) : (i.push(e[o]), r = !1)
			} else
				for (var n = t - 1, a = !0; a && !(0 > n);) 1 != e[n].q_last ? (i.push(e[n]), n--) : a = !1;
			return 1 == e[t].q_last && i.push(e[t]), ArrayUtil.uniq(i)
		}, this._redpoint = !1, this._suitNum = 10;
		for (var t = App.config.q_artifact_upgradeContainer.list, e = t.length, i = 0; e > i; i++) null == this._nameObj[t[i]
			.q_artifact_id] && (this._nameObj[t[i].q_artifact_id] = t[i].q_artifact_name)
	}
	return t.prototype.getName = function(t) {
		return this._nameObj[t]
	}, t.prototype.parseInfo = function(t) {
		this.id = t.id, App.dispatcher.dispatchEvent(EnumEvent.EVENT_ARTIFACT), this.getShowPoint(), App.dispatcher.dispatchEvent(
			EventType.SHOW_REDPOINT, 102)
	}, t.prototype.updataGradeUpInfo = function(t) {
		this.id = t.id, App.dispatcher.dispatchEvent(EnumEvent.EVENT_ARTIFACT_UP, this.id), App.dispatcher.dispatchEvent(
			EventType.SHOW_REDPOINT, 102)
	}, t.prototype.getCurrJie = function() {
		var t = App.config.q_ArtifaceContainer.getDataBean(this.id),
			e = App.config.q_ArtifaceContainer.getDataBean(this.id + 1);
		return e ? t ? e.q_class > t.q_class ? t.q_class : t.q_class - 1 > 0 ? t.q_class - 1 : 0 : 0 : t ? t.q_class : 0
	}, t.prototype.zuheisshowred = function() {
		if (this.artfactArr)
			for (var t = this.artfactArr.length, e = 0; t > e; e++)
				for (var i = this.artfactArr[e].length, n = 0; i > n; n++) {
					var a = this.artfactArr[e][n];
					if (a.lv > 0) {
						var o = StringUtil.JsonParse(a.bean.q_num);
						if (App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num) return this._redpoint = !0, this._redpoint
					}
				}
		return !1
	}, t.prototype.getShowPoint = function() {
		return this.zuheisshowred() ? !0 : (App.data.bagItemDataCenter.getPropItemList(38).length > 0 ? this._redpoint = !0 :
			this._redpoint = !1, this._redpoint)
	}, t.prototype.getJieBeanArr = function(t) {
		if (!this._beanObj) {
			var e = App.config.q_ArtifaceContainer.list,
				i = e.length;
			this._beanObj = new Object;
			for (var n = void 0, a = 0; i > a; a++) this._beanObj[e[a].q_class] ? n = this._beanObj[e[a].q_class] : (n = [],
				this._beanObj[e[a].q_class] = n), n.push(e[a])
		}
		return this._beanObj[t]
	}, t.prototype.getTargetBean = function(t) {
		for (var e, i = App.config.q_ArtifaceContainer.list, n = i.length, a = n - 1; a >= 0; a--) t < i[a].q_desc && (e =
			i[a]);
		return e
	}, t.prototype.getTargetBeanArr = function(t) {
		for (var e = App.config.q_ArtifaceContainer.list, i = e.length, n = 0; i > n; n++)
			if (t <= e[n].q_desc) return this.GetNearbyBean(n, e)
	}, t.prototype.initArtfactHash = function(t) {
		this.artfactArr = [];
		for (var e, i = 0; i < this._suitNum; i++) e = [], this.artfactArr.push(e);
		t.sort(this.sortFunc);
		for (var n, a = t.length, i = 0; a > i; i++) n = new ArtifactData, n.convert(t[i]), this.artfactArr[n.hor - 1].push(
			n);
		App.dispatcher.dispatchEvent(EnumEvent.EVENT_SUITGODEQUIP_LIST)
	}, t.prototype.sortFunc = function(t, e) {
		return t.id > e.id ? 1 : -1
	}, t.prototype.lvUpRefresh = function(t) {
		var e = new ArtifactData;
		e.convert(t);
		for (var i = this.artfactArr[e.hor - 1], n = i.length, a = 0; n > a; a++)
			if (i[a].id == e.id) {
				i[a] = e;
				break
			} App.dispatcher.dispatchEvent(EnumEvent.EVENT_SUITGODEQUIP_UP, t), App.dispatcher.dispatchEvent(EnumEvent.EVENT_SUITGODEQUIP_LIST)
	}, t.prototype.suitId = function(t) {
		for (var e = 0, i = this.artfactArr[t - 1], n = i.length, a = 999, o = 0; n > o; o++) i[o].lv < a && (a = i[o].lv);
		var r = this.initSuitBeanHash(t);
		n = r.length;
		for (var o = 0; n > o; o++) a >= r[o].q_lv && (e = o == n - 1 ? r[o].q_id : r[o].q_id + 1);
		return e
	}, t.prototype.getFristSuitBean = function(t) {
		var e = this.initSuitBeanHash(t);
		return e[0]
	}, t.prototype.initSuitBeanHash = function(t) {
		if (!this._suitBeanHash) {
			this._suitBeanHash = new HashObject;
			for (var e = App.config.q_artifact_suitContainer.list, i = void 0, n = e.length, a = 0; n > a; a++) 0 == this._suitBeanHash
				.has(e[a].q_suit_id) ? (i = [], this._suitBeanHash.put(e[a].q_suit_id, i)) : i = this._suitBeanHash.get(e[a].q_suit_id),
				i.push(e[a])
		}
		return this._suitBeanHash.get(t)
	}, t.prototype.getOneArtifactAttr = function(t) {
		for (var e, i, n = 0; 10 > n; n++) {
			e = this.artfactArr[n], i = e.length;
			for (var a = 0; i > a; a++) e[a].lv > 0 && t.convertAndAdd(e[a].bean.q_add_attribute_client)
		}
		return t
	}, t.prototype.getFightPower = function() {
		var t = [App.config.q_ArtifaceContainer.getDataBean(this.id).q_add_attribute];
		return FightPowerUtil.getFightPower(t)
	}, t
}();
__reflect(ArtifactDataCenter.prototype, "ArtifactDataCenter");
var ArtifactCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5499, this.onS2C_treasureInfo), this.register(5500, this.onS2C_treasureAward), this.register(5583,
			this.onS2C_SuitGodEquipUpMessage), this.register(5581, this.onS2C_SuitGodEquipListMessage)
	}, e.prototype.onS2C_SuitGodEquipUpMessage = function(t) {
		var e = App.data.getArtifactDataCenter();
		e.lvUpRefresh(t)
	}, e.prototype.onS2C_SuitGodEquipListMessage = function(t) {
		var e = App.data.getArtifactDataCenter();
		e.initArtfactHash(t.suitGodEquips), App.global.redPoint.redPointDispatchEvent(102)
	}, e.prototype.onS2C_treasureInfo = function(t) {
		var e = App.data.getArtifactDataCenter();
		e.parseInfo(t)
	}, e.prototype.onS2C_treasureAward = function(t) {
		var e = App.data.getArtifactDataCenter();
		e.updataGradeUpInfo(t)
	}, e
}(BaseConnectionRegister);
__reflect(ArtifactCommandRegister.prototype, "ArtifactCommandRegister");
var ArtifactCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendTreasureInfo = function() {
		var t = this.createCmd(16423);
		this.sendCommand(t)
	}, e.sendUpGradeTreasuer = function() {
		var t = this.createCmd(16422);
		this.sendCommand(t)
	}, e.sendSuitGodEquipUpMessage = function(t, e) {
		var i = this.createCmd(16507);
		i.id = t, i.lv = e, this.sendCommand(i)
	}, e.sendSuitGodEquipListMessage = function() {
		var t = this.createCmd(16508);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(ArtifactCommandSender.prototype, "ArtifactCommandSender");
var NumberBitmapCache = function() {
	function t() {}
	return t.putNumberBitmap = function(t) {
		t.scaleX = 1, t.scaleY = 1, t.alpha = 1, this._numArr.push(t)
	}, t.getNumberData = function(t) {
		var e = this._dataDict.get(t);
		return e || (e = new NumberData(t), this._dataDict.put(t, e)), e
	}, t.putChar = function(t) {
		t.scaleX = 1, t.scaleY = 1, t.alpha = 1, this._charArr.push(t)
	}, t.getChar = function() {
		return this._charArr.length > 0 ? this._charArr.pop() : new h5_engine.GBitmap
	}, t.getNumberBitmap = function() {
		return this._numArr.length > 0 ? this._numArr.pop() : new NumberBitmap
	}, t.show = function(t, e, i, n, a, o) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = ""), void 0 === o && (o = 0);
		var r = this.getNumberBitmap();
		return "" != a ? (r.setSheetType(a), r.show(e, i, n, t, o)) : (r.setSheetType(t), r.show(e, i, n)), r
	}, t._dataDict = new HashObject, t._charArr = [], t._numArr = [], t
}();
__reflect(NumberBitmapCache.prototype, "NumberBitmapCache");
var BagExtendPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowThird, this.addChild(this._window), this._window.setTitle("开启背包"), this._view = UIMaker.createViewBase(
			"BagExtendSkin"), this._window.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btnSub), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnAdd),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnCancel), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnSure), this._dispatcher.addEventListener(
				ItemEvent.BAG_OPEN_GRID, this.refresh, this), this.refresh()
	}, e.prototype.refresh = function() {
		var t = this.bagCenter.getYbBuyCountLimit() - this.bagCenter.ybBuyCount;
		this._view.txtBagNum.text = t >= 10 ? "10" : "0", this.calculateYuanBao()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 378
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 344
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onClick = function(e) {
		switch (e.currentTarget) {
			case this._view.btnSub:
				this.txtNum >= 20 && (this._view.txtBagNum.text = this.txtNum - 10 + "", this.calculateYuanBao());
				break;
			case this._view.btnAdd:
				this.txtNum <= this.bagCenter.getYbBuyCountLimit() - this.bagCenter.ybBuyCount - 10 && (this._view.txtBagNum.text =
					this.txtNum + 10 + "", this.calculateYuanBao());
				break;
			case this._view.btnCancel:
				this.onClose();
				break;
			case this._view.btnSure:
				if (this.txtNum > 0)
					if (this.bagCenter.equipBagCapacity + this.txtNum >= this.bagCenter.getGridCountLimit()) Notice.showNoticeTypeMsg(
						Notice.BOTTOM, "超过背包容量上限");
					else {
						var i = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO),
							n = this.bagCenter.buyValue(this.txtNum);
						i >= n ? (t.prototype.onClose.call(this), ItemCommandSender.sendStoreOpenCell(1, this.txtNum)) : (
							PanelOpenManager.openChargePanel(n), Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
								">元宝不足</font>"))
					}
		}
	}, Object.defineProperty(e.prototype, "txtNum", {
		get: function() {
			return Number(this._view.txtBagNum.text)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.calculateYuanBao = function() {
		var t = this.bagCenter.buyValue(this.txtNum);
		this._view.lalYuanBao.text = t + ""
	}, Object.defineProperty(e.prototype, "bagCenter", {
		get: function() {
			return App.data.bagItemDataCenter
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(BagExtendPanel.prototype, "BagExtendPanel");
var BagPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowMain, this.addChild(this.window), this._btnClose = this.window.close_btn, this.window.imgTitle
			.source = "titleview_beibao_png", this.window.showRoleList(!1), this._view = UIMaker.createViewBase("BagSkin"),
			this.window.viewContainer.addChild(this._view), this._tab = this.window.showTab("装备,道具,符石,魔蛋"), this._gridLayer =
			new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, BagItemCenter.COL, 38, 46), this._gridLayer.getController().layerGapY +=
			25, this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM,
				GridLayout.TEXT_COUNT
			]), this._gridLayer.useScroller(600, 710), this._gridLayer.setCallback(new FunctionVO(this.onGridClick, this)),
			this._gridLayer.moveTo(50, 95, this.window.viewContainer)
	}, e.prototype.onGridClick = function(t) {
		var e = t;
		e[0] && 20003 == e[0].data.itemId && App.panel.openPanel(104)
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabSelectHandler, this, this._tab), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAdd, this, this._view.btnAdd), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onRecover, this, this._view.btnRecover), this._dispatcher.addEventListener(
				ItemEvent.ADD, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.onUpdate, this),
			this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onUpdate, this), this._dispatcher.addEventListener(
				ItemEvent.BAG_OPEN_GRID, this.bagOpenGrid, this), this._dispatcher.addEventListener(EventType.SHOW_REDPOINT, this
				.showPoint, this), this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resizeGuide, this)
	}, e.prototype.resizeGuide = function() {
		if (App.data.taskCenter.getThreadTaskShowGuide(4)) {
			var t = this.localToGlobal(408, 799).x;
			this.guide.show("点击熔炼装备", Guide.RIGHT, t - 150, this._view.btnRecover.y + 30, this._view.btnRecover, !0, t, this._view
				.btnRecover.y)
		}
	}, e.prototype.showPoint = function(t) {
		2 == t && (this._tab.setRedSign(0, App.data.bagItemDataCenter.isFull()), this._tab.setRedSign(1, App.data.bagItemDataCenter
			.hasLiBao()))
	}, e.prototype.tabSelectHandler = function(t) {
		this._gridLayer.stopScroller(), this.refresh()
	}, e.prototype.bagOpenGrid = function() {
		this.updateCount()
	}, e.prototype.onUpdate = function(t, e) {
		if (void 0 === e && (e = 0), t && t.length > 0) {
			var i = t[0];
			i.tag == this._tab.selectedIndex && this.refresh()
		}
	}, e.prototype.refresh = function() {
		switch (this._tab.selectedIndex) {
			case 0:
				var t = void 0;
				App.panel.isShowing(18) ? (t = App.data.bagItemDataCenter.getBagList(BagTag.EQUIP), t.length < 30 && (this._gridLayer
					.dataProvider = t)) : (t = App.data.bagItemDataCenter.getBagList(BagTag.EQUIP, !0), this._gridLayer.dataProvider =
					t), this._equipNum = t.length, this.toggleBottomVisible(!0), this.updateCount();
				break;
			case 1:
				this._gridLayer.dataProvider = App.data.bagItemDataCenter.getBagList(BagTag.PROP, !0), this.toggleBottomVisible(!
					1);
				break;
			case 2:
				this._gridLayer.dataProvider = App.data.bagItemDataCenter.getBagList(BagTag.FUSHI), this.toggleBottomVisible(!1);
				break;
			case 3:
				this._gridLayer.dataProvider = App.data.bagItemDataCenter.getBagList(BagTag.PET_EGG, !0), this.toggleBottomVisible(
					!1)
		}
	}, e.prototype.toggleBottomVisible = function(t) {
		this._view.kongbaitishi.visible = 0 == this._gridLayer.dataProvider.length, this._view.lal1.visible = t, this._view
			.imgCapacityBg.visible = t, this._view.labelCapacity.visible = t, this._view.btnAdd.visible = t, this._view.btnRecover
			.visible = t
	}, e.prototype.onAdd = function(t) {
		PanelOpenManager.openPanel(43)
	}, e.prototype.onRecover = function(t) {
		this.hideGuide(this._view.btnRecover, 408, 799), App.global.funcOpen.isFunctionOpen(19, null, !0) &&
			PanelOpenManager.openPanel(18)
	}, e.prototype.updateCount = function() {
		this._view.labelCapacity.text = this._equipNum + "/" + App.data.bagItemDataCenter.equipBagCapacity
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addListeners(), this._tab.selectedIndex = 0, this.showPoint(2), this.window.show(),
			this.timeOut = egret.setTimeout(this.resizeGuide, this, 50)
	}, e.prototype.hide = function() {
		this.hideGuide(this._view.btnRecover, 408, 799), t.prototype.hide.call(this), this._gridLayer.clear(), this._tab.selectedIndex = -
			1, this._tab.clear(), this.window.hide(), this.timeOut && (egret.clearTimeout(this.timeOut), this.timeOut = 0)
	}, e.prototype.dispose = function() {
		this._gridLayer.dispose(), this._gridLayer = null, this._view = null, this._equipNum = 0, t.prototype.dispose.call(
			this)
	}, e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this._view.addChild(t), t.x = e, t.y = i)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(BagPanel.prototype, "BagPanel");
var BagRecoveryPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.OpenRecovrySetting = function() {
			App.panel.openPanel(1818100)
		}, e.recoverySuccess = !0, e.playing = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window.close_btn, this._window.imgTitle
			.source = "titleview_ronglian_png", this._view = UIMaker.createViewBase("BagRecoverySkin"), this._window.viewContainer
			.addChild(this._view), this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 3, 110, 120), this._gridLayout
			.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM]), this._gridLayout.setShowTip(
				!1), this._gridLayout.setCallback(new FunctionVO(this.onGridClick, this)), this._gridLayout.moveTo(110, 120, this
				._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.OrgrinState(), this.addListener(), this.refresh(), App.data.taskCenter.getThreadTaskShowGuide(
				4) && this.guide.show("点击熔炼装备", Guide.RIGHT, this._view.btnRecover.x - 150, this._view.btnRecover.y + this.y + 30,
				this._view), null == this._bg ? (this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("bg", "bag",
				".jpg"), 0, 57), this._view.addChildAt(this._bg, 0)) : this._bg.url = ResPathUtil.getImgPath("bg", "bag", ".jpg"),
			this.recoveryEffect = EffectUtils.showCEffect("BagRecoveryPanel", this, ResPathUtil.getMenuEffect("recovery",
				"1_1"), 320, 540), this.updateCount(), this._gridLayout.visible = !0, App.data.moonCardCenter.iszhizuntequan() ?
			(this._view.btnRecover.labelDisplay.text = "一键熔炼", this._view.fast_key.visible = !1, this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.fastRecovery, this, this._view.btnRecover)) : (App.global.funcOpen.isFunctionOpen(
				154) ? (this._view.fast_key.visible = !0, this._view.fast_key.textFlow = new Array({
				text: "开启一键熔炼",
				style: {
					underline: !0
				}
			})) : this._view.fast_key.visible = !1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onBegin,
				this, this._view.btnRecover), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this,
				this._view.btnRecover), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.allRecovery, this,
				this._view.btnRecover))
	}, e.prototype.OrgrinState = function() {
		this._gridLayout.visible = !0, this._gridLayout.scaleX = 1, this._gridLayout.scaleY = 1, this.recoverySuccess = !0
	}, e.prototype.onGridClick = function(t) {
		var e = this._itemDataArr.indexOf(t[0].itemData);
		if (-1 != e) {
			this._itemDataArr.splice(e, 1);
			var i = this._itemDataArr.concat();
			this._gridLayout.dataProvider = i
		}
	}, e.prototype.addListener = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, this), this._dispatcher.addEventListener(
			ForgeEvent.RECOVERYRESULT, this.onRecoveryResult, this), this._dispatcher.addEventListener(ItemEvent.ADD, this.updateCount,
			this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.updateCount, this), this._dispatcher.addEventListener(
			ItemEvent.CHANGE, this.updateCount, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openPrivilege,
			this, this._view.fast_key), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.OpenRecovrySetting,
			this, this._view.btnRecoverSetting), this._dispatcher.addEventListener(EventType.BAG_RECOVERY_FRESH, this.refresh,
			this), this._window.show()
	}, e.prototype.fastRecovery = function() {
		for (var t = App.data.bagItemDataCenter.getRecoveryEquips(), e = [], i = 0; i < t.length; i++) e.push(t[i].int64Id);
		if (e.length > 0) {
			this.showEffect(e.length, e);
			var n = App.panel.isShowing(4),
				a = n ? 1 / .3 : 1;
			App.sound.playSound(EnumSoundId.RECOVERY, 0, a)
		}
		this.hideGuide(this._view.btnRecover, 392, 799)
	}, e.prototype.openPrivilege = function() {
		App.panel.openPanel(60, {
			selectedIndex: 4
		})
	}, e.prototype.onBegin = function(t) {
		this.recoverySuccess && App.timer.doTimeLoop(this, 200, this.allRecovery)
	}, e.prototype.onEnd = function(t) {
		App.timer.clearTimer(this.allRecovery, this)
	}, e.prototype.refresh = function() {
		var t = App.data.bagItemDataCenter.getRecoveryEquips();
		if (t.length >= 9) {
			this._itemDataArr = t.slice(0, 9);
			var e = this._itemDataArr.concat();
			this._gridLayout.dataProvider = e
		} else {
			this._itemDataArr = t;
			var e = this._itemDataArr.concat();
			this._gridLayout.dataProvider = e
		}
		this._gridLayout.x = 0, this._gridLayout.y = 0;
		for (var i = 0; 4 > i; i++) {
			var n = this._gridLayout.getRenderData(i);
			n.x = 110 + 110 * i, n.y = 100
		}
		for (var i = 4; 7 > i; i++) {
			var n = this._gridLayout.getRenderData(i);
			n.x = 160 + 110 * (i - 4), n.y = 220
		}
		for (var i = 7; 9 > i; i++) {
			var n = this._gridLayout.getRenderData(i);
			n.x = 210 + 110 * (i - 7), n.y = 340
		}
	}, e.prototype.allRecovery = function(t) {
		if (this.recoverySuccess) {
			for (var e = [], i = 0; i < this._itemDataArr.length; i++) e.push(this._itemDataArr[i].int64Id);
			if (e.length > 0) {
				this.showEffect(e.length, e);
				var n = App.panel.isShowing(4),
					a = n ? 1 / .3 : 1;
				App.sound.playSound(EnumSoundId.RECOVERY, 0, a)
			}
			this.hideGuide(this._view.btnRecover, 392, 799)
		}
	}, e.prototype.fireEffect = function(t) {
		ItemCommandSender.sendEquipHuiShou(t), this._gridLayout.visible = !1, this._gridLayout.scaleX = 1, this._gridLayout
			.scaleY = 1
	}, e.prototype.onRecoveryResult = function(t, e, i) {
		this.recoverySuccess = !0, App.data.bagItemDataCenter.getRecoveryEquips().length > 0 && 0 == this._gridLayout.visible &&
			(this._gridLayout.visible = !0, this.refresh())
	}, e.prototype.showEffect = function(t, e) {
		App.timer.doTimeOnce(this, 200, this.noPlay), this.euquEffect(t), this.movePlay(e), App.timer.doTimeOnce(this, 150,
			this.delayEffect)
	}, e.prototype.delayEffect = function() {
		EffectUtils.showOnceEffect("BagRecoveryPanel", this, ResPathUtil.getMenuEffect("recovery", "1_2"), 335, 500)
	}, e.prototype.movePlay = function(t) {
		this.recoverySuccess = !1, TweenLite.to(this._gridLayout, .15, {
			x: 270,
			y: 540,
			scaleX: .2,
			scaleY: .2,
			onComplete: this.fireEffect,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.noPlay = function() {
		this.playing = !1
	}, e.prototype.hide = function() {
		TweenLite.killTweensOf(this._gridLayout), this.hideGuide(this._view.btnRecover, 392, 799), t.prototype.hide.call(
			this), this._bg && this._bg.clear(), this._window.hide(), App.timer.clearTimer(this.allRecovery, this)
	}, e.prototype.dispose = function() {
		this._bg && (this._bg.dispose(), this._bg = null), this.recoveryEffect && this.recoveryEffect.dispose(), this._gridLayout
			.dispose(), this._gridLayout = null, this._itemDataArr = null, this._view.dispose(), this._view = null, this._window &&
			(this._window.dispose(), this._window = null), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this._view.addChild(t), t.x = e, t.y = i, App.dispatcher.dispatchEvent(
			EventType.BACKGUIDE))
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.euquEffect = function(t) {
		t > 9 && (t = 9);
		for (var e = 0; t > e; e++) 4 > e && EffectUtils.showOnceEffect("BagRecoveryPanel", this, ResPathUtil.getMenuEffect(
			"recovery", "1_0"), 160 + 110 * e, 150), 7 > e && e > 3 && EffectUtils.showOnceEffect("BagRecoveryPanel", this,
			ResPathUtil.getMenuEffect("recovery", "1_0"), 210 + 110 * (e - 4), 270), e > 6 && EffectUtils.showOnceEffect(
			"BagRecoveryPanel", this, ResPathUtil.getMenuEffect("recovery", "1_0"), 260 + 110 * (e - 7), 390)
	}, e.prototype.updateCount = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = 0);
		var i = App.data.bagItemDataCenter.getBagList(BagTag.EQUIP);
		this._equipNum = i.length, this._view.labelCapacity.text = this._equipNum + "/" + App.data.bagItemDataCenter.equipBagCapacity
	}, e
}(BasePanel);
__reflect(BagRecoveryPanel.prototype, "BagRecoveryPanel");
var BagZoneAlertPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowThird, this.addChild(this._window), this._window.setTitle("提 示"), this.textField = UIMaker
			.getTextField(this, this, 0, 100, 378, 80, 16315319, 24), this.textField.textAlign = egret.HorizontalAlign.CENTER,
			this.textField.verticalAlign = egret.VerticalAlign.MIDDLE, this.textField.lineSpacing = 10, this.textField.textFlow =
			HtmlUtil.getHtmlStr("背包空间不足<font color='#f33333'> 20 </font>,请先清理背包"), this._window.addChild(this.textField), this
			.button = new eui.Button, this.button.skinName = "ButtonSmallSkin", this.button.x = 221, this.button.y = 232, this
			.button.label = "前往熔炼", this._window.addChild(this.button), this.button2 = new eui.Button, this.button2.skinName =
			"ButtonSmallSkin", this.button2.x = 39, this.button2.y = 232, this.button2.label = "扩大背包", this._window.addChild(
				this.button2), this.setWidthAndHeight(378, 344)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this.button), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick2, this, this.button2)
	}, e.prototype.onClick = function(t) {
		this.onClose(), App.panel.openPanel(18)
	}, e.prototype.onClick2 = function(t) {
		this.onClose(), App.panel.openPanel(43)
	}, e
}(BasePanel);
__reflect(BagZoneAlertPanel.prototype, "BagZoneAlertPanel");
var MakeItemShowRewardPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bgCimg = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("showreward_bg")), this._titleImg = UIMaker.getImage(
			this, e, "titleview_showreward_bg_png", 144, -20), this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
			5, 20, 30), this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT,
			GridLayout.TEXT_BOTTOM
		]), this._gridLayer.moveTo(185, 685, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.update(e)
	}, e.prototype.addEffect = function(t, e, i) {
		this._titleImg.visible = !1;
		var n = App.thing.create(CEffect, "MakeItemShowRewardPanel", !0);
		return n.url = ResPathUtil.getMenuEffect("main", t), n.x = e, n.y = i, n.addParent(this), n.play(), n
	}, e.prototype.endEffct = function() {}, e.prototype.onTimer = function() {
		this._bgCimg.visible = this._gridLayer.visible = this._titleImg.visible = !0
	}, e.prototype.update = function(t) {
		if (t) {
			App.timer.doTimeOnce(this, 200, this.onTimer), this._bgCimg.visible = this._gridLayer.visible = this._titleImg.visible = !
				1, this._effect && (this._effect.dispose(), this._effect = null), this._effect = this.addEffect("itemGet", 245.5,
					12.5);
			var e = [],
				i = t.length,
				n = Math.ceil(i / 5) + 1;
			n > 4 ? this.setWidthAndHeight(496, 367 + 70 * n) : this.setWidthAndHeight(496, 367);
			for (var a, o = 0; i > o; o++) egret.is(t[o], "ItemData") ? e.push(t[o]) : (a = new ItemData, a.itemId = t[o].itemModelId,
				a.count = t[o].itemNum, e.push(a));
			this._gridLayer.dataProvider = e, this._gridLayer.moveTo(496 - this._gridLayer.width >> 1, 60)
		}
	}, e.prototype.hide = function() {
		this._effect && this._effect.dispose(), this._effect = null, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._bgCimg.dispose(), this._bgCimg = null, this.removeChild(this._titleImg), this._titleImg = null, this._gridLayer
			.dispose(), this._gridLayer = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(MakeItemShowRewardPanel.prototype, "MakeItemShowRewardPanel");
var NameChangePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this._window.setHeight(302), this.addChild(this._window), this._view = UIMaker.createViewBase(
				"NameChangeSkin"), this._window.viewContainer.addChild(this._view), this._view.txtMsg.type = egret.TextFieldType.INPUT,
			this._btnClose = this._window.close_btn, this._window.setTitle("改名"), this._view.player_name.text = "现在的名字：" + App
			.global.characterData.name;
		var t = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("border_014"), 122, 122),
			e = new egret.Rectangle(24, 13, 46, 20);
		t.scale9Grid = e, t.width = 285, t.height = 49, this._window.addChild(t), this._view.txtMsg.maxChars = 7
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_IN, this.onTexClick, this,
				this._view.txtMsg), this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_OUT, this.onTexOutClick, this, this._view
				.txtMsg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btn), this
			._view.txtMsg.text = "点击输入要修改的名字"
	}, e.prototype.onClick = function() {
		CharacterUICommandSender.sendC2S_ChangePlayerNameMessage(this._view.txtMsg.text), App.panel.removePanel(104)
	}, e.prototype.onTexClick = function() {
		"点击输入要修改的名字" == this._view.txtMsg.text && (this._view.txtMsg.text = "")
	}, e.prototype.onTexOutClick = function() {
		"" == this._view.txtMsg.text && (this._view.txtMsg.text = "点击输入要修改的名字")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 302
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(NameChangePanel.prototype, "NameChangePanel");
var RecovrySettingPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.StayOneEquips = function() {
			e._settingData.stayEquips = !e._settingData.stayEquips
		}, e.MetemFilter = function() {
			e._settingData.metemFilter = e._combo_filter.currentData.data
		}, e.ChoseWhite = function() {
			e._settingData.whiteEquips = !e._settingData.whiteEquips
		}, e.ChoseGreen = function() {
			e._settingData.greenEquips = !e._settingData.greenEquips
		}, e.ChosePurple = function() {
			e._settingData.purpleEquips = !e._settingData.purpleEquips
		}, e.ChoseOrange = function() {
			e._settingData.orangeEquips = !e._settingData.orangeEquips
		}, e.ChoseRed = function() {
			e._settingData.redEquips = !e._settingData.redEquips
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"RecovrySettingSkin"), this._window.viewContainer.addChild(this._view), this._window.setHeight(500), this._window
			.setTitle("熔炼设置"), this._btnClose = this._window.close_btn, this._combo_filter = new ComboxList, this._combo_filter
			.x = 35, this._combo_filter.y = 440, this._view.addChild(this._combo_filter);
		for (var t = [], e = 0; 12 > e; e++) {
			var i = new ComItemVo("guild_equip_sx_bg_png", e + 1 + "转及以下", e + 1);
			t.push(i)
		}
		this._combo_filter.setList(t, t[11])
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.DefaultSetting();
		var i = [];
		if (App.global.characterData.zhuanSheng <= 3) {
			var n = App.global.characterData.zhuanSheng;
			0 >= n && (n = 1);
			for (var a = 0; n > a; a++) {
				var o = new ComItemVo("guild_equip_sx_bg_png", a + 1 + "转及以下", a + 1);
				i.push(o)
			}
		} else
			for (var r = App.global.characterData.zhuanSheng - 3; r < App.global.characterData.zhuanSheng; r++) {
				var s = new ComItemVo("guild_equip_sx_bg_png", r + 1 + "转及以下", r + 1);
				i.push(s)
			}
		this._combo_filter.setList(i, i[i.length - 1])
	}, e.prototype.DefaultSetting = function() {
		this._settingData = App.global.characterData.recoverySettingData, this._view.white_equip.selected = this._settingData
			.whiteEquips, this._view.green_equip.selected = this._settingData.greenEquips, this._view.purple_equip.selected =
			this._settingData.purpleEquips, this._view.orange_euqip.selected = this._settingData.orangeEquips, this._view.red_equip
			.selected = this._settingData.redEquips, this._view.check_stay.selected = this._settingData.stayEquips
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.StayOneEquips, this, this._view.check_stay),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ChoseWhite, this, this._view.white_equip), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ChoseGreen, this, this._view.green_equip), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ChosePurple, this, this._view.purple_equip), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.ChoseOrange, this, this._view.orange_euqip), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.ChoseRed, this, this._view.red_equip), this._combo_filter.addEventListener(
				ComboxList.EVENT_CURRENT_CHANGE, this.MetemFilter, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.dispatcher.dispatchEvent(EventType.BAG_RECOVERY_FRESH), this._combo_filter.removeEventListener(
			ComboxList.EVENT_CURRENT_CHANGE, this.MetemFilter, this), App.global.characterData.recoverySettingData = this._settingData
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 500
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view = null, this._settingData = null, this._combo_filter = null
	}, e
}(BasePanel);
__reflect(RecovrySettingPanel.prototype, "RecovrySettingPanel");
var BossPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("个人BOSS,世界BOSS,VIPBOSS,灵台秘境,神兽遗迹"), this.registerSubPanel(0,
				BossPersonalView, "titleview_gerenboss_png", 134), this.registerSubPanel(1, BossFieldView,
				"titleview_shijieboss_png", 90), this.registerSubPanel(2, BossHomeView, "titleview_title_bosszhijia_png", 91),
			this.registerSubPanel(3, BossSecretView, "titleview_title_mijing_png", 135), this.registerSubPanel(4,
				BossEquipView, "titleview_title_taozhuang_png", 167)
	}, e.prototype.show = function(e) {
		BossRemindEffect.isPlaying && (e = e ? e : {}, e.selectedIndex || (e.selectedIndex = 1)), t.prototype.show.call(
			this, e)
	}, e
}(TabPanel);
__reflect(BossPanel.prototype, "BossPanel");
var BossPlayerList2Panel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isMe = !1, e.euiSkinName = "BossPlayerList2PanelSkin", e.init(), e.initShow(), e
	}
	return __extends(e, t), Object.defineProperty(e, "_attackID", {
		get: function() {
			return this.__attackID
		},
		set: function(t) {
			this.__attackID = t, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_UPDATE_TARGET)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(276, 220, BossPlayerItem2Render, 0), this._vscroller.move(0, 86, this)
	}, e.prototype.initShow = function() {
		this.btn_boss_to.visible = !1, this.lbCount.visible = !1, this.lbRank.visible = !1, this.lbCount.text = "我的伤害量：0",
			this.lbRank.text = "我的伤害排名：1"
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), e._targetList = [], this.initShow(), this._dispatcher.addEventListener(ZoneEvent.ZONE_UPDATE_TARGET,
				this.updateTarget, this), this._dispatcher.addEventListener(PlayerAttributeEvent.ADD_ATTACKER, this.addAttacker,
				this), this._dispatcher.addEventListener(PlayerAttributeEvent.REMOVE_ATTACKER, this.removeAttacker, this), this._dispatcher
			.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.clear2, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.OTHER_ROLE_DEAD_ALL, this.removeAttacker, this), this._dispatcher.addEventListener(EventType
				.BOSS_PLAYERLIST_CHANGE, this.onChangePlayerList, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onAttackBoss, this, this.btn_boss_to), this._bossID = App.data.boss.bossID;
		var n = App.data.boss,
			a = App.config.q_monsterContainer.getDataBean(n.bossModelID);
		this.lbInfo.text = "" + a.q_name, this.onAttackBoss(), this.onUpdate(), this.updateShowBossState()
	}, e.getMapPlayerInfo = function(t) {
		for (var i = 0; i < e._targetList.length; i++) {
			var n = e._targetList[i];
			if (n.personId == t) return n
		}
		return null
	}, e.prototype.removeAttacker = function(t) {
		var i = App.global.mapModule.mapAvatarModel.getRoleData(t);
		if (i) {
			var n = e._targetList.indexOf(i);
			e._targetList.splice(n, 1), this.onUpdate()
		} else if (e._targetList && e._targetList.length > 0)
			for (var a, o = e._targetList.length, r = 0; o > r; r++)
				if (a = e._targetList[r], a.personId == t) return e._targetList.splice(r, 1), void this.onUpdate()
	}, e.prototype.addAttacker = function(t) {
		var i = App.global.mapModule.mapAvatarModel.getRoleData(t);
		i && (e._targetList.push(i), this.onUpdate())
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), e._targetList = []
	}, e.prototype.onAttackBoss = function(t) {
		e._attackID = this._bossID, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._bossID)
	}, e.prototype.onUpdate = function() {
		this.onChangePlayerList()
	}, e.prototype.setContent = function(t) {
		this._data = t
	}, e.prototype.onChangePlayerList = function() {
		this._vscroller.dataProvider = [];
		for (var t = App.global.characterData, e = [], i = 0; i < App.data.zoneCenter.mapBossPlayList.length; i++) {
			var n = App.data.zoneCenter.mapBossPlayList[i],
				a = new DataVo;
			a.vo = n, a.index = i + 1, LongUtil.toString(n.playerId) == t.personId && (this.lbCount.text = "我的伤害量：" +
				StringUtil.formatMoney(n.value.toNumber()), this.lbRank.text = "我的伤害排名：" + a.index, this.lbCount.visible = !0,
				this.lbRank.visible = !0), e.push(a)
		}
		this._vscroller.dataProvider = e
	}, e.prototype.updateTarget = function(t) {
		this.onChangePlayerList(), this.updateShowBossState()
	}, e.prototype.updateShowBossState = function() {
		App.global.characterData;
		e._attackID == this._bossID ? (this.btn_boss_to.source = "boss_fighting_png", this.btn_boss_to.visible = !0) : (
			this.btn_boss_to.visible = !0, this.btn_boss_to.source = "boss_strike_png")
	}, e.prototype.clear2 = function() {
		e._targetList = [], this.onUpdate()
	}, e.prototype.dispose = function() {
		this._data = null, this._vscroller && (this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose.call(
			this)
	}, e._targetList = [], e
}(ViewBase);
__reflect(BossPlayerList2Panel.prototype, "BossPlayerList2Panel");
var DataVo = function() {
	function t() {}
	return t
}();
__reflect(DataVo.prototype, "DataVo");
var BossPlayerListPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isMe = !1, e.euiSkinName = "BossPlayerListPanelSkin", e.init(), e
	}
	return __extends(e, t), Object.defineProperty(e, "_attackID", {
		get: function() {
			return this.__attackID
		},
		set: function(t) {
			this.__attackID = t, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_UPDATE_TARGET)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(276, 240, BossPlayerItemRender, 0), this._vscroller.move(0, 153, this)
	}, e.prototype.initShow = function() {
		this.btn_boss_to.visible = !1, this.selfImg.visible = !1, this.btn_owner_to.visible = !1, this.lbOwner.text = "",
			this.ownerGroup.visible = !1;
		GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		this.lbOwner.y = 10, this.hpGroup.y = 36, this.lbTime.visible = !1
	}, e.getMapPlayerInfo = function(t) {
		for (var i = 0; i < e._targetList.length; i++) {
			var n = e._targetList[i];
			if (n.personId == t) return n
		}
		return null
	}, e.prototype.removeAttacker = function(t) {
		var i = App.global.mapModule.mapAvatarModel.getRoleData(t);
		if (i) {
			var n = e._targetList.indexOf(i);
			e._targetList.splice(n, 1), this.onUpdate()
		} else if (e._targetList && e._targetList.length > 0)
			for (var a, o = e._targetList.length, r = 0; o > r; r++)
				if (a = e._targetList[r], a.personId == t) return e._targetList.splice(r, 1), void this.onUpdate()
	}, e.prototype.addAttacker = function(t) {
		var i = App.global.mapModule.mapAvatarModel.getRoleData(t);
		i && (e._targetList.push(i), this.onUpdate())
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), e._targetList = [], this.initShow(), this._dispatcher.addEventListener(ZoneEvent.ZONE_UPDATE_TARGET,
				this.updateTarget, this), this._dispatcher.addEventListener(EventType.BOSS_PLAYERLIST_CHANGE, this.onChangePlayerList,
				this), this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.clear2, this), this._dispatcher
			.addEventListener(PlayerAttributeEvent.ADD_ATTACKER, this.addAttacker, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.REMOVE_ATTACKER, this.removeAttacker, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.OTHER_ROLE_DEAD_ALL, this.removeAttacker, this), this._dispatcher.addEventListener(EventType
				.BOSS_OWNER_CHANGE, this.onChangeOwner, this), this._dispatcher.addEventListener(EventType.LAST_ATTACK_ROLE_CHANGE,
				this.onAttack, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAttackBoss, this, this
				.btn_boss_to), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAttackOwner, this, this.btn_owner_to),
			this._bossID = App.data.boss.bossID;
		var n = App.data.boss,
			a = App.config.q_monsterContainer.getDataBean(n.bossModelID);
		this.lbInfo.text = "" + a.q_name, this.initOwner(), this.onAttackBoss(), this.onChangePlayerList(), this.updateTarget()
	}, e.prototype.initOwner = function() {
		var t = App.global.characterData;
		e._ownerID = t.personId, this.ownerGroup.visible = !0, this._isMe = e._ownerID == t.personId, this.updateShowOwnerState();
		var i = t.hp,
			n = t.maxHp;
		0 == n || 0 == i ? this.hpBar.width = 0 : this.hpBar.width = Math.floor(107 * i / n * 100) / 100, this.selfImg.visible =
			this._isMe, this.lbOwner.text = t.name, this.lbOwner.visible = !0, this.lbTime.text = "" + StringUtil.converTime2(
				0), this.imgHead.source = GridUtil.getHead(t.job, t.sex)
	}, e.prototype.updateTarget = function(t) {
		this.updateShowBossState(), this.updateShowOwnerState()
	}, e.prototype.onAttackBoss = function(t) {
		e._attackID = this._bossID, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._bossID)
	}, e.prototype.onAttackOwner = function(t) {
		e._ownerID && (e._attackID = e._ownerID, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, e._ownerID))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), e._targetList = []
	}, e.prototype.onUpdate = function() {
		this.onChangePlayerList()
	}, e.prototype.setContent = function(t) {
		this._data = t
	}, e.prototype.onChangePlayerList = function() {
		this._vscroller.dataProvider = [];
		var t = [];
		console.log("length" + App.data.zoneCenter.mapBossPlayList.length + ":" + e._ownerID);
		for (var i = 0; i < App.data.zoneCenter.mapBossPlayList.length; i++) {
			var n = App.data.zoneCenter.mapBossPlayList[i];
			if (LongUtil.toString(n.playerId) == e._ownerID) {
				this.ownerGroup.visible = !0;
				var a = App.global.characterData;
				this._isMe = e._ownerID == a.personId, this.updateShowOwnerState();
				var o = n.curHp,
					r = n.maxHp;
				0 == r || 0 == o ? this.hpBar.width = 0 : this.hpBar.width = Math.floor(107 * o / r * 100) / 100, this.selfImg.visible =
					this._isMe, this.lbOwner.text = n.playername, this.lbOwner.visible = !0, this.lbTime.text = "" + StringUtil.converTime2(
						n.value.toNumber() / 1e3), this.lbTime.visible = !1, this.imgHead.source = GridUtil.getHead(n.job, n.sex)
			} else LongUtil.toString(n.playerId) != App.global.characterData.personId && t.push(n)
		}
		this._vscroller.dataProvider = t
	}, e.prototype.onChangeOwner = function(t) {
		this._bossID == LongUtil.toString(t.monsterId) && (e._ownerID = LongUtil.toString(t.ownerId), this.ownerGroup.visible =
			"-1" == e._ownerID ? !1 : !0, this.onChangePlayerList())
	}, e.prototype.onAttack = function(t) {
		return null == t ? void this.onAttackBoss() : void(ZoneUtil.isBoss(t) && this.onAttackBoss())
	}, e.prototype.updateShowOwnerState = function() {
		var t = App.global.characterData;
		if (void 0 == e._ownerID || e._ownerID == t.personId) this.btn_owner_to.visible = !1;
		else if (e._attackID == e._ownerID) this.btn_owner_to.source = "boss_fighting_png", this.btn_owner_to.visible = !0;
		else {
			this.btn_owner_to.visible = !0;
			var i = e.getMapPlayerInfo(e._ownerID);
			i ? this.btn_owner_to.source = "boss_strikeback_png" : this.btn_owner_to.source = "boss_strike_png"
		}
	}, e.prototype.updateShowBossState = function() {
		App.global.characterData;
		e._attackID == this._bossID ? (this.btn_boss_to.source = "boss_fighting_png", this.btn_boss_to.visible = !0) : (
			this.btn_boss_to.visible = !0, this.btn_boss_to.source = "boss_strike_png")
	}, e.prototype.clear2 = function() {
		e._targetList = [], this.onUpdate()
	}, e.prototype.dispose = function() {
		this._data = null, this._vscroller && (this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose.call(
			this)
	}, e._targetList = [], e
}(ViewBase);
__reflect(BossPlayerListPanel.prototype, "BossPlayerListPanel");
var BossFieldItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossHomeTitleSkin", e
	}
	return __extends(e, t), e.prototype.setContent = function(t, e) {
		this.type = t, null == this.bg && (this.bg = UIMaker.getCImage(null, this, null, 7, 8, !0), this.addChildAt(this.bg,
			0)), this.bg.url = ResPathUtil.getImgPath("boss" + e, "boss")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this);
		var i = this.getFunctionID(this.type),
			n = App.config.q_functionContainer.getDataBean(i);
		if (n) {
			var a = App.global.funcOpen.isFunctionOpen(i);
			this.bg_lock.visible = !a, this.open_txt.text = a ? "" : n.q_describe_func
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.setSelceted(!1)
	}, e.prototype.setSelceted = function(t) {
		this._selected != t && (this._selected = t, t && this.executeWith())
	}, e.prototype.onTouch = function(t) {
		this.setSelceted(!0)
	}, e.prototype.executeWith = function() {
		if (null != this.callback) {
			var t = [this.type];
			this.args && t.concat(this.args), this.callback.exec(t)
		}
	}, e.prototype.getFunctionID = function(t) {
		return t == EnumZoneType.WILD_BOSS ? 90 : t == EnumZoneType.GOD_BOSS ? 76 : t == EnumZoneType.KUANGFENG_BOSS ? 167 :
			t == EnumZoneType.HONGMO_BOSS ? 168 : t == EnumZoneType.QIDAO_BOSS ? 169 : t == EnumZoneType.LUNHUI_BOSS ? 156 :
			void 0
	}, e.prototype.dispose = function() {
		this.bg && (this.bg.dispose(), this.bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossFieldItem.prototype, "BossFieldItem");
var BossHomeItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "BossHomeItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._hp = new HpBar, this._hp.setUiComponent(this.bar, null, 244, 23, null, .05)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn_go), null == this._gridLayer && (this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL,
				5, 32, 38), this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM]),
			this._gridLayer.moveTo(188, 68, this)), null == this._icon && (this._icon = UIMaker.getCImage(this, this, null,
			65, 47))
	}, e.prototype.dataChanged = function() {
		this._zoneData = this.data;
		var t = this._zoneData.bean;
		this.zhuansheng_txt.text = t.q_min_metem_lv > 0 ? t.q_min_metem_lv + "转" : t.q_min_lv + "级", t.q_zone_client_type ==
			EnumZoneType.LUNHUI_BOSS && (this.zhuansheng_txt.text = t.q_tips), this._gridLayer.dataProvider = ItemUtil.getShowItems(
				t.q_show_item);
		var e = App.data.boss.getZoneBoss(this._zoneData.id);
		if (e) {
			this.name_txt.text = e.bean.q_name + (Config.isDebug ? this._zoneData.id : ""), this._icon.url = ResPathUtil.getHead(
				e.bean.q_faceid + "", EnumImageType.BOSS_HEAD), this._hp.setValue(Number(e.hpPrecent), 100), App.timer.serverTimeEnd(
				this, this.onTimer, e.endTime);
			var i = App.global.characterData;
			i.zhuanSheng < t.q_min_metem_lv ? (this._showBtn = this.btn_go.visible = !1, this.open_txt.text = t.q_min_metem_lv +
				"转开启", this.time_txt.y = 28) : i.level < t.q_min_lv ? (this._showBtn = this.btn_go.visible = !1, this.open_txt.text =
				t.q_min_lv + "级开启", this.time_txt.y = 28) : (this.time_txt.y = this.open_txt.y, this._showBtn = !0, this.open_txt
				.text = "", this.btn_go.visible = e.endTime <= 0)
		} else this.name_txt.text = "没有BOSS数据" + this._zoneData.id;
		0 == this.itemIndex && App.data.taskCenter.getThreadTaskShowGuide(12) && (this.btn_go.visible = !0, this.time_txt.text =
			"", App.timer.clearTimer(this.onTimer, this), Guide.getGuide().show("点击挑战", Guide.RIGHT, this.btn_go.x - 175,
				this.btn_go.y + 25, this))
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? (this.btn_go.visible = !1, this.time_txt.text = StringUtil.convertTime(t.spuleTime) + "后重生") : (
			this.btn_go.visible = this._showBtn, this.time_txt.text = "", App.timer.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		if (this._zoneData.type == EnumZoneType.WILD_BOSS || this._zoneData.type == EnumZoneType.GOD_BOSS || this._zoneData
			.type == EnumZoneType.LUNHUI_BOSS) {
			var e = this._zoneData.type == EnumZoneType.WILD_BOSS ? EnumItemId.BOSS_CHALLENGE : EnumItemId.BOSS_CHALLENGE_GOD,
				i = App.data.bagItemDataCenter.getItemCount(e) + App.data.boss.getZoneCount(this._zoneData.type);
			if (this._zoneData.type == EnumZoneType.LUNHUI_BOSS && (i = App.data.boss.getZoneCount(this._zoneData.type)), i >
				0) {
				if (App.data.taskCenter.getThreadTaskShowGuide(12) && ZoneCommandSender.sendC2S_ZoneIntoMessage(EnumZoneID.BOSS_ZONE_ID,
						EnumZoneType.SPECIAL_STORY_ZONE)) return Guide.getGuide().hide(), void App.panel.removePanel(29);
				ZoneCommandSender.sendC2S_ZoneIntoMessage(this._zoneData.id, this._zoneData.type) && App.panel.removePanel(29)
			} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">进入次数不足，无法进入副本</font>")
		} else ZoneCommandSender.sendC2S_ZoneIntoMessage(this._zoneData.id, this._zoneData.type) && App.panel.removePanel(
			29)
	}, e.prototype.clear = function() {
		App.timer.clearTimer(this.onTimer, this), this._zoneData = null, this._gridLayer && this._gridLayer.dispose(), this
			._gridLayer = null, this._icon && this._icon.dispose(), this._icon = null, t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossHomeItemRender.prototype, "BossHomeItemRender");
var BossHomeTitleItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossHomeTitleSkin", e.groupVip.visible = !0, e
	}
	return __extends(e, t), e.prototype.setContent = function(t) {
		this.vipLv = t, null == this.bg && (this.bg = UIMaker.getCImage(null, this, null, 7, 8, !0), this.addChildAt(this.bg,
			0)), this.bg.url = ResPathUtil.getImgPath("boss_" + t, "boss")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this);
		var i = App.global.characterData;
		i.vipLevel < this.vipLv ? (this.vip.visible = !0, this.vip.source = "common1_VIP" + this.vipLv + "_png", this.imgOpen
			.visible = !0) : (this.vip.visible = !1, this.imgOpen.visible = !1)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.setSelceted(!1)
	}, e.prototype.setSelceted = function(t) {
		this._selected != t && (this._selected = t, this.imgSelected.visible = t, t && this.executeWith())
	}, e.prototype.onTouch = function(t) {
		this.setSelceted(!0)
	}, e.prototype.executeWith = function() {
		if (null != this.callback) {
			var t = [this.vipLv];
			this.args && t.concat(this.args), this.callback.exec(t)
		}
	}, e.prototype.dispose = function() {
		this.bg && (this.bg.dispose(), this.bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossHomeTitleItem.prototype, "BossHomeTitleItem");
var BossItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isDead = !1, e.skinName = "BossItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn), this._dispatcher.addEventListener(BossEvent.SELECTED_ITEM, this.onSelected, this)
	}, e.prototype.onSelected = function(t) {
		this.btn.currentState = this.data.id == t.id ? "down" : "up"
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this._zoneData = this.data;
		var t = this._zoneData.bean;
		if (null != t) {
			var e = App.config.q_monsterContainer.getDataBean(Number(t.q_image));
			if (e) {
				var i = t.q_min_metem_lv > 0 ? t.q_min_metem_lv + "转" : t.q_min_lv + "级";
				i = "\n(" + i + ")", this._zoneData.type == EnumZoneType.MOON_CARD && (i = ""), this.btn.label = e.q_name + i
			} else this.btn.label = t.q_duplicate_name + t.q_id;
			if (App.timer.clearTimer(this.onTimer, this), t.q_zone_client_type == EnumZoneType.SECRET) {
				var n = App.data.boss.getZoneBoss(t.q_id);
				n && (this._isDead = !n.canKill, App.timer.serverTimeEnd(this, this.onTimer, n.endTime, [e.q_name]))
			} else this._isDead = this._zoneData.alreadyIntoNum > 0;
			var a = App.global.characterData;
			a.level < t.q_min_lv || t.q_min_metem_lv > a.zhuanSheng ? (this.btn.skinName = "ButtonBossLockSkin", this.imgNo.visible = !
					0, FilterUtil.gray(this, !1)) : (this.imgOK.visible = !this._isDead, this.btn.skinName = this._isDead ?
					"ButtonBossLockSkin" : "ButtonBossSkin", FilterUtil.gray(this, this._isDead), this.imgNo.visible = !1), -1 !=
				App.data.zoneCenter.personalBossCenter.selecetedID && (this.btn.currentState = App.data.zoneCenter.personalBossCenter
					.selecetedID == this._zoneData.id ? "down" : "up")
		}
	}, e.prototype.onTimer = function(t, e) {
		t.spuleTime > 0 ? this.btn.label = e + "\n" + StringUtil.convertTime(t.spuleTime) : this.btn.label = e + "\n已刷新"
	}, e.prototype.onTouch = function(t) {
		this.setSelected(!0)
	}, e.prototype.setSelected = function(t) {
		t && null != this._zoneData && !this._isDead ? (this.btn.currentState = "down", App.data.zoneCenter.personalBossCenter
				.selecetedID = this._zoneData.id, App.dispatcher.dispatchEvent(BossEvent.SELECTED_ITEM, this._zoneData)) : this.btn
			.currentState = "up"
	}, e.prototype.clear = function() {
		this._zoneData = null, t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossItemRender.prototype, "BossItemRender");
var BossPlayerItem2Render = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "BossPlayerItem2Skin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_UPDATE_TARGET, this.showData,
			this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.attackBtn)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.showData()
	}, e.prototype.showData = function(t) {
		GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		this.zoneRank = this.data, this.lbName.text = this.zoneRank.vo.playername, this.lbRank.text = "" + this.zoneRank.index,
			this.lbInfo.text = "" + StringUtil.formatMoney(this.zoneRank.vo.value.toNumber());
		var e = this.zoneRank.vo.curHp;
		if (0 >= e) return void(this.attackBtn.visible = !1);
		var i = App.global.characterData;
		if (i.personId == this.zoneRank.vo.playerId.toString()) return void(this.attackBtn.visible = !1);
		if (BossPlayerList2Panel._attackID == this.zoneRank.vo.playerId.toString()) this.attackBtn.source =
			"boss_fighting_png", this.attackBtn.visible = !0;
		else {
			this.attackBtn.visible = !0;
			var n = BossPlayerList2Panel.getMapPlayerInfo(this.zoneRank.vo.playerId.toString());
			n ? this.attackBtn.source = "boss_strikeback_png" : this.attackBtn.source = "boss_strike_png"
		}
	}, e.prototype.onTouch = function(t) {
		BossPlayerList2Panel._attackID = LongUtil.toString(this.zoneRank.vo.playerId), App.dispatcher.dispatchEvent(
			ZoneEvent.ZONE_FIGHT, LongUtil.toString(this.zoneRank.vo.playerId))
	}, e.prototype.clear = function() {
		t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossPlayerItem2Render.prototype, "BossPlayerItem2Render");
var BossPlayerItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "BossPlayerItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this.stage.addEventListener(egret.Event.RESIZE, function() {}, this), this._dispatcher
			.addEventListener(ZoneEvent.ZONE_UPDATE_TARGET, this.showData, this), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTouch, this, this.attackBtn)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.showData()
	}, e.prototype.showData = function(t) {
		this.zoneRank = this.data, this.lbName.text = this.zoneRank.playername, this.selfImg.visible = LongUtil.toString(
			this.zoneRank.playerId) == BossPlayerListPanel._ownerID, this.imgHead.source = GridUtil.getHead(this.zoneRank.job,
			this.zoneRank.sex);
		GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		this.lbName.y = 10, this.hpGroup.y = 36, this.lbTime.visible = !1, this.lbTime.text = "" + StringUtil.converTime2(
			this.zoneRank.value.toNumber() / 1e3);
		var e = this.zoneRank.curHp,
			i = this.zoneRank.maxHp;
		if (0 == i || 0 == e ? this.hpBar.width = 0 : this.hpBar.width = Math.floor(107 * e / i * 100) / 100, 0 >= e) return this
			.attackImg.visible = !1, void(this.attackBtn.visible = !1);
		var n = BossPlayerListPanel.getMapPlayerInfo(this.zoneRank.playerId.toString());
		n ? this.attackImg.visible = !0 : this.attackImg.visible = !1;
		var a = App.global.characterData;
		return a.personId == this.zoneRank.playerId.toString() ? (this.attackImg.visible = !1, void(this.attackBtn.visible = !
			1)) : void(BossPlayerListPanel._attackID == this.zoneRank.playerId.toString() ? (this.attackBtn.source =
			"boss_fighting_png", this.attackBtn.visible = !0) : (this.attackBtn.visible = !0, n ? this.attackBtn.source =
			"boss_strikeback_png" : this.attackBtn.source = "boss_strike_png"))
	}, e.prototype.onTouch = function(t) {
		BossPlayerListPanel._attackID = LongUtil.toString(this.zoneRank.playerId), App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT,
			LongUtil.toString(this.zoneRank.playerId))
	}, e.prototype.clear = function() {
		t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossPlayerItemRender.prototype, "BossPlayerItemRender");
var BossRemindItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "BossRemindItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.checkbox)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this._zoneData = this.data;
		var t = this._zoneData.bean;
		if (null != t) {
			this.lv_txt.text = t.q_min_metem_lv > 0 ? t.q_min_metem_lv + "转" : t.q_min_lv + "级";
			var e = App.global.characterData;
			e.zhuanSheng < t.q_min_metem_lv ? (this.checkbox.visible = this.remind_txt.visible = !1, this.no_txt.visible = !0) :
				e.level < t.q_min_lv ? (this.checkbox.visible = this.remind_txt.visible = !1, this.no_txt.visible = !0) : (this.checkbox
					.visible = this.remind_txt.visible = !0, this.no_txt.visible = !1), this.checkbox.selected = App.data.boss.getRemind(
					this._zoneData.id), this._bossData = App.data.boss.getData(Number(t.q_image)), null != this._bossData && (this.name_txt
					.text = this._bossData.name)
		}
	}, e.prototype.onTouch = function(t) {
		ZoneCommandSender.sendC2S_WildBossRefreshRemindMessage(this._zoneData.id, this.checkbox.selected)
	}, e.prototype.clear = function() {
		this._bossData = null, this._zoneData = null, t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossRemindItemRender.prototype, "BossRemindItemRender");
var BossRewardRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ItemGridSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.isShowJobImg = !0, this.red_img.visible = !
			1, this.lv_txt.visible = !1, this.name_txt.visible = !1, this.name_txt.size = 20, this.addChild(this.grid)
	}, e.prototype.dataChanged = function() {
		this.grid.setData(this.data)
	}, e.prototype.showData = function(t) {
		this.grid.setData(t), this.grid.isShowCount = !0
	}, e.prototype.hide = function() {}, e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null), t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(BossRewardRender.prototype, "BossRewardRender");
var BossDaoBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._avatarObj = {}, e._tag = {}, e.euiSkinName = "BossDaoBaoSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5, 32, 38), this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(185, 685, this), this.scroller.scrollPolicyV = eui.ScrollPolicy.OFF, this.scroller.bounces = !
			1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onPrev, this, this.btn_left), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onNext, this, this.btn_right), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate,
				this), this._dispatcher.addEventListener(eui.UIEvent.CHANGE_START, this.onStart, this, this.scroller), this._dispatcher
			.addEventListener(VScrollPanelMoveOne.EVENT_SCROLL_COMPLETE, this.onScrollerEnd, this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(
				EnumZoneType.DAOBAO_BOSS), null == this._bg && (this._bg = UIMaker.getCImage(null, this, null, 0, 60), this.addChildAt(
				this._bg, 0)), this._bg.url = ResPathUtil.getImgPath("bg_025", "", ".jpg")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onStart = function(t) {
		if (this._avatarObj)
			for (var e in this._avatarObj) this._avatarObj[e].visible = !0
	}, e.prototype.onScrollerEnd = function(t) {
		this._index = t, this.setContent(this._list[t])
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.DAOBAO_BOSS && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.DAOBAO_BOSS)
	}, e.prototype.bossUpdate = function(t) {
		if (t == EnumZoneType.DAOBAO_BOSS && (this._list = App.data.boss.getZoneBossList(EnumZoneType.DAOBAO_BOSS), this._list &&
				this._list.length > 0)) {
			this._index = 0;
			for (var e = 0; e < this._list.length; e++) {
				var i = this._list[e];
				null != i && this.addAvatarUI(i.id, i.bean.q_featureid, 4, e, i.daobaozeiType)
			}
			this.setContent(this._list[this._index]), this._list.length > 1 ? this.scroller.scrollPolicyH = eui.ScrollPolicy.ON :
				this.scroller.scrollPolicyH = eui.ScrollPolicy.OFF, this.scroller.dataPushEnd(0)
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.times_txt.text = "剩余逃跑时间:" + StringUtil.convertTime(t.spuleTime) : this.times_txt.text = ""
	}, e.prototype.setContent = function(t) {
		if (t) {
			App.timer.clearTimer(this.onTimer, this), this.scroller.viewport && (this._sh = this.scroller.viewport.scrollH),
				this._data = t;
			var e = GameUtil.getZoneBean(t.zoneID);
			if (e && e.q_show_item && (this._gridLayer.dataProvider = ItemUtil.getRewardDataList(e.q_show_item), this._gridLayer
					.moveTo(650 - this._gridLayer.width >> 1, 685)), App.timer.serverTimeEnd(this, this.onTimer, t.endTime), this.name_txt
				.text = t.name, this._avatarObj)
				for (var i in this._avatarObj) this._avatarObj[i].visible = i == t.daobaozeiType;
			this.btn_left.visible = this._index > 0, this.btn_right.visible = this._index < this._list.length - 1
		}
	}, e.prototype.onPrev = function(t) {
		this._list && (this._index--, this.scroller.scrollToLast(), this.onPage())
	}, e.prototype.onPage = function() {
		this._index = Math.max(0, Math.min(this._list.length - 1, this._index));
		var t = this._avatarObj[this._list[this._index].daobaozeiType];
		t && (t.visible = !0)
	}, e.prototype.onNext = function(t) {
		this._list && (this._index++, this.scroller.scrollToNext(), this.onPage())
	}, e.prototype.onGo = function(t) {
		this._data && ZoneCommandSender.sendC2S_ZoneIntoMessage(Number(this._data.daobaozeiType), EnumZoneType.DAOBAO_BOSS) &&
			App.panel.removePanel(112)
	}, e.prototype.addAvatarUI = function(t, e, i, n, a) {
		void 0 === i && (i = 3);
		var o = this._avatarObj[a];
		if (null == o) {
			var r = new eui.Group;
			r.touchEnabled = !0, this.groupBoss.addChild(r), o = new CUIShowAvatar, r.addChild(o), r.width = 510, r.height =
				570, o.x = this.groupBoss.width / 2, r.x = this.groupBoss.width * n, o.aniDirType = 1, o.touchEnabled = !1, o.touchChildren = !
				1, this._avatarObj[a] = o, this.scroller.viewport = this.groupBoss
		}
		o.dir = i, o.changeAvatarPartResource(AvatarPartType.BODY, ResPathUtil.getMapMonsterAvatarRes(e)), o.changeAct(
				AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1), o.playEndHanlder = new FunctionVO(this.endSkillAtk, this, o), o
			.play(), o.y = 2 * this.groupBoss.height / 3 + 100
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), t.playEndHanlder = null
	}, e.prototype.dispose = function() {
		if (App.timer.clearTimer(this.onTimer, this), this.scroller.dispose(), this._avatarObj) {
			for (var e in this._avatarObj) this._avatarObj[e].dispose();
			this._avatarObj = null
		}
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossDaoBaoView.prototype, "BossDaoBaoView");
var BossEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossWildSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.icon.visible = this.time_txt.visible = this.challenge_txt.visible = this.num_txt.visible = this.times_txt.visible = !
			1, this._types = [EnumZoneType.KUANGFENG_BOSS, EnumZoneType.HONGMO_BOSS, EnumZoneType.QIDAO_BOSS], this._functionIDs = [
				167, 168, 169
			], this._vscroller = new VScrollPanel(626, 645, BossHomeItemRender, 7), this._vscroller.move(14, 228, this), this.set_txt
			.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("提醒设置")), this._titles = [];
		for (var t, e = 0; e < this._types.length; e++) t = new BossFieldItem, t.callback = new FunctionVO(this.titleSelected,
			this), t.x = 206 * e, t.y = 0, t.setContent(this._types[e], e + 7), this.groupTitle.addChild(t), this._titles.push(
			t);
		this.scroller.viewport = this.groupTitle
	}, e.prototype.titleSelected = function(t) {
		this.setSelectedIndex(t[0])
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.set_txt);
		for (var i = 0; i < this._titles.length; i++) this._titles[i].show();
		this._titles[0].setSelceted(!0)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this), this._vscroller.removeAll(), this._msgObj =
			null, this._type = -1;
		for (var e = 0; e < this._titles.length; e++) this._titles[e].hide()
	}, e.prototype.setSelectedIndex = function(t) {
		if (-1 == t) Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">即将开放!敬请期待!</font>"), t = this._type;
		else {
			var e = this._types.indexOf(t);
			App.global.funcOpen.isFunctionOpen(this._functionIDs[e], "", !0) || (t = this._type)
		}
		for (var i = 0; i < this._titles.length; i++) this._titles[i].type != t ? (this._titles[i].setSelceted(!1), this._titles[
			i].imgSelected.visible = !1) : this._titles[i].imgSelected.visible = !0;
		if (this._vscroller.stopAnimation(), this._vscroller.viewport && (this._vscroller.viewport.scrollV = 0), this._type !=
			t) {
			if (this._type = t, this._type == EnumZoneType.WILD_BOSS) {
				var n = 0,
					a = App.config.q_vipContainer.getDataBean(App.global.characterData.vipLevel);
				a && (n = a.q_yewai_boss), this._total = App.config.q_globalContainer.getDataBean(241).q_int_value + n
			} else this._type == EnumZoneType.GOD_BOSS && (this._total = App.config.q_globalContainer.getDataBean(253).q_int_value);
			null == this._msgObj && (this._msgObj = {}), this._msgObj[this._type] ? this.bossUpdate(this._type) : (this._msgObj[
				this._type] = !0, ZoneCommandSender.sendC2S_ZoneInfoListMessage(this._type))
		}
	}, e.prototype.onUpdate = function(t) {
		t == this._type && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(this._type)
	}, e.prototype.bossUpdate = function(t) {
		if (t == this._type) {
			var e = App.data.zoneCenter.getList(this._type);
			e && e.length > 0 && (this._vscroller.dataProvider = e.concat().sort(this.sort)), this.num_txt.text = "(" + App.data
				.bagItemDataCenter.getItemCount(EnumItemId.BOSS_CHALLENGE) + ")", this.times_txt.text = App.data.boss.getZoneCount(
					t) + "/" + this._total, this.time_txt.text = "";
			var i = App.data.boss.getZoneEndtime(t);
			App.timer.serverTimeEnd(this, this.onTimer, i)
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = "(" + StringUtil.convertTime(t.spuleTime) + "恢复)" : (this.time_txt.text = "",
			App.timer.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(50, {
			type: this._type
		})
	}, e.prototype.dispose = function() {
		if (App.timer.clearTimer(this.onTimer, this), this._msgObj = null, this._vscroller && (this._vscroller.dispose(),
				this._vscroller = null), this._titles) {
			for (var e = 0; e < this._titles.length; e++) this._titles[e].dispose();
			this._titles = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.sort = function(t, e) {
		var i = App.data.boss.getRemind(t.id),
			n = App.data.boss.getRemind(e.id),
			a = App.data.boss.getZoneBoss(t.id),
			o = App.data.boss.getZoneBoss(e.id);
		if (i && !n) return -1;
		if (!i && n) return 1;
		if (a && !o) return -1;
		if (!a && o) return 1;
		if (!a && !o) return 0;
		var r = a.canKill,
			s = o.canKill;
		if (r && !s) return -1;
		if (!r && s) return 1;
		var h, l = t.bean.q_min_lv,
			p = e.bean.q_min_lv,
			c = t.bean.q_min_metem_lv,
			_ = e.bean.q_min_metem_lv,
			d = App.global.characterData;
		h = d.zhuanSheng < c ? !1 : d.level < l ? !1 : !0;
		var u;
		return u = d.zhuanSheng < _ ? !1 : d.level < p ? !1 : !0, h && !u ? -1 : !h && u ? 1 : h || u ? c > _ ? -1 : _ > c ?
			1 : l > p ? -1 : p > l ? 1 : 0 : c > _ ? 1 : _ > c ? -1 : l > p ? 1 : p > l ? -1 : 0
	}, e
}(ViewBase);
__reflect(BossEquipView.prototype, "BossEquipView");
var BossFieldView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossWildSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._types = [EnumZoneType.WILD_BOSS, EnumZoneType.GOD_BOSS, EnumZoneType.LUNHUI_BOSS], this._functionIDs = [90,
				76, 156
			], this._vscroller = new VScrollPanel(626, 645, BossHomeItemRender, 7), this._vscroller.move(14, 228, this), this.set_txt
			.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("提醒设置")), this._titles = [];
		for (var t, e = 0; e < this._types.length; e++) t = new BossFieldItem, t.callback = new FunctionVO(this.titleSelected,
			this), t.x = 206 * e, t.y = 0, t.setContent(this._types[e], e + 4), this.groupTitle.addChild(t), this._titles.push(
			t);
		this.scroller.viewport = this.groupTitle
	}, e.prototype.titleSelected = function(t) {
		this.setSelectedIndex(t[0])
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.set_txt);
		for (var i = 0; i < this._titles.length; i++) this._titles[i].show();
		this._titles[0].setSelceted(!0)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this), this._vscroller.removeAll(), this._msgObj =
			null, this._type = -1;
		for (var e = 0; e < this._titles.length; e++) this._titles[e].hide()
	}, e.prototype.setSelectedIndex = function(t) {
		if (-1 == t) Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">即将开放!敬请期待!</font>"), t = this._type;
		else {
			var e = this._types.indexOf(t);
			App.global.funcOpen.isFunctionOpen(this._functionIDs[e], "", !0) || (t = this._type)
		}
		for (var i = 0; i < this._titles.length; i++) this._titles[i].type != t ? (this._titles[i].setSelceted(!1), this._titles[
			i].imgSelected.visible = !1) : this._titles[i].imgSelected.visible = !0;
		if (this._vscroller.stopAnimation(), this._vscroller.viewport && (this._vscroller.viewport.scrollV = 0), this._type !=
			t) {
			if (this._type = t, this._type == EnumZoneType.WILD_BOSS) {
				var n = 0,
					a = App.config.q_vipContainer.getDataBean(App.global.characterData.vipLevel);
				a && (n = a.q_yewai_boss), this._total = App.config.q_globalContainer.getDataBean(241).q_int_value + n
			} else this._type == EnumZoneType.GOD_BOSS ? this._total = App.config.q_globalContainer.getDataBean(253).q_int_value :
				this._type == EnumZoneType.LUNHUI_BOSS && (this._total = App.config.q_globalContainer.getDataBean(299).q_int_value);
			null == this._msgObj && (this._msgObj = {}), this._msgObj[this._type] ? this.bossUpdate(this._type) : (this._msgObj[
				this._type] = !0, ZoneCommandSender.sendC2S_ZoneInfoListMessage(this._type))
		}
	}, e.prototype.onUpdate = function(t) {
		t == this._type && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(this._type)
	}, e.prototype.bossUpdate = function(t) {
		if (t == this._type) {
			var e = App.data.zoneCenter.getList(this._type);
			e && e.length > 0 && (this._vscroller.dataProvider = e.concat().sort(this.sort)), t == EnumZoneType.WILD_BOSS ? (
					this.num_txt.text = "(" + App.data.bagItemDataCenter.getItemCount(EnumItemId.BOSS_CHALLENGE) + ")", this.icon.visible = !
					0) : (this.num_txt.text = "", this.icon.visible = !1), this.times_txt.text = App.data.boss.getZoneCount(t) + "/" +
				this._total, this.time_txt.text = "";
			var i = App.data.boss.getZoneEndtime(t);
			i > 0 ? App.timer.serverTimeEnd(this, this.onTimer, i) : App.timer.clearTimer(this.onTimer, this), t ==
				EnumZoneType.LUNHUI_BOSS && (this.time_txt.text = "挑战次数0点重置")
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = "(" + StringUtil.convertTime(t.spuleTime) + "恢复)" : (this.time_txt.text = "",
			App.timer.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(50, {
			type: this._type
		})
	}, e.prototype.dispose = function() {
		if (App.timer.clearTimer(this.onTimer, this), this._msgObj = null, this._vscroller && (this._vscroller.dispose(),
				this._vscroller = null), this._titles) {
			for (var e = 0; e < this._titles.length; e++) this._titles[e].dispose();
			this._titles = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.sort = function(t, e) {
		var i = App.data.boss.getRemind(t.id),
			n = App.data.boss.getRemind(e.id),
			a = App.data.boss.getZoneBoss(t.id),
			o = App.data.boss.getZoneBoss(e.id);
		if (i && !n) return -1;
		if (!i && n) return 1;
		if (a && !o) return -1;
		if (!a && o) return 1;
		if (!a && !o) return 0;
		var r = a.canKill,
			s = o.canKill;
		if (r && !s) return -1;
		if (!r && s) return 1;
		var h, l = t.bean.q_min_lv,
			p = e.bean.q_min_lv,
			c = t.bean.q_min_metem_lv,
			_ = e.bean.q_min_metem_lv,
			d = App.global.characterData;
		h = d.zhuanSheng < c ? !1 : d.level < l ? !1 : !0;
		var u;
		return u = d.zhuanSheng < _ ? !1 : d.level < p ? !1 : !0, h && !u ? -1 : !h && u ? 1 : h || u ? c > _ ? -1 : _ > c ?
			1 : l > p ? -1 : p > l ? 1 : 0 : c > _ ? 1 : _ > c ? -1 : l > p ? 1 : p > l ? -1 : 0
	}, e
}(ViewBase);
__reflect(BossFieldView.prototype, "BossFieldView");
var BossGuildView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._avatarObj = {}, e._tag = {}, e.ShowToggleBtn = function() {
			e.guildBoss.currentState = "down", e.guildFight.currentState = "up", e.guildShop.currentState = "up", e.guildLiangong
				.currentState = "up", e.guildCangku.currentState = "up", e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					e.OpenJumpView, e, e.guildFight), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e,
					e.guildBoss), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e.guildShop), e._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e.guildLiangong), e._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e.guildCangku), e.guildBoss_red.visible = App.data.guildCenter.guildBossRed(),
				App.data.castleWarCenter.dayRewardShow() || App.data.castleWarCenter.shabakShow() ? e.guildFight_red.visible = !0 :
				e.guildFight_red.visible = !1, e.guildShop_red.visible = !1
		}, e.OpenJumpView = function(t) {
			var i = t.target;
			switch (i.label) {
				case "帮会仓库":
					if (!App.global.funcOpen.isFunctionOpen(209, "", !0)) return;
					break;
				case "练功房":
					if (!App.global.funcOpen.isFunctionOpen(208, "", !0)) return
			}
			switch (e.guildBoss.currentState = "up", e.guildFight.currentState = "up", e.guildShop.currentState = "up", e.guildShop
				.currentState = "up", e.guildShop.currentState = "up", i.currentState = "down", i.label) {
				case "帮会战":
					App.panel.isShowing(47) || App.panel.openPanel(47);
					break;
				case "帮会BOSS":
					App.panel.isShowing(201) || App.panel.openPanel(201);
					break;
				case "帮会商店":
					App.panel.isShowing(110) || App.panel.openPanel(110);
					break;
				case "帮会仓库":
					App.panel.isShowing(84) || App.panel.openPanel(84);
					break;
				case "练功房":
					App.panel.isShowing(83) || App.panel.openPanel(83)
			}
		}, e.euiSkinName = "BossGuildSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5, 32, 38), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(185, 685, this), this._hp = new HpBar, this._hp.setUiComponent(this.bar, null, 405, 15,
			this.bar_txt), this.scroller.setCallback(new FunctionVO(this.onStart, this), new FunctionVO(this.onEnd, this))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onPrev, this, this.btn_left), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onNext, this, this.btn_right), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate,
				this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.GUILD_BOSS), null == this._bg && (this._bg =
				UIMaker.getCImage(null, this, null, 0, 60), this.addChildAt(this._bg, 0)), this._bg.url = ResPathUtil.getImgPath(
				"bg_025", "", ".jpg"), this.ShowToggleBtn()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._hp.clear()
	}, e.prototype.onStart = function() {
		if (this._avatarObj)
			for (var t in this._avatarObj) this._avatarObj[t].visible = !0
	}, e.prototype.onEnd = function() {
		this._index = this.scroller.curItemCount, this.setContent(this._list[this._index])
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.GUILD_BOSS && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.GUILD_BOSS)
	}, e.prototype.bossUpdate = function(t) {
		if (t == EnumZoneType.GUILD_BOSS) {
			var e = App.data.boss.getZoneCount(t);
			if (e > 0 ? this.times_txt.textFlow = HtmlUtil.getHtmlStr("剩余次数:" + HtmlUtil.formatColor(e + "", 2863402) + "次") :
				this.times_txt.text = "剩余次数:0次", this._count = e, this._list = App.data.zoneCenter.getList(EnumZoneType.GUILD_BOSS,
					!1), this._list && this._list.length > 0) {
				this._index = 0;
				for (var i = -1, n = -1, a = 0; a < this._list.length; a++) {
					var o = App.data.boss.getZoneBoss(this._list[a].id);
					if (null != o) {
						if (o.hp > 0 && -1 == n && (n = a), this._list[a].zonedata2 && -1 == i && 0 == o.hp) {
							var r = StringUtil.JsonParse(this._list[a].zonedata2).hasWeekReward;
							0 == r && (i = a)
						}
						this.addAvatarUI(o.id, o.bean.q_featureid, 4, a)
					}
				} - 1 != i ? this._index = i : -1 != n ? this._index = n : this._index = this._list.length - 1, this.scroller.dataPushEnd(
					this._index), this.setContent(this._list[this._index])
			}
		}
	}, e.prototype.setContent = function(t) {
		this._data = t, t.zonedata2 && (this._tag[t.id] = StringUtil.JsonParse(t.zonedata2).hasWeekReward), t.bean.q_show_item &&
			(this._gridLayer.dataProvider = ItemUtil.getRewardDataList(t.bean.q_show_item), this._gridLayer.moveTo(650 - this._gridLayer
				.width >> 1, 685));
		var e = App.data.boss.getZoneBoss(t.id);
		if (this.name_txt.text = e.name, this._hp.setValue(e.hp, e.maxHp), this._cankill = e.hp > 0, this.imgKill.visible = !
			this._cankill, this.btn_go.label = this._cankill ? "挑 战" : "领 取", this._avatarObj)
			for (var i in this._avatarObj) this._avatarObj[i].visible = Number(i) == e.id;
		var n = !0;
		if (this._cankill)
			for (var a = 0; a < this._index; a++) {
				var o = App.data.boss.getZoneBoss(this._list[a].id);
				if (o && o.hp > 0) {
					n = !1;
					break
				}
			}
		this.btn_left.visible = this._index > 0, this.btn_right.visible = this._index < this._list.length - 1, this._cankill ?
			(this.btn_go.enabled = n, FilterUtil.gray(this.btn_go, !n), this.times_txt.visible = n) : (this.times_txt.visible = !
				1, this.btn_go.enabled = 0 == this._tag[t.id], FilterUtil.gray(this.btn_go, !this.btn_go.enabled))
	}, e.prototype.onPrev = function(t) {
		this._list && (this._index--, this._index = Math.max(0, Math.min(this._list.length - 1, this._index)), this.scroller
			.dataPushEnd(this._index), this.setContent(this._list[this._index]))
	}, e.prototype.onNext = function(t) {
		this._list && (this._index++, this._index = Math.max(0, Math.min(this._list.length - 1, this._index)), this.scroller
			.dataPushEnd(this._index), this.setContent(this._list[this._index]))
	}, e.prototype.onGo = function(t) {
		this._cankill ? this._count > 0 ? ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type) && App.panel
			.removePanel(201) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">进入次数不足，无法进入副本</font>") :
			0 == this._tag[this._data.id] && (this._tag[this._data.id] = this._tag[this._data.id] + 1, this._list[this._index]
				.zonedata2 = '{"hasWeekReward":1}', this.btn_go.enabled = !1, FilterUtil.gray(this.btn_go, !0), ZoneCommandSender
				.sendC2S_GuildBossRewardMessage(this._data.id))
	}, e.prototype.addAvatarUI = function(t, e, i, n) {
		void 0 === i && (i = 3);
		var a = this._avatarObj[t];
		if (null == a) {
			var o = new ViewBase;
			o.width = 520, o.x = 520 * n, this.groupBoss.addChild(o), a = new CUIShowAvatar, a.x = 260, o.addChild(a), a.aniDirType =
				1, a.touchEnabled = !1, a.touchChildren = !1, this._avatarObj[t] = a
		}
		a.dir = i, a.changeAvatarPartResource(AvatarPartType.BODY, ResPathUtil.getMapMonsterAvatarRes(e)), a.changeAct(
				AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1), a.playEndHanlder = new FunctionVO(this.endSkillAtk, this, a), a
			.play(), a.y = 2 * this.groupBoss.height / 3 + 125
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), t.playEndHanlder = null
	}, e.prototype.dispose = function() {
		if (this._avatarObj) {
			var e = void 0;
			for (var i in this._avatarObj) e = this._avatarObj[i], e && (e.parent && e.parent.removeChild(e), e.dispose()),
				delete this._avatarObj[i];
			this._avatarObj = null
		}
		this.scroller && (this.scroller.dispose(), this.scroller = null), this._gridLayer && (this._gridLayer.dispose(),
			this._gridLayer = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._hp && (this._hp.dispose(),
			this._hp = null), this._tag = null, this._list = null, this._data = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossGuildView.prototype, "BossGuildView");
var BossHomeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossHomeSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(626, 660, BossHomeItemRender, 7), this._vscroller.move(14, 216, this), this._titles = [];
		for (var t, e = App.data.zoneCenter.bossHomeCenter.getTitleList(), i = 0; i < e.length; i++) t = new BossHomeTitleItem,
			t.callback = new FunctionVO(this.titleSelected, this), t.x = 206 * i, t.y = 0, t.setContent(e[i]), this.groupTitle
			.addChild(t), this._titles.push(t);
		this.scroller.viewport = this.groupTitle, this.set_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(
			"BOSS提醒设置"))
	}, e.prototype.titleSelected = function(t) {
		this._vipLv = t[0];
		for (var e = 0; e < this._titles.length; e++) this._titles[e].vipLv != this._vipLv && this._titles[e].setSelceted(!
			1);
		this._vscroller.stopAnimation(), this._vscroller.viewport && (this._vscroller.viewport.scrollV = 0), this.vip.source =
			"common1_VIP" + this._vipLv + "_png";
		var i = App.data.zoneCenter.bossHomeCenter.getZoneList(this._vipLv);
		i && i.length > 0 && (this._vscroller.dataProvider = i), this._total = App.config.q_globalContainer.getDataBean(341)
			.q_int_value
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.set_txt);
		for (var i = 0; i < this._titles.length; i++) this._titles[i].show();
		ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.BOSS_HOME)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll();
		for (var e = 0; e < this._titles.length; e++) this._titles[e].hide()
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(50, {
			type: EnumZoneType.WILD_BOSS,
			vipLv: this._vipLv
		})
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.BOSS_HOME && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.BOSS_HOME)
	}, e.prototype.bossUpdate = function(t) {
		if (t == EnumZoneType.BOSS_HOME) {
			this._titles[0].setSelceted(!0), this._total = App.config.q_globalContainer.getDataBean(341).q_int_value, this.times_txt
				.text = App.data.boss.getZoneCount(t) + "/" + this._total;
			var e = App.data.boss.getZoneEndtime(t);
			App.timer.serverTimeEnd(this, this.onTimer, e)
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = "(" + StringUtil.convertTime(t.spuleTime) + "恢复)" : (this.time_txt.text = "",
			App.timer.clearTimer(this.onTimer, this))
	}, e.prototype.onGo = function(t) {
		ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type) && App.panel.removePanel(29)
	}, e.prototype.dispose = function() {
		if (App.timer.clearTimer(this.onTimer, this), this._data = null, this._vscroller && (this._vscroller.dispose(),
				this._vscroller = null), this._titles) {
			for (var e = 0; e < this._titles.length; e++) this._titles[e].dispose();
			this._titles = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossHomeView.prototype, "BossHomeView");
var BossPersonalView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 5, 32, 38), this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(170, 675, this), this._vscroller = new VScrollPanel(200, 523, BossItemRender, 0), this._vscroller
			.move(439, 125, this), this.desc_txt.textFlow = HtmlUtil.getHtmlStr("个人BOSS为单人挑战，每天" + HtmlUtil.formatColor("0",
				3533365) + "点重置")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(BossEvent.SELECTED_ITEM, this.setContent, this),
			this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(ZoneEvent.SAO_DANG,
				this.onFinishZone, this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.PERSONAL_BOSS), App.data.taskCenter
			.getThreadTaskShowGuide(11) && Guide.getGuide().show("点击挑战", Guide.RIGHT, this.btn_go.x - 150, this.btn_go.y + 30,
				this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.onFinishZone = function(t, e) {
		ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.PERSONAL_BOSS)
	}, e.prototype.onUpdate = function(t) {
		if (t == EnumZoneType.PERSONAL_BOSS) {
			var e = App.data.zoneCenter.getList(EnumZoneType.MOON_CARD),
				i = App.data.zoneCenter.getList(EnumZoneType.PERSONAL_BOSS, !0);
			if (i && i.length > 0) {
				App.data.zoneCenter.personalBossCenter.selecetedID = i[0].id;
				var n = i.concat();
				e && e.length > 0 && n.unshift(e[0]), this._vscroller.dataProvider = n, App.timer.doFrameOnce(this, 1, this.callLater)
			}
		}
	}, e.prototype.callLater = function() {
		this._vscroller.selectedIndex = 0;
		var t = this._vscroller.list.getChildAt(1);
		t && (t.btn.currentState = "down", this.setContent(t.data))
	}, e.prototype.setContent = function(t) {
		this._data = t, this._gridLayer.dataProvider = ItemUtil.getShowItems(t.bean.q_show_item), this._gridLayer.moveTo(
			624 - this._gridLayer.width >> 1, 675), this.name_txt.text = t.bean.q_duplicate_name + t.id;
		var e = App.config.q_monsterContainer.getDataBean(Number(t.bean.q_image));
		if (e) {
			this.addAvatarUI(e.q_featureid);
			var i = t.bean.q_min_metem_lv > 0 ? t.bean.q_min_metem_lv + "转" : t.bean.q_min_lv + "级";
			i = "(" + i + ")", this._data.type == EnumZoneType.MOON_CARD && (i = ""), this.name_txt.text = e.q_name + (Config.isDebug ?
				t.id : "")
		}
		var n = App.global.characterData;
		n.zhuanSheng < t.bean.q_min_metem_lv ? (this.btn_go.currentState = "down", FilterUtil.gray(this.btn_go, !0), this.btn_go
			.label = t.bean.q_min_metem_lv + "转开启") : n.level < t.bean.q_min_lv ? (this.btn_go.currentState = "down",
			FilterUtil.gray(this.btn_go, !0), this.btn_go.label = t.bean.q_min_lv + "级开启") : (this.btn_go.currentState = null,
			FilterUtil.gray(this.btn_go, !1), this.btn_go.label = "挑 战")
	}, e.prototype.onGo = function(t) {
		if (App.data.taskCenter.getThreadTaskShowGuide(11) && Guide.getGuide().hide(), this._data.type == EnumZoneType.MOON_CARD &&
			!App.data.moonCardCenter.isCardVip()) return void Alert.show("成为月卡会员,即可挑战月卡BOSS", "提示", "前往|取消", this.onAlert,
			this);
		if (ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type)) {
			App.data.zoneCenter.personalBossCenter.selecetedID = -1;
			App.global.characterData, this._data.bean.q_min_lv, this._data.bean.q_min_metem_lv;
			App.panel.removePanel(29)
		}
	}, e.prototype.onAlert = function(t) {
		PanelOpenManager.openPanel(60, {
			selectedIndex: 2
		})
	}, e.prototype.addAvatarUI = function(t, e) {
		void 0 === e && (e = 4), null == this._avatar && (this._avatar = new CUIShowAvatar, this.boxAvatar.addChild(this._avatar),
				this._avatar.x = this.boxAvatar.width / 2, this._avatar.aniDirType = 1, this._avatar.touchEnabled = !1, this._avatar
				.touchChildren = !1), this._avatar.dir = e, this._avatar.changeAvatarPartResource(AvatarPartType.BODY,
				ResPathUtil.getMapMonsterAvatarRes(t)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1),
			this._avatar.playEndHanlder = new FunctionVO(this.endSkillAtk, this), this._avatar.play(), this._avatar.y = 2 *
			this.boxAvatar.height / 3 + 50
	}, e.prototype.endSkillAtk = function() {
		this._avatar.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), this._avatar.playEndHanlder = null
	}, e.prototype.dispose = function() {
		this._data = null, this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), this._vscroller && (this
				._vscroller.dispose(), this._vscroller = null), this._avatar && (this._avatar.dispose(), this._avatar = null), t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossPersonalView.prototype, "BossPersonalView");
var BossRemindView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossRemindSkin", e._vscroller = new VScrollPanel(510, 500, BossRemindItemRender, 7), e._vscroller
			.move(12, 102, e), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e.type;
		if (i == EnumZoneType.BOSS_HOME) {
			var n = e.vipLv;
			this._vscroller.dataProvider = App.data.zoneCenter.bossHomeCenter.getZoneList(n)
		} else this._vscroller.dataProvider = App.data.zoneCenter.getList(i)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossRemindView.prototype, "BossRemindView");
var BossRewardPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view || (this._view = UIMaker.createViewBase("BossRewardSkin")), this.addChild(this._view), this._view.x = 50,
			this._view.y = 200
	}, e.prototype.closeView = function() {
		App.panel.removePanel(200)
	}, e.prototype.show = function(e) {
		this._view.close_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeView, this), t.prototype.show.call(this,
			e), this.showGrids();
		var i = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		2 == i.q_zone_type && i.q_zone_client_type == EnumZoneType.BOSS_HOME ? (this._view.lb1.text =
				"(1)首个对BOSS造成伤害的玩家可以获得归属", this._view.lb2.text = "(2)对BOSS造成伤害最高的玩家可以获得最终归属", this._view.lb3.text =
				"(3)玩家离开场景则对BOSS造成的伤害清零") : 2 == i.q_zone_type && i.q_zone_client_type == EnumZoneType.SECRET ? (this._view.lb1.text =
				"(1)首个对BOSS造成伤害的玩家可以获得归属", this._view.lb2.text = "(2)当归属的玩家被其他玩家击败，移交归属权", this._view.lb3.text =
				"(3)BOSS死亡时最终归属的玩家获得归属奖励") : 2 != i.q_zone_type || i.q_zone_client_type != EnumZoneType.WILD_BOSS && i.q_zone_client_type !=
			EnumZoneType.KUANGFENG_BOSS && i.q_zone_client_type != EnumZoneType.HONGMO_BOSS && i.q_zone_client_type !=
			EnumZoneType.QIDAO_BOSS || (this._view.lb1.text = "(1)首个对BOSS造成伤害的玩家可以获得归属", this._view.lb2.text =
				"(2)当归属的玩家被其他玩家击败，移交归属权", this._view.lb3.text = "(3)BOSS死亡时最终归属的玩家获得归属奖励")
	}, e.prototype.showGrids = function() {
		var t = GameUtil.getZoneBean(App.data.zoneCenter.zoneID),
			e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		e = StringUtil.JsonParse(e.q_show_item), t.q_zone_client_type == EnumZoneType.GOD_BOSS ? e.splice(0, 0, 43) : e.splice(
			0, 0, 21);
		for (var i = e.length, n = 0; i > n; n++) {
			var a = new BossRewardRender;
			a.x = 43 + 111 * n, a.y = 88, a.name = "grid", a.showData(e[n]), this._view["one" + n].visible = !0, this._view.add_group
				.addChild(a);
			var o = new BossRewardRender;
			o.x = 43 + 111 * n, o.y = 252, o.name = "grid", o.showData(e[n]), this._view["two" + n].visible = !0, this._view.add_group
				.addChild(o)
		}
	}, e.prototype.hide = function() {
		var e = this;
		t.prototype.hide.call(this), this._view.close_btn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.closeView,
			this);
		for (var i = this._view.add_group.numChildren, n = [], a = 0; i > a; a++) {
			var o = this._view.add_group.getChildAt(a);
			"grid" == o.name && n.push(o)
		}
		n.forEach(function(t) {
			e._view.add_group.removeChild(t)
		}), n.length = 0
	}, e.prototype.dispose = function() {
		this._view && (this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(BossRewardPanel.prototype, "BossRewardPanel");
var BossRewardView = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(BossRewardView.prototype, "BossRewardView");
var BossSecretView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "BossViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 5, 32, 38), this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this.addChild(this._gridLayer), this._vscroller = new VScrollPanel(200, 523, BossItemRender, 0), this._vscroller
			.move(439, 125, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(BossEvent.SELECTED_ITEM, this.setContent, this),
			this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH,
				this.bossUpdate, this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.SECRET)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.SECRET && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.SECRET)
	}, e.prototype.bossUpdate = function(t) {
		if (t == EnumZoneType.SECRET) {
			var e = App.data.boss.getZoneCount(t);
			e ? this.times_txt.textFlow = HtmlUtil.getHtmlStr("转生神殿剩余次数:" + HtmlUtil.formatColor(e + "", 2863402) + "次") :
				this.times_txt.text = "转生神殿剩余次数:0次", this._count = e;
			var i = App.data.zoneCenter.getList(EnumZoneType.SECRET, !1);
			if (i && i.length > 0) {
				var n = i.concat();
				n = n.sort(this.sort), App.data.zoneCenter.personalBossCenter.selecetedID = n[0].id, this._vscroller.dataProvider =
					n, this._vscroller.selectedIndex = 0, App.timer.doFrameOnce(this, 1, this.callLater)
			} else this.name_txt.text = ""
		}
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t && (t.btn.currentState = "down", this.setContent(t.data))
	}, e.prototype.setContent = function(t) {
		this._data = t, this.name_txt.text = t.bean.q_duplicate_name + t.id, t.zonedata && t.zonedata.lastWinner && (this.player_txt
				.textFlow = HtmlUtil.getHtmlStr("上轮归属：" + HtmlUtil.formatColor(t.zonedata.lastWinner, 15397963))), t.bean.q_show_item &&
			(this._gridLayer.dataProvider = ItemUtil.getShowItems(t.bean.q_show_item), this._gridLayer.moveTo(624 - this._gridLayer
				.width >> 1, 675));
		var e = t.bean,
			i = App.global.characterData;
		i.level < e.q_min_lv ? (this.btn_go.label = e.q_min_lv + "级可挑战", this.btn_go.enabled = !1, this.btn_go.filters =
			FilterUtil.FILTER_GRAY) : e.q_min_metem_lv > i.zhuanSheng ? (this.btn_go.label = e.q_min_metem_lv + "转可挑战", this.btn_go
			.enabled = !1, this.btn_go.filters = FilterUtil.FILTER_GRAY) : (this.btn_go.label = "挑 战", this.btn_go.enabled = !
			0, this.btn_go.filters = null);
		var n = App.config.q_monsterContainer.getDataBean(Number(t.bean.q_image));
		if (n) {
			this.addAvatarUI(n.q_featureid);
			var a = e.q_min_metem_lv > 0 ? e.q_min_metem_lv + "转-" + e.q_max_metem_lv + "转" : e.q_min_lv + "级-" + e.q_max_metem_lv +
				"级";
			this.name_txt.text = n.q_name + "(" + a + ")" + (Config.isDebug ? t.id : "")
		}
		var o = App.data.boss.getData(Number(t.bean.q_image));
		this._cankill = o && o.canKill
	}, e.prototype.onGo = function(t) {
		this._count > 0 ? this._cankill ? ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type) && (App
			.data.zoneCenter.personalBossCenter.selecetedID = -1, App.panel.removePanel(29)) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">BOSS未刷新，无法进入副本</font>") : Notice.showMousePosMessage("<font color=" +
			Notice.MIDDLE_COLOR_2 + ">进入次数不足，无法进入副本</font>")
	}, e.prototype.addAvatarUI = function(t, e) {
		void 0 === e && (e = 4), null == this._avatar && (this._avatar = new CUIShowAvatar, this.boxAvatar.addChild(this._avatar),
				this._avatar.x = this.boxAvatar.width / 2, this._avatar.aniDirType = 1, this._avatar.touchEnabled = !1, this._avatar
				.touchChildren = !1), this._avatar.dir = e, this._avatar.changeAvatarPartResource(AvatarPartType.BODY,
				ResPathUtil.getMapMonsterAvatarRes(t)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1),
			this._avatar.playEndHanlder = new FunctionVO(this.endSkillAtk, this), this._avatar.play(), this._avatar.y = 2 *
			this.boxAvatar.height / 3 + 50
	}, e.prototype.endSkillAtk = function() {
		this._avatar.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), this._avatar.playEndHanlder = null
	}, e.prototype.sort = function(t, e) {
		var i = App.data.boss.getZoneBoss(t.id),
			n = App.data.boss.getZoneBoss(e.id);
		return i.canKill && !n.canKill ? -1 : !i.canKill && n.canKill ? 1 : t.bean.q_min_metem_lv > e.bean.q_min_metem_lv ?
			-1 : t.bean.q_min_metem_lv < e.bean.q_min_metem_lv ? 1 : t.id > e.id ? 1 : -1
	}, e
}(ViewBase);
__reflect(BossSecretView.prototype, "BossSecretView");
var BossXSView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._avatarObj = {}, e._tag = {}, e.euiSkinName = "BossGuildSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5, 32, 38), this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(185, 685, this.gridgroup), this._hp = new HpBar, this._hp.setUiComponent(this.bar, null,
				405, 15, this.bar_txt), this.scroller.setCallback(new FunctionVO(this.onStart, this), new FunctionVO(this.onEnd,
				this)), this.btnGroup.visible = !1, this.jishajiangli.visible = this.times_txt.visible = this.barbg.visible =
			this.bar_txt.visible = this.bar.visible = !1, this.bossbidiao.visible = this.one1.visible = this.one2.visible =
			this.one0.visible = !0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onPrev, this, this.btn_left), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onNext, this, this.btn_right), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate,
				this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.XSBOSS), null == this._bg && (this._bg =
				UIMaker.getCImage(null, this, null, 0, 60), this.addChildAt(this._bg, 0)), this._bg.url = ResPathUtil.getImgPath(
				"bg_025", "", ".jpg")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._hp.clear()
	}, e.prototype.onStart = function() {
		if (this._avatarObj)
			for (var t in this._avatarObj) this._avatarObj[t].visible = !0
	}, e.prototype.onEnd = function() {
		this._index = this.scroller.curItemCount, this.setContent(this._list[this._index])
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.XSBOSS && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.XSBOSS)
	}, e.prototype.bossUpdate = function(t) {
		if (t == EnumZoneType.XSBOSS) {
			var e = App.data.boss.getZoneCount(t);
			if (e > 0 ? this.times_txt.textFlow = HtmlUtil.getHtmlStr("剩余次数:" + HtmlUtil.formatColor(e + "", 2863402) + "次") :
				this.times_txt.text = "剩余次数:0次", this._count = e, this._list = App.data.zoneCenter.getList(EnumZoneType.XSBOSS, !
					1), this._list && this._list.length > 0) {
				this._index = 0;
				for (var i = -1, n = -1, a = this._list.length, o = 0; a > o; o++) {
					var r = App.data.boss.getZoneBoss(this._list[o].id);
					if (null != r) {
						if (r.hp > 0 && -1 == n && (n = o), this._list[o].zonedata2 && -1 == i && 0 == r.hp) {
							var s = StringUtil.JsonParse(this._list[o].zonedata2).hasWeekReward;
							0 == s && (i = o)
						}
						this.addAvatarUI(r.id, r.bean.q_featureid, 4, o)
					}
				} - 1 != i ? this._index = i : -1 != n ? this._index = n : this._index = (ServerTime.openday > 7 ? this._list.length :
					ServerTime.openday) - 1, this.scroller.dataPushEnd(this._index), this.setContent(this._list[this._index])
			}
		}
	}, e.prototype.setContent = function(t) {
		this._data = t, t.bean.q_show_item && (this._gridLayer.dataProvider = ItemUtil.getRewardDataList(t.bean.q_show_item),
			this._gridLayer.moveTo(650 - this._gridLayer.width >> 1, 685));
		var e = App.data.boss.getZoneBoss(t.id);
		if (this.name_txt.text = e.name, this._hp.setValue(e.hp, e.maxHp), this._cankill = e.hp > 0, this.btn_go.label =
			this._cankill ? "挑 战" : "已击杀", this.desc_txt.text = t.bean.q_tips + "", this._avatarObj)
			for (var i in this._avatarObj) this._avatarObj[i].visible = Number(i) == e.id;
		var n = !0;
		if (this._cankill)
			for (var a = 0; a < this._index; a++) {
				var o = App.data.boss.getZoneBoss(this._list[a].id);
				if (o && o.hp > 0) {
					n = !1;
					break
				}
			}
		this.btn_go.enabled = this._cankill, this._cankill ? this.btn_go.filters = [] : this.btn_go.filters = FilterUtil.FILTER_GRAY,
			this.btn_left.visible = this._index > 0, this.btn_right.visible = this._index < this._list.length - 1
	}, e.prototype.onPrev = function(t) {
		this._list && (this._index--, this._index = Math.max(0, Math.min(this._list.length - 1, this._index)), this.scroller
			.dataPushEnd(this._index), this.setContent(this._list[this._index]))
	}, e.prototype.onNext = function(t) {
		this._list && (this._index++, this._index = Math.max(0, Math.min(this._list.length - 1, this._index)), this.scroller
			.dataPushEnd(this._index), this.setContent(this._list[this._index]))
	}, e.prototype.onGo = function(t) {
		var e = App.data.zoneCenter.getData(this._data.id);
		e && (e.remainIntoNum <= 0 && -1 != e.canIntoNum ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">" + e.bean.q_remind + "</font>") : ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type) &&
			App.panel.removePanel(1014))
	}, e.prototype.addAvatarUI = function(t, e, i, n) {
		void 0 === i && (i = 3);
		var a = this._avatarObj[t];
		if (null == a) {
			var o = new ViewBase;
			o.width = 520, o.x = 520 * n, this.groupBoss.addChild(o), a = new CUIShowAvatar, a.x = 260, o.addChild(a), a.aniDirType =
				1, a.touchEnabled = !1, a.touchChildren = !1, this._avatarObj[t] = a
		}
		a.dir = i, a.changeAvatarPartResource(AvatarPartType.BODY, ResPathUtil.getMapMonsterAvatarRes(e)), a.changeAct(
				AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1), a.playEndHanlder = new FunctionVO(this.endSkillAtk, this, a), a
			.play(), a.y = 2 * this.groupBoss.height / 3 + 125
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), t.playEndHanlder = null
	}, e.prototype.dispose = function() {
		if (this._avatarObj) {
			var e = void 0;
			for (var i in this._avatarObj) e = this._avatarObj[i], e && (e.parent && e.parent.removeChild(e), e.dispose()),
				delete this._avatarObj[i];
			this._avatarObj = null
		}
		this.scroller && (this.scroller.dispose(), this.scroller = null), this._gridLayer && (this._gridLayer.dispose(),
			this._gridLayer = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._hp && (this._hp.dispose(),
			this._hp = null), this._list = null, this._data = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(BossXSView.prototype, "BossXSView");
var LetterOfChallenge = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "LetterSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn), e && e.addChild(this), 3 != App.data.getChallengeCenter().status && ChallengeCommandSender.sendC2S_AccpetChallengeBookMessage(),
			this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), this.resize()
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - this.width >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.parent && this.parent.removeChild(this), null != this.callback && this.callback.exec()
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(67), this.hide()
	}, e
}(ViewBase);
__reflect(LetterOfChallenge.prototype, "LetterOfChallenge");
var LetterOfChallengeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.euiSkinName = "LetterOfChallengeSkin", e.init();
		var i = new MaskShape;
		return i.graphics.beginFill(0, .01), i.graphics.drawRect(0, 0, 459, 42), i.graphics.endFill(), i.touchEnabled = !0,
			e.groupClick.addChild(i), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._model = App.data.getChallengeCenter(), this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5,
				75, 75), this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM,
				GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(132, 536, this), this.targetHead.width = this.targetHead.height = this.myHead.width =
			this.myHead.height = 72
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ChallengeCenter.REFRESH, this.setContent, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn),
			ChallengeCommandSender.sendC2S_ChallengeBookMessage(), null == this._bg ? (this._bg = UIMaker.getCImage(null, this,
				ResPathUtil.getImgPath("tiaozhan_01", "challenge"), 15, 139, !0), this.addChildAt(this._bg, 0)) : this._bg.url =
			ResPathUtil.getImgPath("tiaozhan_01", "challenge"), this.setContent()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this), this.time_txt.text = ""
	}, e.prototype.setContent = function() {
		var t = App.global.characterData;
		this.me_txt.text = "自己", this.myHead.source = GridUtil.getHead(t.job, t.sex), this.score_txt.text = this._model.getMyScore(),
			this.end_txt.textFlow = this._model.getBean() ? HtmlUtil.getHtmlStr(this._model.getBean().q_des3) : HtmlUtil.getHtmlStr(
				""), this._state = this._model.getState(), this.updateState(this._state)
	}, e.prototype.updateState = function(t) {
		switch (this.imgType.visible = -3 != t, this.imgType.source = "challenge_" + this._model.getUrl() + "_png", t) {
			case 0:
				this.time_txt.text = "", this.groupTip.visible = !1, this.target_random_txt.visible = !0, this.groupTarget.visible = !
					1, this.groupWin.visible = !1, this.groupLose.visible = !1, this.imgJoin.visible = !1, this.imgReward.visible = !
					0, this.groupNone.visible = !1, this.btn.visible = !0, this.btn.enabled = !0, FilterUtil.gray(this.btn, !1),
					this.btn.label = "发起挑战", this._gridLayer.dataProvider = this._model.getItemDataList();
				break;
			case 1:
				this.target_random_txt.visible = !1, this.groupTarget.visible = !0, this.time_txt.text = "", this.groupWin.visible = !
					1, this.groupLose.visible = !1, this.imgJoin.visible = !1, this.imgReward.visible = !0, this.groupNone.visible = !
					1, this.target_name_txt.text = this._model.getTargetName(), this.target_score_txt.text = this._model.getTargetScore(),
					this.targetHead.source = this._model.getTargetHead();
				var e = this._model.getEndTime(),
					i = this._model.getIDStr();
				App.timer.serverTimeEnd(this, this.onTimer, e, [i]), this.groupTip.visible = !0, this.desc_txt.text = this._model
					.getBean().q_des1, this.desc_txt0.text = this._model.getBean().q_des2, this.btn.visible = !1, this._gridLayer.dataProvider =
					this._model.getItemDataList();
				break;
			case 2:
				this.target_random_txt.visible = !1, this.groupTarget.visible = !0, this.time_txt.text = "", this.groupNone.visible = !
					1, this.target_name_txt.text = this._model.getTargetName(), this.target_score_txt.text = this._model.getTargetScore(),
					this.targetHead.source = this._model.getTargetHead(), this.groupTip.visible = !1;
				var n = this._model.getWin();
				n ? (this.groupWin.visible = !0, this.groupLose.visible = !1, this.imgJoin.visible = !1, this.imgReward.visible = !
					0) : (this.groupWin.visible = !1, this.groupLose.visible = !0, this.imgJoin.visible = !0, this.imgReward.visible = !
					1), this._gridLayer.dataProvider = this._model.getItemDataList(n);
				var a = this._model.getRewardFlag();
				a ? (this.btn.label = "领 取", this.btn.enabled = !0, FilterUtil.gray(this.btn, !1)) : (this.btn.label = "已领取",
					this.btn.enabled = !1, FilterUtil.gray(this.btn, !0)), this.btn.visible = !0;
				break;
			case -3:
				this.time_txt.text = "", this.groupTip.visible = !1, this.target_random_txt.visible = !0, this.groupTarget.visible = !
					1, this.groupWin.visible = !1, this.groupLose.visible = !1, this.imgJoin.visible = !1, this.imgReward.visible = !
					0, this.groupNone.visible = !0, this.btn.visible = !0, this.btn.enabled = !0, FilterUtil.gray(this.btn, !1),
					this.btn.label = "发起挑战", this._gridLayer.dataProvider = this._model.getItemDataList()
		}
	}, e.prototype.onTimer = function(t, e) {
		if (t.spuleTime > 0) {
			var i = "" == e ? "" : e + ":";
			this.time_txt.textFlow = HtmlUtil.getHtmlStr(i + HtmlUtil.formatColor(StringUtil.convertTime(t.spuleTime), 3533365))
		} else this.time_txt.text = e + "结束", App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onTouch = function(t) {
		0 == this._state || -3 == this._state ? (this.btn.enabled = !1, this.playEffect(!0), App.timer.doTimeOnce(this, 2e3,
			this.stopEffect)) : 2 == this._state && (ChallengeCommandSender.sendC2S_getChallengeBookRewardMessage(), this.btn
			.enabled = !1)
	}, e.prototype.playEffect = function(t) {
		this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("challenge", "1_0"), 494, 323, this._effect,
			t)
	}, e.prototype.stopEffect = function() {
		this.btn.enabled = !0, this._effect && (this._effect.dispose(), this._effect = null), ChallengeCommandSender.sendC2S_AccpetChallengeBookMessage()
	}, e.prototype.dispose = function() {
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), this._effect && (this._effect.dispose(),
			this._effect = null), this._bg && (this._bg.dispose(), this._bg = null), this._model = null, t.prototype.dispose.call(
			this)
	}, e
}(ViewBase);
__reflect(LetterOfChallengeView.prototype, "LetterOfChallengeView");
var ChatBlackListItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ChatBlackListViewItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.bean = this.data, this.nametext.text = this.bean.playername
	}, e.prototype.onTouch = function(t) {
		ChatCommandSender.sendAddBlack(this.bean.playerid, 0)
	}, e
}(ItemRenderer);
__reflect(ChatBlackListItem.prototype, "ChatBlackListItem");
var ChatBlackListView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ChatBlackListViewSkin"), this.addChild(this._view), this._dispatcher = new DispatcherRegister,
			this._vscroller = new VScrollPanel(620, 378, ChatBlackListItem, 5), this._vscroller.move(10, 1, this)
	}, e.prototype.show = function(t) {
		t.addChild(this), this.addEvents(), this._vscroller.dataProvider = App.data.chatDataCenter.blackArr
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), this.parent && this.parent.removeChild(this), this._dispatcher.removeAllListeners()
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(ChatEvent.CHAT_BLACK_REFRE, this.onEmojiClick, this)
	}, e.prototype.onEmojiClick = function() {
		this._vscroller.removeAll(), this._vscroller.dataProvider = App.data.chatDataCenter.blackArr
	}, e.prototype.move = function(t, e) {
		this.x = t, this.y = e
	}, Object.defineProperty(e.prototype, "isShow", {
		get: function() {
			return this.parent ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.removeAll(), this._vscroller = null)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(ChatBlackListView.prototype, "ChatBlackListView");
var ChatContentList = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n._nowY = 0, n._width = 0, n._height = 0, n._width = e, n._height = i, n.touchEnabled = !0, n.touchChildren = !
			0, n.width = e, n.height = i, n.init(), n
	}
	return __extends(e, t), e.prototype.init = function() {
		this._msgContainer = new eui.Group, this.viewport = this._msgContainer
	}, e.prototype.addMsg = function(t) {
		var e = this._msgContainer.numChildren;
		e > ChatDataCenter.MAX_SHOW_COUNT && this.delFirstItem();
		var i = ChatMessageUnit.getMessageItem(t.channelType, t.isMine);
		this._msgContainer.addChild(i);
		this._msgContainer.numChildren;
		i.y = this._nowY, i.update(t), this._nowY = i.y + i.itemHeight + 10;
		var n = this._nowY - this._height;
		this.viewport && (n > 0 ? this.viewport.scrollV = n : this.viewport.scrollV = 0)
	}, e.prototype.delFirstItem = function() {
		var t = this._msgContainer.removeChildAt(0);
		t.dispose();
		for (var e, i = this._msgContainer.numChildren, n = 0; i > n; n++) e = this._msgContainer.getChildAt(n), e.y = e.y -
			(e.itemHeight + 10);
		e ? this._nowY = e.y + e.itemHeight + 10 : this._nowY = 0
	}, e.prototype.clearAll = function() {
		for (; this._msgContainer.numChildren > 0;) {
			var t = this._msgContainer.removeChildAt(0);
			t && t.dispose()
		}
		this._nowY = 0
	}, e
}(eui.Scroller);
__reflect(ChatContentList.prototype, "ChatContentList");
var ChatMessageUnit = function() {
	function t() {}
	return t.getMessageItem = function(t, e) {
		void 0 === e && (e = !1);
		var i;
		switch (t) {
			case EnumChatTypes.CHANNEL_UNION:
			case EnumChatTypes.CHANNEL_ZONGHE:
			case EnumChatTypes.CHANNEL_WORLD:
				i = e ? MeMessageItem : OtherMessageItem;
				break;
			case EnumChatTypes.CHANNEL_SYSYTEM:
				i = SysMessageItem
		}
		if (i) {
			var n = this._itemPool.get(i);
			return n && n.length > 0 ? n.pop() : new i
		}
		return null
	}, t.putInPool = function(t) {
		var e = Object(t).constructor,
			i = this._itemPool.get(e);
		i && -1 == i.indexOf(t) ? i.push(t) : (i = [t], this._itemPool.put(e, i))
	}, t._itemPool = new HashMap, t
}();
__reflect(ChatMessageUnit.prototype, "ChatMessageUnit");
var ChatPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ChatSkin"), this._view.txtMsg.type = egret.TextFieldType.INPUT, this._vscroller =
			new VScrollPanel(630, 750, SysMessageItem, 0), this._view.vscro.addChild(this._vscroller), this.addChild(this._view),
			this._tab = new TabBar([this._view.tab1, this._view.tab2, this._view.tab3, this._view.tab4]), this._tab.tabButtonArr = [
				this._view.tab1, this._view.tab2, this._view.tab3, this._view.tab4
			], this._tab.setTabBtnData(this._view.tab1, EnumChatTypes.CHANNEL_ZONGHE), this._tab.setTabBtnData(this._view.tab2,
				EnumChatTypes.CHANNEL_WORLD), this._tab.setTabBtnData(this._view.tab3, EnumChatTypes.CHANNEL_UNION), this._tab.setTabBtnData(
				this._view.tab4, EnumChatTypes.CHANNEL_SYSYTEM), this._tab.setTabBtnData(this._view.tab5, 99), App.global.characterData
			.gmLevel > 1 && (this._view.txtMsg.maxChars = 100)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this.addEvents(), this.showViewXY(!0), this._view.txtMsg.text = "点击输入聊天内容", App.data.chatDataCenter
			.currChatType == EnumChatTypes.CHANNEL_ZONGHE ? this._tab.selectedIndex = 0 : App.data.chatDataCenter.currChatType ==
			EnumChatTypes.CHANNEL_WORLD ? this._tab.selectedIndex = 1 : App.data.chatDataCenter.currChatType == EnumChatTypes.CHANNEL_UNION ?
			this._tab.selectedIndex = 2 : App.data.chatDataCenter.currChatType == EnumChatTypes.CHANNEL_SYSYTEM && (this._tab.selectedIndex =
				3), this.onSelectChange(1), ChatCommandSender.sendBlackList(), Config.isMobile || FullScreenMask.ins.removeMask(
				FullScreen.Panel)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(ChatEvent.CHAT_RESPONSE, this.addChatMessage, this), this._dispatcher.addEventListener(
				TabBar.SELECTED_INDEX_CHANGE, this.onSelectChange, this, this._tab), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onSend, this, this._view.btnSend), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.downbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.upbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.closebtn), this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_IN, this.onTexClick, this, this._view.txtMsg),
			this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_OUT, this.onTexOutClick, this, this._view.txtMsg), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEmoji, this, this._view.bqicon)
	}, e.prototype.onTexClick = function() {
		"点击输入聊天内容" == this._view.txtMsg.text && (this._view.txtMsg.text = "")
	}, e.prototype.onTexOutClick = function() {
		"" == this._view.txtMsg.text && (this._view.txtMsg.text = "点击输入聊天内容")
	}, e.prototype.showViewXY = function(t) {
		t ? (this._view.upbtn.visible = !0, this._view.downbtn.visible = !1, this._view.vscro.y = 582, this._vscroller.height =
			346, this._view.bg.y = 578, this._view.bg.height = 484, this._view.downbtn.y = 574, this._view.closebtn.y = 578,
			this._view.upbtn.y = 553) : (this._view.downbtn.visible = !0, this._view.upbtn.visible = !1, this._view.vscro.y =
			125, this._view.bg.y = 100, this._view.bg.height = Config.SCREEN_HEIGHT, this._view.downbtn.y = 129, this._view.closebtn
			.y = 100, this._vscroller.height = 810, this._view.upbtn.y = 96), this.resize()
	}, e.prototype.onClick = function(t) {
		switch (t.target) {
			case this._view.downbtn:
				this.showViewXY(!0);
				break;
			case this._view.upbtn:
				this.showViewXY(!1);
				break;
			case this._view.closebtn:
				App.panel.removePanel(1)
		}
	}, e.prototype.resize = function() {
		this.x = (Config.SCREEN_WIDTH >> 1) - 320;
		var t = Config.isAllShow() || Config.isNeiZhiWeb ? MainParams.UP : 0;
		this.y = Config.SCREEN_HEIGHT - this._view.height - t
	}, e.prototype.onSend = function(t) {
		if (this.roleData.isForbidSpeak) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">您已经被禁言，如有疑问请联系客服</font>");
		var e = this._view.txtMsg.text;
		if ("" != e && "点击输入聊天内容" != this._view.txtMsg.text) {
			var i = GMUtil.checkIsGmString(this._view.txtMsg.text);
			if (!i) {
				var n = "@" == e.charAt(0);
				if (!Config.isDebug && !n) {
					var a = App.data.chatDataCenter.getChatLvlLimit(this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE ?
						EnumChatTypes.CHANNEL_WORLD : this.selectChannel);
					if (a) {
						if (this.roleData.level < a.level) return void Notice.show(10005, a.level);
						if (this.roleData.vipLevel < a.vip) return PanelOpenManager.openPanel(35), void Notice.showMousePosMessage(
							"<font color=" + Notice.MIDDLE_COLOR_2 + ">您的VIP等级不足" + a.vip + "</font>")
					}
				}
				var o = this._view.txtMsg.text;
				ChatCommandSender.sendChatMessage(this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE ? EnumChatTypes.CHANNEL_WORLD :
					this.selectChannel, o);
				var r = EnumChatTypes.getChannelLogType(this.selectChannel);
				App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_LOG_UP, 6, r, o), this._view.txtMsg.text = "点击输入聊天内容"
			}
		}
	}, e.prototype.onEmojiClick = function(t) {
		"点击输入聊天内容" == this._view.txtMsg.text ? this._view.txtMsg.text = "" + t : this._view.txtMsg.text.length < 23 && (
			this._view.txtMsg.text = this._view.txtMsg.text + t)
	}, e.prototype.addChatMessage = function(t) {
		if (t.channelType == this.selectChannel || this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE) {
			if (void 0 != t.sender)
				if (App.data.chatDataCenter.blackArr && App.data.chatDataCenter.blackArr.length > 0) {
					for (var e = App.data.chatDataCenter.blackArr.length, i = App.data.chatDataCenter.blackArr, n = !0, a = 0; e > a; a++)
						LongUtil.toString(t.senderid) == LongUtil.toString(i[a].playerid) && (n = !1);
					n && this._shopAry.push(t)
				} else this._shopAry.push(t);
			else this._shopAry.push(t);
			this._vscroller.dataProvider = this._shopAry, this.scrollBottom()
		}
	}, e.prototype.scrollBottom = function() {
		this._vscroller.viewport && (this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller
			.viewport.contentHeight > this._vscroller.viewport.height ? this._vscroller.viewport.scrollV = this._vscroller.viewport
			.contentHeight - this._vscroller.viewport.height + 10 : this._vscroller.viewport.scrollV = 0)
	}, e.prototype.onSelectChange = function(t) {
		var e = this._tab.selectItem;
		if (App.data.chatDataCenter.currChatType = e, this.refreshState(), 99 == e) return void(this.chatBlackListView.isShow ?
			this.chatBlackListView.hide() : (this.chatBlackListView.move(0, this._view.bqicon.y - 460), this.chatBlackListView
				.show(this)));
		this.chatBlackListView.isShow && this.chatBlackListView.hide(), this._shopAry = [];
		var i = App.data.chatDataCenter.getMessages(e);
		if (i && i.length > 0)
			for (var n = 0; n < i.length; n++)
				if (void 0 != i[n].senderid)
					if (App.data.chatDataCenter.blackArr && App.data.chatDataCenter.blackArr.length > 0) {
						for (var a = App.data.chatDataCenter.blackArr.length, o = App.data.chatDataCenter.blackArr, r = !0, s = 0; a >
							s; s++) LongUtil.toString(i[n].senderid) == LongUtil.toString(o[s].playerid) && (r = !1);
						r && this._shopAry.push(i[n])
					} else this._shopAry.push(i[n]);
		else this._shopAry.push(i[n]);
		else this._shopAry = [];
		this._vscroller.dataProvider = this._shopAry, this.scrollBottom()
	}, e.prototype.refreshState = function() {
		if (99 == this.selectChannel) this._view.txtSys.visible = !1, this._view.msgBg.visible = !1, this._view.txtMsg.visible = !
			1, this._view.btnSend.visible = !1, this._view.bqicon.visible = !1;
		else {
			var t = this.selectChannel == EnumChatTypes.CHANNEL_SYSYTEM;
			this._view.txtSys.visible = t, this._view.msgBg.visible = !t, this._view.txtMsg.visible = !t, this._view.btnSend.visible = !
				t, this._view.bqicon.visible = !t
		}
	}, Object.defineProperty(e.prototype, "selectChannel", {
		get: function() {
			return this._tab.selectItem
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onEmoji = function(t) {
		this.emojiPanel.isShow ? this.emojiPanel.hide() : (this.emojiPanel.move(this.width - 624 >> 1, this._view.bqicon.y -
			230), this.emojiPanel.show(this, new FunctionVO(this.onEmojiClick, this)))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._emojiPanel && this._emojiPanel.hide(), this._chatBlackListView && this._chatBlackListView
			.hide(), this._vscroller.removeAll(), this._tab.clear()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return Config.SCREEN_WIDTH
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return Config.SCREEN_HEIGHT
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "emojiPanel", {
		get: function() {
			return this._emojiPanel || (this._emojiPanel = new EmojiPanel), this._emojiPanel
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "chatBlackListView", {
		get: function() {
			return this._chatBlackListView || (this._chatBlackListView = new ChatBlackListView), this._chatBlackListView
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._emojiPanel && (this._emojiPanel.dispose(), this._emojiPanel = void 0), this._tab =
			void 0, this._view = void 0
	}, e
}(BasePanel);
__reflect(ChatPanel.prototype, "ChatPanel");
var ChatScenePanel = function(t) {
	function e(e, i, n) {
		var a = t.call(this) || this;
		return a._vObj = {}, a._parent = e, a._w = i, a._h = n, a.init(), a
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = new eui.Image, this._bg.width = this._w, this._bg.height = this._h, this._bg.source =
			"common1_border_004_png", this._scroll = new eui.Scroller, this._scroll.width = this._w, this._scroll.height =
			this._h, this._msgContent = new eui.DataGroup, this._scroll.viewport = this._msgContent, this._msgContent.itemRenderer =
			SceneMessageItem, this._dataMsgs = new eui.ArrayCollection, this._msgContent.dataProvider = this._dataMsgs, this.addChild(
				this._bg), this.addChild(this._scroll)
	}, e.prototype.show = function() {
		this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onChatOpen, this), App.dispatcher.addEventListener(ChatEvent
			.CHAT_RESPONSE, this.onMessageHadler, this), App.dispatcher.addEventListener(EventType.SHOW_HIDE_PANEL, this.panelShow,
			this), App.dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this)
	}, e.prototype.showOrHide = function(t, e) {
		this._vObj[e] = t;
		for (var i in this._vObj)
			if (0 == this._vObj[i]) return void this.showAll(!1);
		this.showAll(!0)
	}, e.prototype.showAll = function(t) {
		this.visible = t
	}, e.prototype.onEnterZone = function(t, e) {
		this.showOrHide(t != App.data.minecenter.minerZoneID && t != App.data.minecenter.mineFightMapId, ZoneEvent.ENTER_ZONE)
	}, e.prototype.showNavigation = function(t) {
		this.showOrHide(!t, EnterButtonEvent.SHOW_NAVIGATION)
	}, e.prototype.panelShow = function(t) {
		this.showOrHide(!t, EventType.SHOW_HIDE_PANEL)
	}, e.prototype.onMessageHadler = function(t) {
		if (void 0 != t.senderid)
			if (App.data.chatDataCenter.blackArr && App.data.chatDataCenter.blackArr.length > 0) {
				for (var e = App.data.chatDataCenter.blackArr.length, i = App.data.chatDataCenter.blackArr, n = !0, a = 0; e > a; a++)
					LongUtil.toString(t.senderid) == LongUtil.toString(i[a].playerid) && (n = !1);
				n && (this._dataMsgs.length >= 3 && this._dataMsgs.removeItemAt(0), this._dataMsgs.addItem(t))
			} else this._dataMsgs.length >= 3 && this._dataMsgs.removeItemAt(0), this._dataMsgs.addItem(t);
		else this._dataMsgs.length >= 3 && this._dataMsgs.removeItemAt(0), this._dataMsgs.addItem(t);
		this.scrollBottom()
	}, e.prototype.onNoticeHandler = function(t, e) {
		this._dataMsgs.length >= 3 && this._dataMsgs.removeItemAt(0), this._dataMsgs.addItem({
			type: t,
			content: e,
			isNotice: !0
		}), this.scrollBottom()
	}, e.prototype.onChatOpen = function(t) {
		App.panel.removePanel(87), PanelOpenManager.openPanel(1)
	}, e.prototype.scrollBottom = function() {
		this._msgContent.validateDisplayList(), this._msgContent.validateNow(), this._msgContent.contentHeight > this._h &&
			this._msgContent && (this._msgContent.scrollV = this._msgContent.contentHeight - this._h)
	}, e.prototype.hide = function() {
		this._parent.contains(this) && this._parent.removeChild(this), this.removeEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onChatOpen, this), App.dispatcher.removeEventListener(ChatEvent.CHAT_RESPONSE, this.onMessageHadler, this),
			App.dispatcher.removeEventListener(EventType.SHOW_HIDE_PANEL, this.panelShow, this)
	}, e.prototype.resize = function() {
		this.x = (App.stage.stageWidth - this._bg.width >> 1) + 20, this.y = App.stage.stageHeight - EnumMainMenu.Main_Menu_Height -
			45
	}, e
}(egret.DisplayObjectContainer);
__reflect(ChatScenePanel.prototype, "ChatScenePanel");
var CustomerServicePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._window.imgTitle.source = "titleview_kefu_png",
			this._view = UIMaker.createViewBase("CustomerServiceSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), App.stage.addEventListener(egret.Event.RESIZE, this.onStageSize, this), this._btnClose &&
			(this._btnClose.visible = !1), this._webView || (this._webView = new WebView(e)), this.adjustAdpater()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._webView && this._webView.hide(), App.stage.removeEventListener(egret.Event.RESIZE,
			this.onStageSize, this)
	}, e.prototype.adjustAdpater = function() {
		var t = window.innerWidth,
			e = window.innerHeight,
			i = document.getElementById("StageDelegateDiv"),
			n = i.parentElement,
			a = parseInt(n.attributes["data-content-width"].value),
			o = parseInt(n.attributes["data-content-height"].value),
			r = egret.sys.screenAdapter.calculateStageSize(egret.MainContext.instance.stage.scaleMode, t, e, a, o),
			s = r.displayWidth,
			h = r.displayHeight;
		this._webView.width = s, this._webView.height = .8 * h, this._webView.x = .5 * (t - s), this._webView.y = (60 + (
			Config.isPhoneX ? 50 : 0)) * h / App.stage.stageHeight, this._webView.show()
	}, e.prototype.onStageSize = function(t) {
		void 0 === t && (t = null), this._webView && this.adjustAdpater()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._webView && (this._webView.dispose(), this._webView = null), this._view && (
			this._view = null), this._window && (this._window.dispose(), this._window = null)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CustomerServicePanel.prototype, "CustomerServicePanel");
var EmojiPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("EmojiSkin"), this.addChild(this._view), this._emojies = [], this._dispatcher =
			new DispatcherRegister;
		for (var t = 0; 19 > t; t++) {
			var e = EffectUtils.showCFaceEffect(this, this, ResPathUtil.getChatfaceRes("" + (t + 100)));
			t > 17 ? e.setTo(70 * (t - 18) + 28, 179) : t > 8 ? e.setTo(70 * (t - 9) + 28, 107) : e.setTo(71 * t + 28, 35),
				this._emojies.push(e)
		}
	}, e.prototype.onEmojiClick = function(t) {
		var e = t.$currentTarget;
		this.hide(), this._callBack && (this._callBack.param = [e.name], this._callBack.exec())
	}, e.prototype.show = function(t, e) {
		this._callBack = e, t.addChild(this), this.addEvents()
	}, e.prototype.hide = function() {
		this.parent && this.parent.removeChild(this), this._dispatcher.removeAllListeners()
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEmojiClick, this, this._view.emojiGroup);
		for (var t = 0; t < this._emojies.length; t++) this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEmojiClick,
			this, this._view["emoji" + t])
	}, e.prototype.move = function(t, e) {
		this.x = t, this.y = e
	}, Object.defineProperty(e.prototype, "isShow", {
		get: function() {
			return this.parent ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		for (var t = 0; t < this._emojies.length; t++) this._emojies[t] && (this._emojies[t].stop(), this._emojies[t].dispose(),
			this._emojies[t] = null)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(EmojiPanel.prototype, "EmojiPanel");
var NumberData = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._init = !1, i._init = !1, i._type = e, i._callBackHash = new HashObject, i
	}
	return __extends(e, t), e.prototype.addNetLoad = function(t, e) {
		var i = this;
		i._numSheet ? e.exec() : (0 == i._callBackHash.has(t.hashCode) && i._callBackHash.put(t.hashCode, e), 0 == i._init &&
			(RES.hasRes(i._type) ? i.onSheedLoad(RES.getRes(i._type), i._type) : (new SheetSpriteLoader).load(ResPathUtil.getNumSheetPath(
				i._type), ResPathUtil.getNumSheetPath(i._type, ".png"), new FunctionVO(i.onSheedLoad, i)), i._init = !0))
	}, e.prototype.deleteNetLoad = function(t) {
		this._callBackHash.del(t.hashCode)
	}, e.prototype.onSheedLoad = function(t, e) {
		this._numSheet = t, this._numSheet && (this._callBackHash.forInValExcFucName("exec"), this._callBackHash.clear())
	}, e.prototype.getCharTexture = function(t, e) {
		if (this._numSheet) {
			"-" == t ? t = "10" : "+" == t ? t = "11" : "%" == t ? t = "12" : "万" == t ? t = "ten" : "亿" == t && (t = "bill");
			var i = e ? e + "_" + t : t;
			return this._numSheet.getTexture(i)
		}
	}, e
}(egret.HashObject);
__reflect(NumberData.prototype, "NumberData");
var KefuMessageRender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("KefuMessageSkin"), this.addChild(this._view)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		return t ? (this._view.txtMsg.text = t.content, void(t.nickname ? this._view.name_lb.text = t.nickname + " " +
			StringUtil.formatToTime_V12(t.time) : this._view.name_lb.text = "")) : (this._view.txtMsg.text = "", void(this._view
			.name_lb.text = ""))
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e
}(ItemRenderer);
__reflect(KefuMessageRender.prototype, "KefuMessageRender");
var MeMessageItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.view = UIMaker.createViewBase("MeMessageItemSkin"), this.addChild(this.view), t.prototype.init.call(this)
	}, e.prototype.update = function(t) {
		this.data = t, this.channelType = t.channelType, this.clear(), this.head.source = "hero_grid_" + (this.data.sender.sex -
			1) + "_" + this.data.sender.job + "_png", this.txtName.text = t.sender.playerName, this.data.faceSign ? (this.bg.width =
			60, this.bg.x = 491 - this.bg.width) : (this.txtMsg.width = this.maxTxtWidth, this.bg.width = this.maxBgWidth,
			this.data.isTextFlow ? this.txtMsg.textFlow = this.data.textElement : this.txtMsg.text = this.data.content, this.txtMsg
			.numLines < 2 ? (this.txtMsg.width = this.txtMsg.textWidth + 10, this.bg.width = this.txtMsg.width < this.minBgWidth ?
				this.minBgWidth : this.txtMsg.width, this.bg.x = 491 - this.bg.width, this.txtMsg.x = this.bg.x + 7) : (this.bg.x =
				3, this.txtMsg.x = this.bg.x + 7))
	}, e
}(BaseMessageItem);
__reflect(MeMessageItem.prototype, "MeMessageItem");
var OtherMessageItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.view = UIMaker.createViewBase("OtherMessageItemSkin"), this.addChild(this.view), this.view.head.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onLook, this), t.prototype.init.call(this)
	}, e.prototype.onLook = function(t) {
		RankItemView.MESSAGE_TYPE = !0, CharacterUICommandSender.checkPalyerInfo(this.data.sender.playerId, 1)
	}, e
}(BaseMessageItem);
__reflect(OtherMessageItem.prototype, "OtherMessageItem");
var SceneMessageItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.init()
	}, e.prototype.init = function() {
		this._msgLabel = new eui.Label, this._msgLabel.fontFamily = Style.FONT, this._msgLabel.size = 18, this._msgLabel.width =
			376, this._msgLabel.height = 18, this._msgLabel.multiline = !1, this._msgLabel.textColor = 16315319, this._msgLabel
			.y = 3, this.addChild(this._msgLabel), this._msgLabel1 = new eui.Label, this._msgLabel1.fontFamily = Style.FONT,
			this._msgLabel1.size = 18, this._msgLabel1.visible = !1, this.addChild(this._msgLabel1), this.width = 376, this.height =
			24, this._emojies = []
	}, e.prototype.dataChanged = function() {
		var t, e;
		if (this.cleareff(), this.data instanceof ChatMessageVO) {
			t = this.data.channelType, e = EnumChatTypes.getTypeSig(t);
			var i = this.data,
				n = HtmlUtil.getHtmlStr(e);
			if (i.sender) {
				var a = void 0;
				a = App.data.chatDataCenter.getHtmlText("#37bef2", i.sender.playerName) + "说：", n = n.concat(HtmlUtil.getHtmlStr(
					a))
			}
			if (i.isTextFlow) n = n.concat(i.textElement);
			else {
				var o = "",
					r = this.data.content;
				if (1 == this.data.faceSign) {
					var s = 0,
						h = [],
						l = [];
					o = o + EnumChatTypes.getTypeSig(this.data.channelType) + (void 0 == this.data.sender ? "" :
						"<font color='#37bef2'>[" + this.data.sender.playerName + "]</font> ");
					for (var p = 100; 119 > p; p++) {
						var c = "";
						c = r.replace("#" + p + "#", "    	"), c != r && (s++, this._msgLabel1.textFlow = HtmlUtil.getHtmlStr(r.split(
								"#" + p + "#")[0]), 0 == this._msgLabel1.width ? h.push(10) : h.push(this._msgLabel1.width + 20), l.push(p),
							p--), r = c
					}
					this._msgLabel1.textFlow = HtmlUtil.getHtmlStr(o);
					for (var _ = 0; s > _; _++) {
						var d = EffectUtils.showCFaceEffect(this, this, ResPathUtil.getChatfaceRes("" + l[_]));
						d.x = this._msgLabel1.width + h[_], d.y = 10, d.scaleX = .5, d.scaleY = .5, this._emojies.push(d)
					}
					o += r, n = HtmlUtil.getHtmlStr(o)
				} else o = o + EnumChatTypes.getTypeSig(this.data.channelType) + (void 0 == this.data.sender ? "" :
					"<font color='#37bef2'>[" + this.data.sender.playerName + "]</font> ") + this.data.content, n = HtmlUtil.getHtmlStr(
					o)
			}
			this._msgLabel.textFlow = n
		} else t = this.data.type, e = EnumChatTypes.getTypeSig(t), this._msgLabel.textFlow = HtmlUtil.getHtmlStr(e + this.data
			.content)
	}, e.prototype.removeEmoji = function() {
		this._emojiIcon && (this._emojiIcon.source = void 0, this._emojiIcon.parent && this._emojiIcon.parent.removeChild(
			this._emojiIcon))
	}, e.prototype.cleareff = function() {
		for (var t = 0; t < this._emojies.length; t++) this._emojies[t] && (this._emojies[t].stop(), this._emojies[t].dispose(),
			this._emojies[t] = null)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.cleareff(), this._msgLabel && (this._msgLabel = null), this._msgLabel1 &&
			(this._msgLabel1 = null)
	}, Object.defineProperty(e.prototype, "emojiIcon", {
		get: function() {
			return this._emojiIcon || (this._emojiIcon = new eui.Image), this._emojiIcon
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ItemRenderer);
__reflect(SceneMessageItem.prototype, "SceneMessageItem");
var SysMessageItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("SysMessageItemSkin"), this.addChild(this._view), this._emojies = []
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this._view.txtMsg), this._dispatcher.addEventListener(egret.TextEvent.LINK, this.onLink, this, this._view.txtMsg)
	}, e.prototype.onLink = function(t) {
		var e = t.text.split(":");
		if ("panel" == e[0]) 60 == Number(e[1]) ? App.panel.openPanel(Number(e[1]), {
			selectedIndex: 2
		}) : 55 == Number(e[1]) ? App.global.funcOpen.isFunctionOpen(45) && 0 != App.data.activityCenter.getData(
			ActivityCenter.firstChargeAct).playerStates ? App.panel.openPanel(Number(e[1])) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">您已领取首充奖励！</font>") : App.panel.openPanel(Number(e[1]));
		else if ("item" == e[0]) {
			var i = GameUtil.getItemConfigData(Number(e[1]));
			null != i && (null == this._tip && (this._tip = new TipData), 1 == i.q_type ? this._tip.type = 4 : 42 == i.q_type ?
				this._tip.type = 19 : this._tip.type = 2, this._tip.data = Number(e[1]), App.tip.showTip(this._tip))
		}
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(10010, this._bean)
	}, e.prototype.onEmojiClick = function(t) {}, Object.defineProperty(e.prototype, "chatBlackView", {
		get: function() {
			return this._chatBlackView || (this._chatBlackView = new ChatBlackView), this._chatBlackView
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dataChanged = function() {
		this._bean = this.data;
		var t = "";
		this.cleareff();
		var e = this._bean.content;
		if (void 0 == this._bean.sender || this._bean.isMine ? (this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onTouch, this, this._view.txtMsg), this._dispatcher.addEventListener(egret.TextEvent.LINK, this.onLink,
				this, this._view.txtMsg), this._view.txtMsg.touchEnabled = !0) : (this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTouch, this, this._view.txtMsg), this._dispatcher.removeEventListener(egret.TextEvent.LINK,
				this.onLink, this, this._view.txtMsg)), 1 == this._bean.faceSign) {
			var i = 0,
				n = [],
				a = [];
			t = t + EnumChatTypes.getTypeSig(this._bean.channelType) + (void 0 == this._bean.sender ? "" :
				"<font color='#37bef2'>[" + this._bean.sender.playerName + "]</font> ");
			for (var o = 100; 119 > o; o++) {
				var r = "";
				r = e.replace("#" + o + "#", "    	"), r != e && (i++, this._view.lab.textFlow = HtmlUtil.getHtmlStr(e.split("#" +
						o + "#")[0]), 0 == this._view.lab.width ? n.push(15) : n.push(this._view.lab.width + 20), a.push(o), o--), e =
					r
			}
			this._view.lab.textFlow = HtmlUtil.getHtmlStr(t);
			for (var s = 0; i > s; s++) {
				var h = EffectUtils.showCFaceEffect(this, this, ResPathUtil.getChatfaceRes("" + a[s]));
				h.x = this._view.lab.width + n[s], h.y = 8, h.scaleX = .7, h.scaleY = .7, this._emojies.push(h)
			}
			t += e
		} else t = t + EnumChatTypes.getTypeSig(this._bean.channelType) + (void 0 == this._bean.sender ? "" :
			"<font color='#37bef2'>[" + this._bean.sender.playerName + "]</font> ") + this._bean.content;
		t += "</font>", this._view.txtMsg.textFlow = HtmlUtil.getHtmlStr(t), this.height = this._view.txtMsg.height
	}, e.prototype.cleareff = function() {
		for (var t = 0; t < this._emojies.length; t++) this._emojies[t] && (this._emojies[t].stop(), this._emojies[t].dispose(),
			this._emojies[t] = null)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.cleareff()
	}, e
}(ItemRenderer);
__reflect(SysMessageItem.prototype, "SysMessageItem");
var BottomMessageView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msgArr = [], e._colorArr = [], e._bottomIconArr = [], e._showIndex = 0, e._count = 0, e._msgContainerArr = [],
			e._msgContainerPool = [], App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e.setPos(), e
	}
	return __extends(e, t), e.prototype.setPos = function() {
		this.x = 10, this.y = .7 * Config.SCREEN_HEIGHT
	}, e.prototype.show = function(t, e, i) {
		void 0 === e && (e = Notice.BOTTOM_COLOR), void 0 === i && (i = 0), this._msgArr.push(t), this._colorArr.push(e),
			this._bottomIconArr.push(i), this.calllater()
	}, e.prototype.calllater = function() {
		for (var t = 0; t < e.TOTALNUM;) this._msgArr.length > 0 && this.addItem(this._msgArr.pop(), this._colorArr.pop()),
			t++
	}, e.prototype.addItem = function(t, i) {
		if (void 0 === i && (i = Notice.BOTTOM_COLOR), t) {
			this._count >= e.TOTALNUM && this.removeItem(this._msgContainerArr[0]);
			var n = this.getMsgContainer(),
				a = n.getChildByName("bgImage"),
				o = n.getChildByName("textField");
			this._bottomIconArr[this._showIndex];
			o.htmlText = t, o.textColor = i, o.size = 16, o.y = a.height - o.textHeight >> 1, n.alpha = 1, n.y = 0, n.addChild(
					a), n.addChild(o), this.addChild(n), this._msgContainerArr.push(n), this._showIndex++, this._count++, this.refreshPos(),
				TweenLite.to(n, 1, {
					delay: 1,
					alpha: .01,
					onComplete: this.removeItem,
					onCompleteParams: [n],
					onCompleteScope: this
				})
		}
	}, e.prototype.removeItem = function(t) {
		t && t.parent ? (this.removeChild(t), -1 == this._msgContainerPool.indexOf(t) && this._msgContainerPool.push(t),
			this._msgContainerArr.shift(), this._count--, this.refreshPos(), TweenLite.killTweensOf(t)) : (GameLog.log(
			"出错、。、、、、"), this.clearData()), this._count <= 0 && this.clearData()
	}, e.prototype.clearData = function() {
		this._msgArr = [], this._colorArr = [], this._bottomIconArr = [], this._msgContainerArr = [], this._showIndex = 0,
			App.layer.messageLayer.contains(this) && App.layer.messageLayer.removeChild(this)
	}, e.prototype.refreshPos = function() {
		for (var t = this._msgContainerArr.length - 1; t > 0; t--) {
			var i = this._msgContainerArr[this._msgContainerArr.length - 1 - t];
			i && TweenLite.to(i, .3, {
				y: 0 - t * (e.MSG_H + 2),
				delay: .01 * t
			})
		}
	}, e.prototype.getMsgContainer = function() {
		if (this._msgContainerPool.length > 0) return this._msgContainerPool.pop();
		var t = new h5_engine.GDisplayObjectContainer,
			i = new eui.Image,
			n = new h5_engine.GTextField;
		return i.width = e.MSG_W, i.height = e.MSG_H, i.name = "bgImage", i.source = "rechangetip_bg_s1_png", i.x = -10, n.size =
			16, n.textAlign = egret.HorizontalAlign.LEFT, n.name = "textField", t.addChild(i), t.addChild(n), t
	}, e.TOTALNUM = 30, e.DELAYTIME = 300, e.MSG_H = 24, e.MSG_W = 182, e
}(h5_engine.GSprite);
__reflect(BottomMessageView.prototype, "BottomMessageView");
var ChatBlackView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ChatBlackViewSkin"), this.addChild(this._view)
	}, e.prototype.onEmojiClick = function(t) {
		ChatCommandSender.sendAddBlack(this._bean.senderid, 1), App.panel.removePanel(10010)
	}, e.prototype.show = function(t) {
		this._bean = t, this.addEvents(), this._view.nametext.text = "" + this._bean.sender.playerName
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners()
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEmojiClick, this, this._view.btn)
	}, e.prototype.move = function(t, e) {
		this.x = t, this.y = e
	}, Object.defineProperty(e.prototype, "isShow", {
		get: function() {
			return this.parent ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(ChatBlackView.prototype, "ChatBlackView");
var LeftMessageView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e
	}
	return __extends(e, t), e.prototype.setPos = function(t) {
		void 0 === t && (t = null), this.x = 10, this.y = Config.SCREEN_HEIGHT - 300
	}, e.prototype.showLeftPosMessage = function(t, i) {
		this._isLoading || (this._isLoading = !0, this._image = new eui.Image, this._image.source =
			"common1_title_bg10_png", this.addChild(this._image), this._textFiled = new h5_engine.GTextField, this._textFiled
			.htmlText = t, this._textFiled.textColor = i, this._textFiled.size = 20, this._textFiled.textAlign = egret.HorizontalAlign
			.CENTER, this._textFiled.verticalAlign = egret.VerticalAlign.MIDDLE, this._textFiled.x = 0, this._textFiled.y = 5,
			this.addChild(this._textFiled), App.layer.messageLayer.contains(this) || App.layer.messageLayer.addChild(this),
			this.setPos(), TweenLite.to(this, e.TIME, {
				y: Config.SCREEN_HEIGHT / 2 - e.UPHEIGHT,
				onComplete: this.moveOver,
				onCompleteScope: this,
				ease: Linear.easeNone
			}))
	}, e.prototype.moveOver = function() {
		this._textFiled && this._textFiled.parent && this._textFiled.parent.removeChild(this._textFiled), this && this.parent &&
			(this._isLoading = !0, this.parent.contains(this) && this.parent.removeChild(this), Notice.setLeftMessagePool(this),
				this.setPos())
	}, e.TIME = 1, e.UPHEIGHT = 0, e
}(h5_engine.GSprite);
__reflect(LeftMessageView.prototype, "LeftMessageView");
var LegendItemGetNoticeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msgArr = [], e._colorArr = [], e._bottomIconArr = [], e._showIndex = 0, e._count = 0, e._msgContainerArr = [],
			e._msgContainerPool = [], App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e.setPos(), e.init(),
			e
	}
	return __extends(e, t), e.prototype.setPos = function() {
		this.x = Config.SCREEN_WIDTH - 347 >> 1, this.y = .57 * Config.SCREEN_HEIGHT
	}, e.prototype.show = function(t, e) {
		this.addItem(t, e)
	}, e.prototype.addItem = function(t, i) {
		if (t) {
			var n = this.getMsgContainer(),
				a = n.getChildByName("itemname"),
				o = n.getChildByName("itemgrid"),
				r = n.getChildByName("itemname1"),
				s = n.getChildByName("imgname");
			o.setData(t);
			var h = App.config.q_itemContainer.getDataBean(t),
				l = ItemUtil.getItemNameColor(t, !0);
			a.textFlow = HtmlUtil.getHtmlStr("<font color='" + l + "'>" + h.q_name + "</font>"), i ? (s.source =
					"main_img_huodebg3_png", o.x = 22, o.y = 13, r.visible = !0, a.x = 117, a.y = 61) : (s.source =
					"common1_xybl_01_png", o.x = 138, o.y = 151, r.visible = !1, a.x = 85, a.y = 101), n.alpha = 1, n.scaleX = .5, n
				.scaleY = .5, this.x = Config.SCREEN_WIDTH - .5 * n.width >> 1, this.addChild(n), App.timer.doTimeOnce(this, e.DELAYTIME,
					this.showPos1, [n], !1), App.timer.doTimeOnce(this, 2 * e.DELAYTIME, this.showPos2, [n], !1), App.timer.doTimeOnce(
					this, 3 * e.DELAYTIME, this.showPos3, [n], !1), App.timer.doTimeOnce(this, 4 * e.DELAYTIME, this.showPos4, [n],
					!1)
		}
	}, e.prototype.showPos1 = function(t) {
		t.scaleX = 1.2, t.scaleY = 1.2, this.x = Config.SCREEN_WIDTH - 1.2 * t.width >> 1
	}, e.prototype.showPos2 = function(t) {
		t.scaleX = .95, t.scaleY = .95, this.x = Config.SCREEN_WIDTH - .95 * t.width >> 1
	}, e.prototype.showPos3 = function(t) {
		t.scaleX = 1.03, t.scaleY = 1.03, this.x = Config.SCREEN_WIDTH - 1.03 * t.width >> 1
	}, e.prototype.showPos4 = function(t) {
		t.scaleX = .97, t.scaleY = .97, this.x = Config.SCREEN_WIDTH - .97 * t.width >> 1, App.timer.doTimeOnce(this, e.DELAYTIME,
			this.showPos, [t], !1)
	}, e.prototype.showPos = function(t) {
		t.scaleX = 1, t.scaleY = 1, this.x = Config.SCREEN_WIDTH - t.width >> 1, TweenLite.to(t, .6, {
			delay: 2,
			alpha: 0,
			onComplete: this.removeItem,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.removeItem = function(t) {
		t && t.parent ? (this.removeChild(t), -1 == this._msgContainerPool.indexOf(t) && this._msgContainerPool.push(t),
			this._msgContainerArr.shift(), TweenLite.killTweensOf(t)) : (GameLog.log("出错、。、、、、"), this.clearData())
	}, e.prototype.clearData = function() {
		this._msgArr = [], this._colorArr = [], this._bottomIconArr = [], this._msgContainerArr = [], this._showIndex = 0,
			App.layer.messageLayer.contains(this) && App.layer.messageLayer.removeChild(this)
	}, e.prototype.getMsgContainer = function() {
		return this._msgContainerPool.length < 3 && this.init(), this._msgContainerPool.length > 0 ? this._msgContainerPool
			.pop() : void 0
	}, e.prototype.init = function() {
		for (var t = 0; 3 > t; t++) {
			var e = new h5_engine.GDisplayObjectContainer,
				i = App.thing.create(eui.Image, egret.getQualifiedClassName(this), !0);
			i.source = "main_img_huodebg3_png", i.touchEnabled = !1, i.x = 0, i.y = 0, i.name = "imgname", e.addChild(i);
			var n = new h5_engine.GTextField;
			n.x = 117, n.y = 19, n.width = 184, n.size = 22, n.textColor = 16368719, n.name = "itemname1", n.text = "传说物品!", n
				.textAlign = egret.HorizontalAlign.CENTER, e.addChild(n);
			var a = new h5_engine.GTextField;
			a.width = 184, a.size = 22, a.textAlign = egret.HorizontalAlign.CENTER, a.name = "itemname", e.addChild(a);
			var o = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			o.name = "itemgrid", o.isShowDesc = !1, e.addChild(o), this._msgContainerPool.push(e)
		}
	}, e.TOTALNUM = 5, e.DELAYTIME = 50, e.DELAYTIMENum = 2e3, e.MSG_H = 38, e.MSG_W = 180, e._typeArr = ["gongji",
		"shengming", "wufang", "mofang"
	], e
}(h5_engine.GSprite);
__reflect(LegendItemGetNoticeView.prototype, "LegendItemGetNoticeView");
var MiddleMessageView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msgAry = [], e._colorAry = [], e._count = 0, e._showIndex = 0, e._textFieldAry = [], e._imageAry = [], e._labelPool = [],
			e._imagePool = [], e._msgContainerPool = [], e._msgContainerAry = [], e._clearIdAry = [], e
	}
	return __extends(e, t), e.prototype.showMiddleMessage = function(t, i) {
		App.layer.messageLayer.contains(this) || (App.layer.messageLayer.addChild(this), App.dispatcher.addEventListener(
			EventType.STGAE_RESIZE, this.setPos, this)), this._msgAry.push(t), this._colorAry.push(i), App.timer.doTimeOnce(
			this, e.DELAYTIME, this.addLabelItem)
	}, e.prototype.addLabelItem = function() {
		if (this._count < e.TOTALNUM) {
			var t = this._msgAry[this._showIndex];
			if (t) {
				var i = this.getGDisplayObjectContainer();
				i.alpha = 1, i.removeChildren();
				var n = this.getImage();
				n.name = "image", n.alpha = 1, n.source = "notice_notice_bg2_png_png", n.height = 22;
				var a = this.getBaseTextField();
				a.name = "label", a.htmlText = t, a.size = 20, a.textColor = this._colorAry[this._showIndex], a.textAlign = egret
					.HorizontalAlign.CENTER, a.verticalAlign = egret.VerticalAlign.MIDDLE, n.width = a.textWidth + 80, a.x = n.width -
					a.textWidth >> 1, a.y = n.height - 16 >> 1, i.addChild(n), i.addChild(a), this.addChild(i), this._imageAry.push(
						n), this._textFieldAry.push(a), this._msgContainerAry.push(i), this.x = (Config.SCREEN_WIDTH - n.width) / 2,
					this.y = .4 * Config.SCREEN_HEIGHT, ++this._showIndex, ++this._count, this.refreshPos(), TweenLite.to(i, .1, {
						onComplete: this.scale2Time,
						onCompleteParams: [i],
						onCompleteScope: this
					})
			}
		}
	}, e.prototype.scale2Time = function(t) {
		TweenLite.to(t, .1, {
			x: this.width - t.width,
			onComplete: this.showTime,
			onCompleteParams: [t],
			delay: .5,
			onCompleteScope: this
		})
	}, e.prototype.showTime = function(t) {
		this.refreshPos(), App.timer.doTimeOnce(this, e.DELAYTIME, this.addLabelItem);
		var i = App.timer.doTimeOnce(this, 4e3, this.scale1Time, [t], !1);
		this._clearIdAry.push(i)
	}, e.prototype.scale1Time = function(t) {
		App.timer.clearTimer(this._clearIdAry.shift(), this), TweenLite.to(t, 1, {
			alpha: .01,
			onComplete: this.removeImage,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.removeImage = function(t) {
		var i = t.getChildByName("image");
		i = null;
		var n = t.getChildByName("label");
		n = null, this.removeLabelChild(t), this.refreshPos(), this._count < e.TOTALNUM && this._count > 0 && App.timer.doTimeOnce(
			this, e.DELAYTIME, this.addLabelItem), 0 == this._count && (this._imageAry = [], this._textFieldAry = [], this._msgAry = [],
			this._colorAry = [], this._showIndex = 0, App.layer.messageLayer.contains(this) && (App.layer.messageLayer.removeChild(
				this), App.dispatcher.removeEventListener(EventType.STGAE_RESIZE, this.setPos, this)))
	}, e.prototype.removeLabelChild = function(t) {
		t && t.parent ? (t.parent.removeChild(t), this._msgContainerPool.push(t), t = null, this._msgContainerAry.shift(),
			--this._count) : (this._textFieldAry = [], this._msgContainerAry = this._imageAry = this._msgAry = this._colorAry = [],
			this._count = this._showIndex = 0, App.layer.messageLayer.contains(this) && (App.dispatcher.removeEventListener(
				EventType.STGAE_RESIZE, this.setPos, this), App.layer.messageLayer.removeChild(this)))
	}, e.prototype.getGDisplayObjectContainer = function() {
		return this._msgContainerPool.length > 0 ? this._msgContainerPool.pop() : new h5_engine.GDisplayObjectContainer
	}, e.prototype.refreshPos = function() {
		for (var t = 0; t < this._msgContainerAry.length; t++) {
			var i = this._msgContainerAry[t];
			TweenLite.to(i, .3, {
				y: t * e.H,
				onCompleteScope: this
			})
		}
	}, e.prototype.getBaseTextField = function() {
		return this._labelPool.length > 0 ? this._labelPool.pop() : new h5_engine.GTextField
	}, e.prototype.getImage = function() {
		return this._imagePool.length > 0 ? this._imagePool.pop() : new eui.Image
	}, e.prototype.setPos = function(t) {
		void 0 === t && (t = null), this.x = (Config.SCREEN_WIDTH - this.width) / 2, this.y = .18 * Config.SCREEN_HEIGHT
	}, e.DELAYTIME = 300, e.TOTALNUM = 4, e.H = 20, e
}(h5_engine.GSprite);
__reflect(MiddleMessageView.prototype, "MiddleMessageView");
var MousePosMessageView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e
	}
	return __extends(e, t), e.prototype.setPos = function(t) {
		void 0 === t && (t = null), this.x = Config.SCREEN_WIDTH >> 1, this.y = .59 * Config.SCREEN_HEIGHT
	}, e.prototype.showMousePosMessage = function(t, i) {
		if (!this._isLoading) {
			this._isLoading = !0, this._bitmap = new h5_engine.GBitmap, this._bitmap.texture = RES.getRes(
					"common1_madeng_bg_png"), this._bitmap.scale9Grid = new egret.Rectangle(40, 4, 148, 24), this.addChild(this._bitmap),
				this._textFiled = new h5_engine.GTextField, this._textFiled.htmlText = t, this._textFiled.textColor = i, this._textFiled
				.size = 18, this._textFiled.textAlign = egret.HorizontalAlign.CENTER, this._textFiled.verticalAlign = egret.VerticalAlign
				.MIDDLE, this._textFiled.x = -this._textFiled.textWidth / 2, this.addChild(this._textFiled);
			var n = this._textFiled.textWidth + 40;
			228 > n && (n = 228), this._textFiled.height = 32, this._bitmap.width = n, this._bitmap.height = 32, this._bitmap.x = -
				this._bitmap.width / 2, App.layer.messageLayer.contains(this) || App.layer.messageLayer.addChild(this), this.setPos(),
				TweenLite.to(this, e.TIME, {
					y: .59 * Config.SCREEN_HEIGHT - e.UPHEIGHT,
					onComplete: this.moveOver,
					onCompleteScope: this,
					ease: Linear.easeNone
				})
		}
	}, e.prototype.moveOver = function() {
		this._bitmap && this._bitmap.parent && this._bitmap.parent.removeChild(this._bitmap), this._textFiled && this._textFiled
			.parent && this._textFiled.parent.removeChild(this._textFiled), this && this.parent && (this._isLoading = !1, this
				.parent.contains(this) && this.parent.removeChild(this), Notice.setMousePosMessagePool(this), this.setPos())
	}, e.TIME = .8, e.UPHEIGHT = 100, e
}(h5_engine.GSprite);
__reflect(MousePosMessageView.prototype, "MousePosMessageView");
var RechangeTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msgArr = [], e._colorArr = [], e._bottomIconArr = [], e._showIndex = 0, e._count = 0, e._msgContainerArr = [],
			e._msgContainerPool = [], App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e.setPos(), e.init(),
			e
	}
	return __extends(e, t), e.prototype.setPos = function() {
		this.x = 0, this.y = .77 * Config.SCREEN_HEIGHT
	}, e.prototype.show = function(t, e, i) {
		void 0 === i && (i = 0), this._msgArr.push(t), this._bottomIconArr.push(i), this.addItem(e, t)
	}, e.prototype.addItem = function(t, i) {
		if (i) {
			this._count >= e.TOTALNUM && this.removeItem(this._msgContainerArr[0]);
			for (var n = this.getMsgContainer(); n.numChildren > 0;) UIMaker.putToPool(n.removeChildAt(0));
			this._bottomIconArr[this._showIndex];
			n.x = 0, n.y = 0, this.addChild(n), UIMaker.getImage(n, this, "rechangetip_jiachengdi_png");
			for (var a = 0; a < i.length; a++) UIMaker.getImage(n, this, "rechangetip_" + i.charAt(a) + "_png", 18 * a + 85,
				10);
			UIMaker.getImage(n, this, "rechangetip_" + e._typeArr[t] + "_png", 10, 7), this._msgContainerArr.push(n), this._showIndex++,
				this._count++, this.refreshPos(), TweenLite.to(n, 1, {
					x: -300,
					delay: 1,
					onComplete: this.removeItem,
					onCompleteParams: [n],
					onCompleteScope: this
				})
		}
	}, e.prototype.removeItem = function(t) {
		if (t && t.parent) {
			for (var e = 0; e < t.numChildren; e++) UIMaker.putToPool(t[e]);
			this.removeChild(t), -1 == this._msgContainerPool.indexOf(t) && this._msgContainerPool.push(t), this._msgContainerArr
				.shift(), this._count--, this.refreshPos(), TweenLite.killTweensOf(t)
		} else GameLog.log("出错、。、、、、"), this.clearData();
		this._count <= 0 && this.clearData()
	}, e.prototype.clearData = function() {
		this._msgArr = [], this._colorArr = [], this._bottomIconArr = [], this._msgContainerArr = [], this._showIndex = 0,
			App.layer.messageLayer.contains(this) && App.layer.messageLayer.removeChild(this)
	}, e.prototype.refreshPos = function() {
		for (var t = this._msgContainerArr.length - 1; t > 0; t--) {
			var i = this._msgContainerArr[this._msgContainerArr.length - 1 - t];
			i && TweenLite.to(i, .3, {
				y: 0 - t * e.MSG_H
			})
		}
	}, e.prototype.getMsgContainer = function() {
		return this._msgContainerPool.length < 5 && this.init(), this._msgContainerPool.length > 0 ? this._msgContainerPool
			.pop() : void 0
	}, e.prototype.init = function() {
		for (var t = 0; 10 > t; t++) {
			var e = new h5_engine.GDisplayObjectContainer;
			this._msgContainerPool.push(e)
		}
	}, e.TOTALNUM = 5, e.DELAYTIME = 300, e.DELAYTIMENum = 2e3, e.MSG_H = 38, e.MSG_W = 180, e._typeArr = ["gongji",
		"shengming", "wufang", "mofang", "mingzhong", "shanbi", "baoji", "baoshang"
	], e
}(h5_engine.GSprite);
__reflect(RechangeTipView.prototype, "RechangeTipView");
var RechangeTipView1 = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msgArr = [], e._colorArr = [], e._bottomIconArr = [], e._showIndex = 0, e._count = 0, e._msgContainerArr = [],
			e._msgContainerPool = [], App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos, e), e.setPos(), e.init(),
			e
	}
	return __extends(e, t), e.prototype.setPos = function() {
		this.x = 80, this.y = .33 * Config.SCREEN_HEIGHT
	}, e.prototype.show = function(t, e, i) {
		void 0 === i && (i = 0), this._msgArr.push(t), this._bottomIconArr.push(i), this.addItem(e)
	}, e.prototype.addItem = function(t) {
		var i = this._msgArr[this._showIndex];
		if (i) {
			this._count >= e.TOTALNUM && this.removeItem(this._msgContainerArr[0]);
			for (var n = this.getMsgContainer(); n.numChildren > 0;) UIMaker.putToPool(n.removeChildAt(0));
			this._bottomIconArr[this._showIndex];
			n.x = 20, n.y = 40, this.addChild(n), UIMaker.getImage(n, this, "rechangetip_jiachengdi_png");
			for (var a = 0; a < i.length; a++) UIMaker.getImage(n, this, "rechangetip_" + i.charAt(a) + "_png", 18 * a + 85,
				10);
			UIMaker.getImage(n, this, "rechangetip_" + e._typeArr[t] + "_png", 10, 7), this._showIndex++, this._count++, this._msgContainerArr
				.push(n), App.timer.doTimeOnce(this, e.DELAYTIME, this.showPos, [n], !1)
		}
	}, e.prototype.showPos = function(t) {
		t.x = 0, t.y = 0, this.refreshPos(), TweenLite.to(t, .4, {
			x: -300,
			delay: .7,
			alpha: .9,
			onComplete: this.removeItem,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.removeItem = function(t) {
		if (t && t.parent) {
			for (var e = 0; e < t.numChildren; e++) UIMaker.putToPool(t[e]);
			this.removeChild(t), -1 == this._msgContainerPool.indexOf(t) && this._msgContainerPool.push(t), this._msgContainerArr
				.shift(), this._count--, this.refreshPos(), TweenLite.killTweensOf(t)
		} else GameLog.log("出错、。、、、、"), this.clearData();
		this._count <= 0 && this.clearData()
	}, e.prototype.clearData = function() {
		this._msgArr = [], this._colorArr = [], this._bottomIconArr = [], this._msgContainerArr = [], this._showIndex = 0,
			App.layer.messageLayer.contains(this) && App.layer.messageLayer.removeChild(this)
	}, e.prototype.refreshPos = function() {
		for (var t = this._msgContainerArr.length - 1; t > 0; t--) {
			var i = this._msgContainerArr[this._msgContainerArr.length - 1 - t];
			i && TweenLite.to(i, .3, {
				y: 0 - t * e.MSG_H
			})
		}
	}, e.prototype.getMsgContainer = function() {
		return this._msgContainerPool.length < 5 && this.init(), this._msgContainerPool.length > 0 ? this._msgContainerPool
			.pop() : void 0
	}, e.prototype.init = function() {
		for (var t = 0; 10 > t; t++) {
			var e = new h5_engine.GDisplayObjectContainer;
			this._msgContainerPool.push(e)
		}
	}, e.TOTALNUM = 5, e.DELAYTIME = 100, e.DELAYTIMENum = 2e3, e.MSG_H = 38, e.MSG_W = 180, e._typeArr = ["gongji",
		"shengming", "wufang", "mofang"
	], e
}(h5_engine.GSprite);
__reflect(RechangeTipView1.prototype, "RechangeTipView1");
var NumberLevel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._prefix = "common1_imglonghun_", e._ten = "10", e._hundred = "100", e._unit = "c", e._w = 25, e._h = 25, e._gap =
			0, e._longGap = 5, e._shortGap = -3, e._dirction = 1, e._numberList = [], e._value = -1, e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i, n, a, o, r, s) {
		void 0 === t && (t = "j"), void 0 === e && (e = "common1_jieduan_0_png"), void 0 === i && (i = 25), void 0 === n &&
			(n = 25), void 0 === a && (a = 8), void 0 === o && (o = 0), void 0 === r && (r = "10"), void 0 === s && (s = "100"),
			this._w = i, this._h = n, this._longGap = a, this._shortGap = o, this._prefix = e, this._unit = t, this._ten = r,
			this._hundred = s
	}, e.prototype.getValue = function() {
		return this._value
	}, e.prototype.setValue = function(t, e) {
		if (void 0 === e && (e = 1), t != this._value) {
			this._value = t, this._dirction = e, this.clear();
			t.toString().split(""), t.toString().length;
			this._gap = t > 20 ? this._shortGap : this._longGap;
			var i = [],
				n = t;
			t >= 100 && (n = t % 100, i.push(Math.floor(t / 100)), i.push(this._hundred));
			var a = Math.floor(n / 10),
				o = n % 10;
			a > 1 ? (i.push(a), i.push(this._ten), 0 != o && i.push(o)) : 1 == a ? (i.push(this._ten), 0 != o && i.push(o)) :
				(t >= 100 && i.push(0), i.push(o)), i.push(this._unit);
			for (var r, s = 0, h = 0, l = 0; l < i.length; l++) 1 == e ? (s = 0, h = (this._h + this._gap) * l) : (s = (this._w +
				this._gap) * l, h = 0), r = UIMaker.getImage(this, this, this._prefix + i[l] + "_png", s, h), this._numberList.push(
				r)
		}
	}, e.prototype.moveTo = function(t, e, i) {
		void 0 === i && (i = null), this.x = t, this.y = e, i && i.addChild(this)
	}, e.prototype.clear = function() {
		if (this._numberList) {
			for (var t = 0; t < this._numberList.length; t++) UIMaker.putToPool(this._numberList[t]);
			this._numberList = []
		}
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return -1 == this._dirction ? this._numberList.length * (this._w + this._gap) - this._gap : this._w
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 1 == this._dirction ? this._numberList.length * (this._h + this._gap) - this._gap : this._h
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.clear(), this.parent && this.parent.removeChild(this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(NumberLevel.prototype, "NumberLevel");
var SystemMessage = function(t) {
	function e(e) {
		return t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.width = 640, this.height = 30, this._gap = 30, this._time = 6, this._speed = this.width / this._time, this._loop =
			.01
	}, e.prototype.show = function() {
		t.prototype.show.call(this), null == this._bg && (this._bg = UIMaker.getImage(this, this,
				"notice_notice_bg1_png_png", 0, 0), this._bg.height = this.height, this.addChild(this._bg)), null == this._mask &&
			(this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics.beginFill(0, 1), this._mask.graphics
				.drawRect(0, 0, this.width, this.height), this._mask.graphics.endFill(), this.addChild(this._mask)), this._dispatcher
			.addEventListener(EventType.SHOW_HIDE_PANEL, this.showOrHide, this), this.maskHandle(App.panel.getPanelNum() > 0),
			this.resize()
	}, e.prototype.showOrHide = function(t) {
		this.maskHandle(t)
	}, e.prototype.maskHandle = function(t) {
		this._mask && (this._mask.visible = t, this.mask = t ? this._mask : null)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._mask && (this._mask.graphics
			.clear(), this._mask = null)
	}, e.prototype.createMessage = function(t) {
		var e = UIMaker.getTextField(this, this, this.width, (this.height - 20) / 2, void 0, 20, t.color, 18);
		if (e.textFlow = HtmlUtil.getHtmlStr(t.content + ""), e.verticalAlign = egret.VerticalAlign.MIDDLE, e.visible = !1,
			t.target = e, this._showQueue.length > 0) {
			var i = this._showQueue[this._showQueue.length - 1];
			i.delay > 0 ? t.delay = i.delay + (i.target.width + this._gap) / this._speed : i.target.width + i.target.x > this.width ?
				t.delay = (i.target.width + i.target.x - this.width + this._gap) / this._speed : t.delay = 0
		} else t.delay = 0;
		return t
	}, e.prototype.showMessage = function() {
		for (var t, e = this._showQueue.length, i = 0; e > i; i++) t = this._showQueue[i], t.delay < 0 ? t.isPlaying && (t.target
			.visible || (t.target.visible = !0), t.target.x -= this._speed * this._loop, t.target.x < -t.target.width - this._gap &&
			(t.isPlaying = !1, t.dispose = !0)) : (t.delay -= this._loop, t.isPlaying = !0)
	}, e.prototype.resize = function(t) {
		void 0 === t && (t = .255), this.x = 0, this.y = Config.SCREEN_HEIGHT * t
	}, e.prototype.dispose = function() {
		this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._mask && (this._mask.graphics.clear(), this._mask =
			null), t.prototype.dispose.call(this)
	}, e
}(NoticeBase);
__reflect(SystemMessage.prototype, "SystemMessage");
var TopMessage = function(t) {
	function e(e) {
		return t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.width = 640, this.height = 30, this._gap = 30, this._time = 5, this._speed = this.width / this._time, this._loop =
			.01
	}, e.prototype.show = function() {
		t.prototype.show.call(this), null == this._bg && (this._bg = UIMaker.getImage(this, this,
				"notice_notice_bg1_png_png", 0, 0), this._bg.height = this.height, this.addChild(this._bg)), null == this._mask &&
			(this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics.beginFill(0, 1), this._mask.graphics
				.drawRect(0, 0, this.width, this.height), this._mask.graphics.endFill(), this.addChild(this._mask)), this._dispatcher
			.addEventListener(EventType.SHOW_HIDE_PANEL, this.showOrHide, this), this.maskHandle(App.panel.getPanelNum() > 0),
			this.resize()
	}, e.prototype.showOrHide = function(t) {
		this.maskHandle(t)
	}, e.prototype.maskHandle = function(t) {
		this._mask && (this._mask.visible = t, this.mask = t ? this._mask : null)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._mask && (this._mask.graphics
			.clear(), this._mask = null)
	}, e.prototype.createMessage = function(t) {
		var e = UIMaker.getTextField(this, this, this.width, (this.height - 20) / 2, void 0, 20, t.color, 18);
		if (e.textFlow = HtmlUtil.getHtmlStr(t.content + ""), e.verticalAlign = egret.VerticalAlign.MIDDLE, e.visible = !1,
			t.target = e, this._showQueue.length > 0) {
			var i = this._showQueue[this._showQueue.length - 1];
			i.delay > 0 ? t.delay = i.delay + (i.target.width + this._gap) / this._speed : i.target.width + i.target.x > this.width ?
				t.delay = (i.target.width + i.target.x - this.width + this._gap) / this._speed : t.delay = 0
		} else t.delay = 0;
		return t
	}, e.prototype.showMessage = function() {
		for (var t, e = this._showQueue.length, i = 0; e > i; i++) t = this._showQueue[i], t.delay < 0 ? t.isPlaying && (t.target
			.visible || (t.target.visible = !0), t.target.x -= this._speed * this._loop, t.target.x < -t.target.width - this._gap &&
			(t.isPlaying = !1, t.dispose = !0)) : (t.delay -= this._loop, t.isPlaying = !0)
	}, e.prototype.resize = function(t) {
		void 0 === t && (t = .228), this.x = 0, this.y = Config.SCREEN_HEIGHT * t
	}, e.prototype.dispose = function() {
		this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._mask && (this._mask.graphics.clear(), this._mask =
			null), t.prototype.dispose.call(this)
	}, e
}(NoticeBase);
__reflect(TopMessage.prototype, "TopMessage");
var CrossFlagView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._id = 10001, e.euiSkinName = "CrossFlagViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bean = App.config.q_activitiesContainer.getDataBean(this._id), this._bg = UIMaker.getCImage(null, this,
			ResPathUtil.getImgPath("bj_flag", "zone", ".jpg"), 0, 60), this.addChildAt(this._bg, 0), this._gridLayer = new GridContainer(
			EnumGridStyle.GRID_STYLE_NORMAL, BagItemCenter.COL, 38, 46), this._gridLayer.initLayers([GridLayout.BG,
			GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(184, 521, this), this._gridLayer2 = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
			BagItemCenter.COL, 38, 46), this._gridLayer2.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB,
			GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer2.moveTo(184, 647, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnter, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn_go), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onDesc, this, this.btn_desc), this._gridLayer.dataProvider = ItemUtil.getRewardDataList(
				this._bean.q_show_rewards), this._gridLayer2.dataProvider = ItemUtil.getRewardDataList(this._bean.q_icon), App.tip
			.addTip(this.btn_desc, new TipData(1, [this._bean.q_desc, "玩法说明"]))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer.clear(), this._gridLayer2.clear(), App.tip.removeTip(this.btn_desc)
	}, e.prototype.onEnter = function(t, e) {
		e == EnumZoneType.CROSS_FLAG && App.panel.removePanel(7010)
	}, e.prototype.onGo = function(t) {
		ZoneCommandSender.sendC2S_ZoneIntoMessage(EnumZoneID.CROSS_FLAG_ID, EnumZoneType.CROSS_FLAG)
	}, e.prototype.onDesc = function(t) {}, e.prototype.dispose = function() {
		this._bg && UIMaker.putToPool(this._bg), this._bg = null, this._gridLayer && this._gridLayer.dispose(), this._gridLayer =
			null, this._gridLayer2 && this._gridLayer2.dispose(), this._gridLayer2 = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(CrossFlagView.prototype, "CrossFlagView");
var ZoneCrossFlagTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.enter = function() {
		t.prototype.enter.call(this), null == this._view && (this._view = new CrossFlagRank, this.addChild(this._view)),
			null == this._map && (this._map = new MiniMapView, this.addChild(this._map)), this._view.show(), this._map.show()
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._view && (this._view.hide(), this._view.dispose(), this._view = null), this._map &&
			(this._map.hide(), this._map.dispose(), this._map = null)
	}, e
}(BaseZone);
__reflect(ZoneCrossFlagTrack.prototype, "ZoneCrossFlagTrack");
var CrossFlagRank = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "CrossFlagRankSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(CrossEvent.CROSS_FLAG_RANK_UPDATE, this.onUpdate,
			this), this._dispatcher.addEventListener(CrossEvent.APPROACH_FLAG, this.onApproach, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn), this.btn.y = Config.SCREEN_HEIGHT - 330 + 73
	}, e.prototype.onUpdate = function(t) {
		var e = t.finishTime;
		if (this.visible = -1 != e, -1 != e) {
			App.timer.serverTimeEnd(this, this.onTimer, e);
			var i = t.infos;
			i.sort(this.sort);
			for (var n, a = [this.name_txt0, this.name_txt1, this.name_txt2], o = [this.num_txt0, this.num_txt1, this.num_txt2],
					r = [this.us0, this.us1, this.us2], s = App.global.characterData.serverid, h = 0; 3 > h; h++) n = i[h], n ? (a[h]
				.textFlow = HtmlUtil.getHtmlStr("S" + n.serverId + ":" + HtmlUtil.formatColor(n.score + "", 3533365)), o[h].text =
				"占领数：" + n.flagNum, r[h].visible = s == n.serverId) : (a[h].text = "", o[h].text = "", r[h].visible = !1)
		}
	}, e.prototype.onApproach = function(t, e, i) {
		this._npcID = t, this._npcModelID = e, this.btn.visible = i
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? (this.time_txt.text = StringUtil.convertTime(t.spuleTime), this.time_txt.textColor = 3533365) : (
			this.time_txt.text = "已结束", this.time_txt.textColor = 15938355)
	}, e.prototype.onTouch = function(t) {
		App.dispatcher.dispatchEvent(ZoneEvent.ZONE_NPC, this._npcModelID)
	}, e.prototype.sort = function(t, e) {
		return t.score > e.score ? -1 : t.score < e.score ? 1 : t.updateTime < e.updateTime ? -1 : t.updateTime > e.updateTime ?
			1 : 0
	}, e
}(ViewBase);
__reflect(CrossFlagRank.prototype, "CrossFlagRank");
var CrossExpoiltRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("排名奖励"), this._windowView
			.height = 732, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"CrossExpliotRankSkin"), this._windowView.viewContainer.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller = new VScrollPanel(t.width, t.height, CrossExpolitRankRender, 1), this._view.con_item.addChild(this
			._vscroller)
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this._windowView.dispose(), this._windowView = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(CrossEvent.CROSS_RANK, this.refresh, this),
			CrossCommandSender.sendC2S_LinkContendRankInfo()
	}, e.prototype.refresh = function(t) {
		if (this._view.txt_rank.text = "我的当前排名：" + t.myRank.toString(), this._view.addNum_txt.text = t.myRankDesc, !t.playerName ||
			t.playerName.length <= 0) this._view.txt_rank.text = "我的当前排名：未上榜", this._vscroller.dataProvider = [];
		else {
			var e = t.playerName;
			e.push(""), this._vscroller.dataProvider = e
		}
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 525
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 732
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CrossExpoiltRankPanel.prototype, "CrossExpoiltRankPanel");
var CrossFightLogPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("历史战绩"), this._windowView
			.height = 611, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"CrossFightLogSkin"), this._windowView.viewContainer.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller = new VScrollPanel(t.width, t.height, CrossFightLogRender, 1), this._view.con_item.addChild(this._vscroller)
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this._windowView.dispose(), this._windowView = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(CrossEvent.CROSS_FIGHTLOG, this.refresh, this),
			CrossCommandSender.sendC2S_LinkContendHistoryInfo()
	}, e.prototype.refresh = function(t) {
		t && t.length > 0 ? this._view.kongbaitishi.visible = !1 : this._view.kongbaitishi.visible = !0, this._vscroller.dataProvider =
			t
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 525
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 611
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CrossFightLogPanel.prototype, "CrossFightLogPanel");
var CrossFightRewardPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window
			.close_btn, this._window.imgTitle.source = "titleview_kuafuact_png", this._window.imgBottom.visible = !1, this._view =
			UIMaker.createViewBase("CrossFightRewardSkin"), this._window.viewContainer.addChild(this._view);
		var e = this._view.con;
		this._vscroller = new VScrollPanel(e.width, e.height, CrossFightRewardRender, 0), this._vscroller.scrollPolicyH =
			eui.ScrollPolicy.OFF, e.addChild(this._vscroller), this._bg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath(
				"bg_038", "cross_service_act"), 0, 61), this._view.addChildAt(this._bg, 0), this._view.log_txt.textFlow =
			HtmlUtil.getHtmlStr("<font color='#35ea35'><u>历史战绩</u></font>"), App.tip.addTip(this._view.des_btn, new TipData(1,
				[GameUtil.getGlobalConfigData(278).q_string_value, "玩法说明"]))
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, App.tip.removeTip(this._view.des_btn), this._bg.dispose(), this._bg =
			null, this._vscroller && this._vscroller.dispose(), this._vscroller = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._window.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.log_txt), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.rank_btn), this._dispatcher.addEventListener(CrossEvent.CROSS_REFRESH, this.refresh, this),
			CrossCommandSender.sendC2S_LinkContendInfo()
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.log_txt:
				App.panel.openPanel(253);
				break;
			case this._view.rank_btn:
				App.panel.openPanel(254)
		}
	}, e.prototype.refresh = function() {
		for (var t, e, i = App.data.crossCenter(), n = i.scoreSerArr.length, a = 0; n > a; a++) t = i.scoreSerArr[a], this._view[
				"allNum_txt" + (a + 1)].text = t.score, e = this._view["funum_txt" + (a + 1)], App.global.characterData.serverid ==
			parseInt(t.serverName) ? (e.textColor = 15925248, e.text = t.serverName + "服(本服)") : (e.textColor = 16757336, e.text =
				t.serverName + "服");
		this._view.mynum_txt.text = "我的今日军功：" + i.myExploit, this._vscroller.dataProvider = App.config.q_link_rewardContainer
			.list
	}, e.prototype.hide = function() {
		this._window.hide(), this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e
}(BasePanel);
__reflect(CrossFightRewardPanel.prototype, "CrossFightRewardPanel");
var CrossKillMonsterPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window
			.close_btn, this._window.imgTitle.source = "titleview_kuafuact_png", this._view = UIMaker.createViewBase(
				"CrossKillMonsterSkin"), this._window.viewContainer.addChild(this._view), this._bg = UIMaker.getCImage(this, this,
				ResPathUtil.getImgPath("bg_037", "cross_service_act", ".jpg"), 0, 61), this._view.addChildAt(this._bg, 0)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._bg.dispose(), this._bg = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		this._window.hide(), t.prototype.hide.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._window.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this._view.btn_go);
		var e = App.config.q_activitiesContainer.getDataBean(App.data.crossCenter().actId);
		this._view.des_txt1.textFlow = HtmlUtil.getHtmlStr(e.q_desc), this._view.des_txt2.textFlow = HtmlUtil.getHtmlStr(e.q_info)
	}, e.prototype.onClick = function() {
		App.data.crossCenter().goCrossFight()
	}, e
}(BasePanel);
__reflect(CrossKillMonsterPanel.prototype, "CrossKillMonsterPanel");
var CrossServiceActPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window
			.close_btn, this._window.imgTitle.source = "titleview_kuafuact_png", this._window.imgBottom.visible = !1, this._view =
			UIMaker.createViewBase("CrossServiceActSkin"), this._window.viewContainer.addChild(this._view);
		var e = this._view.con;
		this._vscroller = new VScrollPanel(e.width, e.height, CrossServiceActRender, 10), this._vscroller.scrollPolicyH =
			eui.ScrollPolicy.OFF, this._vscroller.scrollPolicyV = eui.ScrollPolicy.OFF, e.addChild(this._vscroller)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._window.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this._view.btn_go), this._vscroller.dataProvider = [260, 251, 252, 0], ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(
			[App.data.crossCenter().actId])
	}, e.prototype.onClick = function() {
		App.data.crossCenter().goCrossFight()
	}, e.prototype.hide = function() {
		this._window.hide(), this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._vscroller && this._vscroller.dispose(), this._vscroller = null,
			t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(CrossServiceActPanel.prototype, "CrossServiceActPanel");
var CrossServiceActvityItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CrossServiceActivityItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._gridDict = new HashObject;
		for (var i = 0; 4 > i; i++) {
			var n = new ItemGrid;
			n.isShowJobImg = !1, n.x = 100 * i + 30, n.y = 50, this.addChild(n), this._gridDict.put(i, n)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btnGet)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.clear()
	}, e.prototype.dataChanged = function() {
		if (this._bean = this.data, this.taskDATA = App.data.taskCenter.getTaskData(this._bean.q_id), this.taskDATA) {
			for (var t = ItemUtil.getRewardDataList(this._bean.q_tesk_rewards), e = 0; e < t.length; e++) {
				var i = this._gridDict.get(e);
				i.setData(t[e])
			}
			var n = StringUtil.JsonParse(this._bean.q_finish_condition_ids),
				a = "0xf33333",
				o = 0;
			this.taskDATA.otherVarMapObj && this.taskDATA.otherVarMapObj.finishcount && (o = this.taskDATA.otherVarMapObj.finishcount),
				2 == this.taskDATA.taskState ? this.btnGet.label = "领取" : 1 == this.taskDATA.taskState ? this.btnGet.label = "前往" :
				3 == this.taskDATA.taskState && (this.btnGet.label = "已完成"), o >= n[0].date1 && (a = "0x35ea35"), this.tfRule.textFlow =
				HtmlUtil.getHtmlStr(StringUtil.substitute(this._bean.q_task_des, o > n[0].date1 ? n[0].date1 : o, n[0].date1, a))
		}
	}, e.prototype.onTouch = function(t) {
		if ("前往" == this.btnGet.label) {
			var e = App.config.q_functionContainer.getDataBean(74).q_metelv;
			App.global.characterData.zhuanSheng >= e ? 1 == App.data.activityCenter.getData(App.data.crossCenter().actId).activityStates ?
				(ActivityCommandSender.sendC2S_JoinActivityMessage(App.data.crossCenter().actId), App.panel.removePanel(260)) :
				Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">活动未开启</font>") : Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">" + e + "转可参与跨服活动</font>")
		} else "领取" == this.btnGet.label && TaskCommandSender.sendFinishTask(this._bean.q_id, 7, "")
	}, e.prototype.clear = function() {
		if (t.prototype.clear.call(this), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				this._gridDict.get(e).dispose();
				var i = this._gridDict.get(e);
				i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
	}, e
}(ItemRenderer);
__reflect(CrossServiceActvityItem.prototype, "CrossServiceActvityItem");
var CrossServiceActvityView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CrossServiceActivitySkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(640, 670, CrossServiceActvityItem, 5), this._vscroller.move(0, 0, this.itemgroup),
			null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
				"cross_service_act/cross_title", "", ".jpg")))
	}, e.prototype.show = function(t) {
		this._vscroller.dataProvider = App.config.q_link_taskContainer.list, this._dispatcher.addEventListener(TaskEvent.REFRESH_TASK,
			this.referClick, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.referClick = function() {
		this._vscroller.dataProvider = App.config.q_link_taskContainer.list
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._vscroller && (this._vscroller
			.parent && this._vscroller.parent.removeChild(this._vscroller), this._vscroller.dispose(), this._vscroller = null
		)
	}, e
}(ViewBase);
__reflect(CrossServiceActvityView.prototype, "CrossServiceActvityView");
var CrossZoneTrackPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currState = 1, e._barW = 314, e._maxNum = 100, e._timeFrame = 100, e._showStateGroup = !0, e._bossPoint =
			new egret.Point(45, 49), e._view = UIMaker.createViewBase("CrossZoneTrackSkin"), e.addChild(e._view), e
	}
	return __extends(e, t), e.prototype.exit = function() {
		this._barMask && (this._barMask = null), App.timer.clearTimer(this.onTimer, this), this.clearEft(), t.prototype.exit
			.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._boss = null, this._barMask = new egret.Rectangle(0, 0, this._barW, 34), this._view
			.bar_img.mask = this._barMask, this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this),
			this._dispatcher.addEventListener(CrossEvent.CROSS_STATE_CHANGE, this.refresh, this), this._dispatcher.addEventListener(
				EventType.SELECT_MONSTER, this.onSelectBoss, this), this._dispatcher.addEventListener(EventType.UN_SELECT_MONSTER,
				this.onUnSelectBoss, this), this._dispatcher.addEventListener(EventType.BOSS_OWNER_CHANGE, this.onBossOwnerChange,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.go_btn1),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.go_btn2), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.go_btn3), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.go_btn4), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this._view.go_btn5), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.task_btn), this._dispatcher.addEventListener(TaskEvent.REFRESH_TASK, this.onSetRedImg,
				this)
	}, e.prototype.onSetRedImg = function() {
		if (this._view.red_img.visible = !1, this._view.task_btn.visible)
			for (var t = App.config.q_link_taskContainer.list, e = t.length, i = void 0, n = 0; e > n; n++)
				if (i = App.data.taskCenter.getTaskData(t[n].q_id), i && 2 == i.taskState) {
					this._view.red_img.visible = !0;
					break
				}
	}, e.prototype.onBossOwnerChange = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getMonster(t.monsterId.toString());
		e && (this._boss = e), this._owner = App.global.mapModule.mapAvatarModel.getRoleData(t.ownerId.toString())
	}, e.prototype.onSelectBoss = function(t) {
		t && ByteUtils.hasKey(t.monsterType, 8) || ByteUtils.hasKey(t.monsterType, 24) ? (this._boss = t, this._showStateGroup =
			this._view.state_group.visible = this._view.state_group0.visible = !1) : this._showStateGroup = !0
	}, e.prototype.onUnSelectBoss = function(t) {
		this._showStateGroup = !0, this._boss = null, this._owner = null
	}, e.prototype.onClick = function(t) {
		var e = -999,
			i = App.data.crossCenter().getNationMapArr();
		switch (t.currentTarget) {
			case this._view.go_btn1:
				e = i[this._view.go_btn1.name];
				break;
			case this._view.go_btn2:
				e = i[App.global.characterData.nation];
				break;
			case this._view.go_btn3:
				e = i[this._view.go_btn3.name];
				break;
			case this._view.go_btn4:
				e = EnumZoneID.MAIN_CITY_ID_OLD;
				break;
			case this._view.go_btn5:
				e = i[0];
				break;
			case this._view.task_btn:
				App.panel.openPanel(260)
		} - 999 != e && App.data.crossCenter().transfor(e)
	}, e.prototype.onEnterZone = function(t, e) {
		this.refresh()
	}, e.prototype.refresh = function() {
		var t = App.data.zoneCenter.getMyZoneData(),
			e = t.bean,
			i = App.data.crossCenter().getNationMapArr(),
			n = i.length;
		this._view.zonename_txt.text = e.q_duplicate_name, this._view.titleName_img.source = "crossZone_icon_207_png";
		for (var a = 1; n > a; a++)
			if (i[a] == e.q_id) {
				this._view.zonename_txt.text = "S" + App.data.crossCenter().serverArr[a - 1].serverid + e.q_duplicate_name, App.data
					.crossCenter().serverArr[a - 1].serverid == App.global.characterData.serverid && (this._view.titleName_img.source =
						"crossZone_icon_212_png");
				break
			} this._currState = App.data.crossCenter().crossState, this.currStateVis(), this.onSetRedImg(), 5 == this._currState &&
			0 == App.data.crossCenter().isBossRefresh && (App.data.crossCenter().isBossRefresh = !0, Alert.show(
				"boss已经刷新，是否前往击杀", "提示", "前往|取消", this.onAlert, this))
	}, e.prototype.onAlert = function(t) {
		App.dispatcher.dispatchEvent(EventType.CHARACTER_MOVE_TO_POSITION, App.data.crossCenter().getNationMapArr()[0],
			this._bossPoint.x, this._bossPoint.y)
	}, e.prototype.currStateVis = function() {
		var t = this.getCurrMapType(),
			e = App.data.crossCenter();
		App.global.characterData.nation;
		if (App.timer.clearTimer(this.onTimer, this), 6 == this._currState) this._view.visible = !1;
		else {
			this._view.visible = !0;
			var i = App.data.crossCenter().crossStateData;
			if (2 == t && 3 == this._currState || 3 == t && 3 == this._currState || 4 == t && 5 == this._currState || 0 ==
				this._showStateGroup) this._view.state_group0.visible = this._view.state_group.visible = this._view.task_btn.visible = !
				1;
			else {
				this._view.task_btn.visible = this._showStateGroup;
				var n = App.data.zoneCenter.getMyZoneData();
				n.bean;
				if (1 == this._currState) this._view.state_group.visible = !0, this._view.state_group0.visible = !1, this._view.time_txt
					.text = "10:00开启", this._view.state_num.text = "开启活动", this._maxNum = 24, this._timeFrame = 24 - Number(i) /
					3600, this.barRefresh(this._timeFrame), App.timer.doTimeLoop(this, 36e5, this.onTimer);
				else if (2 == this._currState) this._view.state_group.visible = !0, this._view.state_group0.visible = !1, this._view
					.time_txt.text = "击杀小怪：" + i + "/3000", this._view.state_num.text = "出现神兽", this._maxNum = 3e3, this.barRefresh(
						Number(i));
				else {
					this._view.state_group.visible = !0, this._view.state_group0.visible = !0, this._view.time_txt.text = "", this._view
						.state_num.text = "";
					var a = i.split(";"),
						o = "",
						r = 1,
						s = "",
						h = "";
					this._timeFrame = 0;
					for (var l = void 0, p = 0; p < a.length && (o = a[p], "" != o); p++) r = o.indexOf("#"), h = o.slice(0, r), s =
						o.slice(r + 1), l = this._view["iskill_text" + (p + 1)], "0" == s ? (l.visible = !0, this._timeFrame++) : l.visible = !
						1, h == App.global.characterData.serverid.toString() ? this._view["server_text" + (p + 1)].text = "本服" : this._view[
							"server_text" + (p + 1)].text = h + "服", this._view["monterhead_img" + (p + 1)].source = ResPathUtil.getHead(
							"42", EnumImageType.BOSS_HEAD);
					this._maxNum = 3, this.barRefresh(this._timeFrame)
				}
			}
			4 == t ? this._view.go_group0.visible = !1 : (this._view.go_group0.visible = !0, 2 == t ? this._view.backCity_group
					.visible = !0 : this._view.backCity_group.visible = !1), 4 == t && 5 != this._currState ? (this._view.go_group.visible = !
					0, this._view.go_txt2.text = "前往本服", 1 == App.global.characterData.nation ? (this._view.go_txt1.text = e.serverArr[
							1].serverid + "服", this._view.go_txt3.text = e.serverArr[2].serverid + "服", this._view.go_btn1.name = "2",
						this._view.go_btn3.name = "3") : 2 == App.global.characterData.nation ? (this._view.go_txt1.text = e.serverArr[
							0].serverid + "服", this._view.go_txt3.text = e.serverArr[2].serverid + "服", this._view.go_btn1.name = "1",
						this._view.go_btn3.name = "3") : (this._view.go_txt1.text = e.serverArr[0].serverid + "服", this._view.go_txt3.text =
						e.serverArr[1].serverid + "服", this._view.go_btn1.name = "1", this._view.go_btn3.name = "2")) : this._view.go_group
				.visible = !1, 5 == this._currState && 4 != t ? (this._goKillEft1 = EffectUtils.showCEffect(this, this._view.go_group0,
					ResPathUtil.getMenuEffect("zone", "cross_gokill1"), this._view.go_txt5.x - 50, this._view.go_txt5.y, this._goKillEft1
				), this._goKillEft2 = EffectUtils.showCEffect(this, this._view.go_group0, ResPathUtil.getMenuEffect("zone",
					"cross_gokill2"), this._view.go_txt5.x + 45, this._view.go_txt5.y + 8, this._goKillEft2)) : this.clearEft()
		}
	}, e.prototype.clearEft = function() {
		this._goKillEft1 && this._goKillEft1.dispose(), this._goKillEft1 = null, this._goKillEft2 && this._goKillEft2.dispose(),
			this._goKillEft2 = null
	}, e.prototype.onTimer = function() {
		this._timeFrame++, this._timeFrame <= 0 && App.timer.clearTimer(this.onTimer, this), this.barRefresh(this._timeFrame)
	}, e.prototype.barRefresh = function(t) {
		void 0 === t && (t = 0), this._barMask.x = t / this._maxNum * this._barW - this._barW, this._view.bar_img.mask =
			this._barMask
	}, e.prototype.getCurrMapType = function() {
		if (App.data.zoneCenter.zoneID == EnumZoneID.MAIN_CITY_ID_OLD) return 1;
		var t = App.data.crossCenter().getNationMapArr();
		return t[0] == App.data.zoneCenter.zoneID ? 4 : t[App.global.characterData.nation] == App.data.zoneCenter.zoneID ?
			2 : 3
	}, e
}(BaseZone);
__reflect(CrossZoneTrackPanel.prototype, "CrossZoneTrackPanel");
var CrossExpolitRankRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CrossExpliotRankRenderSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function() {
		this.rank_txt.text = "第" + (this.itemIndex + 1) + "名", this.name_txt.text = "", 0 == this.itemIndex ? this.rank_txt
			.textColor = 15397963 : 1 == this.itemIndex ? this.rank_txt.textColor = 15397963 : 2 == this.itemIndex ? this.rank_txt
			.textColor = 15397963 : (this.rank_txt.textColor = 11639929, this.rank_txt.text = "第4-10名"), this.itemIndex < 3 &&
			(this.name_txt.text = this.data);
		var t = GameUtil.getGlobalConfigData(277).q_string_value.replace("[", "");
		t = t.replace("]", "");
		var e = t.split(",");
		this._effect || (this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getTitleEffect(e[this.itemIndex]),
					this.reward_img.x + 100, this.reward_img.y + 30, this._effect), this._effect.scaleY = .8, this._effect.scaleX =
				.8, this.addChildAt(this._effect.view, 0)), this._effect.url = ResPathUtil.getTitleEffect(e[this.itemIndex]),
			this.reward_img.visible = !1
	}, e.prototype.clear = function() {
		this._effect && this._effect.dispose(), this._effect = null, t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(CrossExpolitRankRender.prototype, "CrossExpolitRankRender");
var CrossFightLogRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CrossFightLogRenderSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function() {
		var t = this.data;
		t && (this.time_txt.text = t.date, this.fu_txt.text = t.serverName, this.result_txt.text = "胜利")
	}, e
}(ItemRenderer);
__reflect(CrossFightLogRender.prototype, "CrossFightLogRender");
var CrossFightRewardRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "CrossFightRewardRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_lq), this._gridLayout ||
			(this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 3, 30), this._gridLayout.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this._gridLayout.setShowTip(!1), this._gridLayout.moveTo(130, 12, this))
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		this.num_txt.text = StringUtil.getChieseNum(this.itemIndex + 1) + "胜", this._gridLayout.dataProvider = ItemUtil.getRewardDataList(
				t.q_rewarks), this.btn_lq.visible = this.img_tb.visible = !1, 1 == App.data.crossCenter().rewardStateArr[this.itemIndex]
			.state ? this.btn_lq.visible = !0 : 2 == App.data.crossCenter().rewardStateArr[this.itemIndex].state && (this.img_tb
				.visible = !0)
	}, e.prototype.onClick = function() {
		var t = this.data;
		CrossCommandSender.sendC2S_LinkContendReceiveReward(t.q_id)
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(CrossFightRewardRender.prototype, "CrossFightRewardRender");
var CrossServiceActRender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.width = 605, this.height = 160
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this)
	}, e.prototype.dataChanged = function() {
		this._id = this.data, this._cimg || (this._cimg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("crossicon_" +
			this.itemIndex, "cross_service_act")))
	}, e.prototype.onClick = function() {
		this._id > 0 && App.panel.openPanel(this._id)
	}, e.prototype.clear = function() {
		this._cimg && (this._cimg.dispose(), this._cimg = null), t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(CrossServiceActRender.prototype, "CrossServiceActRender");
var ExpHintPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view || (this._view = UIMaker.createViewBase("ExpHintSkin")), this.addChild(this._view), this._view.x = 60,
			this._view.y = 136, this.close_btn = this._view.close_btn, this._bg = UIMaker.getImage(this._view, e, this.loadImage(
				"exp_hint1", ".jpg"), 7, 46), this._view.setChildIndex(this._bg, 5)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.showText(), this.addEvent()
	}, e.prototype.addEvent = function() {
		this._view.close_btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closePanel, this), this._view.go1.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener, this), "前往" == this._view.go2.text && this._view.go22.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener2, this), "前往" == this._view.go3.text && this._view.go33.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener3, this), this._view.go44.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.OnListener4, this)
	}, e.prototype.OnListener = function(t) {
		if (App.panel.removePanel(300), App.layer.zoneLayer) {
			var e = App.global.zone.getTrack(EnumZoneType.AUTO_FIGHT_ZONE);
			e && Guide.getGuide().show("点击进入关卡", Guide.RIGHT, -170, 70, e)
		}
	}, e.prototype.OnListener2 = function(t) {
		App.panel.removePanel(300), App.global.enterBtn.getButton(22) && Guide.getGuide().show("镇妖塔挑战界面", Guide.RIGHT, -220,
			25, App.global.enterBtn.getButton(22))
	}, e.prototype.OnListener3 = function(t) {
		App.panel.removePanel(300), App.global.enterBtn.getButton(22) && Guide.getGuide().show("副本列表界面", Guide.RIGHT, -220,
			25, App.global.enterBtn.getButton(22))
	}, e.prototype.OnListener4 = function(t) {
		App.panel.removePanel(300), App.global.funcOpen.isFunctionOpen(60) && App.panel.openPanel(60, {
			selectedIndex: 2
		})
	}, e.prototype.showText = function() {
		var t = GameUtil.getZoneBean(App.data.zoneCenter.zoneID),
			e = parseInt(t.q_duplicate_name);
		43 > e ? (this._view.go2.text = "60关开启", this._view.go3.text = "43关开启", this._view.go222.visible = !1, this._view.go333
			.visible = !1) : 67 > e ? (this._view.go2.text = "60关开启", this._view.go3.text = "前往", this._view.go4.text = "前往",
			this._view.jingyan.textColor = 3533365, this._view.yueka.textColor = 3533365, this._view.go222.visible = !1, this
			._view.go333.visible = !0) : (this._view.go2.text = "前往", this._view.go3.text = "前往", this._view.tongtian.textColor =
			3533365, this._view.jingyan.textColor = 3533365, this._view.go222.visible = !0, this._view.go333.visible = !0)
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(300)
	}, e.prototype.loadImage = function(t, e) {
		return ResPathUtil.getImgPath(t, "", e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.hide(), this.removeEvent()
	}, e.prototype.removeEvent = function() {
		this._view.close_btn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.closePanel, this), this._view.go1.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener, this), "前往" == this._view.go2.text && this._view.go22.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener2, this), "前往" == this._view.go3.text && this._view.go33.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnListener3, this), this._view.go44.removeEventListener(egret.TouchEvent.TOUCH_TAP,
			this.OnListener4, this)
	}, e.prototype.dispose = function() {
		this._view && (this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(ExpHintPanel.prototype, "ExpHintPanel");
var CastView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.changeRoleWeapon = function(t) {
			var i = e.forgeInfoHash.get(0),
				n = e.forgeInfoHash.get(e.selectedPos);
			switch (t.job) {
				case 2:
					e.selectedPos == e.forgeCenter.posArr[0] ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_fs",
							"icon") : i.level > n.level ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_fs2", "icon") :
						e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_fs", "icon");
					break;
				case 3:
					e.selectedPos == e.forgeCenter.posArr[0] ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_ds",
							"icon") : i.level > n.level ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_ds2", "icon") :
						e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_ds", "icon")
			}
		}, e._frame = 0, e._bgxArr = [217, 462, 360, 120, 359, 465, 116, 219], e._bgyArr = [161, 262, 504, 406, 161, 404,
			262, 504
		], e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.btnForge.label = "铸 造", this.lightGroup.visible = !1, this.imgsmall.source =
			"zhuzao_png", this._effect1 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("forge", "cast1"), 0,
				0, this._effect1), this._effect2 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("forge", "cast5"),
				320, 440, this._effect2), this._group = new eui.Group, this._group.touchChildren = !1, this.addChild(this._group),
			this._dragonCimg = UIMaker.getCImage(this._group, this, ResPathUtil.getImgPath("castDragon", "forge"), 205, 340),
			this._dragonCimg.touchEnabled = this._group.touchEnabled = !1, this.lightGroup.visible = !0, this.jiegroup.visible = !
			0
	}, e.prototype.show = function(e) {
		if (App.data.forgeCenter._currTabSelete = 1, t.prototype.show.call(this, e), this.selectPos(this.forgeCenter.getQhCurSelPos()),
			this.selBorder.visible = !1, this.miaoshutext.visible = !0, this.jiegroup.visible = !0, this.forgeCenter._currTabSelete ==
			ForgeType.Cast && App.data.taskCenter.getThreadTaskShowGuide(20)) {
			var i = App.config.q_taskModelContainer.getDataBean(App.data.taskCenter.getCurrThreadTaskId());
			20 == i.q_yindao && this.guide.show("点击铸造装备", Guide.RIGHT, this.lalGroup.x - 150, this.lalGroup.y + 65, this)
		}
	}, e.prototype.disopose = function() {
		this._dragonCimg && this._dragonCimg.dispose(), this._effect1 && this._effect1.dispose(), this._effect1 = null,
			this._effect2 && this._effect2.dispose(), this._effect2 = null, this._group && this._group.removeChildren(), this._group =
			null, t.prototype.dispose.call(this)
	}, e.prototype.onForgeResult = function(e, i, n) {
		if (n == ForgeType.Cast) {
			var a = !1;
			if (e == this.forgeCenter.selectedRoleIndex) {
				t.prototype.onForgeResult.call(this, e, i, n);
				for (var o = 0; o < i.length; ++o) {
					var r = i[o];
					this.forgeInfoHash.put(r.pos, this.forgeCenter.getRoleForgeInfo(e, r.pos, ForgeType.Cast)), this["jlNum" + r.pos]
						.text = "+" + this.forgeCenter.getRoleForgeInfo(e, r.pos, ForgeType.Cast).level, r.pos == EnumEquipType.XIE_ZI &&
						(a = !0)
				}
			}
			this.refreshAll(), this.selectPos(this.forgeCenter.getQhCurSelPos()), a ? (this._group.removeChildren(), this.addEffect1(
					320, 440, 3), this._group.addChild(this._dragonCimg), this.addEffect1(320, 440, 100), this.addEffect1(320, 440,
					2)) : (this._group.removeChildren(), this.addEffect1(320, 440, 4), this._group.addChild(this._dragonCimg)), this
				.changeRoleWeapon(App.global.roles.getRoleInfoByIndex(e)), App.data.taskCenter.getThreadTaskShowGuide(20) && this
				.hideGuide()
		}
	}, e.prototype.addEffect = function(t) {
		void 0 === t && (t = "")
	}, e.prototype.addEffect1 = function(t, e, i) {
		var n = App.thing.create(CPlayOnceEffect, "CastView", !0);
		100 == i ? n.url = ResPathUtil.getMenuEffect("panel", "jinjiechenggong") : n.url = ResPathUtil.getMenuEffect(
			"forge", "cast" + i), n.x = t, n.y = e, n.addParent(this._group), n.play()
	}, e.prototype.refreshForgeGrid = function() {
		this._frame = 0, t.prototype.refreshForgeGrid.call(this), this.refreshAll()
	}, e.prototype.refreshOneEquip = function(t, e) {
		var i = e.bg;
		i.visible = !1;
		var n = e.icon;
		n.source = ResPathUtil.getImgPath("forgepos_d" + t, "icon"), n.width = n.height = 64;
		var a = e.lal;
		a.textColor = 6407139, n.x = this._bgxArr[this._frame], n.y = this._bgyArr[this._frame], i.x = n.x - 8, i.y = n.y -
			9, a.x = n.x - 20, a.y = n.y - 2;
		var o = this.forgeInfoHash.get(t);
		o && void 0 != o.level && o.level > 0 ? a.text = "+" + o.level : a.text = "", this._frame++
	}, e.prototype.selectPos = function(e) {
		t.prototype.selectPos.call(this, e);
		var i = this.jinglian_bg.getChildByName(e + "");
		this._effect1.x = i.x + 44, this._effect1.y = i.y + 109, this.forgeCenter.seQhCurSelPos(e)
	}, e.prototype.refreshOther = function() {
		t.prototype.refreshOther.call(this), this.updateAttr();
		for (var e, i, n = (this.forgeInfoHash.get(this.selectedPos), 0); 8 > n; n++) e = this["lightimg" + n], e.visible = !
			1, i = this.posHash.get(this.forgeCenter.posArr[n]).icon, i.source = ResPathUtil.getImgPath("forgepos_d" + this.forgeCenter
				.posArr[n], "icon");
		for (var n = 0; 8 > n; n++) {
			if (e = this["lightimg" + n], i = this.posHash.get(this.forgeCenter.posArr[n]).icon, this.selectedPos == this.forgeCenter
				.posArr[n]) return void(e.visible = !0);
			i.source = ResPathUtil.getImgPath("forgepos1_" + this.forgeCenter.posArr[n], "icon"), e.visible = !0
		}
	}, e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ForgeCommonView);
__reflect(CastView.prototype, "CastView");
var ChuanShiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.changeRoleWeapon = function(t) {
			e.forgeInfoHash.get(0)
		}, e.allPosLv = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.btnForge.label = "镶 嵌", this._iconImg = UIMaker.getCImage(this, e, "", 285, 395,
				!1), this._iconImg.width = this._iconImg.height = 70, this._lvTxt = UIMaker.getTextField(this, e, 320, 397, 33,
				22, 65280, 22), this._lvTxt.textAlign = egret.HorizontalAlign.RIGHT, this.lalField4.visible = !0, this.forgeEquipNameDi
			.visible = !0, this.imgsmall.source = "", this.imgsmall.width = this.imgsmall.height = 30, this._cImgsmall =
			UIMaker.getCImage(this.lalGroup, e, "", this.imgsmall.x, this.imgsmall.y + 3, !1), this._cImgsmall.width = this._cImgsmall
			.height = 30, this._gridEftHash || (this._gridEftHash = new HashObject);
		for (var i, n = 0; 8 > n; n++) i = new CEffect, i.addParent(this.jinglian_icon), i.view.touchEnabled = !1, this._gridEftHash
			.put(App.data.forgeCenter.posArr[n], i);
		this._centerEft = new CEffect, this._centerEft.addParent(this), this._xyHash = new HashObject, this._xyHash.put(
			EnumEquipType.WU_QI, {
				x: 190,
				y: 82
			}), this._xyHash.put(EnumEquipType.TOU_KUI, {
			x: 371,
			y: 80
		}), this._xyHash.put(EnumEquipType.YI_FU, {
			x: 495,
			y: 179
		}), this._xyHash.put(EnumEquipType.XIANG_LIAN, {
			x: 541,
			y: 326
		}), this._xyHash.put(EnumEquipType.SHOU_ZHUO, {
			x: 500,
			y: 468
		}), this._xyHash.put(EnumEquipType.YAO_DAI, {
			x: 61,
			y: 469
		}), this._xyHash.put(EnumEquipType.JIE_ZHI, {
			x: 20,
			y: 326
		}), this._xyHash.put(EnumEquipType.XIE_ZI, {
			x: 65,
			y: 181
		})
	}, e.prototype.show = function(e) {
		App.data.forgeCenter._currTabSelete = 3, t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onSelectEquip, this, this.jinglian_bg), this._dispatcher.addEventListener(PlayerAttributeEvent.CHARACTER_LEVEL,
				this.onLevelChange, this), App.global.roles.getRoleInfoByIndex(App.data.forgeCenter.selectedRoleIndex) && this.selectPos(
				App.data.forgeCenter.getRefineMinLevelPos(App.data.forgeCenter.selectedRoleIndex, ForgeType.CHUANSHI)), this.red_group
			.visible = !0, this.selBorder.source = "common1_yuan_selected_png", this.canUpLvPos(), this.refreshOther(), this.effectGroup
			.visible = !0, this.downEft.visible = !0, this._eyeEft || (this._eyeEft = EffectUtils.showCEffect(this, this.effectGroup,
				ResPathUtil.getMenuEffect("forge", "chuanshi_longeye"), 330, 268), this._eyeEft.play()), this.checkAllJiHuo()
	}, e.prototype.onLevelChange = function() {
		this.refreshForgeGrid()
	}, e.prototype.checkAllJiHuo = function() {
		var t = this.forgeCenter.roleForgeInfos(this.forgeCenter.selectedRoleIndex, this.forgeCenter._currTabSelete);
		this.allPosLv.length = 0, t.foEach(this.checkJiHuo, this), this.allPosLv.indexOf(0) > -1 ? this.clearAllJiHuo() :
			this.playAllJihuo()
	}, e.prototype.checkJiHuo = function(t, e) {
		this.allPosLv.push(e.level)
	}, e.prototype.addEffect = function(e) {
		void 0 === e && (e = "");
		var i = this.forgeInfoHash.get(this.selectedPos);
		this.playUpGradeEft(), i && i.level > 1 ? t.prototype.addEffect.call(this) : (t.prototype.addEffect.call(this,
			"chuanshi"), this.playJiHuoEft())
	}, e.prototype.playUpGradeEft = function() {
		EffectUtils.showOnceEffect(this, this.effectGroup, ResPathUtil.getMenuEffect("forge", "chuanshi_center"), 320, 440),
			EffectUtils.showOnceEffect(this, this.effectGroup, ResPathUtil.getMenuEffect("forge", "chuanshi_longup"), 325, 285)
	}, e.prototype.playJiHuoEft = function() {
		EffectUtils.showOnceEffect(this, this.effectGroup, ResPathUtil.getMenuEffect("forge", "chuanshi_jihuo"), 320, 435)
	}, e.prototype.playAllJihuo = function() {
		this._huanEft || (this._huanEft = EffectUtils.showCEffect(this, this.downEft, ResPathUtil.getMenuEffect("forge",
			"chuanshi_huan"), 320, 380))
	}, e.prototype.clearAllJiHuo = function() {
		this._huanEft && (this._huanEft.stop(), this._huanEft.dispose(), this._huanEft = null)
	}, e.prototype.onSelectEquip = function(t) {
		if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			var i = Number(e.name),
				n = App.data.wearEquipCenter.getRoleWearData(i, this.forgeCenter.selectedRoleIndex);
			n ? this.selectPos(Number(e.name)) : Notice.showNoticeTypeMsg(Notice.BOTTOM, "未穿戴可镶嵌的装备")
		}
	}, e.prototype.onForgeResult = function(e, i, n) {
		if (n == ForgeType.CHUANSHI && e == this.forgeCenter.selectedRoleIndex) {
			t.prototype.onForgeResult.call(this, e, i, n);
			for (var a = 0; a < i.length; a++) {
				var o = i[a];
				this.forgeInfoHash.put(o.pos, this.forgeCenter.getRoleForgeInfo(e, o.pos, ForgeType.CHUANSHI)), this["jlNum" + o.pos]
					.text = "+" + this.forgeCenter.getRoleForgeInfo(e, o.pos, ForgeType.CHUANSHI).level, this.refreshOther(), this.refreshOneEquip(
						o.pos, this.posHash.get(o.pos)), this.canUpLvPos()
			}
			this.changeRoleWeapon(App.global.roles.getRoleInfoByIndex(e)), this.checkAllJiHuo()
		}
	}, e.prototype.canUpLvPos = function() {
		for (var t, e = this.forgeCenter.forgePosCanup(this.forgeCenter.selectedRoleIndex, ForgeType.CHUANSHI), i = 0; 8 >
			i; i++) t = this["red" + this.forgeCenter.posArr[i]], t.visible = !1;
		for (var i = 0; i < e.length; i++) t = this["red" + e[i].pos], t.visible = !0
	}, e.prototype.setVis = function(e) {
		t.prototype.setVis.call(this, e), this._cImgsmall.visible = e
	}, e.prototype.refreshOneEquip = function(t, e) {
		var i = e.bg;
		i.alpha = 0;
		var n = e.icon,
			a = this._xyHash.get(t);
		n.width = n.height = 80, n.x = a.x, n.y = a.y, i.x = n.x + 3, i.y = n.y + 5;
		var o = e.lal;
		o.x = n.x + 2, o.y = n.y, this["red" + t].x = i.x - 41, this["red" + t].y = i.y - 172;
		var r, s;
		if (r = this.forgeInfoHash.get(t), s = App.data.wearEquipCenter.getRoleWearData(r.pos, App.data.forgeCenter.selectedRoleIndex)) {
			var h = this.forgeInfoHash.get(t),
				l = GameUtil.getEquipForgeConfigData(this.forgeCenter._currTabSelete, h.pos, h.level);
			l ? this.createGridEffect(!0, this._gridEftHash.get(t), l.q_id, i.x, i.y) : this.createGridEffect(!1, this._gridEftHash
					.get(t)), h && h.level > 0 ? (n.source = ResPathUtil.getIcon(GameUtil.getEquipForgeConfigData(ForgeType.CHUANSHI,
					h.pos, h.level).q_icon_show, EnumImageType.ITEM_80), n.filters = []) : (n.source = ResPathUtil.getIcon(GameUtil.getEquipForgeConfigData(
					ForgeType.CHUANSHI, h.pos, 1).q_icon_show, EnumImageType.ITEM_80), n.filters = FilterUtil.FILTER_GRAY), void 0 ==
				r.level || 0 == r.level ? o.text = "" : o.text = "+" + r.level
		} else this.createGridEffect(!1, this._gridEftHash.get(t)), n.source = ResPathUtil.getIcon(GameUtil.getEquipForgeConfigData(
				ForgeType.CHUANSHI, r.pos, 1).q_icon_show, EnumImageType.ITEM_80), n.filters = FilterUtil.FILTER_GRAY, o.text =
			""
	}, e.prototype.selectPos = function(e) {
		this.lalField0.text = this.lalField1.text = this.lalField2.text = this.lalField3.text = this.lalField4.text = "", t
			.prototype.selectPos.call(this, e), 0 > e ? this.selBorder.visible = !1 : this.selBorder.visible = !0
	}, e.prototype.refreshOther = function() {
		t.prototype.refreshOther.call(this), this.btnForge.label = "镶 嵌";
		var e = this.forgeInfoHash.get(this.selectedPos);
		if (e) {
			this.updateFightpower(FightPowerUtil.getRoleStrengthAllPosFightPower(App.global.roles.getRoleInfoByIndex(this.forgeCenter
				.selectedRoleIndex), ForgeType.CHUANSHI));
			var i = GameUtil.getEquipForgeConfigData(ForgeType.CHUANSHI, e.pos, e.level),
				n = void 0;
			GameUtil.hasEquipForgeConfigData(ForgeType.CHUANSHI, e.pos, e.level + 1) && (n = GameUtil.getEquipForgeConfigData(
				ForgeType.CHUANSHI, e.pos, e.level + 1));
			var a = EnumEquipType.PART_NAME[this.selectedPos] + "属性增加";
			if (i ? (this.lalField4.text = a + i.q_part_add / 100 + "%", this.forgeequipName.text = i.q_desc_show, this.forgeequipName
					.visible = !0, this.btnForge.label = "升 级") : (this.lalField4.text = a + "0%", this.forgeequipName.text = n.q_desc_show,
					this.forgeequipName.visible = !0), n) {
				var o = StringUtil.JsonParse(n.q_cost_Num);
				o[0].id, o[0].num;
				this.lalField4.textFlow = HtmlUtil.getHtmlStr(this.lalField4.text + "<font color='#219e20'> →" + n.q_part_add /
						100 + "%</font>"), this._iconImg.url = ResPathUtil.getIcon(n.q_icon_show, EnumImageType.ITEM_80), this._cImgsmall
					.url = ResPathUtil.getIcon(GameUtil.getItemConfigData(o[0].id).q_tiny_icon, EnumImageType.ITEM_80), this._lvTxt.text =
					"+" + (e.level + 1), this.createGridEffect(!0, this._centerEft, n.q_id, this._iconImg.x, this._iconImg.y)
			} else this._iconImg.url = ResPathUtil.getIcon(i.q_icon_show, EnumImageType.ITEM_80), this.createGridEffect(!0,
					this._centerEft, i.q_id, this._iconImg.x, this._iconImg.y), this._cImgsmall.url = void 0, this._lvTxt.text = "",
				this.btnForge.label = "已满级";
			this.refreshAll(), this.updateAttr()
		} else this.createGridEffect(!1, this._centerEft), this._lvTxt.text = "", this._iconImg.url = void 0
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._lvTxt && this._lvTxt.parent && this._lvTxt.parent.removeChild(this._lvTxt), this._lvTxt = void 0, this._iconImg &&
			this._iconImg.dispose(), this._iconImg = void 0, this._cImgsmall && this._cImgsmall.dispose(), this._cImgsmall =
			void 0, this._gridEftHash) {
			for (var e = void 0, i = 0; 8 > i; i++) e = this._gridEftHash.getValueArray[i], e.dispose(), e = null;
			this._gridEftHash.dispose(), this._gridEftHash = null
		}
		this._centerEft && this._centerEft.dispose(), this._xyHash && (this._xyHash.dispose(), this._xyHash = null), this._centerEft =
			null, this.clearAllJiHuo(), t.prototype.dispose.call(this)
	}, e.prototype.createGridEffect = function(t, e, i, n, a) {
		if (void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = 0), t) {
			var o = App.config.q_equip_strengContainer.getDataBean(i);
			switch (e.url = ResPathUtil.getMenuEffect("item", o.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE), o.q_gradeNum) {
				case 1:
					e.x = n + 41, e.y = a + 36;
					break;
				case 2:
					e.x = n + 37, e.y = a + 33;
					break;
				default:
					e.x = n + 42, e.y = a + 37
			}
			e.play(), e.visible = !0
		} else e.stop(), e.visible = !1
	}, e
}(ForgeCommonView);
__reflect(ChuanShiView.prototype, "ChuanShiView");
var NumberRolling = function(t) {
	function e(e, i, n, a) {
		void 0 === e && (e = "main_"), void 0 === i && (i = 16), void 0 === n && (n = 20), void 0 === a && (a = 0);
		var o = t.call(this) || this;
		return o._w = 0, o._h = 0, o._gap = 0, o._numberList = [], o._prefix = e, o._w = i, o._h = n, o._gap = a, o
	}
	return __extends(e, t), e.prototype.setValue = function(t) {
		this.clear(), this._value = t, this._numberList = [], this._count = t.toString().length, this._valueSplit = t.toString()
			.split("");
		for (var e, i = 0; i < this._count; i++) e = UIMaker.getImage(this, this, this._prefix + this._valueSplit[i] +
			"_png", (this._w + this._gap) * i, 0), this._numberList.push(e)
	}, e.prototype.getValue = function() {
		return this._value
	}, e.prototype.setRollingValue = function(t) {
		var e = this;
		e.clear(), e._numberList = [], e._count = t.toString().length, e._valueSplit = t.toString().split("");
		for (var i, n = 0; n < e._count; n++) i = UIMaker.getImage(e, e, e._prefix + 0 + "_png", (e._w + e._gap) * n, 0), e
			._numberList.push(i);
		e._time = 0, App.timer.doFrameLoop(e, 2, e.onTimer, [t])
	}, e.prototype.onTimer = function(t) {
		var e = this;
		e._time++;
		for (var i = 0; i < e._count; i++)
			if (e._time <= 20 + 10 * i) e._numberList[i].source = e._prefix + (e._time + 2 * i) % 10 + "_png";
			else if (e._numberList[i].source = e._prefix + e._valueSplit[i] + "_png", i == e._count - 1) {
			App.timer.clearTimer(e.onTimer, e);
			break
		}
	}, e.prototype.clear = function() {
		var t = this;
		if (App.timer.clearTimer(t.onTimer, t), t._numberList) {
			for (var e = 0; e < t._count; e++) UIMaker.putToPool(t._numberList[e]);
			t._numberList = null
		}
		t._valueSplit = null
	}, e.prototype.dispose = function() {
		this.clear(), this.parent && this.parent.removeChild(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			var t = this;
			return t._numberList.length * (t._w + t._gap) - t._gap
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.moveTo = function(t, e, i) {
		void 0 === i && (i = null);
		var n = this;
		n.x = t, n.y = e, i && i.addChild(n)
	}, e
}(eui.Group);
__reflect(NumberRolling.prototype, "NumberRolling");
var ForgePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("ForgePanelSkin"), this.showTab("强化,铸造,精炼,龙灵,符石"),
			this.registerSubPanel(0, StrengthView, "titleview_qianghua_png", 4, !0, !0), this.registerSubPanel(1, CastView,
				"titleview_zhuzao_png", 95, !0, !0), this.registerSubPanel(2, RefineView, "titleview_jinglian_png", 78, !0, !0),
			this.registerSubPanel(3, ChuanShiView, "titleview_longling_png", 51, !0, !1), this.registerSubPanel(4, RunesView,
				"titleview_fushi_png", 105, !0, !0), this.viewContainer.addChild(this._view), this._view.imgBg.source =
			"qianghua_01_jpg"
	}, e.prototype.show = function(e) {
		this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.roleSelectedHandler, this), t.prototype.show.call(
			this, e)
	}, e.prototype.tabSelectHandler = function(e) {
		App.data.forgeCenter._currTabSelete = this.tab.selectedIndex, App.data.forgeCenter.selectedRoleIndex = 1, t.prototype
			.tabSelectHandler.call(this, e), this.tab.selectedIndex == ForgeType.Strength ? this._view.imgBg.source =
			"qianghua_01_jpg" : this.tab.selectedIndex == ForgeType.Refine ? this._view.imgBg.source = "jinglian_01_jpg" :
			this.tab.selectedIndex == ForgeType.Cast ? this._view.imgBg.source = "zhuzao_01_jpg" : this.tab.selectedIndex ==
			ForgeType.CHUANSHI ? this._view.imgBg.source = "longling_jpg" : this._view.imgBg.source = "qianghua_01_jpg"
	}, e.prototype.roleSelectedHandler = function(t) {
		var e = t;
		App.data.forgeCenter.selectedRoleIndex = e.roleIndex, this.showCurSubPanel()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		App.data.forgeCenter.selectedRoleIndex = 1, this._view = void 0, t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(ForgePanel.prototype, "ForgePanel");
var ForgeType;
! function(t) {
	t[t.Strength = 0] = "Strength", t[t.Cast = 1] = "Cast", t[t.Refine = 2] = "Refine", t[t.CHUANSHI = 3] = "CHUANSHI", t[
		t.RUNES = 4] = "RUNES"
}(ForgeType || (ForgeType = {}));
var RefineView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._effectX = 320, e._effectY = 407, e.changeRoleWeapon = function(t) {
			var i = e.forgeInfoHash.get(0);
			switch (t.job) {
				case 2:
					i.level ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_fs2", "icon") : e.posHash.get(0).icon.source =
						ResPathUtil.getImgPath("forgepos_fs", "icon");
					break;
				case 3:
					i.level ? e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_ds2", "icon") : e.posHash.get(0).icon.source =
						ResPathUtil.getImgPath("forgepos_ds", "icon")
			}
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.btnForge.label = "精 炼", this._preIconImg = UIMaker.getCImage(this, e, "", 185,
				291, !1), this._preIconImg.width = this._preIconImg.height = 65, this._nextIconImg = UIMaker.getCImage(this, e,
				"", 286, 414, !1), this._nextIconImg.width = this._nextIconImg.height = 65, this._itemIconImg = UIMaker.getCImage(
				this, e, "", 392, 291, !1), this._itemIconImg.width = this._itemIconImg.height = 65, this._preLvTxt = UIMaker.getTextField(
				this, e, 180, 290, 70, 22, 65280, 20), this._preLvTxt.textAlign = egret.HorizontalAlign.RIGHT, this._nextLvTxt =
			UIMaker.getTextField(this, e, 287, 414, 70, 22, 65280, 20), this._nextLvTxt.textAlign = egret.HorizontalAlign.RIGHT,
			this.imgsmall.source = "jinglian_png", this._effectX = 320, this._effectY = 407
	}, e.prototype.show = function(e) {
		App.data.forgeCenter._currTabSelete = 2, t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onSelectEquip, this, this.jinglian_bg), this._dispatcher.addEventListener(PlayerAttributeEvent.CHARACTER_LEVEL,
				this.onLevelChange, this), App.global.roles.getRoleInfoByIndex(App.data.forgeCenter.selectedRoleIndex) && this.selectPos(
				App.data.forgeCenter.getRefineMinLevelPos(App.data.forgeCenter.selectedRoleIndex, ForgeType.Refine)), this.forge_uplv
			.visible = !1, this.red_group.visible = !0, this.canUpLvPos(), this._effect1 = EffectUtils.showCEffect(this, this,
				ResPathUtil.getMenuEffect("forge", "refine1"), this._effectX + 1, this._effectY + 31, this._effect1), this._effect1
			.scaleX = .8, this._effect2 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("forge", "refine2"),
				this._effectX + 2, this._effectY + 36, this._effect2), this._effect3 = EffectUtils.showCEffect(this, this,
				ResPathUtil.getMenuEffect("forge", "refine3"), this._effectX + 2, this._effectY, this._effect3)
	}, e.prototype.addEffect = function(e) {
		void 0 === e && (e = ""), t.prototype.addEffect.call(this), this.addEffect1(this._effectX, this._effectY + 40, 0)
	}, e.prototype.addEffect1 = function(t, e, i) {
		void 0 === i && (i = 0);
		var n = App.thing.create(CPlayOnceEffect, "RefineView", !0);
		n.url = ResPathUtil.getMenuEffect("forge", "refineOnce" + i), i > 0 && (n.finishCallBackFun = new FunctionVO(this.onPlayEnd,
			this, i)), n.x = t, n.y = e, n.addParent(this), n.play()
	}, e.prototype.onPlayEnd = function(t) {
		1 == t ? this._effect1 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("forge", "refine1"), this._effectX,
			this._effectY, this._effect1) : 2 == t ? this._effect2 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"forge", "refine2"), this._effectX, this._effectY, this._effect2) : this._effect3 = EffectUtils.showCEffect(this,
			this, ResPathUtil.getMenuEffect("forge", "refine3"), this._effectX, this._effectY, this._effect3)
	}, e.prototype.onLevelChange = function() {
		this.refreshForgeGrid()
	}, e.prototype.onSelectEquip = function(t) {
		if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			var i = Number(e.name),
				n = this._equipFunLvHash.get(i);
			if (this.forgeCenter.isOpenFunOnPos(i)) {
				var a = App.data.wearEquipCenter.getRoleWearData(i, this.forgeCenter.selectedRoleIndex);
				a ? this.selectPos(Number(e.name)) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">未穿戴可精炼的装备</font>")
			} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">" + n.q_describe + "</font>")
		}
	}, e.prototype.onForgeResult = function(e, i, n) {
		if (n == ForgeType.Refine && e == this.forgeCenter.selectedRoleIndex) {
			t.prototype.onForgeResult.call(this, e, i, n);
			for (var a = 0; a < i.length; ++a) {
				var o = i[a];
				this.forgeInfoHash.put(o.pos, this.forgeCenter.getRoleForgeInfo(e, o.pos, ForgeType.Refine)), this["jlNum" + o.pos]
					.text = "+" + this.forgeCenter.getRoleForgeInfo(e, o.pos, ForgeType.Refine).level, 1 == o.grade && this.refreshOneEquip(
						o.pos, this.posHash.get(o.pos))
			}
			this.refreshOther(), this.canUpLvPos(), this.changeRoleWeapon(App.global.roles.getRoleInfoByIndex(e))
		}
	}, e.prototype.setVis = function(e) {
		t.prototype.setVis.call(this, e), this._preLvTxt.visible = e, this._nextLvTxt.visible = e, this._preIconImg.visible =
			e, this._nextIconImg.visible = e, this._itemIconImg.visible = e
	}, e.prototype.canUpLvPos = function() {
		for (var t, e = this.forgeCenter.forgePosCanup(this.forgeCenter.selectedRoleIndex, ForgeType.Refine), i = 0; 8 > i; i++)
			t = this["red" + this.forgeCenter.posArr[i]], t.visible = !1;
		for (var i = 0; i < e.length; i++) t = this["red" + e[i].pos], t.visible = !0
	}, e.prototype.refreshOneEquip = function(t, e) {
		var i = (e.bg, e.icon);
		i.width = i.height = 64, i.x = e.iconx - 1, i.y = e.icony - 1;
		var n = e.lal;
		n.textColor = 65280, n.y = e.lalY - 47, n.textAlign = egret.HorizontalAlign.LEFT;
		var a, o;
		this._equipFunLvHash = this.forgeCenter.getEquipFunLvHash();
		this._equipFunLvHash.get(t);
		this.forgeCenter.isOpenFunOnPos(t) ? (a = this.forgeInfoHash.get(t), o = App.data.wearEquipCenter.getRoleWearData(a
			.pos, App.data.forgeCenter.selectedRoleIndex), void 0 == a.level || 0 == a.level ? (i.source = ResPathUtil.getImgPath(
			"forgepos_" + t, "icon"), n.text = "") : (i.source = ResPathUtil.getImgPath("forgepos1_" + t, "icon"), n.text =
			"+" + a.level)) : (i.source = ResPathUtil.getImgPath("refine_" + t, "icon"), n.text = "")
	}, e.prototype.selectPos = function(e) {
		this.lalField0.text = this.lalField1.text = this.lalField2.text = this.lalField3.text = "", t.prototype.selectPos.call(
			this, e), 0 > e ? this.selBorder.visible = !1 : this.selBorder.visible = !0
	}, e.prototype.refreshOther = function() {
		t.prototype.refreshOther.call(this);
		var e = this.forgeInfoHash.get(this.selectedPos);
		if (e) {
			this.updateFightpower(FightPowerUtil.getRoleStrengthAllPosFightPower(App.global.roles.getRoleInfoByIndex(this.forgeCenter
				.selectedRoleIndex), ForgeType.Refine));
			var i = (GameUtil.getEquipForgeConfigData(ForgeType.Refine, e.pos, e.level), void 0);
			if (GameUtil.hasEquipForgeConfigData(ForgeType.Refine, e.pos, e.level + 1) && (i = GameUtil.getEquipForgeConfigData(
					ForgeType.Refine, e.pos, e.level + 1)), i) {
				var n = App.data.wearEquipCenter.getRoleWearData(e.pos, App.data.forgeCenter.selectedRoleIndex);
				App.config.q_itemContainer.hasDataBean(n.itemId) && (this._preIconImg.url = this._nextIconImg.url = ResPathUtil.getIcon(
					GameUtil.getItemConfigData(n.itemId).q_tiny_icon, EnumImageType.ITEM_80)), this._nextLvTxt.text = "+" + (e.level +
					1), this._preLvTxt.text = "+" + e.level, this._itemIconImg.url = ResPathUtil.getIcon(GameUtil.getItemConfigData(
					forgeNeedItemId.RefineId).q_tiny_icon, EnumImageType.ITEM_80)
			} else this._itemIconImg.url = this._preIconImg.url = this._nextIconImg.url = void 0, this._nextLvTxt.text = this._preLvTxt
				.text = "";
			this.refreshAll(), this.updateAttr()
		}
	}, e.prototype.hide = function() {
		this._effect1 && this._effect1.dispose(), this._effect1 = null, this._effect2 && this._effect2.dispose(), this._effect2 =
			null, this._effect3 && this._effect3.dispose(), this._effect3 = null, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._equipFunLvHash = void 0, this._nextLvTxt && this._nextLvTxt.parent && this._nextLvTxt.parent.removeChild(this
				._nextLvTxt), this._nextLvTxt = void 0, this._preLvTxt && this._preLvTxt.parent && this._preLvTxt.parent.removeChild(
				this._preLvTxt), this._preLvTxt = void 0, this._itemIconImg && this._itemIconImg.dispose(), this._itemIconImg =
			void 0, this._preIconImg && this._preIconImg.dispose(), this._preIconImg = void 0, this._nextIconImg && this._nextIconImg
			.dispose(), this._nextIconImg = void 0, t.prototype.dispose.call(this)
	}, e
}(ForgeCommonView);
__reflect(RefineView.prototype, "RefineView");
var RunesChangeItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RunesChangeRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null), t.prototype.clear.call(this)
	}, e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler,
			this, this.xqBtn), this.grid || (this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid
			.x = this.grid.y = 16, this.grid.setIconSize(new egret.Rectangle(0, 0, 76, 76), new egret.Rectangle(0, 0, 76, 76)),
			this.grid.isShowDesc = !1, this.grid.isShowTip = !1, this.addChild(this.grid))
	}, e.prototype.clickHandler = function(t) {
		ForgeCommandSender.sendChangePos(App.data.forgeCenter.selectedRoleIndex, this.runesData.pos, this.runesData.itemData
			.id)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e.prototype.dataChanged = function() {
		this.runesData = this.data, this.grid.setTxtVisible(!1);
		var t = GameUtil.getEquipConfigData(this.runesData.itemData.itemId);
		t ? (this.grid.setData(this.runesData.itemData), this.nameTF.text = t.q_name, this.nameTF.textColor = GameUtil.getItemNameColor(
				t.q_id), this.getTF.text = App.data.forgeCenter.getFushiAttrStr(t.q_add_attribute_client), this.xqBtn.visible =
			1 == this.runesData.state ? !1 : !0, this.stateTF.visible = 1 == this.runesData.state ? !0 : !1) : (this.nameTF.text =
			"", this.getTF.text = "", this.xqBtn.visible = !1, this.stateTF.visible = !1)
	}, e
}(ItemRenderer);
__reflect(RunesChangeItemRender.prototype, "RunesChangeItemRender");
var RunesChangePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("更换"), this._windowView
			.height = 725, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase("RunesChangeSkin"),
			this.addChild(this._view), this._view.x = -5, this._vscrollPanel = new VScrollPanel(511, 488,
				RunesChangeItemRender, 1, void 0, 1), this._vscrollPanel.x = 9, this._vscrollPanel.y = 67, this.addChild(this._vscrollPanel)
	}, e.prototype.dispose = function() {
		this._windowView.dispose(), this._windowView = null, this._vscrollPanel.dispose(), this._vscrollPanel = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscrollPanel.removeAll()
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._currentSlot = e[0], this._currentType = e[1], this.addEvent(), this.checkItem()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(ForgeEvent.FUSHI_CHANGE, this.changeHandler, this), this._dispatcher.addEventListener(
			RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.itemChange,
			this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler, this, this._view.getBtn)
	}, e.prototype.clickHandler = function(t) {
		App.panel.openPanel(19, EnumItemId.FUSHI)
	}, e.prototype.itemChange = function() {
		this.checkItem()
	}, e.prototype.refreshRoleData = function(t) {
		this.checkItem()
	}, e.prototype.changeHandler = function(t) {
		this.checkItem()
	}, e.prototype.checkItem = function() {
		var t = App.data.bagItemDataCenter.getBagPositionFushiList(this._currentType);
		t.sort(this.sortFunc);
		var e, i, n = t.length,
			a = [];
		for (e = 0; n > e; e++) i = {
			itemData: t[e],
			state: 0,
			pos: this._currentSlot
		}, a.push(i);
		i = this.checkEquipRunes(), i && a.unshift(i), this._vscrollPanel.dataProvider = a
	}, e.prototype.checkEquipRunes = function() {
		var t, e, i = App.data.forgeCenter.getRoleFushiInfoByType(App.data.forgeCenter.selectedRoleIndex, this._currentSlot,
				this._currentType),
			n = i.length;
		for (e = 0; n > e; e++)
			if (t = App.config.q_equipContainer.getDataBean(i[e].q_id), t.q_kind == this._currentType) {
				var a = new ItemData;
				return a.itemId = t.q_id, {
					itemData: a,
					state: 1,
					pos: this._currentSlot
				}
			} return null
	}, e.prototype.sortFunc = function(t, e) {
		return t.itemId < e.itemId ? 1 : -1
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 725
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(RunesChangePanel.prototype, "RunesChangePanel");
var RunesDecomposePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currEquipArr = [], e._checkNum = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("分解"), this._windowView
			.height = 725, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase("RunesFenjieSkin"),
			this.addChild(this._view), this._vscrollPanel = new VScrollPanel(511, 470, RunesFenjieItemRender, 1, void 0, 1),
			this._vscrollPanel.x = 13, this._vscrollPanel.y = 67, this.addChild(this._vscrollPanel), this._view.checkBox4.selected =
			this._view.checkBox3.selected = this._view.checkBox2.selected = this._view.checkBox0.selected = this._view.checkBox1
			.selected = !1
	}, e.prototype.dispose = function() {
		this._windowView.dispose(), this._windowView = null, this._vscrollPanel.dispose(), this._vscrollPanel = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscrollPanel.removeAll()
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.checkRender()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.fenjieHandler, this, this._view.fenjieBtn), this
			._dispatcher.addEventListener(ForgeEvent.RECOVERYRESULT, this.fenjieCallBack, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkHandler, this, this._view.checkBox0), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkHandler, this, this._view.checkBox1), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkHandler, this, this._view.checkBox2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkHandler, this, this._view.checkBox3), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkHandler, this, this._view.checkBox4)
	}, e.prototype.checkHandler = function(t) {
		switch (t.currentTarget) {
			case this._view.checkBox0:
				this._checkNum = 0;
				break;
			case this._view.checkBox1:
				this._checkNum = 1;
				break;
			case this._view.checkBox2:
				this._checkNum = 2;
				break;
			case this._view.checkBox3:
				this._checkNum = 3;
				break;
			case this._view.checkBox4:
				this._checkNum = 4
		}
		this.checkRender()
	}, e.prototype.checkRender = function() {
		var t = App.data.bagItemDataCenter.getBagList(BagTag.FUSHI),
			e = t.length;
		this._currEquipArr = [];
		for (var i = 0; e > i; i++) 1 == this._view.checkBox4.selected && 1 == t[i].bean.q_default ? this._currEquipArr.push(
				t[i]) : 1 == this._view.checkBox3.selected && 3 == t[i].bean.q_default ? this._currEquipArr.push(t[i]) : 1 ==
			this._view.checkBox2.selected && 4 == t[i].bean.q_default ? this._currEquipArr.push(t[i]) : 1 == this._view.checkBox1
			.selected && 5 == t[i].bean.q_default ? this._currEquipArr.push(t[i]) : 1 == this._view.checkBox0.selected && 6 ==
			t[i].bean.q_default && this._currEquipArr.push(t[i]);
		0 == this._view.checkBox4.selected && 0 == this._view.checkBox3.selected && 0 == this._view.checkBox2.selected && 0 ==
			this._view.checkBox1.selected && 0 == this._view.checkBox0.selected ? this._vscrollPanel.dataProvider = t : this._vscrollPanel
			.dataProvider = this._currEquipArr
	}, e.prototype.fenjieHandler = function(t) {
		for (var e = [], i = 0; i < this._currEquipArr.length; i++) e.push(this._currEquipArr[i].int64Id);
		ItemCommandSender.sendEquipHuiShou(e)
	}, e.prototype.fenjieCallBack = function() {
		this.checkRender()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 725
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(RunesDecomposePanel.prototype, "RunesDecomposePanel");
var RunesFenjieItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RunesFenjieRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null), t.prototype.clear.call(this)
	}, e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler,
			this, this.fenjieBtn), this.grid || (this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this.grid.x = this.grid.y = 16, this.grid.setIconSize(new egret.Rectangle(0, 0, 76, 76), new egret.Rectangle(0, 0,
				76, 76)), this.grid.isShowDesc = !1, this.grid.isShowTip = !1, this.addChild(this.grid))
	}, e.prototype.clickHandler = function(t) {
		ItemCommandSender.sendEquipHuiShou([this._curData.int64Id])
	}, e.prototype.dataChanged = function() {
		this._curData = this.data;
		var t = GameUtil.getEquipConfigData(this._curData.itemId);
		this.nameTF.text = t.q_name, this.nameTF.textColor = GameUtil.getItemNameColor(t.q_id), this.desTF.text = App.data.forgeCenter
			.getFushiAttrStr(t.q_add_attribute_client);
		var e = StringUtil.JsonParse(StringUtil.replacJosnStr(t.q_resolve)),
			i = GameUtil.getItemConfigData(e[0].id);
		this.getTF.text = "获得:" + i.q_name + "x" + e[0].num, this.grid.setData(this._curData)
	}, e
}(ItemRenderer);
__reflect(RunesFenjieItemRender.prototype, "RunesFenjieItemRender");
var RunesPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new RunesView, this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.show(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.hide()
	}, e.prototype.dispose = function() {
		this._view.dispose(), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RunesPanel.prototype, "RunesPanel");
var RunesShowItemRender = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._equipPos = 0, i._roleIndex = 1, i._seletIndex = 0, i.itemLocation = {
			0: {
				x: 181,
				y: 38
			},
			1: {
				x: 322,
				y: 120
			},
			2: {
				x: 324,
				y: 272
			},
			3: {
				x: 181,
				y: 353
			},
			4: {
				x: 38,
				y: 276
			},
			5: {
				x: 41,
				y: 116
			}
		}, i._func = e, i
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._func = null, this.imgShow0.dispose(), this.imgShow1.dispose(), this.imgShow2.dispose(), this.imgShow3.dispose(),
			this.imgShow4.dispose(), this.imgShow5.dispose(), this.parent && this.parent.removeChild(this), t.prototype.dispose
			.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectItem, this,
			this.bg_group)
	}, e.prototype.selectItem = function(t) {
		if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			this._seletIndex = Number(e.name), this.setSeleted(this._seletIndex), 1 == App.data.forgeCenter.canOpenChangeView(
				this._roleIndex, this._equipPos, this._seletIndex) && PanelOpenManager.openPanel(53, [this._equipPos, this._seletIndex +
				31
			])
		}
	}, e.prototype.setSeleted = function(t) {
		this.imgSelect.visible = !0;
		this["imgShow" + t];
		this.imgSelect.x = this.itemLocation[t].x, this.imgSelect.y = this.itemLocation[t].y, this._func.exec(t)
	}, e.prototype.init = function(t, e) {
		this.refresh(t, e), this.setSeleted(0)
	}, e.prototype.refresh = function(t, e) {
		this.imgSelect.visible = !1, this._roleIndex = t, this._equipPos = e;
		for (var i = 0; 6 > i; i++) this.refreshOne(i)
	}, e.prototype.refreshOne = function(t) {
		this.imgSelect.visible = !0;
		var e, i = App.data.forgeCenter.getPosFsInfo(this._roleIndex, this._equipPos, t);
		e = this["imgShow" + t];
		var n = this["toubuTF" + t];
		i > 0 ? (e.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(i).q_tiny_icon, EnumImageType.ITEM_80), n.visible =
			e.visible = !0, n.text = GameUtil.getItemConfigData(i).q_name, n.textColor = GameUtil.getItemNameColor(i)) : (e.source =
			"", n.visible = e.visible = !1);
		var a;
		a = this["red" + t], 1 == App.data.forgeCenter.showPosRedPointBest(this._roleIndex, this._equipPos, t) || 1 == App.data
			.forgeCenter.showPosRedPointItem(this._roleIndex, this._equipPos, t) ? a.visible = !0 : a.visible = !1
	}, e
}(RunesShowItemViewUI);
__reflect(RunesShowItemRender.prototype, "RunesShowItemRender");
var RunesTipItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RunesTipRender", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {}, e.prototype.dataChanged = function() {
		var t = this,
			e = this.data,
			i = App.thing.create(HashObject, this, !0);
		i.put(0, "攻击"), i.put(1, "物防"), i.put(2, "魔防"), i.put(3, "生命"), i.put(4, "暴击"), i.put(5, "爆伤"), i.foEach(function(i,
			n) {
			e[i] && (t.runes_value.text = n + " + " + e[i])
		}, this)
	}, e.prototype.clear = function() {}, e
}(ItemRenderer);
__reflect(RunesTipItemRender.prototype, "RunesTipItemRender");
var RunesTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._width = 340, e._height = 671, e.GetDataSource = function() {
			var t = App.data.forgeCenter,
				i = App.thing.create(HashObject, e, !0),
				n = [],
				a = {};
			i.put(EnumEquipType.WU_QI, EnumEquipType.WU_QI), i.put(EnumEquipType.TOU_KUI, EnumEquipType.TOU_KUI), i.put(
				EnumEquipType.YI_FU, EnumEquipType.YI_FU), i.put(EnumEquipType.XIANG_LIAN, EnumEquipType.XIANG_LIAN), i.put(
				EnumEquipType.SHOU_ZHUO, EnumEquipType.SHOU_ZHUO), i.put(EnumEquipType.YAO_DAI, EnumEquipType.YAO_DAI), i.put(
				EnumEquipType.JIE_ZHI, EnumEquipType.JIE_ZHI), i.put(EnumEquipType.XIE_ZI, EnumEquipType.XIE_ZI), i.foEach(
				function(e, i) {
					t.fsPosOpen(e) && n.push(e)
				}, e), n.map(function(e) {
				for (var i = 0; 6 > i; i++) {
					var n = t.getPosFsInfo(t.selectedRoleIndex, e, i);
					if (0 != n) {
						var o = GameUtil.getEquipConfigData(n),
							r = t.getFushiAttrStr(o.q_add_attribute_client),
							s = r.indexOf(":");
						if (r = r.substring(s + 1, r.length), a[i]) {
							var h = a[i];
							a[i] = parseInt(h) + parseInt(r)
						} else a[i] = r
					}
				}
			});
			var o = Object.keys(a),
				r = [];
			return o.map(function(t) {
				r.push((e = {}, e[t] = a[t], e));
				var e
			}), r
		}, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._tipView = UIMaker.createViewBase("RunesTipSkin"), this.addChild(this._tipView), this._scroll = new VScrollPanel(
				303, 79, RunesTipItemRender, 2), this._scroll.scrollPolicyH = eui.ScrollPolicy.OFF, this._scroll.scrollPolicyV =
			eui.ScrollPolicy.OFF
	}, e.prototype.show = function(t) {
		var e = App.data.forgeCenter.selectedRoleIndex;
		this._roleData = App.global.roles.getRoleInfoByIndex(e), this._tipView.img_job.source = "roleview_job" + this._roleData
			.job + "_png";
		var i = this.GetDataSource();
		this._scroll.dataProvider = i, this._scroll.height = this._tipView.gp_attr.height = 79 * i.length, this._tipView.img_back
			.height = this._tipView.gp_attr.y + this._tipView.gp_attr.height + 35, this._tipView.height = this._tipView.img_back
			.height, this._scroll.move(0, 0, this._tipView.gp_attr), this.resize()
	}, e.prototype.hide = function() {}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._tipView.x = Config.SCREEN_WIDTH - this._tipView.width >> 1, this._tipView.y =
			Config.SCREEN_HEIGHT - this._tipView.height >> 1
	}, e
}(TipStyleBase);
__reflect(RunesTipView.prototype, "RunesTipView");
var RunesView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._cimgArr = [], e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
			this._cimgArr = [this.iconWuQi, this.iconYaoDai, this.iconYiFu, this.iconXiangLian, this.iconHuWan, this.iconJieZhiLeft,
					this.iconXieZi, this.iconTouBu
				], this.suo_group.touchEnabled = !1, this.jinglian_icon.touchEnabled = !1, this.tf_group.touchEnabled = !1, this.selBorder
				.touchEnabled = !1, this._posHash = new HashObject, this._posHash.put(EnumEquipType.WU_QI, {
					bg: this.bgWuQi,
					icon: this.iconWuQi,
					lal: this.wuqiTF,
					iconx: this.iconWuQi.x,
					icony: this.iconWuQi.y,
					data: null
				}), this._posHash.put(EnumEquipType.TOU_KUI, {
					bg: this.bgTouBu,
					icon: this.iconTouBu,
					lal: this.toubuTF,
					iconx: this.iconTouBu.x,
					icony: this.iconTouBu.y,
					data: null
				}), this._posHash.put(EnumEquipType.YI_FU, {
					bg: this.bgYiFu,
					icon: this.iconYiFu,
					lal: this.yifuTF,
					iconx: this.iconYiFu.x,
					icony: this.iconYiFu.y,
					data: null
				}), this._posHash.put(EnumEquipType.XIANG_LIAN, {
					bg: this.bgXiangLian,
					icon: this.iconXiangLian,
					lal: this.xiangliangTF,
					iconx: this.iconXiangLian.x,
					icony: this.iconXiangLian.y,
					data: null
				}), this._posHash.put(EnumEquipType.SHOU_ZHUO, {
					bg: this.bgHuWan,
					icon: this.iconHuWan,
					lal: this.huwanTF,
					iconx: this.iconHuWan.x,
					icony: this.iconHuWan.y,
					data: null
				}), this._posHash.put(EnumEquipType.YAO_DAI, {
					bg: this.bgYaoDai,
					icon: this.iconYaoDai,
					lal: this.yaodaiTF,
					iconx: this.iconYaoDai.x,
					icony: this.iconYaoDai.y,
					data: null
				}), this._posHash.put(EnumEquipType.JIE_ZHI, {
					bg: this.bgJieZhiLeft,
					icon: this.iconJieZhiLeft,
					lal: this.jiezhileftTF,
					iconx: this.iconJieZhiLeft.x,
					icony: this.iconJieZhiLeft.y,
					data: null
				}), this._posHash.put(EnumEquipType.XIE_ZI, {
					bg: this.bgXieZi,
					icon: this.iconXieZi,
					lal: this.xieziTF,
					iconx: this.iconXieZi.x,
					icony: this.iconXieZi.y,
					data: null
				}), this.linkTF.textFlow = HtmlUtil.getHtmlStr("<font color='#35ea35'><u>分解符石</u></font>"), this.changeBtn.textFlow =
				HtmlUtil.getHtmlStr("<font color='#35ea35'><u>替换符石</u></font>"), this._fushiItemREnder = new RunesShowItemRender(
					new FunctionVO(this.itemSelect, this)), this.fushiItemGroup.addChild(this._fushiItemREnder), App.tip.addTip(this.btn_info,
					new TipData(24, 2))
		}, e.prototype.hide = function() {
			this._fushiItemREnder.hide(), this.forgeCenter.selectedRoleIndex = 1, t.prototype.hide.call(this)
		}, e.prototype.show = function(e) {
			App.data.forgeCenter._currTabSelete = 4, t.prototype.show.call(this, e), this.addEvent(), this.refreshForgeGrid();
			var i = App.data.wearEquipCenter.getRoleWearData(0, this.forgeCenter.selectedRoleIndex);
			this._selectedFsPos = 0, this.selectPos(0), i || this._fushiItemREnder.init(this.forgeCenter.selectedRoleIndex,
				this._selectedPos), this.fightPower.setValue(this.forgeCenter.getFushiFightPower()), this.canUpLvPos()
		}, Object.defineProperty(e.prototype, "forgeCenter", {
			get: function() {
				return App.data.forgeCenter
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.canUpLvPos = function() {
			for (var t, e = 0; 8 > e; e++) t = this["red" + this.forgeCenter.posArr[e]], t.visible = this.forgeCenter.showEquipPosRedPoint(
				this.forgeCenter.selectedRoleIndex, this.forgeCenter.posArr[e])
		}, e.prototype.refreshForgeGrid = function() {
			var t = this;
			this._currentEquList = App.data.wearEquipCenter.getRoleWearList(this.forgeCenter.selectedRoleIndex), this._posHash.foEach(
				function(e, i) {
					t.refreshOneEquip(e, i)
				}, this)
		}, e.prototype.refreshOneEquip = function(t, e) {
			var i = e.bg,
				n = e.icon;
			n.width = n.height = 70, n.x = e.iconx - 3, n.y = e.icony - 3;
			var a, o = e.lal;
			i.source = "common1_grid_white_76_png";
			var r = this["suoimg" + t];
			1 == this.forgeCenter.fsPosOpen(t) ? (a = App.data.wearEquipCenter.getRoleWearData(t, this.forgeCenter.selectedRoleIndex),
				o.text = "", a ? App.config.q_itemContainer.hasDataBean(a.itemId) && (n.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(
					a.itemId).q_tiny_icon, EnumImageType.ITEM_80), n.visible = !0) : (n.source = ResPathUtil.getImgPath("forgepos_" +
					t, "icon"), this.iconSelect.source = void 0), r.visible = !1) : (o.text = App.config.q_functionContainer.getDataBean(
				this.forgeCenter.getFsOpenId(t)).q_describe_func, r.visible = !0)
		}, e.prototype.dispose = function() {
			this._redEffect && (this._redEffect.dispose(), this._redEffect = null), this._changeEffect && (this._changeEffect.dispose(),
				this._changeEffect = null), this._fushiItemREnder.dispose(), this._fushiItemREnder = null, this._posHash = void 0;
			for (var e, i = 0; 8 > i; i++) e = this._cimgArr[i], e && e.dispose();
			t.prototype.dispose.call(this)
		}, e.prototype.addEvent = function() {
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.changeHandler, this, this.changeBtn), this._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, this.updateHander, this, this.updateBtn), this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.selectRuneSlot, this, this.jinglian_bg), this._dispatcher.addEventListener(egret
					.TouchEvent.TOUCH_TAP, this.onLinkClick, this, this.linkTF), this._dispatcher.addEventListener(ForgeEvent.RECOVERYRESULT,
					this.fushiFenjieHandler, this), this._dispatcher.addEventListener(ForgeEvent.FUSHI_CHANGE, this.fushiChangeHandler,
					this), this._dispatcher.addEventListener(ForgeEvent.FUSHI_UPDATE, this.fushiUpdateHandler, this), this._fushiItemREnder
				.show(), this.showLinkEffect()
		}, e.prototype.showLinkEffect = function() {
			App.data.bagItemDataCenter.getBagList(BagTag.FUSHI).length > 0 ? (this._redEffect || (this._redEffect = EffectUtils
				.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelfour"), this.linkTF.x + 45, this.linkTF.y + 12)
			), this._redEffect.play(), this._redEffect.visible = !0) : this._redEffect && (this._redEffect.stop(), this._redEffect
				.visible = !1)
		}, e.prototype.itemSelect = function(t) {
			void 0 === t && (t = 0), this._selectedFsPos = t;
			var e = this.forgeCenter.getPosFsInfo(this.forgeCenter.selectedRoleIndex, this._selectedPos, t);
			this._selectedFushi = GameUtil.getEquipConfigData(e);
			var i = this.forgeCenter.getFushiFuseDataList();
			if (this.nameTF.visible = this.needitem_group.visible = !0, this._selectedFushi) {
				var n = i[this._selectedFushi.q_id];
				if (this.nameTF.text = this._selectedFushi.q_name, this.atrr_group.visible = !0, this.preTF.text = this.forgeCenter
					.getFushiAttrStr(this._selectedFushi.q_add_attribute_client), n && n.q_equip_next_id > 0) {
					this.newTF.text = this.forgeCenter.getFushiAttrStr(App.config.q_equipContainer.getDataBean(n.q_equip_next_id).q_add_attribute_client);
					var a = StringUtil.JsonParse(n.q_consume);
					this._itemid = a[0].id, this._itemnum = a[0].num, this.costTF.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(
						this._itemid, this._itemnum) + "/" + this._itemnum)
				} else this.needitem_group.visible = !1, this.newTF.text = "当前品阶符石已满级";
				this.updateBtn.label = "升 级"
			} else this.updateBtn.label = "镶 嵌", this.nameTF.text = this.forgeCenter.arrFushiStr[this._selectedFsPos], this.atrr_group
				.visible = !1;
			this.checkChange(e)
		}, e.prototype.checkChange = function(t) {
			var e = !1,
				i = App.config.q_itemContainer.getDataBean(t),
				n = App.data.bagItemDataCenter.getBagPositionFushiList(this._selectedFsPos + 31);
			if (0 == n.length) e = !1;
			else if (i)
				for (var a = n.length, o = 0; a > o; o++) {
					var r = n[o];
					if (r.getDataBean().q_level > i.q_level) {
						e = !0;
						break
					}
				} else e = !0;
			this.showChangeEffect(e)
		}, e.prototype.showChangeEffect = function(t) {
			this._changeEffect || (this._changeEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel",
				"labelfour"), this.changeBtn.x + 45, this.changeBtn.y + 12)), t ? (this._changeEffect.play(), this._changeEffect.visible = !
				0) : (this._changeEffect.stop(), this._changeEffect.visible = !1)
		}, e.prototype.updateMyMoney = function(t, e) {
			void 0 === e && (e = 0);
			var i, n = App.data.bagItemDataCenter.getItemCount(t);
			return i = n >= e ? "<font color='#219e20'>" + n + "</font>" : "<font color='#ef1812'>" + n + "</font>"
		}, e.prototype.fushiChangeHandler = function(t) {
			this.forgeCenter.selectedRoleIndex == t.index && this.refreshPosFushi(t), App.panel.removePanel(53)
		}, e.prototype.fushiUpdateHandler = function(t) {
			this.forgeCenter.selectedRoleIndex == t.index && this.refreshPosFushi(t)
		}, e.prototype.refreshPosFushi = function(t) {
			var e = this.forgeCenter.getPosFushiData(App.global.roles.roleList[t.index - 1].equipFushiList, this._selectedPos);
			if (!(0 > e)) {
				var i = App.global.roles.roleList[t.index - 1].equipFushiList[e].itemIds,
					n = GameUtil.getEquipConfigData(t.itemId).q_kind - 31;
				i[n] = t.itemId, this.canUpLvPos(), this._fushiItemREnder.refresh(this.forgeCenter.selectedRoleIndex, this._selectedPos),
					this.itemSelect(n), this.fightPower.setValue(this.forgeCenter.getFushiFightPower()), t.itemId > this.forgeCenter.maxFushiId &&
					(this.forgeCenter.maxFushiId = t.itemId), this.showLinkEffect()
			}
		}, e.prototype.fushiFenjieHandler = function(t, e, i) {
			this.canUpLvPos(), this._fushiItemREnder.refresh(this.forgeCenter.selectedRoleIndex, this._selectedPos), this.costTF
				.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(this._itemid, this._itemnum) + "/" + this._itemnum), this.showLinkEffect()
		}, e.prototype.selectRuneSlot = function(t) {
			if (egret.is(t.target, "eui.Image")) {
				var e = t.target;
				if ("" == e.name) return;
				var i = Number(e.name);
				if (1 == this.forgeCenter.fsPosOpen(i)) {
					var n = App.data.wearEquipCenter.getRoleWearData(i, this.forgeCenter.selectedRoleIndex);
					n ? (this.iconSelect.width = this.iconSelect.height = 64, this.selectPos(Number(e.name))) : (this.iconSelect.width =
						this.iconSelect.height = 70, this.selectPos(Number(e.name)))
				} else Notice.showNoticeTypeMsg(Notice.BOTTOM, App.config.q_functionContainer.getDataBean(this.forgeCenter.getFsOpenId(
					i)).q_describe)
			}
		}, e.prototype.selectPos = function(t) {
			if (t >= 0) {
				this._selectedPos = t;
				var e = this.jinglian_bg.getChildByName(t + "");
				this.selBorder.x = e.x + 3, this.selBorder.y = e.y + 69;
				var i = this._posHash.get(t),
					n = i.icon;
				this.iconSelect.source = n.source, this._fushiItemREnder.init(this.forgeCenter.selectedRoleIndex, this._selectedPos)
			} else this.iconSelect.source = void 0
		}, e.prototype.setVis = function(t) {
			this.preTF.visible = t, this.newTF.visible = t, this.nameTF.visible = t
		}, e.prototype.refreshWepSlot = function() {}, e.prototype.refreshItemSlot = function() {}, e.prototype.changeHandler =
		function(t) {
			PanelOpenManager.openPanel(53, [this._selectedPos, this._selectedFsPos + 31])
		}, e.prototype.updateHander = function(t) {
			if (this._selectedFushi) {
				var e = App.data.bagItemDataCenter.getItemCount(this._itemid);
				e >= this._itemnum ? (ForgeCommandSender.sendUpdateFushi(this.forgeCenter.selectedRoleIndex, this._selectedPos,
					this._selectedFushi.q_id), App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3)) : Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">材料不足！</font>")
			} else {
				var i = 1 == App.data.forgeCenter.showPosRedPointBest(this.forgeCenter.selectedRoleIndex, this._selectedPos, this._selectedFsPos) ||
					1 == App.data.forgeCenter.showPosRedPointItem(this.forgeCenter.selectedRoleIndex, this._selectedPos, this._selectedFsPos);
				if (i) return void PanelOpenManager.openPanel(53, [this._selectedPos, this._selectedFsPos + 31]);
				var n = this.updateBtn.label;
				n = n.replace(" ", ""), Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">当前没有可" + n +
					"符石</font>")
			}
		}, e.prototype.onLinkClick = function(t) {
			PanelOpenManager.openPanel(52)
		}, e
}(RunesViewUI);
__reflect(RunesView.prototype, "RunesView", ["IView", "IDispose"]);
var StrengthView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.changeRoleWeapon = function(t) {
			switch (t.job) {
				case 2:
					e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_fs", "icon"), e._iconImg.url = ResPathUtil.getImgPath(
						"forgepos_fs", "icon");
					break;
				case 3:
					e.posHash.get(0).icon.source = ResPathUtil.getImgPath("forgepos_ds", "icon"), e._iconImg.url = ResPathUtil.getImgPath(
						"forgepos_ds", "icon")
			}
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.btnForge.label = "强 化", this.attrBgImg.source = "common1_title_bg2_png", this.imgsmall
			.source = "qianghua_png", this._iconImg = UIMaker.getCImage(this, ChuanShiView, "", 287, 411, !1), this._iconImg.width =
			this._iconImg.height = 64
	}, e.prototype.show = function(e) {
		App.data.forgeCenter._currTabSelete = 0, t.prototype.show.call(this, e), this.selectPos(this.forgeCenter.getQhCurSelPos()),
			this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resizeGuide, this), this.timeOut = egret.setTimeout(
				this.resizeGuide, this, 50)
	}, e.prototype.resizeGuide = function() {
		if (App.data.taskCenter.getThreadTaskShowGuide(5)) {
			var t = this.localToGlobal(229, 806).x,
				e = this.localToGlobal(229, 806).y;
			this.guide.show("点击强化装备", Guide.RIGHT, t - 150, e + 40, this.btnForge, !0, t, e + 12)
		}
	}, e.prototype.hide = function() {
		null != this._guide && (this._guide.hide(), this._guide = null), t.prototype.hide.call(this)
	}, e.prototype.disopose = function() {
		this.timeOut && (egret.clearTimeout(this.timeOut), this.timeOut = 0), this._iconImg && this._iconImg.dispose(),
			this._iconImg = void 0, t.prototype.dispose.call(this)
	}, e.prototype.onBtnForgeClick = function(e) {
		this._guide && (this._guide.hide(), this._guide = null, App.dispatcher.dispatchEvent(EventType.BACKGUIDE)), t.prototype
			.onBtnForgeClick.call(this, e)
	}, e.prototype.onForgeResult = function(e, i, n) {
		if (n == ForgeType.Strength) {
			if (e == this.forgeCenter.selectedRoleIndex) {
				t.prototype.onForgeResult.call(this, e, i, n);
				for (var a = 0; a < i.length; ++a) {
					var o = i[a];
					this.forgeInfoHash.put(o.pos, this.forgeCenter.getRoleForgeInfo(e, o.pos, ForgeType.Strength)), this["jlNum" + o
						.pos].text = "+" + o.grade
				}
				this.refreshAll(), this.selectPos(this.forgeCenter.getQhCurSelPos())
			}
			this.updateNeedItem()
		}
	}, e.prototype.addEffect = function(e) {
		void 0 === e && (e = ""), t.prototype.addEffect.call(this), this.addEffect1("forge1")
	}, e.prototype.addEffect1 = function(t) {
		void 0 === t && (t = "");
		var e = App.thing.create(CPlayOnceEffect, "StrengthView", !0);
		e.url = ResPathUtil.getMenuEffect("forge", t), e.x = this._iconImg.x + 32, e.y = this._iconImg.y + 30, e.addParent(
			this), e.play()
	}, e.prototype.refreshForgeGrid = function() {
		t.prototype.refreshForgeGrid.call(this), this.refreshAll()
	}, e.prototype.refreshOneEquip = function(t, e) {
		var i = e.icon;
		i.source = ResPathUtil.getImgPath("forgepos_" + t, "icon"), i.width = i.height = 64, i.x = e.iconx - 1, i.y = e.icony -
			1;
		var n = e.lal;
		n.textColor = 16757760;
		var a = this.forgeInfoHash.get(t);
		a && void 0 != a.level && a.level > 0 ? n.text = "+" + a.level : n.text = ""
	}, e.prototype.selectPos = function(e) {
		t.prototype.selectPos.call(this, e), this.forgeCenter.seQhCurSelPos(e), this._iconImg.url = ResPathUtil.getImgPath(
			"forgepos_" + e, "icon")
	}, e.prototype.refreshOther = function() {
		t.prototype.refreshOther.call(this), this.updateAttr()
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ForgeCommonView);
__reflect(StrengthView.prototype, "StrengthView");
var FriendPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e.showXY = !0, e
	}
	return __extends(e, t), e.prototype.init = function() {
			this._view = UIMaker.createViewBase("FriendSkin"), this._view.txtMsg.type = egret.TextFieldType.INPUT, this._vscroller =
				new VScrollPanel(630, 750, FriendChatItem, 0), this._view.vscro.addChild(this._vscroller), this.addChild(this._view),
				this._tab = new TabBar([this._view.tab1, this._view.tab2, this._view.tab3, this._view.tab4]), this._tab.tabButtonArr = [
					this._view.tab1, this._view.tab2, this._view.tab3, this._view.tab4
				], this._tab.setTabBtnData(this._view.tab1, EnumChatTypes.CHANNEL_ZONGHE), this._tab.setTabBtnData(this._view.tab2,
					EnumChatTypes.CHANNEL_WORLD), this._tab.setTabBtnData(this._view.tab3, EnumChatTypes.CHANNEL_UNION), this._tab.setTabBtnData(
					this._view.tab4, EnumChatTypes.CHANNEL_SYSYTEM), App.global.characterData.gmLevel > 1 && (this._view.txtMsg.maxChars =
					100), this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddStage, this), this.addEventListener(egret.Event
					.REMOVED_FROM_STAGE, this.onRemoveStage, this), this._gridLayer = new HeadGridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
					BagItemCenter.COL, 38, 46), this._gridLayer.initLayers([HeadLayout.SELECT, HeadLayout.BG, HeadLayout.ICON]), this
				._gridLayer.moveTo(0, 0, this._view.headList), this._gridFriendLayer = new FriendGridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
					BagItemCenter.COL, 38, 46), this._gridFriendLayer.initLayers([FriendLayout.FRIENDBG, FriendLayout.SELECT,
					FriendLayout.BG, FriendLayout.ICON, FriendLayout.LINEICON, FriendLayout.BUTTON, FriendLayout.NAMEINFO,
					FriendLayout.LINEINFO, FriendLayout.BUTTONLABEL
				]), this._gridFriendLayer.setCallback(new FunctionVO(this.onFriendGridClick, this)), this._gridFriendLayer.moveTo(
					21.5, 0, this._view.friendList), this.initGroupTips()
		}, e.prototype.onFriendGridClick = function(t) {
			var e = t;
			GameLog.log("FriendPanel onGridClick");
			var i = e[0].getUiComponent(FriendLayout.SELECT).localToGlobal();
			this.onSelectLookItem({
				obj: {
					x: i.x + 100,
					y: i.y
				}
			})
		}, e.prototype.onAddStage = function(t) {
			this.stage.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap, this)
		}, e.prototype.onRemoveStage = function(t) {
			this.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap, this)
		}, e.prototype.onTap = function(t) {
			"head" != t.target.name && (this._view.tipsGroup.visible = !1)
		}, e.prototype.onSelectLookItem = function(t) {
			this._view.tipsGroup.x = t.obj.x - this.x, this._view.tipsGroup.y = t.obj.y, this._view.tipsGroup.visible = !0
		}, e.prototype.onSelectItem = function(t) {}, e.prototype.show = function(e) {
			t.prototype.show.call(this), this.addEvents(), this.showXY = !0, this.showViewXY(), this._view.txtMsg.text =
				"点击输入聊天内容", App.data.chatDataCenter.currChatType == EnumChatTypes.CHANNEL_ZONGHE ? this._tab.selectedIndex = 0 :
				App.data.chatDataCenter.currChatType == EnumChatTypes.CHANNEL_WORLD ? this._tab.selectedIndex = 1 : App.data.chatDataCenter
				.currChatType == EnumChatTypes.CHANNEL_UNION ? this._tab.selectedIndex = 2 : App.data.chatDataCenter.currChatType ==
				EnumChatTypes.CHANNEL_SYSYTEM && (this._tab.selectedIndex = 3), this.onSelectChange(1), ChatCommandSender.sendBlackList(),
				Config.isMobile || FullScreenMask.ins.removeMask(FullScreen.Panel)
		}, e.prototype.addEvents = function() {
			this._dispatcher.addEventListener(ChatEvent.CHAT_RESPONSE, this.addChatMessage, this), this._dispatcher.addEventListener(
					TabBar.SELECTED_INDEX_CHANGE, this.onSelectChange, this, this._tab), this._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, this.onSend, this, this._view.btnSend), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onClick, this, this._view.downbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
					this, this._view.upbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
					.closebtn), this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_IN, this.onTexClick, this, this._view.txtMsg),
				this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_OUT, this.onTexOutClick, this, this._view.txtMsg), this._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEmoji, this, this._view.bqicon), this._dispatcher.addEventListener(
					EventType.FRIEND_SELECT, this.onSelectItem, this), this._dispatcher.addEventListener(EventType.FRIEND_LOOK_SELECT,
					this.onSelectLookItem, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSearch, this,
					this._view.searchBtn)
		}, e.prototype.onSearch = function(t) {
			GameLog.log("搜索----");
			var e = App.data.friendCenter.getSearchList(this._view.searchInput.text, 2);
			this.setFriendList(e)
		}, e.prototype.onTexClick = function() {
			"点击输入聊天内容" == this._view.txtMsg.text && (this._view.txtMsg.text = "")
		}, e.prototype.onTexOutClick = function() {
			"" == this._view.txtMsg.text && (this._view.txtMsg.text = "点击输入聊天内容")
		}, e.prototype.showViewXY = function() {
			this.showXY ? (this._view.titleLB.y = 582, this._view.upbtn.visible = !0, this._view.downbtn.visible = !1, this._view
					.vscro.y = 582, this._view.searchAddGroup.y = 622, this._view.vscro0.y = 582, this._view.vscro2.y = 612, this._vscroller
					.height = 346, this._view.vscro0.height = 346, this._view.vscro2.height = 306, this._view.bg.y = 578, this._view.bg
					.height = 484, this._view.downbtn.y = 574, this._view.closebtn.y = 578, this._view.upbtn.y = 553, this._view.messageLB
					.y = this._view.vscro2.y + this._view.vscro2.height / 2, this._view.centerBg.y = this._view.vscro2.y, this._view.centerBg
					.height = this._view.vscro2.height, 2 == this._tab.selectedIndex ? (this._view.searchGroup.visible = !0, this._view
						.vscro2.height = this._view.vscro2.height - this._view.searchGroup.height) : this._view.searchGroup.visible = !1
				) : (this._view.titleLB.y = 125, this._view.downbtn.visible = !0, this._view.upbtn.visible = !1, this._view.vscro.y =
					125, this._view.searchAddGroup.y = 165, this._view.vscro0.y = 125, this._view.vscro2.y = 155, this._view.bg.y =
					100, this._view.bg.height = Config.SCREEN_HEIGHT, this._view.downbtn.y = 129, this._view.closebtn.y = 100, this._vscroller
					.height = 810, this._view.vscro0.height = 810, this._view.vscro2.height = 770, this._view.upbtn.y = 96, this._view
					.messageLB.y = this._view.vscro2.y + this._view.vscro2.height / 2, this._view.centerBg.y = this._view.vscro2.y,
					this._view.centerBg.height = this._view.vscro2.height, 2 == this._tab.selectedIndex ? (this._view.vscro2.height =
						this._view.vscro2.height - this._view.searchGroup.height, this._view.searchGroup.visible = !0) : this._view.searchGroup
					.visible = !1), this._gridLayer.useScroller(this._view.vscro0.width, this._view.vscro0.height), this._gridFriendLayer
				.useScroller(this._view.vscro2.width, this._view.vscro2.height), this.resize()
		}, e.prototype.onClick = function(t) {
			switch (t.target) {
				case this._view.downbtn:
					this.showXY = !0, this.showViewXY();
					break;
				case this._view.upbtn:
					this.showXY = !1, this.showViewXY();
					break;
				case this._view.closebtn:
					App.panel.removePanel(87)
			}
		}, e.prototype.resize = function() {
			this._view.bg.height = Config.SCREEN_HEIGHT, this.x = (Config.SCREEN_WIDTH >> 1) - 320, this.y = 0
		}, e.prototype.onSend = function(t) {
			if (this.roleData.isForbidSpeak) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">您已经被禁言，如有疑问请联系客服</font>");
			var e = this._view.txtMsg.text;
			if ("" != e && "点击输入聊天内容" != this._view.txtMsg.text) {
				var i = GMUtil.checkIsGmString(this._view.txtMsg.text);
				if (!i) {
					var n = "@" == e.charAt(0);
					if (!Config.isDebug && !n) {
						var a = App.data.chatDataCenter.getChatLvlLimit(this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE ?
							EnumChatTypes.CHANNEL_WORLD : this.selectChannel);
						if (a) {
							if (this.roleData.level < a.level) return void Notice.show(10005, a.level);
							if (this.roleData.vipLevel < a.vip) return PanelOpenManager.openPanel(35), void Notice.showBottomMessage(
								"您的VIP等级不足" + a.vip)
						}
					}
					var o = this._view.txtMsg.text;
					ChatCommandSender.sendChatMessage(this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE ? EnumChatTypes.CHANNEL_WORLD :
						this.selectChannel, o);
					var r = EnumChatTypes.getChannelLogType(this.selectChannel);
					App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_LOG_UP, 6, r, o), this._view.txtMsg.text = "点击输入聊天内容"
				}
			}
		}, e.prototype.onEmojiClick = function(t) {
			"点击输入聊天内容" == this._view.txtMsg.text ? this._view.txtMsg.text = "" + t : this._view.txtMsg.text.length < 23 && (
				this._view.txtMsg.text = this._view.txtMsg.text + t)
		}, e.prototype.addChatMessage = function(t) {
			if (t.channelType == this.selectChannel || this.selectChannel == EnumChatTypes.CHANNEL_ZONGHE) {
				if (void 0 != t.sender)
					if (App.data.chatDataCenter.blackArr && App.data.chatDataCenter.blackArr.length > 0) {
						for (var e = App.data.chatDataCenter.blackArr.length, i = App.data.chatDataCenter.blackArr, n = !0, a = 0; e > a; a++)
							LongUtil.toString(t.senderid) == LongUtil.toString(i[a].playerid) && (n = !1);
						n && this._shopAry.push(t)
					} else this._shopAry.push(t);
				else this._shopAry.push(t);
				this._vscroller.dataProvider = this._shopAry, this.scrollBottom()
			}
		}, e.prototype.scrollBottom = function() {
			this._vscroller.viewport && (this._vscroller.viewport.validateDisplayList(), this._vscroller.validateNow(), this._vscroller
				.viewport.contentHeight > this._vscroller.viewport.height ? this._vscroller.viewport.scrollV = this._vscroller.viewport
				.contentHeight - this._vscroller.viewport.height + 10 : this._vscroller.viewport.scrollV = 0)
		}, e.prototype.showFriendList = function(t) {
			var e = App.data.friendCenter.getFriendListByIndex(t);
			this.setFriendList(e), (1 == t || 3 == t) && e.length <= 0 ? this._view.messageLB.visible = !0 : this._view.messageLB
				.visible = !1
		}, e.prototype.setFriendList = function(t) {
			this.removeAllList();
			for (var e = [], i = 0; i < t.length; i++) {
				var n = {};
				e.push(n)
			}
			this._gridFriendLayer.dataProvider = t
		}, e.prototype.showFriendHeadList = function() {
			this.removeAllHeadList();
			for (var t = [], e = 0; 20 > e; e++) {
				var i = {};
				t.push(i)
			}
			this._gridLayer.dataProvider = t
		}, e.prototype.showCurrent = function(t) {
			this.currentItem = t
		}, e.prototype.onSelectChange = function(t) {
			switch (this._view.vscro.visible = !1, this._view.vscro0.visible = !1, this._view.vscro2.visible = !1, this._view.centerBg
				.visible = !0, this._view.searchAddGroup.visible = !1, this._view.searchInput.text = "", this._tab.selectedIndex) {
				case 0:
					this._view.centerBg.visible = !1, this._view.vscro.visible = !0, this._view.vscro0.visible = !0, this._view.titleLB
						.text = "", this.showFriendHeadList();
					break;
				case 1:
					this._view.vscro2.visible = !0, this.showFriendList(1), this._view.titleLB.text = "好友 9/10", this._view.messageLB
						.text = "从聊天频道中添加更多好友吧~";
					break;
				case 2:
					this._view.vscro2.visible = !0, this.showFriendList(2), this._view.titleLB.text = "推荐好友", this._view.searchAddGroup
						.visible = !0;
					break;
				case 3:
					this._view.vscro2.visible = !0, this.showFriendList(3), this._view.titleLB.text = "黑名单", this._view.messageLB.text =
						"您暂时还没有拉黑玩家"
			}
			this.showViewXY(), this.showChatMessage()
		}, e.prototype.showChatMessage = function() {
			var t = this._tab.selectItem;
			App.data.chatDataCenter.currChatType = t, this.refreshState(), this._shopAry = [];
			var e = App.data.chatDataCenter.getMessages(t);
			if (e && e.length > 0)
				for (var i = 0; i < e.length; i++)
					if (void 0 != e[i].senderid)
						if (App.data.chatDataCenter.blackArr && App.data.chatDataCenter.blackArr.length > 0) {
							for (var n = App.data.chatDataCenter.blackArr.length, a = App.data.chatDataCenter.blackArr, o = !0, r = 0; n >
								r; r++) LongUtil.toString(e[i].senderid) == LongUtil.toString(a[r].playerid) && (o = !1);
							o && this._shopAry.push(e[i])
						} else this._shopAry.push(e[i]);
			else this._shopAry.push(e[i]);
			else this._shopAry = [];
			this._vscroller.dataProvider = this._shopAry, this.scrollBottom()
		}, e.prototype.refreshState = function() {
			if (this._tab.selectedIndex > 0) this._view.txtSys.visible = !1, this._view.msgBg.visible = !1, this._view.txtMsg.visible = !
				1, this._view.btnSend.visible = !1, this._view.bqicon.visible = !1;
			else {
				var t = this.selectChannel == EnumChatTypes.CHANNEL_SYSYTEM;
				this._view.txtSys.visible = t, this._view.msgBg.visible = !t, this._view.txtMsg.visible = !t, this._view.btnSend.visible = !
					t, this._view.bqicon.visible = !t
			}
		}, Object.defineProperty(e.prototype, "selectChannel", {
			get: function() {
				return this._tab.selectItem
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "roleData", {
			get: function() {
				return App.global.characterData
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.onEmoji = function(t) {
			this.emojiPanel.isShow ? this.emojiPanel.hide() : (this.emojiPanel.move(this.width - 624 >> 1, this._view.bqicon.y -
				230), this.emojiPanel.show(this, new FunctionVO(this.onEmojiClick, this)))
		}, e.prototype.hide = function() {
			t.prototype.hide.call(this), this.removeAllList(), this.removeAllHeadList(), this._gridLayer.clear(), this._gridFriendLayer
				.clear(), this._emojiPanel && this._emojiPanel.hide(), this._vscroller.removeAll(), this._tab.clear()
		}, Object.defineProperty(e.prototype, "width", {
			get: function() {
				return Config.SCREEN_WIDTH
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return Config.SCREEN_HEIGHT
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "emojiPanel", {
			get: function() {
				return this._emojiPanel || (this._emojiPanel = new EmojiPanel), this._emojiPanel
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.removeAllList = function() {}, e.prototype.removeAllHeadList = function() {}, e.prototype.dispose =
		function() {
			t.prototype.dispose.call(this), this._gridLayer.dispose(), this._gridFriendLayer.dispose(), this._emojiPanel && (
				this._emojiPanel.dispose(), this._emojiPanel = void 0), this._tab = void 0, this._view = void 0
		}, e.prototype.initGroupTips = function() {
			this._view.chatBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onChatBtn, this), this._view.lookBtn.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onLookBtn, this), this._view.removeBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onRemoveBtn, this), this._view.addBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAddBtn, this)
		}, e.prototype.onChatBtn = function(t) {
			GameLog.log("onChatBtn"), this._tab.selectedIndex = 0
		}, e.prototype.onLookBtn = function(t) {
			GameLog.log("onLookBtn")
		}, e.prototype.onRemoveBtn = function(t) {
			GameLog.log("onRemoveBtn")
		}, e.prototype.onAddBtn = function(t) {
			GameLog.log("onAddBtn")
		}, e
}(BasePanel);
__reflect(FriendPanel.prototype, "FriendPanel");
var FriendChatItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isLeft = !0, e.posY = 42, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("FriendChatItemSkin"), this.addChild(this._view), this._emojies = []
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this._view.txtMsg), this._dispatcher.addEventListener(egret.TextEvent.LINK, this.onLink, this, this._view.txtMsg)
	}, e.prototype.onLink = function(t) {
		var e = t.text.split(":");
		if ("panel" == e[0]) 60 == Number(e[1]) ? App.panel.openPanel(Number(e[1]), {
			selectedIndex: 2
		}) : 55 == Number(e[1]) ? App.global.funcOpen.isFunctionOpen(45) && 0 != App.data.activityCenter.getData(
			ActivityCenter.firstChargeAct).playerStates ? App.panel.openPanel(Number(e[1])) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">您已领取首充奖励！</font>") : App.panel.openPanel(Number(e[1]));
		else if ("item" == e[0]) {
			var i = GameUtil.getItemConfigData(Number(e[1]));
			null != i && (null == this._tip && (this._tip = new TipData), 1 == i.q_type ? this._tip.type = 4 : 42 == i.q_type ?
				this._tip.type = 19 : this._tip.type = 2, this._tip.data = Number(e[1]), App.tip.showTip(this._tip))
		}
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(10010, this._bean)
	}, e.prototype.onEmojiClick = function(t) {}, Object.defineProperty(e.prototype, "chatBlackView", {
		get: function() {
			return this._chatBlackView || (this._chatBlackView = new ChatBlackView), this._chatBlackView
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dataChanged = function() {
		this._bean = this.data;
		var t = "",
			e = this._bean.content;
		void 0 == this._bean.sender || this._bean.isMine ? (this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onTouch, this, this._view.txtMsg), this._dispatcher.addEventListener(egret.TextEvent.LINK, this.onLink,
			this, this._view.txtMsg), this._view.txtMsg.touchEnabled = !0) : (this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onTouch, this, this._view.txtMsg), this._dispatcher.removeEventListener(egret.TextEvent.LINK,
			this.onLink, this, this._view.txtMsg));
		var i = 0,
			n = [];
		if (1 == this._bean.faceSign) {
			var a = 0,
				o = [];
			t = t, this._view.lab.textFlow = HtmlUtil.getHtmlStr(t), i = this._view.lab.width;
			for (var r = 100; 119 > r; r++) {
				var s = "";
				s = e.replace("#" + r + "#", "    	"), s != e && (a++, this._view.lab.textFlow = HtmlUtil.getHtmlStr(e.split("#" +
						r + "#")[0]), 0 == this._view.lab.width ? n.push(15) : n.push(this._view.lab.width + 20), o.push(r), r--), e =
					s
			}
			this._view.lab.textFlow = HtmlUtil.getHtmlStr(t);
			for (var h = 0; a > h; h++) {
				var l = EffectUtils.showCFaceEffect(this, this, ResPathUtil.getChatfaceRes("" + o[h]));
				l.x = i + n[h], l.y = 8 + this.posY, l.scaleX = .7, l.scaleY = .7, this._emojies.push(l)
			}
			t += e
		} else t += this._bean.content + "";
		t += "</font>", this._view.txtMsg.textFlow = HtmlUtil.getHtmlStr(t), 0 == this.isLeft && (this._view.txtMsg.x = 480 -
			this._view.txtMsg.width);
		for (var p = 0; p < this._emojies.length; p++) {
			var c = this._emojies[p];
			c && (c.x = this._view.txtMsg.x + i + n[p])
		}
	}, e.prototype.cleareff = function() {
		for (var t = 0; t < this._emojies.length; t++) this._emojies[t] && (this._emojies[t].stop(), this._emojies[t].dispose(),
			this._emojies[t] = null)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.cleareff()
	}, e
}(ItemRenderer);
__reflect(FriendChatItem.prototype, "FriendChatItem");
var FriendGridContainer = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = 2), void 0 === a && (a = 2);
		var o = t.call(this) || this;
		return o._clearCurrentTip = !0, o._dataSource = new Array, o._renderDataHash = new HashObject, o._layerHash = {}, o._uiComponentToIdHash =
			new HashMap, o._controller = new FriendGridContainerController, o._controller.setStyle(e, i, n, a), o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._layerContainer = new eui.Group, this.addChild(this._layerContainer)
	}, e.prototype.initLayers = function(t) {
		t = this._controller.getTypes(t);
		for (var e, i, n = t.length, a = 0; n > a; a++) i = t[a], e = new RenderContainer(i), e.moveTo(this._controller.layerGapX,
				this._controller.layerGapY, this._layerContainer), e.touchEnabled = i == FriendLayout.BG, e.touchChildren = i ==
			FriendLayout.BG, this._layerHash[i] = e;
		this._controller.layoutList = t
	}, e.prototype.getLayer = function(t) {
		return this._layerHash[t]
	}, Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._controller.dataProvider
		},
		set: function(t) {
			this._controller.dataProvider = t, this._controller.repeatY = Math.ceil(t.length / this._controller.repeatX),
				App.timer.doFrameOnce(this, 2, this.callLater, [t], !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.callLater = function(t) {
		this._clearCurrentTip = !1, this.clear();
		for (var e = t.length, i = 0; e > i; i++) this.getRenderData(i).data = t[i];
		this._dataSource = t, this.updateLayers(), this._scroller && this.onChange(), this._alphaImage && (this._alphaImage
			.y = this._controller.getAlphaImageY(this._dataSource.length))
	}, e.prototype.updateLayers = function() {
		for (var t, e = this._controller.layoutList.length, i = this._dataSource.length, n = 0; e > n; n++) {
			t = this._controller.layoutList[n];
			for (var a = 0; i > a; a++) this.addToLayer(t, this.getLayer(t), this.getRenderData(a))
		}
		this.renderLayers(this._controller.layoutList)
	}, e.prototype.addToLayer = function(t, e, i) {
		var n = this._controller.getUiComponent(t, i);
		egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.put(n, i.id), n.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClick, this)), i.setUiComponent(t, n), t == FriendLayout.SELECT && i.setGridLayoutVisible(
			t, !1), e && e.add(i)
	}, e.prototype.removeFromLayer = function(t, e, i) {
		var n = i.getUiComponent(t);
		egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.del(n), n.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClick, this)), e && e.remove(i), i.data = null
	}, e.prototype.renderLayers = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.getLayer(t[i]).renderLayer()
	}, e.prototype.getRenderData = function(t) {
		var e = this._renderDataHash.get(t + "");
		return null == e && (e = new GridRenderData, e.id = t, e.x = this._controller.getGridX(t), e.y = this._controller.getGridY(
			t), this._renderDataHash.put(t + "", e)), e
	}, e.prototype.setCallback = function(t, e) {
		this._gridClickCallBack = t, this._gridClickParam = e
	}, e.prototype.setSelectedIndex = function(t) {
		var e = this.getRenderData(t);
		if (null != this._gridClickCallBack) {
			var i = [e];
			this._gridClickParam && i.concat(this._gridClickParam), this._gridClickCallBack.exec(i)
		}
	}, e.prototype.onClick = function(t) {
		if (t.target instanceof eui.Image) {
			var e = this._uiComponentToIdHash.get(t.target);
			this.setSelectedIndex(e)
		}
	}, e.prototype.setShowTip = function(t) {
		this._controller.showTip = t
	}, e.prototype.clear = function() {
		for (var t, e = this._controller.layoutList, i = e.length, n = this._renderDataHash.length, a = 0; i > a; a++) {
			t = e[a];
			for (var o = 0; n > o; o++) this.removeFromLayer(t, this.getLayer(t), this.getRenderData(o))
		}
	}, e.prototype.useScroller = function(t, e) {
		this._scroller = UIMaker.getScroller(this, this, 0, 0, t, e), this._scroller.viewport = this._layerContainer, this._scroller
			.addEventListener(eui.UIEvent.CHANGE, this.onChange, this), this._alphaImage = UIMaker.getImage(this._layerContainer,
				this, GridUtil.getGridGradeBg(-1), 0, 0, !1, this._alphaImage), this._alphaImage.alpha = .01
	}, e.prototype.onChange = function(t) {
		void 0 === t && (t = null);
		for (var e = this._scroller.localToGlobal().y - this._controller.horGap, i = e + this._scroller.height + 3 * this._controller
				.horGap + this._controller.bgBorderHeight, n = this._dataSource.length, a = 0; n > a; a++) this.getRenderData(a).setVisibleArea(
			e, i)
	}, e.prototype.stopScroller = function() {
		this._scroller && (this._scroller.stopAnimation(), this._scroller.viewport && (this._scroller.viewport.scrollV = 0))
	}, e.prototype.useSelectedImage = function(t, e, i) {
		void 0 === e && (e = 89), void 0 === i && (i = 89), this._controller.selectedWidth = e, this._controller.selectedHeight =
			i, this._imageSelected = UIMaker.getImage(null, this, GridUtil.getSelectedUrl()), this._layerContainer.addChildAt(
				this._imageSelected, 0)
	}, e.prototype.setImageSelectedXY = function(t) {
		this._imageSelected && (this._imageSelected.x = this._controller.getSelectedImageX(t), this._imageSelected.y = this
			._controller.getSelectedImageY(t))
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t - this._controller.layerGapX, this.y = e - this._controller.layerGapY, i && i.addChild(this)
	}, e.prototype.getIconList = function() {
		var t = this.getLayer(FriendLayout.ICON);
		return t ? t.targetList : null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._controller ? this._controller.getWidth() : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._controller ? this._controller.getHeight() : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getController = function() {
		return this._controller
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.callLater, this), this._clearCurrentTip = !0, this.clear(), this._scroller && this._scroller
			.removeEventListener(eui.UIEvent.CHANGE, this.onChange, this), UIMaker.putToPool(this._scroller), UIMaker.putToPool(
				this._alphaImage), UIMaker.putToPool(this._imageSelected), this._uiComponentToIdHash.dispose(), this._renderDataHash =
			null, this._layerHash = null, this._uiComponentToIdHash = null, this._gridClickCallBack = null, this._gridClickParam =
			null, this._dataSource = null, this._controller = null, this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(FriendGridContainer.prototype, "FriendGridContainer");
var FriendGridContainerController = function() {
	function t() {
		this.showTip = !0, this.layoutList = new Array
	}
	return t.prototype.getTypes = function(t) {
		return t.sort(this.sort), t
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.setStyle = function(t, e, i, n) {
		void 0 === i && (i = 2), void 0 === n && (n = 2);
		var a = t.split("|");
		a[0].split(","), a[1].split(",");
		this.bgBorderWidth = 573, this.bgBorderHeight = 100, this.iconWidth = 88, this.iconHeight = 87, this.iconX = this.bgBorderWidth -
			this.iconWidth >> 1, this.iconY = this.bgBorderHeight - this.iconHeight >> 1, this.repeatX = 1, this.repeatY = 50,
			this.horGap = 1, this.verGap = 1, this.layerGapX = 0, this.layerGapY = 0
	}, t.prototype.setLayer = function() {
		this.layoutList = [FriendLayout.FRIENDBG, FriendLayout.SELECT, FriendLayout.BG, FriendLayout.ICON, FriendLayout.LINEICON,
			FriendLayout.BUTTON, FriendLayout.NAMEINFO, FriendLayout.LINEINFO
		]
	}, t.prototype.getWidth = function() {
		return this.dataProvider ? (this.bgBorderWidth + this.horGap) * Math.min(this.dataProvider.length, this.repeatX) -
			this.horGap : 0
	}, t.prototype.getHeight = function() {
		return this.dataProvider ? (this.bgBorderHeight + this.verGap) * Math.min(this.dataProvider.length, this.repeatY) -
			this.verGap : 0
	}, t.prototype.getGridX = function(t) {
		return t % this.repeatX * (this.bgBorderWidth + this.horGap)
	}, t.prototype.getGridY = function(t) {
		return Math.floor(t / this.repeatX) * (this.bgBorderHeight + this.verGap)
	}, t.prototype.getSelectedImageX = function(t) {
		return this.layerGapY + this.getGridX(t) + (this.bgBorderWidth - this.selectedWidth >> 1)
	}, t.prototype.getSelectedImageY = function(t) {
		return this.layerGapY + this.getGridY(t) + (this.bgBorderHeight - this.selectedHeight >> 1)
	}, t.prototype.getAlphaImageY = function(t) {
		return this.getGridY(t - 1) + this.layerGapY + 30
	}, t.prototype.getUiComponent = function(t, e) {
		var i = e.data;
		if (null == i) return null;
		switch (t) {
			case FriendLayout.FRIENDBG:
				return this.getFriendBg(e);
			case FriendLayout.SELECT:
				return this.getSelect(e);
			case FriendLayout.ICON:
				return this.getIcon(e);
			case FriendLayout.BG:
				return this.getBg(e);
			case FriendLayout.LINEICON:
				return this.getLineIcon(e);
			case FriendLayout.BUTTON:
				return this.getGobtn(e);
			case FriendLayout.NAMEINFO:
				return this.getNameInfo(e);
			case FriendLayout.LINEINFO:
				return this.getLineInfo(e);
			case FriendLayout.BUTTONLABEL:
				return this.getBtnLabel(e)
		}
	}, t.prototype.getFriendBg = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "friend_item_bg_png", t.x, t.y));
		return e.scale9Grid = new egret.Rectangle(2, 3, 16, 95), e.width = this.bgBorderWidth, e.height = this.bgBorderHeight,
			e.touchEnabled = !0, e
	}, t.prototype.getSelect = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "friend_select_png", t.x + 16, t.y));
		return e.width = 100, e.height = 100, e.name = "head", e
	}, t.prototype.getIcon = function(t) {
		var e = (t.data, "friend_head_bg_png"),
			i = UIMaker.getImage(null, this, e, t.x + 22, t.y + 6);
		return i.width = this.iconWidth, i.height = this.iconHeight, i.touchEnabled = !0, i.name = "head", i
	}, t.prototype.getBg = function(t) {
		var e = (t.data, "friend_head_bg_png"),
			i = UIMaker.getImage(null, this, e, t.x + 22, t.y + 6);
		return i.width = this.iconWidth, i.height = this.iconHeight, i.touchEnabled = !0, i.name = "head", i
	}, t.prototype.getLineIcon = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "friend_green_point_png", t.x + 151, t.y + 59));
		return e.width = 17, e.height = 17, e.touchEnabled = !0, e
	}, t.prototype.getGobtn = function(t) {
		var e = (t.data, UIMaker.getButton(null, this, "ButtonBigSkin", "", t.x + 434, t.y + 29));
		return e.width = 110, e.height = 43, e.touchEnabled = !0, e
	}, t.prototype.getBtnLabel = function(t) {
		var e = t.data,
			i = (this.bgBorderWidth == EnumGridStyle.DEFAULT_SIZE ? 4 : 1, UIMaker.getBitmapLabel(null, this,
				"fnt_friend_btn_fnt", "1", t.x + 434, t.y + 25, 110, 43));
		return i.textAlign = egret.HorizontalAlign.CENTER, i.verticalAlign = egret.VerticalAlign.MIDDLE, i.font =
			"fnt_friend_btn_fnt", i.text = e.lbInfo, i
	}, t.prototype.getNameInfo = function(t) {
		var e = t.data,
			i = UIMaker.getTextField(null, this, t.x + 149, t.y + 9, 300, 30, 766428, 24),
			n = "<font color='0x02C900'>";
		return i.textFlow = HtmlUtil.getHtmlStr(n + e.name + "</font>(" + e.zsLv + "转" + e.lv + "级)"), i.textAlign = egret.HorizontalAlign
			.LEFT, i.verticalAlign = egret.VerticalAlign.MIDDLE, i
	}, t.prototype.getLineInfo = function(t) {
		var e = (t.data, UIMaker.getTextField(null, this, t.x + 176, t.y + 54, 200, 30, Style.COLOR, 24)),
			i = "<font color='0x02C900'>";
		return e.textFlow = HtmlUtil.getHtmlStr(i + "在线</font>"), e.textAlign = egret.HorizontalAlign.LEFT, e.verticalAlign =
			egret.VerticalAlign.MIDDLE, e
	}, t
}();
__reflect(FriendGridContainerController.prototype, "FriendGridContainerController");
var FriendLayout;
! function(t) {
	t[t.FRIENDBG = 0] = "FRIENDBG", t[t.SELECT = 1] = "SELECT", t[t.BG = 2] = "BG", t[t.ICON = 3] = "ICON", t[t.BUTTON = 4] =
		"BUTTON", t[t.BUTTONLABEL = 5] = "BUTTONLABEL", t[t.LINEICON = 6] = "LINEICON", t[t.NAMEINFO = 7] = "NAMEINFO", t[t.LINEINFO =
			8] = "LINEINFO"
}(FriendLayout || (FriendLayout = {}));
var FriendItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._view = UIMaker.createViewBase("FriendItemSkin"), e.addChild(e._view), e._icon = new CImage, e.addChild(e._icon),
			e
	}
	return __extends(e, t), e.prototype.onCreate = function() {
		this._view.btnGo.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this._view.headBg.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onLook, this)
	}, e.prototype.onLook = function(t) {
		App.dispatcher.dispatchEvent(EventType.FRIEND_LOOK_SELECT, {
			target: this,
			obj: {
				x: t.stageX,
				y: t.stageY
			}
		})
	}, e.prototype.onTouch = function(t) {}, e.prototype.setData = function(t) {
		this.data = t;
		var e = "<font color='0x02C900'>";
		this._view.nameInfoLB.textFlow = null, this._view.nameInfoLB.textFlow = HtmlUtil.getHtmlStr(e + this.data.name +
			"</font>(" + this.data.zsLv + "转" + this.data.lv + "级)"), this.data.isOnline ? (this._view.lineIcon.filters = [],
			this._view.lineInfoLB.text = "在线") : (this._view.lineInfoLB.text = "离线", this._view.lineIcon.filters = FilterUtil
			.FILTER_GRAY), this._view.btnGo.label = "" + this.data.lbInfo
	}, e.prototype.clear = function() {
		this._view.btnGo.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this._view.headBg.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onLook, this)
	}, e.prototype.dispose = function() {
		this._view.btnGo.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this._view.headBg.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onLook, this)
	}, e
}(eui.Component);
__reflect(FriendItem.prototype, "FriendItem");
var HeadGridContainer = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = 2), void 0 === a && (a = 2);
		var o = t.call(this) || this;
		return o._clearCurrentTip = !0, o._dataSource = new Array, o._renderDataHash = new HashObject, o._layerHash = {}, o._uiComponentToIdHash =
			new HashMap, o._controller = new HeadGridContainerController, o._controller.setStyle(e, i, n, a), o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._layerContainer = new eui.Group, this.addChild(this._layerContainer)
	}, e.prototype.initLayers = function(t) {
		t = this._controller.getTypes(t);
		for (var e, i, n = t.length, a = 0; n > a; a++) i = t[a], e = new RenderContainer(i), e.moveTo(this._controller.layerGapX,
				this._controller.layerGapY, this._layerContainer), e.touchEnabled = i == HeadLayout.BG, e.touchChildren = i ==
			HeadLayout.BG, this._layerHash[i] = e;
		this._controller.layoutList = t
	}, e.prototype.getLayer = function(t) {
		return this._layerHash[t]
	}, Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._controller.dataProvider
		},
		set: function(t) {
			this._controller.dataProvider = t, this._controller.repeatY = Math.ceil(t.length / this._controller.repeatX),
				App.timer.doFrameOnce(this, 2, this.callLater, [t], !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.callLater = function(t) {
		this._clearCurrentTip = !1, this.clear();
		for (var e = t.length, i = 0; e > i; i++) this.getRenderData(i).data = t[i];
		this._dataSource = t, this.updateLayers(), this._scroller && this.onChange(), this._alphaImage && (this._alphaImage
			.y = this._controller.getAlphaImageY(this._dataSource.length))
	}, e.prototype.updateLayers = function() {
		for (var t, e = this._controller.layoutList.length, i = this._dataSource.length, n = 0; e > n; n++) {
			t = this._controller.layoutList[n];
			for (var a = 0; i > a; a++) this.addToLayer(t, this.getLayer(t), this.getRenderData(a))
		}
		this.renderLayers(this._controller.layoutList)
	}, e.prototype.addToLayer = function(t, e, i) {
		var n = this._controller.getUiComponent(t, i);
		egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.put(n, i.id), n.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this), t == HeadLayout.BG && this._controller.showTip && i.data &&
			this._controller.isShowTip(i.data) && App.tip.addTip(n, this._controller.getTipData(i.data))), i.setUiComponent(t,
			n), t == HeadLayout.SELECT && i.setGridLayoutVisible(t, !1), e && e.add(i)
	}, e.prototype.removeFromLayer = function(t, e, i) {
		var n = i.getUiComponent(t);
		if (egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.del(n), n.removeEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this), t == HeadLayout.BG)) {
			var a = !this._clearCurrentTip && App.tip.tipBelongTarget(n);
			i.data && this._controller.isShowTip(i.data) && App.tip.removeTip(n, !a)
		}
		e && e.remove(i), i.data = null
	}, e.prototype.renderLayers = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.getLayer(t[i]).renderLayer()
	}, e.prototype.getRenderData = function(t) {
		var e = this._renderDataHash.get(t + "");
		return null == e && (e = new GridRenderData, e.id = t, e.x = this._controller.getGridX(t), e.y = this._controller.getGridY(
			t), this._renderDataHash.put(t + "", e)), e
	}, e.prototype.setCallback = function(t, e) {
		this._gridClickCallBack = t, this._gridClickParam = e
	}, e.prototype.setSelectedIndex = function(t) {
		var e = this.getRenderData(t);
		if (null != this._gridClickCallBack) {
			var i = [e];
			this._gridClickParam && i.concat(this._gridClickParam), this._gridClickCallBack.exec(i)
		}
	}, e.prototype.onClick = function(t) {
		if (t.target instanceof eui.Image) {
			var e = this._uiComponentToIdHash.get(t.target);
			this.setSelectedIndex(e)
		}
	}, e.prototype.setShowTip = function(t) {
		this._controller.showTip = t
	}, e.prototype.clear = function() {
		for (var t, e = this._controller.layoutList, i = e.length, n = this._renderDataHash.length, a = 0; i > a; a++) {
			t = e[a];
			for (var o = 0; n > o; o++) this.removeFromLayer(t, this.getLayer(t), this.getRenderData(o))
		}
	}, e.prototype.useScroller = function(t, e) {
		this._scroller = UIMaker.getScroller(this, this, 0, 0, t, e), this._scroller.viewport = this._layerContainer, this._scroller
			.addEventListener(eui.UIEvent.CHANGE, this.onChange, this), this._alphaImage = UIMaker.getImage(this._layerContainer,
				this, GridUtil.getGridGradeBg(-1), 0, 0, !1, this._alphaImage), this._alphaImage.alpha = .01
	}, e.prototype.onChange = function(t) {
		void 0 === t && (t = null);
		for (var e = this._scroller.localToGlobal().y - this._controller.horGap, i = e + this._scroller.height + 3 * this._controller
				.horGap + this._controller.bgBorderHeight, n = this._dataSource.length, a = 0; n > a; a++) this.getRenderData(a).setVisibleArea(
			e, i)
	}, e.prototype.stopScroller = function() {
		this._scroller && (this._scroller.stopAnimation(), this._scroller.viewport && (this._scroller.viewport.scrollV = 0))
	}, e.prototype.useSelectedImage = function(t, e, i) {
		void 0 === e && (e = 89), void 0 === i && (i = 89), this._controller.selectedWidth = e, this._controller.selectedHeight =
			i, this._imageSelected = UIMaker.getImage(null, this, GridUtil.getSelectedUrl()), this._layerContainer.addChildAt(
				this._imageSelected, 0)
	}, e.prototype.setImageSelectedXY = function(t) {
		this._imageSelected && (this._imageSelected.x = this._controller.getSelectedImageX(t), this._imageSelected.y = this
			._controller.getSelectedImageY(t))
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t - this._controller.layerGapX, this.y = e - this._controller.layerGapY, i && i.addChild(this)
	}, e.prototype.getIconList = function() {
		var t = this.getLayer(HeadLayout.ICON);
		return t ? t.targetList : null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._controller ? this._controller.getWidth() : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._controller ? this._controller.getHeight() : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getController = function() {
		return this._controller
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.callLater, this), this._clearCurrentTip = !0, this.clear(), this._scroller && this._scroller
			.removeEventListener(eui.UIEvent.CHANGE, this.onChange, this), UIMaker.putToPool(this._scroller), UIMaker.putToPool(
				this._alphaImage), UIMaker.putToPool(this._imageSelected), this._uiComponentToIdHash.dispose(), this._renderDataHash =
			null, this._layerHash = null, this._uiComponentToIdHash = null, this._gridClickCallBack = null, this._gridClickParam =
			null, this._dataSource = null, this._controller = null, this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(HeadGridContainer.prototype, "HeadGridContainer");
var HeadGridContainerController = function() {
	function t() {
		this.showTip = !0, this.layoutList = new Array
	}
	return t.prototype.getTypes = function(t) {
		return t.sort(this.sort), t
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.setStyle = function(t, e, i, n) {
		void 0 === i && (i = 2), void 0 === n && (n = 2);
		var a = t.split("|");
		a[0].split(","), a[1].split(",");
		this.bgBorderWidth = 100, this.bgBorderHeight = 100, this.iconWidth = 88, this.iconHeight = 87, this.iconX = this.bgBorderWidth -
			this.iconWidth >> 1, this.iconY = this.bgBorderHeight - this.iconHeight >> 1, this.repeatX = 1, this.repeatY = 50,
			this.horGap = 0, this.verGap = 1, this.layerGapX = 0, this.layerGapY = 0
	}, t.prototype.setLayer = function() {
		this.layoutList = [HeadLayout.SELECT, HeadLayout.BG, HeadLayout.ICON]
	}, t.prototype.getWidth = function() {
		return this.dataProvider ? (this.bgBorderWidth + this.horGap) * Math.min(this.dataProvider.length, this.repeatX) -
			this.horGap : 0
	}, t.prototype.getHeight = function() {
		return this.dataProvider ? (this.bgBorderHeight + this.verGap) * Math.min(this.dataProvider.length, this.repeatY) -
			this.verGap : 0
	}, t.prototype.getGridX = function(t) {
		return t % this.repeatX * (this.bgBorderWidth + this.horGap)
	}, t.prototype.getGridY = function(t) {
		return Math.floor(t / this.repeatX) * (this.bgBorderHeight + this.verGap)
	}, t.prototype.getSelectedImageX = function(t) {
		return this.layerGapY + this.getGridX(t) + (this.bgBorderWidth - this.selectedWidth >> 1)
	}, t.prototype.getSelectedImageY = function(t) {
		return this.layerGapY + this.getGridY(t) + (this.bgBorderHeight - this.selectedHeight >> 1)
	}, t.prototype.getAlphaImageY = function(t) {
		return this.getGridY(t - 1) + this.layerGapY + 30
	}, t.prototype.getTipData = function(t) {
		var e;
		return e = new TipData(ItemUtil.isEquip(t.itemId) ? 4 : ItemUtil.isWarpet(t.itemId) ? 19 : ItemUtil.isFaBao(t.itemId) ?
			23 : 2), e.data = t, e
	}, t.prototype.isShowTip = function(t) {
		return t.itemId == EnumItemId.NAMECHANGECARD ? !1 : !0
	}, t.prototype.getUiComponent = function(t, e) {
		var i = e.data;
		if (null == i) return null;
		switch (t) {
			case HeadLayout.SELECT:
				return this.getSelect(e);
			case HeadLayout.ICON:
				return this.getIcon(e);
			case HeadLayout.BG:
				return this.getBg(e)
		}
	}, t.prototype.getSelect = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "friend_select_png", t.x, t.y));
		return e.width = this.bgBorderWidth, e.height = this.bgBorderHeight, e
	}, t.prototype.getIcon = function(t) {
		var e = (t.data, "friend_head_bg_png"),
			i = UIMaker.getImage(null, this, e, t.x + 6, t.y + 6);
		return i.width = this.iconWidth, i.height = this.iconHeight, i
	}, t.prototype.getBg = function(t) {
		var e = (t.data, "friend_head_bg_png"),
			i = UIMaker.getImage(null, this, e, t.x + 6, t.y + 6);
		return i.width = this.iconWidth, i.height = this.iconHeight, i
	}, t
}();
__reflect(HeadGridContainerController.prototype, "HeadGridContainerController");
var HeadLayout;
! function(t) {
	t[t.SELECT = 0] = "SELECT", t[t.BG = 1] = "BG", t[t.ICON = 2] = "ICON"
}(HeadLayout || (HeadLayout = {}));
var HeadItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("HeadItemSkin"), this.addChild(this._view)
	}, e.prototype.onTouch = function(t) {
		App.dispatcher.dispatchEvent(EventType.FRIEND_SELECT, {
			target: this,
			obj: this.data
		})
	}, e.prototype.onCreate = function() {
		this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this)
	}, e.prototype.setData = function(t) {
		this.data = t
	}, e.prototype.onSelect = function(t) {
		this._view.img_select.visible = t
	}, e.prototype.clear = function() {
		this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this.data = null
	}, e.prototype.dispose = function() {
		this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this.data = null
	}, e
}(eui.Component);
__reflect(HeadItem.prototype, "HeadItem");
var GMCountryView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMCountrySkin"), this.addChild(this._view), this._selActivity = new ComboBox,
			this._selActivity.width = 331, this._selActivity.height = 40, this._selActivity.x = 136, this._selActivity.y = 39,
			this.addChild(this._selActivity), this._selPingTai = new ComboBox, this._selPingTai.width = 255, this._selPingTai.height =
			40, this._selPingTai.x = 175, this._selPingTai.y = 187, this.addChild(this._selPingTai);
		for (var t = [], e = App.config.q_activitiesContainer.list, i = 0; i < e.length; i++) 1 == e[i].q_type && t.push({
			label: e[i].q_name + "_" + e[i].q_id + "_" + e[i].q_type
		});
		this._selActivity.dataProvider = t, this._selActivity.selectIndex = 0, this._selPingTai.dataProvider = [{
			label: "黄钻_1"
		}, {
			label: "蓝钻_2"
		}, {
			label: "YY紫钻_3"
		}, {
			label: "TGP_4"
		}, {
			label: "迅雷_5"
		}, {
			label: "顺网_6"
		}, {
			label: "360红钻_7"
		}], this._selPingTai.selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this._view.btnOpen), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
			.btnClose), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOK)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		var e, i, n, a;
		switch (t.currentTarget) {
			case this._view.btnOpen:
				a = this._selActivity.selectItem.label, a && ChatCommandSender.sendChatMessage(0, "@openact id:" + a.split("_")[1] +
					App.data.gmCenter.troleName, "");
				break;
			case this._view.btnClose:
				a = this._selActivity.selectItem.label, a && ChatCommandSender.sendChatMessage(0, "@closeact id:" + a.split("_")[
					1] + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOK:
				a = this._selPingTai.selectItem.label, a && (e = Number(a.split("_")[1]), i = this._view.cbNianFei ? 1 : 0, n =
					this._view.cbHaoHua ? 1 : 0, ChatCommandSender.sendChatMessage(0, "@pfvip type:" + e + " lvl:" + this._view.txtLevel +
						" year:" + i + " high:" + n + App.data.gmCenter.troleName, ""))
		}
	}, e
}(ViewBase);
__reflect(GMCountryView.prototype, "GMCountryView");
var GMExtendView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMExtendSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btn1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btn2),
			this._dispatcher.addEventListener(VipEvent.CARD_BUY_RESULT, this.buyResult, this), this.showAct()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.btn1:
				break;
			case this._view.btn2:
		}
	}, e.prototype.buyResult = function(t) {
		var e = 1 == t;
		e ? Notice.showMousePosMessage("购买月卡会员成功！") : Notice.showMousePosMessage("购买月卡会员失败，请重试！")
	}, e.prototype.showAct = function() {}, e
}(ViewBase);
__reflect(GMExtendView.prototype, "GMExtendView");
var GmItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMitemSkin"), this.addChild(this._view), this._selNorItemId = new ComboBox,
			this._selNorItemId.x = 119, this._selNorItemId.y = 312, this._selNorItemId.width = 353, this._selNorItemId.height =
			40, this.addChild(this._selNorItemId);
		for (var t, e = [], i = [], n = 0; n < i.length; n++) t = App.config.q_itemContainer.getDataBean(i[n]), t && e.push({
			label: t.q_name.split("_")[0] + "_" + t.q_id
		});
		this._selNorItemId.dataProvider = e, this._selNorItemId.selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btnAddItem), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.btnAddNorItem), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnAddQh),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnClearBag)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		var e, i;
		switch (t.currentTarget) {
			case this._view.btnAddItem:
				i = this._view.txtItemId.text, e = Math.min(1e4, Number(this._view.txtItemNum.text)), i && e > 0 &&
					ChatCommandSender.sendChatMessage(0, "@additem mid:" + i + ",num:" + e + ",bind:" + (this._view.cbItemIsBind.selected ?
						0 : 1) + ",losttime:" + Number(this._view.txtItemLostTime.text) + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnAddNorItem:
				i = this._selNorItemId.selectItem.label.split("_")[1], e = Number(this._view.txtNorItemNum.text), i && e > 0 &&
					ChatCommandSender.sendChatMessage(0, "@additem mid:" + i + ",num:" + e + ",bind:" + (this._view.cbNorItemIsBind.selected ?
						0 : 1) + ",losttime:" + Number(this._view.txtNorItemLostTime.text) + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnAddQh:
				ChatCommandSender.sendChatMessage(0, "@qianghua num=" + this._view.txtQiangHua.text, "");
				break;
			case this._view.btnClearBag:
				ChatCommandSender.sendChatMessage(0, "@clear", "")
		}
	}, e
}(ViewBase);
__reflect(GmItemView.prototype, "GmItemView");
var GMMailView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMMailSkin"), this.addChild(this._view);
		for (var t = 1; 10 >= t; t++) this["selType" + t] = new ComboBox, this["selType" + t].width = 329, this["selType" +
			t].height = 40, this["selType" + t].x = 66.8, this._view["g" + t].addChild(this["selType" + t]), this["selType" +
			t].dataProvider = [{
			label: "可交易_0"
		}, {
			label: "不可交易_1"
		}, {
			label: "锁定_2"
		}], this["selType" + t].selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvents()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.sendHandler, this, this._view.btnSend)
	}, e.prototype.sendHandler = function(t) {
		for (var e, i, n, a, o, r = this._view.checkBoxShow.selected ? 1 : 0, s = ',title:"' + this._view.txtTitle.text +
				'"', h = ',content:"' + this._view.txtContent.text + '"', l = "[", p = 1; 10 >= p; p++) e = this._view[
			"txtItemId" + p], i = this._view["txtNum" + p], n = this["selType" + p], e && "" != e.text && (a = "0" == n.selectItem
			.label.split("_")[1] ? 0 : 1, o = "2" == n.selectItem.label.split("_")[1] ? 1 : 0, l += "{id:" + e.text + ",num:" +
			i.text + ",lock:" + a + ",bind:" + o + "}");
		l += "]";
		var c = this._view.txtPlayerId.text,
			_ = App.data.gmCenter.troleNameValue,
			d = _ ? ' trolename="' + _ + '"' : "";
		ChatCommandSender.sendChatMessage(0, '@mail show:"' + r + '",pid:"' + c + '"' + s + h + ',items:"' + l + '"' + d,
			"")
	}, e
}(ViewBase);
__reflect(GMMailView.prototype, "GMMailView");
var GmMapView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMMapSkin"), this.addChild(this._view), this._selMapId = new ComboBox, this._selMapId
			.width = 262, this._selMapId.height = 40, this._selMapId.x = 97, this._view.g1.addChild(this._selMapId);
		for (var t = [], e = App.config.q_mapContainer.list, i = 0; i < e.length; i++) t.push({
			label: e[i].q_map_name + "_" + e[i].q_map_id
		});
		this._selMapId.dataProvider = t, this._selMapId.selectIndex = 0, this._selWeiZhi = new ComboBox, this._selWeiZhi.width =
			262, this._selWeiZhi.height = 40, this._selWeiZhi.x = 97, this._view.g2.addChild(this._selWeiZhi), this._selPuTong =
			new ComboBox, this._selPuTong.width = 262, this._selPuTong.height = 40, this._selPuTong.x = 97, this._view.g3.addChild(
				this._selPuTong), this._selJingYing = new ComboBox, this._selJingYing.width = 262, this._selJingYing.height = 40,
			this._selJingYing.x = 97, this._view.g4.addChild(this._selJingYing), this._selBoss = new ComboBox, this._selBoss.width =
			262, this._selBoss.height = 40, this._selBoss.x = 97, this._view.g5.addChild(this._selBoss), this._selZhongLi =
			new ComboBox, this._selZhongLi.width = 262, this._selZhongLi.height = 40, this._selZhongLi.x = 97, this._view.g6.addChild(
				this._selZhongLi), this._selDaDao = new ComboBox, this._selDaDao.width = 262, this._selDaDao.height = 40, this._selDaDao
			.x = 97, this._view.g7.addChild(this._selDaDao), this._selChongWu = new ComboBox, this._selChongWu.width = 262,
			this._selChongWu.height = 40, this._selChongWu.x = 97, this._view.g8.addChild(this._selChongWu);
		for (var n, a, o = [], r = [], s = [], h = [], l = [], p = [], c = [], _ = App.config.q_monsterContainer.list, i =
				0; i < _.length; i++) n = _[i].q_type, a = {
			label: _[i].q_name + "_" + _[i].q_id + "_" + _[i].q_lvl + "级"
		}, 1 == n ? o.push(a) : 2 == n ? r.push(a) : 4 == n ? s.push(a) : 8 == n || 520 == n ? h.push(a) : 32 == n ? l.push(
			a) : 64 == n ? p.push(a) : 128 == n && c.push(a);
		this._selWeiZhi.dataProvider = o, this._selWeiZhi.selectIndex = 0, this._selPuTong.dataProvider = r, this._selPuTong
			.selectIndex = 0, this._selJingYing.dataProvider = s, this._selJingYing.selectIndex = 0, this._selBoss.dataProvider =
			h, this._selBoss.selectIndex = 0, this._selZhongLi.dataProvider = l, this._selZhongLi.selectIndex = 0, this._selDaDao
			.dataProvider = p, this._selDaDao.selectIndex = 0, this._selChongWu.dataProvider = c, this._selChongWu.selectIndex =
			0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this._view.btnChuanSong), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickKill, this,
			this._view.btnSkillAll), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan2), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan3), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan4), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan5), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan6), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan7), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickMonster, this,
			this._view.btnZhaoHuan8)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		var e;
		e = this._selMapId && this._selMapId.selectItem.label ? this._selMapId.selectItem.label.split("_")[1] : App.global.characterData
			.mapId + "", ChatCommandSender.sendChatMessage(0, "@changemap id:" + e + ",mid:" + e + ",y:" + this._view.txtMapY.text +
				",x:" + this._view.txtMapX.text + App.data.gmCenter.troleName, "")
	}, e.prototype.onClickKill = function(t) {
		ChatCommandSender.sendChatMessage(0, "@kill " + Number(this._view.txtR.text))
	}, e.prototype.onClickMonster = function(t) {
		var e, i;
		switch (t.currentTarget) {
			case this._view.btnZhaoHuan1:
				this._view.txtGwId && this._view.txtGwId.text && (e = this._view.txtGwId.text, i = this._view.txtGwNum.text);
				break;
			case this._view.btnZhaoHuan2:
				this._selWeiZhi && this._selWeiZhi.selectItem.label && (e = this._selWeiZhi.selectItem.label.split("_")[1], i =
					this._view.txtWeiZhiNum.text);
				break;
			case this._view.btnZhaoHuan3:
				this._selPuTong && this._selPuTong.selectItem.label && (e = this._selPuTong.selectItem.label.split("_")[1], i =
					this._view.txtPuTongNum.text);
				break;
			case this._view.btnZhaoHuan4:
				this._selJingYing && this._selJingYing.selectItem.label && (e = this._selJingYing.selectItem.label.split("_")[1],
					i = this._view.txtJingYingNum.text);
				break;
			case this._view.btnZhaoHuan5:
				this._selBoss && this._selBoss.selectItem.label && (e = this._selBoss.selectItem.label.split("_")[1], i = this._view
					.txtBossNum.text);
				break;
			case this._view.btnZhaoHuan6:
				this._selZhongLi && this._selZhongLi.selectItem.label && (e = this._selZhongLi.selectItem.label.split("_")[1], i =
					this._view.txtZhongLiNum.text);
				break;
			case this._view.btnZhaoHuan7:
				this._selDaDao && this._selDaDao.selectItem.label && (e = this._selDaDao.selectItem.label.split("_")[1], i = this
					._view.txtDaDaoNum.text);
				break;
			case this._view.btnZhaoHuan8:
				this._selChongWu && this._selChongWu.selectItem.label && (e = this._selChongWu.selectItem.label.split("_")[1], i =
					this._view.txtChongWuNum.text)
		}
		null != e && ChatCommandSender.sendChatMessage(0, "@monster mid:" + e + ",count:" + i, "")
	}, e
}(ViewBase);
__reflect(GmMapView.prototype, "GmMapView");
var GmotherView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMOtherSkin"), this.addChild(this._view), this._view.cbIsDebug.selected =
			Config.isDebug, this._view.lalGameVersion.text = Config.releaseVersion
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this._view.btnFriendLimit), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this._view.btnReloadConfig), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this._view.btnJsFn), this._dispatcher.addEventListener(egret.TouchEvent.CHANGE, this.checkBoxChange, this, this._view
			.cbIsDebug), this._dispatcher.addEventListener(egret.TouchEvent.CHANGE, this.checkBoxChange, this, this._view.cbIsShowPerfor)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.btnFriendLimit:
				ChatCommandSender.sendChatMessage(0, "@setfriendmax max:" + this._view.txtFriendLimit.text + App.data.gmCenter.troleName,
					"");
				break;
			case this._view.btnReloadConfig:
				ChatCommandSender.sendChatMessage(0, "@allreload", "");
				break;
			case this._view.btnJsFn:
				WebParams.callJs(this._view.txtJsFn.text)
		}
	}, e.prototype.checkBoxChange = function(t) {
		Config.isDebug = this._view.cbIsDebug.selected
	}, e.prototype.onPerforSelect = function(t) {
		this._view.cbIsShowPerfor.selected
	}, e
}(ViewBase);
__reflect(GmotherView.prototype, "GmotherView");
var GmPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._btnClose = this._window.close_btn, this._view =
			UIMaker.createViewBase("GMPanelSkin"), this.addChild(this._view), this._tabBar = new TabBar([this._view.tab1, this
				._view.tab2, this._view.tab3, this._view.tab4, this._view.tab5, this._view.tab6, this._view.tab7, this._view.tab8,
				this._view.tab9, this._view.tab10, this._view.tab11
			])
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.selectedIndexChange,
				this, this._tabBar), this._dispatcher.addEventListener(egret.Event.CHANGE, this.nameInputChange, this, this._view
				.NameInput), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._btnClose),
			this._view.tfTime.text = StringUtil.substitute("开服第：{0}天", ServerTime.openday), this._tabBar.selectedIndex = 0,
			this.selectedIndexChange()
	}, e.prototype.openRoleView = function() {
		this._roleView || (this._roleView = new GmRoleView), this._roleView.show(), this._view.viewGroup.addChild(this._roleView)
	}, e.prototype.openItemView = function() {
		this._itemView || (this._itemView = new GmItemView), this._itemView.show(), this._view.viewGroup.addChild(this._itemView)
	}, e.prototype.openSkillGuildView = function() {
		this._skillGuildView || (this._skillGuildView = new GMSkillGuildView), this._skillGuildView.show(), this._view.viewGroup
			.addChild(this._skillGuildView)
	}, e.prototype.openMapView = function() {
		this._mapView || (this._mapView = new GmMapView), this._mapView.show(), this._view.viewGroup.addChild(this._mapView)
	}, e.prototype.openMailView = function() {
		this._mailView || (this._mailView = new GMMailView), this._mailView.show(), this._view.viewGroup.addChild(this._mailView)
	}, e.prototype.openTaskView = function() {
		this._taskView || (this._taskView = new GmTaskView), this._taskView.show(), this._view.viewGroup.addChild(this._taskView)
	}, e.prototype.openCountryView = function() {
		this._countryView || (this._countryView = new GMCountryView), this._countryView.show(), this._view.viewGroup.addChild(
			this._countryView)
	}, e.prototype.openOtherVieww = function() {
		this._otherView || (this._otherView = new GmotherView), this._otherView.show(), this._view.viewGroup.addChild(this._otherView)
	}, e.prototype.openYunYingView = function() {
		this._yunYingView || (this._yunYingView = new GMYunYingView), this._yunYingView.show(), this._view.viewGroup.addChild(
			this._yunYingView)
	}, e.prototype.openExtendView = function() {
		this._extendView || (this._extendView = new GMExtendView), this._extendView.show(), this._view.viewGroup.addChild(
			this._extendView)
	}, e.prototype.openSearchItemView = function() {
		this._searchItemView || (this._searchItemView = new GmSearchItemView), this._searchItemView.show(), this._view.viewGroup
			.addChild(this._searchItemView)
	}, e.prototype.clearGroup = function() {
		for (; this._view.viewGroup.numChildren;) {
			var t = this._view.viewGroup.getChildAt(this._view.viewGroup.numChildren - 1);
			t && t.hide && (t.hide(), this._view.viewGroup.removeChildAt(this._view.viewGroup.numChildren - 1))
		}
	}, e.prototype.selectedIndexChange = function(t) {
		switch (void 0 === t && (t = null), this.clearGroup(), this._tabBar.selectedIndex) {
			case 0:
				this.openRoleView();
				break;
			case 1:
				this.openItemView();
				break;
			case 2:
				this.openSkillGuildView();
				break;
			case 3:
				this.openMapView();
				break;
			case 4:
				this.openMailView();
				break;
			case 5:
				this.openTaskView();
				break;
			case 6:
				this.openCountryView();
				break;
			case 7:
				this.openOtherVieww();
				break;
			case 8:
				this.openYunYingView();
				break;
			case 9:
				this.openExtendView();
				break;
			case 10:
				this.openSearchItemView()
		}
	}, e.prototype.nameInputChange = function(t) {
		App.data.gmCenter.troleName = this._view.NameInput.text
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearGroup()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view = void 0, this._roleView = void 0, this._itemView = void 0, this._taskView =
			void 0, this._mapView = void 0, this._otherView = void 0, this._mailView = void 0, this._tabBar = void 0
	}, e
}(BasePanel);
__reflect(GmPanel.prototype, "GmPanel");
var GmRoleView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMRoleSkin"), this.addChild(this._view), this._selQtHuoBI = new ComboBox, this
			._selQtHuoBI.x = 105, this._selQtHuoBI.width = 180, this._selQtHuoBI.height = 40, this._view.otherGroup.addChild(
				this._selQtHuoBI), this._selGywg = new ComboBox, this._selGywg.x = 105, this._selGywg.width = 180, this._selGywg.height =
			40, this._view.wingGroup.addChild(this._selGywg);
		for (var t = [], e = App.config.q_itemContainer.list, i = e.length, n = 0; i > n && !(e[n].q_id > 0); n++) t.push({
			label: e[n].q_name.split("_")[0] + "_" + e[n].q_id
		});
		this._selQtHuoBI.dataProvider = t, this._selQtHuoBI.selectIndex = 0;
		for (var a = [], o = App.config.q_surfaceContainer.list, r = o.length, n = 0; r > n; n++) 1 == o[n].q_type && a.push({
			label: o[n].q_name + "_" + o[n].q_id
		});
		this._selGywg.dataProvider = a, this._selGywg.selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btnOkJinBi), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.btnOkBdJinBi), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkYuanBao),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkBdYuanBao), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkCzYuanBao), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkZsxw), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkQtHuoBi), this._dispatcher.addEventListener(egret
				.TouchEvent.TOUCH_TAP, this.onClickSpecial, this, this._view.btnFuErDai), this._dispatcher.addEventListener(egret
				.TouchEvent.TOUCH_TAP, this.onClickSpecial, this, this._view.btnXiaoQiang), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClickSpecial, this, this._view.btnSaiYaRen), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnOkRwdj), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this._view.btnOkGywg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.btnChongZhi), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.btnQingChuCD), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btnZiSha)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		var e, i, n;
		switch (t.currentTarget) {
			case this._view.btnOkJinBi:
				this._view.txtJinBi && this._view.txtJinBi.text && ChatCommandSender.sendChatMessage(0, "@currency type:" +
					EnumMoney.JIN_BI + ",num:" + this._view.txtJinBi.text + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOkBdJinBi:
				this._view.txtBdJinBi && this._view.txtBdJinBi.text && ChatCommandSender.sendChatMessage(0, "@currency type:" +
					EnumMoney.BIND_JIN_BI + ",num:" + this._view.txtBdJinBi.text + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOkYuanBao:
				this._view.txtYuanBao && this._view.txtYuanBao.text && ChatCommandSender.sendChatMessage(0, "@currency type:" +
					EnumMoney.YUAN_BAO + ",num:" + this._view.txtYuanBao.text + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOkBdYuanBao:
				this._view.txtBdYuanBao && this._view.txtBdYuanBao.text && ChatCommandSender.sendChatMessage(0, "@currency type:" +
					EnumMoney.BIND_YUAN_BAO + ",num:" + this._view.txtBdYuanBao.text + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOkCzYuanBao:
				if (this._view.txtCzYuanBao && this._view.txtCzYuanBao.text) {
					var a = this._view.checkBoxCzYuanBao.selected ? 1 : 0;
					ChatCommandSender.sendChatMessage(0, "@goldrecharge gold:" + this._view.txtCzYuanBao.text + " account:" + a +
						App.data.gmCenter.troleName, "")
				}
				break;
			case this._view.btnOkZsxw:
				this._view.txtZsxw && this._view.txtZsxw.text && ChatCommandSender.sendChatMessage(0, "@currency type:" +
					EnumMoney.ZHUAN_SHENG + ",num:" + this._view.txtZsxw.text + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnOkQtHuoBi:
				n = this._selQtHuoBI.selectItem.label, n && (e = Number(n.split("_")[1]), i = Number(this._view.txtQtHuoBi.text),
					0 >= i && (i = 1), ChatCommandSender.sendChatMessage(0, "@currency type:" + e + ",num:" + i + App.data.gmCenter
						.troleName, ""));
				break;
			case this._view.btnOkRwdj:
				e = Number(this._view.txtRwdj.text), i = 1e6 * App.global.characterData.job + e, ChatCommandSender.sendChatMessage(
					0, "@level lv:" + e + App.data.gmCenter.troleName, ""), null != GameUtil.getItemConfigData(i) && (
					WearEquipCommandSender.sendAllEquipMessage(), ChatCommandSender.sendChatMessage(0, "@additem mid:" + i +
						",num:1" + App.data.gmCenter.troleName, ""));
				break;
			case this._view.btnOkGywg:
				if (this._selGywg && this._selGywg.selectItem.label) {
					var o = this._selGywg.selectItem.label.split("_")[1];
					ChatCommandSender.sendChatMessage(0, "@addsurface sid=" + o + App.data.gmCenter.troleName, "")
				}
				break;
			case this._view.btnChongZhi:
				ShopCommandSender.sendBuyItemMessage(1, 1, 1, 1, 1, !1, 0, 0);
				break;
			case this._view.btnQingChuCD:
				ChatCommandSender.sendChatMessage(0, "@clearcooldown" + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnZiSha:
				ChatCommandSender.sendChatMessage(0, "@killself", "")
		}
	}, e.prototype.onClickSpecial = function(t) {
		switch (t.currentTarget) {
			case this._view.btnFuErDai:
				this.fuerdai1();
				break;
			case this._view.btnXiaoQiang:
				this.xiaoqiang1();
				break;
			case this._view.btnSaiYaRen:
				this.saiyaren1()
		}
	}, e.prototype.fuerdai1 = function() {
		ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.JIN_BI + ",num:99999999" + App.data.gmCenter.troleName,
			""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.BIND_JIN_BI + ",num:99999999" + App.data.gmCenter
			.troleName, ""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.YUAN_BAO + ",num:99999999" +
			App.data.gmCenter.troleName, ""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.BIND_YUAN_BAO +
			",num:99999999" + App.data.gmCenter.troleName, ""), App.timer.doTimeOnce(this, 1500, this.fuerdai2)
	}, e.prototype.fuerdai2 = function() {
		ChatCommandSender.sendChatMessage(0, "@goldrecharge gold:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.Prestige + ",num:99999999" + App.data.gmCenter.troleName,
				""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.KUN_EXP + ",num:99999999" + App.data.gmCenter
				.troleName, ""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.BAO_SHI_SP + ",num:99999999" +
				App.data.gmCenter.troleName, ""), App.timer.doTimeOnce(this, 1500, this.fuerdai3)
	}, e.prototype.fuerdai3 = function() {
		ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.HUN_ZHU_SP + ",num:99999999" + App.data.gmCenter
			.troleName, ""), ChatCommandSender.sendChatMessage(0, "@currency type:" + EnumMoney.PICTURE + ",num:99999999" +
			App.data.gmCenter.troleName, ""), ChatCommandSender.sendChatMessage(0, "@addactive num:99999999" + App.data.gmCenter
			.troleName, "")
	}, e.prototype.xiaoqiang1 = function() {
		ChatCommandSender.sendChatMessage(0, "@setattr maxhp:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr hp:99999999" + App.data.gmCenter.troleName, ""), ChatCommandSender.sendChatMessage(
				0, "@setattr maxmp:99999999" + App.data.gmCenter.troleName, ""), ChatCommandSender.sendChatMessage(0,
				"@setattr mp:99999999" + App.data.gmCenter.troleName, ""), App.timer.doTimeOnce(this, 1500, this.xiaoqiang2)
	}, e.prototype.xiaoqiang2 = function() {
		ChatCommandSender.sendChatMessage(0, "@setattr acmin:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr acmax:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr macmin:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr macmax:99999999" + App.data.gmCenter.troleName, "")
	}, e.prototype.saiyaren1 = function() {
		ChatCommandSender.sendChatMessage(0, "@setattr dcmin:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr dcmax:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr mcmin:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr mcmax:99999999" + App.data.gmCenter.troleName, ""), App.timer.doTimeOnce(
				this, 1500, this.saiyaren2)
	}, e.prototype.saiyaren2 = function() {
		ChatCommandSender.sendChatMessage(0, "@setattr scmin:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr scmax:99999999" + App.data.gmCenter.troleName, ""),
			ChatCommandSender.sendChatMessage(0, "@setattr crit:" + 1e6 + App.data.gmCenter.troleName, ""), ChatCommandSender.sendChatMessage(
				0, "@setattr luck:9" + App.data.gmCenter.troleName, "")
	}, e
}(ViewBase);
__reflect(GmRoleView.prototype, "GmRoleView");
var GmSearchItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.allItem = [], e.getAll = !1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMSearchItemSkin"), this.addChild(this._view), this._gridLayer = new GridContainer(
				EnumGridStyle.GRID_STYLE_NORMAL, BagItemCenter.COL, 20, 40), this._gridLayer.setShowTip(!1), this._gridLayer.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM]), this._gridLayer.useScroller(485, 516),
			this._gridLayer.setCallback(new FunctionVO(this.onGridClick, this)), this._gridLayer.moveTo(10, 10, this._view.norItemGroup),
			this.getAllItem(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnAddItem),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.search_btn)
	}, e.prototype.show = function() {
		App.timer.doFrameOnce(this, 1, this.setDataProvider)
	}, e.prototype.getAllItem = function() {
		if (!this.getAll) {
			for (var t, e = App.config.q_itemContainer.list, i = 0; i < e.length; ++i)
				if (t = e[i]) {
					var n = new ItemData;
					n.itemId = t.q_id, this.allItem.push(n)
				} this.getAll = !0
		}
	}, e.prototype.setDataProvider = function() {
		this._gridLayer.stopScroller();
		var t, e = this._view.search_ti.text;
		if ("" == e) t = this.allItem;
		else {
			t = [];
			for (var i = new RegExp(e, "i"), n = 0; n < this.allItem.length; ++n) {
				var a = this.allItem[n];
				(i.test("" + a.itemId) || i.test(a.getDataBean().q_name)) && t.push(a)
			}
		}
		this._gridLayer.dataProvider = t, this._view.search_btn.enabled = !0, this.curSearch = this._view.search_ti.text
	}, e.prototype.onGridClick = function(t) {
		var e = t;
		this._view.txtItemId.text = e[0].data.itemId + ""
	}, e.prototype.onClick = function(t) {
		var e, i;
		switch (t.currentTarget) {
			case this._view.btnAddItem:
				i = this._view.txtItemId.text, e = Math.min(1e4, Number(this._view.txtItemNum.text)), i && e > 0 &&
					ChatCommandSender.sendChatMessage(0, "@additem mid:" + i + ",num:" + e + ",bind:" + (this._view.cbItemIsBind.selected ?
						0 : 1) + ",losttime:" + Number(this._view.txtItemLostTime.text) + App.data.gmCenter.troleName, "");
				break;
			case this._view.search_btn:
				this.curSearch != this._view.search_ti.text && (this._view.search_btn.enabled = !1, this.setDataProvider())
		}
	}, e.prototype.hide = function() {
		this._gridLayer.clear()
	}, e
}(ViewBase);
__reflect(GmSearchItemView.prototype, "GmSearchItemView");
var GMSkillGuildView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMSkillGuildSkin"), this.addChild(this._view), this._selSkillId = new ComboBox,
			this._selSkillId.x = 130, this._selSkillId.y = 82, this._selSkillId.width = 200, this._selSkillId.height = 40,
			this.addChild(this._selSkillId), this._selSkillIdDel = new ComboBox, this._selSkillIdDel.x = 130, this._selSkillIdDel
			.y = 296, this._selSkillIdDel.width = 200, this._selSkillIdDel.height = 40, this.addChild(this._selSkillIdDel);
		var t = 0,
			e = [],
			i = App.global.characterData;
		if (i) {
			var n = {},
				a = App.config.q_skillModelContainer.list;
			for (t = 0; t < a.length; t++) 1 != a[t].q_open || 0 != a[t].q_skill_job && a[t].q_skill_job != i.job || n[a[t].q_skillID] ||
				(e.push({
					label: a[t].q_skillName.split("_")[0] + "_" + a[t].q_skillID
				}), n[a[t].q_skillID] = !0)
		}
		this._selSkillId.dataProvider = e, this._selSkillId.selectIndex = 0;
		var o = [],
			r = App.data.skillCenter.getRoleSkillList(EnumRole.ROLE1);
		if (r)
			for (t = 0; t < r.length; t++) o.push({
				label: r[t].name + "_" + r[t].skillId
			});
		this._selSkillIdDel.dataProvider = o, this._selSkillIdDel.selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btnAddSkill), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.btnAddSkillAll), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnDelSkill),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnDelSkillAll), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btnZhiDaoYuan)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		var e, i, n;
		switch (t.currentTarget) {
			case this._view.btnAddSkill:
				n = this._selSkillId.selectItem.lable, n && (e = Number(n.split("_")[1]), i = Number(this._view.txtSkillLevel.text),
					0 >= i && (i = 1), ChatCommandSender.sendChatMessage(0, "@skill id:" + e + ",lv:" + i + App.data.gmCenter.troleName,
						""));
				break;
			case this._view.btnAddSkillAll:
				ChatCommandSender.sendChatMessage(0, "@skill all:1" + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnDelSkill:
				n = this._selSkillIdDel.selectItem.label, n && ChatCommandSender.sendChatMessage(0, "@rmskill id:" + n.split("_")[
					1] + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnDelSkillAll:
				ChatCommandSender.sendChatMessage(0, "@rmskill all:1" + App.data.gmCenter.troleName, "");
				break;
			case this._view.btnZhiDaoYuan:
				ChatCommandSender.sendChatMessage(0, "@addtitlegm account:" + this._view.txtAccount.text + ",day:" + this._view.txtDayNum,
					"")
		}
	}, e
}(ViewBase);
__reflect(GMSkillGuildView.prototype, "GMSkillGuildView");
var GmTaskView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GMTaskSkin"), this.addChild(this._view), this._selRenWu = new ComboBox, this._selRenWu
			.width = 300, this._selRenWu.height = 40, this._selRenWu.x = 149, this._selRenWu.y = 45, this.addChild(this._selRenWu),
			this._selChengJiu = new ComboBox, this._selChengJiu.width = 300, this._selChengJiu.height = 40, this._selChengJiu.x =
			149, this._selChengJiu.y = 173, this.addChild(this._selChengJiu);
		for (var t = [], e = App.config.q_taskModelContainer.list, i = 0; i < e.length; i++) e[i].q_id >= App.data.taskCenter
			.getCurrThreadTaskId() && t.push({
				label: e[i].q_task_des + "_" + e[i].q_id
			});
		this._selRenWu.dataProvider = t, this._selRenWu.selectIndex = 0;
		var n = [],
			a = App.config.q_achieve_clientContainer.list;
		a.sort(this.sortFunc);
		for (var i = 0; i < a.length; i++) n.push({
			label: a[i].q_id + "_" + a[i].q_name
		});
		this._selChengJiu.dataProvider = n, this._selChengJiu.selectIndex = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rwHandler, this,
			this._view.btnRenWu), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.cjHandler, this, this._view
			.btnChengJiu)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.sortFunc = function(t, e) {
		return t.q_id < e.q_id ? -1 : 1
	}, e.prototype.rwHandler = function(t) {
		var e = this._selRenWu.selectItem.label;
		e && ChatCommandSender.sendChatMessage(0, "@maintask tid:" + e.split("_")[1] + App.data.gmCenter.troleName, "")
	}, e.prototype.cjHandler = function(t) {
		var e = this._selChengJiu.selectItem.label;
		e && ChatCommandSender.sendChatMessage(0, "@achieve id=" + e.split("_")[0] + App.data.gmCenter.troleName, "")
	}, e
}(ViewBase);
__reflect(GmTaskView.prototype, "GmTaskView");
var GMYunYingView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._types = [Notice.LEFT, Notice.TOP, Notice.MIDDLE, Notice.BOTTOM], e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GmYunYingSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.qfBtnSend), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.fhBtnDanFu), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.fhBtnPingTai),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.fhBtnIP), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.ggBtnSend), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.jyBtnSend), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this._view.trBtnSend), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.trBtnQftr), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.trBtnSeeOnlineNum)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.qfBtnSend:
				Alert.show("您确定要发全服广播吗？", "提示", "确定", this.sendServerchat, this);
				break;
			case this._view.fhBtnDanFu:
				this._view.fhCbFh.selected ? this.gmOperate.forbidAccount(this._view.fhTxtQf.text, this._view.fhTxtRoleName.text) :
					this.gmOperate.forbidAccountRemove(this._view.fhTxtQf.text, this._view.fhTxtRoleName.text);
				break;
			case this._view.fhBtnPingTai:
				this._view.fhCbFh.selected && "-1" != this._view.fhTxtFhTime.text ? this.gmOperate.forbidPlat(this._view.fhTxtQf.text,
					this._view.fhTxtRoleName.text, this.getForbidTime()) : this.gmOperate.forbidPlatRemove(this._view.fhTxtQf.text,
					this._view.fhTxtRoleName.text);
				break;
			case this._view.fhBtnIP:
				this._view.fhCbFh.selected && "-1" != this._view.fhTxtFhTime.text ? this.gmOperate.forbidIP(this._view.fhTxtQf.text,
					this._view.fhTxtRoleName.text, this.getForbidTime()) : this.gmOperate.forbidIPRemove(this._view.fhTxtQf.text,
					this._view.fhTxtRoleName.text);
				break;
			case this._view.ggBtnSend:
				ChatCommandSender.sendChatMessage(0, "@clearguildnotice serverid:" + this._view.ggTxtQf.text + ",guildname:" +
					this._view.ggTxtHhName.text);
				break;
			case this._view.jyBtnSend:
				this.gmOperate.bannSpeak(this._view.jyTxtQf.text, this._view.jyTxtRoleName.text, Number(this._view.jyTxtJyTime.text));
				break;
			case this._view.trBtnSend:
				Alert.show("您确定要踢玩家（id：" + this._view.trTxtPlayerId.text + "，角色：" + this._view.trTxtRoleName.text + "）吗？", "提示",
					"确定", this.sendKick, this);
				break;
			case this._view.trBtnQftr:
				Alert.show("您确定要踢全服玩家吗？", "提示", "确定", this.sendKickallserver, this);
				break;
			case this._view.trBtnSeeOnlineNum:
				ChatCommandSender.sendChatMessage(0, "@whoall")
		}
	}, e.prototype.sendServerchat = function() {
		for (var t = 0, e = 0; e < this._types.length; e++) this["qfCbWeiZhi" + e].selected && (t += this._types[e]);
		ChatCommandSender.sendChatMessage(0, "@serverchat serverid:" + this._view.qfTxtQf.text + ",types:" + t +
			",content:" + this._view.qfTxtContent.text, "")
	}, e.prototype.getForbidTime = function() {
		return this._view.rd0.selected ? Number(this._view.rd0.selected) : this._view.rd1.selected ? 1440 : this._view.rd2.selected ?
			4320 : this._view.rd3.selected ? 10080 : (this._view.rd4.selected, -1)
	}, e.prototype.sendKick = function() {
		ChatCommandSender.sendChatMessage(0, "@kick id:" + this._view.trTxtPlayerId.text + ",name:" + this._view.trTxtRoleName
			.text, "")
	}, e.prototype.sendKickallserver = function() {
		ChatCommandSender.sendChatMessage(0, "@kickallserver svrid:" + this._view.trTxtQf.text, "")
	}, Object.defineProperty(e.prototype, "gmOperate", {
		get: function() {
			return App.global.gmOperate
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(GMYunYingView.prototype, "GMYunYingView");
var ApplyJoinGuildPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GuildApplyJoinSkin"), this.addChild(this._view), this._listPanel = new VScrollPanel(
			513, 473, GuildApplyListRender, 5), this._listPanel.move(2, 2), this._view.list_group.addChild(this._listPanel)
	}, e.prototype.hide = function() {
		this._listPanel.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._listPanel.dispose(), this._listPanel = null
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), GuildCommandSender.sendGuildListMessage(), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.create_btn), this._dispatcher.addEventListener(
				GuildEvent.ENTER, this.enterGuild, this), this.refresh()
	}, e.prototype.refresh = function() {
		var t = App.data.guildCenter.guildList;
		this._listPanel.dataProvider = t
	}, e.prototype.onClick = function(t) {
		App.panel.openPanel(32)
	}, e.prototype.enterGuild = function() {
		App.panel.removePanel(31), App.panel.isShowing(30) || App.panel.openPanel(30)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 600
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(ApplyJoinGuildPanel.prototype, "ApplyJoinGuildPanel");
var CreateGuildPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GuildCreateViewSkin"), this.addChild(this._view)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.ok_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickInput,
				this, this._view.name_txt), this._dispatcher.addEventListener(GuildEvent.ENTER, this.enterGuild, this), this._view
			.name_txt.text = "请在此输入帮会名称", this._view.name_txt.textDisplay.size = 26, this._view.name_txt.width = 413, this._view
			.name_txt.textDisplay.textAlign = egret.HorizontalAlign.LEFT
	}, e.prototype.onClickInput = function(t) {
		this._view.name_txt.text = "", this._view.name_txt.textColor = 13941901
	}, e.prototype.onClick = function(t) {
		return App.data.getVipCenter().getCurrentVip() < 3 ? (PanelOpenManager.openPanel(35), void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">vip等级不足</font>")) : void GuildCommandSender.sendCreateGuildMessage(
			this._view.name_txt.text)
	}, e.prototype.enterGuild = function() {
		App.panel.removePanel(32), App.panel.isShowing(30) || App.panel.openPanel(30)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 396
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CreateGuildPanel.prototype, "CreateGuildPanel");
var GuildAllListView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this, GuildApplyListBigRender, 790, 20), this.group.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), GuildCommandSender.sendGuildListMessage(), this.refresh(App.data.guildCenter.guildList)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(GuildCommonListView);
__reflect(GuildAllListView.prototype, "GuildAllListView");
var GuildApplyLisytView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this, GuildReviseListRender), this.exit_btn.visible = !0, this.exit_btn.label = "申请设置", App.data
			.guildCenter.myGuildInfo.myPosition < EnumGuild.FU_HUI_ZHANG && (this.exit_btn.visible = !1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), GuildCommandSender.sendGuildApplyListMessage()
	}, e.prototype.exitGuild = function() {
		t.prototype.exitGuild.call(this), this.reviseBulletin(!0)
	}, e.prototype.reviseBulletin = function(t) {
		0 == t ? this._applysetView && (this._applysetView.visible = !1) : (this._applysetView || (this._applysetView =
				UIMaker.createViewBase("ApplySetSkin"), this._applysetView.x = 130, this._applysetView.y = 330, this.addChild(
					this._applysetView), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._applysetView
					.close_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._applysetView
					.ok_btn), this._applysetView.setpower_input.restrict = "0-9"), App.data.guildCenter.myGuildInfo.applyPower /
			1e4 > 0 ? this._applysetView.setpower_input.text = App.data.guildCenter.myGuildInfo.applyPower / 1e4 + "" : this._applysetView
			.setpower_input.text = "0", this._applysetView.autojoin_cheakbox.selected = App.data.guildCenter.myGuildInfo.applyState ?
			!0 : !1, this._applysetView.visible = !0)
	}, e.prototype.okClick = function(t) {
		if (t.currentTarget == this._applysetView.ok_btn) {
			var e = parseInt(this._applysetView.setpower_input.text);
			e > 9999 && (e = 9999), GuildCommandSender.sendChangeAutoMessage(this._applysetView.autojoin_cheakbox.selected, e),
				App.data.guildCenter.myGuildInfo.applyState = this._applysetView.autojoin_cheakbox.selected ? 1 : 0, App.data.guildCenter
				.myGuildInfo.applyPower = 1e4 * e
		}
		this.reviseBulletin(!1)
	}, e.prototype.hide = function() {
		this._applysetView && this._applysetView.parent && (this._applysetView.parent.removeChild(this._applysetView), this
			._applysetView = null), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(GuildCommonListView);
__reflect(GuildApplyLisytView.prototype, "GuildApplyLisytView");
var GuildCangkuBagPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GuildCangkuBagSkin"), this.addChild(this._view), this._gridLayer = new GridContainer(
				EnumGridStyle.GRID_STYLE_NORMAL, BagItemCenter.COL, 30, 35), this._gridLayer.initLayers([GridLayout.BG,
				GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT, GridLayout.SELECT
			]), this._gridLayer.useScroller(540, 450), this._gridLayer.setCallback(new FunctionVO(this.onGridClick, this)),
			this._gridLayer.moveTo(70, 148, this._view), this._gridLayer.setShowTip(!1), this.combox1 = new ComboxList, this.combox1
			.x = this._view.combox1.x, this.combox1.y = this._view.combox1.y, this._view.addChild(this.combox1), this._view.combox1
			.visible = this._view.combox2.visible = !1;
		for (var t = [], e = 0; 12 > e; e++) {
			var i = new ComItemVo("guild_equip_sx_bg_png", e + 1 + "转及以下", e + 1);
			t.push(i)
		}
		this.combox1.setList(t, t[11]), this.combox1.addEventListener(ComboxList.EVENT_CURRENT_CHANGE, this.onZhuanshenChange,
			this)
	}, e.prototype.updateComList = function() {
		var t = [];
		if (App.global.characterData.zhuanSheng <= 3)
			for (var e = 0; e < App.global.characterData.zhuanSheng; e++) {
				var i = new ComItemVo("guild_equip_sx_bg_png", e + 1 + "转及以下", e + 1);
				t.push(i)
			} else
				for (var n = App.global.characterData.zhuanSheng - 3; n < App.global.characterData.zhuanSheng; n++) {
					var a = new ComItemVo("guild_equip_sx_bg_png", n + 1 + "转及以下", n + 1);
					t.push(a)
				}
		this.combox1.setList(t, t[t.length - 1])
	}, e.prototype.onZhuanshenChange = function(t) {
		App.data.guildCenter.cangkuSelect = [], this.refresh()
	}, e.prototype.onGridClick = function(t) {
		var e = t;
		e[0].setGridLayoutVisible(GridLayout.SELECT, !e[0].getUiComponent(GridLayout.SELECT).visible), App.data.guildCenter
			.updateSelectGridRenderData(e[0], e[0].getUiComponent(GridLayout.SELECT).visible)
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAdd, this, this._view.btnAdd), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onRecover, this, this._view.btnRecover), this._dispatcher.addEventListener(
				ItemEvent.ADD, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.onUpdate, this),
			this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onUpdate, this), this._dispatcher.addEventListener(
				ItemEvent.GUILD_JUANXIANSELECT_UPDATE, this.updateCount, this)
	}, e.prototype.onUpdate = function(t, e) {
		void 0 === e && (e = 0), this.refresh()
	}, e.prototype.refresh = function() {
		var t;
		t = App.data.bagItemDataCenter.getBagListByZhuanshengAndColor(BagTag.EQUIP, this.combox1.currentData.data, 0, !0),
			this._gridLayer.dataProvider = t, this._equipNum = t.length, this.updateCount()
	}, e.prototype.onAdd = function(t) {
		PanelOpenManager.openPanel(43)
	}, e.prototype.onRecover = function(t) {
		for (var e = [], i = 0; i < App.data.guildCenter.cangkuSelect.length; i++) {
			var n = App.data.guildCenter.cangkuSelect[i];
			n && n.data && n.data.int64Id && e.push(n.data.int64Id)
		}
		GuildCommandSender.sendDonateMessage(e), App.data.guildCenter.cangkuSelect = []
	}, e.prototype.updateCount = function() {
		for (var t = 0, e = 0; e < App.data.guildCenter.cangkuSelect.length; e++) {
			var i = App.data.guildCenter.cangkuSelect[e],
				n = App.config.q_ware_houseContainer.getDataBean(i.data.bean.q_id).q_donate,
				a = StringUtil.JsonParse(n),
				o = (a[0].id, a[0].num);
			t += o
		}
		this._view.labelCapacity.text = t + ""
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addListeners(), this.updateComList(), this.refresh()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.combox1 && this.combox1.clear(), this._gridLayer.clear(), App.data.guildCenter.cangkuSelect = []
	}, e.prototype.dispose = function() {
		App.data.guildCenter.cangkuSelect = [], this.combox1 && (this._view.removeChild(this.combox1), this.combox1.dispose(),
				this.combox1 = null), this._gridLayer.dispose(), this._gridLayer = null, this._view = null, this._equipNum = 0,
			this.timeOut && (egret.clearTimeout(this.timeOut), this.timeOut = 0), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GuildCangkuBagPanel.prototype, "GuildCangkuBagPanel");
var GuildCangkuBagView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "GuildCangkuBagSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GuildCangkuBagView.prototype, "GuildCangkuBagView");
var GuildCangkuPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ShowToggleBtn = function() {
			e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "down", e._view.guildBoss.currentState =
				"up", e._view.guildShop.currentState = "up", e._view.guildFight.currentState = "up", e._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildFight), e._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, e.OpenJumpView, e, e._view.guildBoss), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView,
					e, e._view.guildShop), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildLiangong),
				e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildCangku), e._view.guildBoss_red
				.visible = App.data.guildCenter.guildBossRed(), App.data.castleWarCenter.dayRewardShow() || App.data.castleWarCenter
				.shabakShow() ? e._view.guildFight_red.visible = !0 : e._view.guildFight_red.visible = !1, e._view.guildShop_red.visible = !
				1
		}, e.OpenJumpView = function(t) {
			var i = t.target;
			switch (i.label) {
				case "帮会仓库":
					if (!App.global.funcOpen.isFunctionOpen(209, "", !0)) return;
					break;
				case "练功房":
					if (!App.global.funcOpen.isFunctionOpen(208, "", !0)) return
			}
			switch (e._view.guildBoss.currentState = "up", e._view.guildFight.currentState = "up", e._view.guildShop.currentState =
				"up", e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "up", i.currentState = "down",
				i.label) {
				case "帮会战":
					App.panel.isShowing(47) || App.panel.openPanel(47);
					break;
				case "帮会BOSS":
					App.panel.isShowing(201) || App.panel.openPanel(201);
					break;
				case "帮会商店":
					App.panel.isShowing(110) || App.panel.openPanel(110);
					break;
				case "帮会仓库":
					App.panel.isShowing(84) || App.panel.openPanel(84);
					break;
				case "练功房":
					App.panel.isShowing(83) || App.panel.openPanel(83)
			}
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowMain, this.addChild(this.window), this._btnClose = this.window.close_btn, this.window.imgTitle
			.source = "titleview_banghui_png", this.window.showRoleList(!1), this._view = UIMaker.createViewBase(
				"GuildCangkuSkin"), this._view.btnAdd.textFlow = new Array({
				text: "仓库记录",
				style: {
					underline: !0
				}
			}), this.window.viewContainer.addChild(this._view), this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
				BagItemCenter.COL, 38, 46), this._gridLayer.getController().layerGapY += 25, this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.ICON_BOTTOM,
				GridLayout.TEXT_COUNT
			]), this._gridLayer.useScroller(600, 713), this._gridLayer.setCallback(new FunctionVO(this.onGridClick, this)),
			this._gridLayer.moveTo(50, 95, this.window.viewContainer)
	}, e.prototype.onGridClick = function(t) {
		var e = t;
		e[0] && 20003 == e[0].data.itemId && App.panel.openPanel(104)
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAdd, this, this._view.btnAdd), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onRecover, this, this._view.btnRecover), this._dispatcher.addEventListener(
				ItemEvent.GUILD_CANGKU_UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.GUILD_CANGKU_REMOVE,
				this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.GUILD_LOAD, this.onUpdate, this)
	}, e.prototype.onUpdate = function(t, e) {
		void 0 === e && (e = 0), this.refresh()
	}, e.prototype.refresh = function() {
		var t = App.data.guildCenter.getList();
		this._gridLayer.dataProvider = t, this._equipNum = t.length, this.toggleBottomVisible(!0), this.updateCount()
	}, e.prototype.toggleBottomVisible = function(t) {
		this._view.kongbaitishi.visible = 0 == this._gridLayer.dataProvider.length, this._view.lal1.visible = t, this._view
			.imgCapacityBg.visible = t, this._view.labelCapacity.visible = t, this._view.btnAdd.visible = t, this._view.btnRecover
			.visible = t
	}, e.prototype.onAdd = function(t) {
		PanelOpenManager.openPanel(86)
	}, e.prototype.onRecover = function(t) {
		PanelOpenManager.openPanel(85)
	}, e.prototype.updateCount = function() {
		this._view.labelCapacity.text = App.data.currencyDataCenter.getMoney(EnumMoney.GUILD_TRAIN) + ""
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addListeners(), ItemCommandSender.sendGetItemsMessage(3), this.refresh(), this
			.ShowToggleBtn()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer.clear()
	}, e.prototype.dispose = function() {
		this._gridLayer.dispose(), this._gridLayer = null, this._view = null, this._equipNum = 0, this.timeOut && (egret.clearTimeout(
			this.timeOut), this.timeOut = 0), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GuildCangkuPanel.prototype, "GuildCangkuPanel");
var GuildCangkuView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "GuildCangkuSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GuildCangkuView.prototype, "GuildCangkuView");
var BossHpBar = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._prefix = "fight_border_", e._value = 1, e._max = 1, e._numMax = 1, e._once = 0, e._targetHp = 1, e._currenthp =
			1, e._hpWidth = 324, e._speed = 5, e._tx = 0, e._fast = 1, e._bossID = -1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bottomHp = UIMaker.getImage(this, this, "fight_border_1_png", 0, 0), this._topHp = UIMaker.getImage(this,
				this, "fight_border_5_png", 0, 0), this._hpNumRoll = new NumberRolling("fight_", 17, 22, -5), this._hpNumRoll.moveTo(
				this._hpWidth - 35, 0, this), this._hpX = UIMaker.getImage(this, this, "fight_x_png", this._hpWidth - 48, 0),
			this._txt = UIMaker.getTextField(this, this, 0, 0, this._hpWidth, 22, 11639929, 20), this._txt.stroke = 1, this._txt
			.strokeColor = 0, this._topMask = new egret.Shape, this._topMask.graphics.clear(), this._topMask.graphics.beginFill(
				0, 1), this._topMask.graphics.drawRect(0, 0, this._hpWidth, 22), this._topMask.graphics.endFill(), this.addChild(
				this._topMask), this._topHp.mask = this._topMask
	}, e.prototype.setDefaultParams = function(t, e, i, n) {
		if (this._bossID != t || e == i) {
			this.clear(), this._bossID = t, e = Math.max(0, Math.floor(e)), this._max = Math.max(Math.floor(i), 1), this._numMax =
				Math.max(n, 1), this._once = this._max / this._numMax, this._currenthp = Math.ceil(e / this._once), this._hpNumRoll
				.setValue(this._currenthp), this._indexList = [], this._indexList.push(1);
			for (var a = 1; n - 1 > a; a++) this._indexList.unshift(1 + a % 4);
			this._indexList.unshift(5), this.setHpUrl(this.getUrl(this._currenthp), this.getUrl(this._currenthp - 1)), this._topMask
				.x = Math.floor(Math.min(1, this.getCurrentPercent(e)) * this._hpWidth - this._hpWidth)
		}
		this.setValue(e)
	}, e.prototype.setValue = function(t) {
		t = Math.max(Math.floor(t), 0), this._targetHp = Math.ceil(t / this._once), this._tx = Math.floor(Math.min(1, this.getCurrentPercent(
				t)) * this._hpWidth - this._hpWidth), this._currenthp - this._targetHp >= 20 ? this._fast = 60 : this._currenthp -
			this._targetHp >= 10 ? this._fast = 40 : this._currenthp - this._targetHp >= 3 ? this._fast = 20 : this._currenthp -
			this._targetHp >= 1 || 1 == this._hpNumRoll.getValue() ? this._fast = 15 : this._value - t > 3 * this._once / 4 ?
			this._fast = 6 : this._value - t > this._once / 2 ? this._fast = 4 : this._value - t > this._once / 4 ? this._fast =
			2 : this._fast = 1, this._fast = this._currenthp - this._targetHp > 1 ? 4 : 1, this._txt.text = t + "/" + this._max,
			this._value != t && (this._value = t, App.timer.doFrameLoop(this, 1, this.onFrame))
	}, e.prototype.onFrame = function() {
		this._currenthp != this._targetHp ? (this._topMask.x -= this._fast * this._speed, this._topMask.x <= -this._hpWidth &&
			(this._currenthp--, this._hpNumRoll.setValue(Math.max(0, this._currenthp)), this.setHpUrl(this.getUrl(this._currenthp),
				this.getUrl(this._currenthp - 1)), this._topMask.x = 0), this._currenthp == this._targetHp && this._tx == -this._hpWidth &&
			App.timer.clearTimer(this.onFrame, this)) : this._topMask.x > this._tx && (this._topMask.x - this._tx >= this._speed ?
			this._topMask.x -= this._fast * this._speed : (this._topMask.x = this._tx, App.timer.clearTimer(this.onFrame,
				this)))
	}, e.prototype.setHpUrl = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = null), this._topHp.source = t, this._bottomHp.source = e
	}, e.prototype.getCurrentPercent = function(t) {
		return t != this._max ? t % this._once / this._once : 1
	}, e.prototype.getUrl = function(t) {
		return t > this._indexList.length || 1 > t ? null : this._prefix + this._indexList[t - 1] + "_png"
	}, e.prototype.clear = function() {
		this._bossID = -1, this._value = 0, this._max = 1, this._numMax = 1, this._topMask.x = 0, this._txt.text = "", App.timer
			.clearTimer(this.onFrame, this)
	}, e.prototype.moveTo = function(t, e, i) {
		void 0 === i && (i = null), this.x = t, this.y = e, i && i.addChild(this)
	}, e.prototype.dispose = function() {}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(BossHpBar.prototype, "BossHpBar");
var GuildEquipLogPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GuildEquipLogPanelSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(GuildEvent.GUILD, this.updateShowList, this),
			GuildCommandSender.sendGuildLogMessage()
	}, e.prototype.updateShowList = function() {
		this.removeAllList();
		for (var t = App.data.guildCenter.logList, e = 0; e < t.length; e++) {
			var i = t[e],
				n = App.thing.create(GuildEquipLogItemView, "GuildEquipLogPanel", !0);
			n.onCreate(), n.setData(i), n.y = (n.height + 5) * e, this._view.con.addChild(n)
		}
	}, e.prototype.removeAllList = function() {
		for (; this._view.con.numChildren > 0;) {
			var t = this._view.con.removeChildAt(0);
			t && (t.clear(), t.dispose(), App.thing.putIn(t))
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners(), this.removeAllList()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.removeAllList(), this._view.dispose(), this._view = null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._view.width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._view.height
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(GuildEquipLogPanel.prototype, "GuildEquipLogPanel");
var GuildEquipLogView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "GuildEquipLogPanelSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GuildEquipLogView.prototype, "GuildEquipLogView");
var GuildInformationView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "GuildMainViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._guildNameFuv = new FunctionVO(this.onGuildNameChange, this), this._memberList = new VScrollPanel(611, 381,
			GuildMainRender, 2), this.memberList_group.addChild(this._memberList)
	}, e.prototype.hide = function() {
		App.data.guildNameCenter.removeGuildNameRequets(App.global.characterData.guildId, this._guildNameFuv), this._reviseBulletin &&
			this._reviseBulletin.parent && this._reviseBulletin.parent.removeChild(this._reviseBulletin), this._reviseBulletin =
			null, this._memberList.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._memberList.dispose(), this._memberList = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.bg = UIMaker.getCImage(this.bgGroup, this, ResPathUtil.getImgPath(
				"guild_info_bg", "", ".jpg")), this.addEvent(), GuildCommandSender.sendGuildInfoMessage(), GuildCommandSender.sendGuildMemberListMessage(),
			this.createReviseBulletin(!1)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(GuildEvent.GUILD, this.updateInfo, this), this._dispatcher.addEventListener(
			GuildEvent.NOTICE_CHANGE, this.updateNotice, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onFightClick, this, this.btn_fight)
	}, e.prototype.onFightClick = function(t) {
		GuildCommandSender.sendGuildFightMasterMessage(), App.panel.removePanel(41)
	}, e.prototype.onRevisebulletinClick = function(t) {
		this.createReviseBulletin(!0)
	}, e.prototype.okClick = function(t) {
		t.currentTarget == this._reviseBulletin.ok_btn && GuildCommandSender.sendChangeGuildNoticeMessage(this._reviseBulletin
			.input_txt.text), this.createReviseBulletin(!1)
	}, e.prototype.createReviseBulletin = function(t) {
		return 0 == t ? void(this._reviseBulletin && (this._reviseBulletin.visible = t)) : (this._reviseBulletin || (this._reviseBulletin =
			new ReviseBulletinUI, this._reviseBulletin.x = 80, this._reviseBulletin.y = this.memberList_group.y - 160, this.addChild(
				this._reviseBulletin), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._reviseBulletin
				.ok_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._reviseBulletin
				.close_btn), this._reviseBulletin.input_txt.maxChars = 200, this._reviseBulletin.input_txt.textDisplay.size =
			20, this._reviseBulletin.input_txt.textDisplay.textAlign = egret.HorizontalAlign.LEFT, this._reviseBulletin.input_txt
			.textDisplay.width = 443, this._reviseBulletin.input_txt.textDisplay.height = 160, this._reviseBulletin.input_txt
			.textDisplay.multiline = !0, this._reviseBulletin.input_txt.textDisplay.lineSpacing = 5), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onInputTxtClick, this, this._reviseBulletin.input_txt), void(this._reviseBulletin
			.visible = !0))
	}, e.prototype.onInputTxtClick = function() {
		this._reviseBulletin.input_txt.text = "", this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onInputTxtClick,
			this, this._reviseBulletin.input_txt)
	}, e.prototype.updateNotice = function() {
		var t = App.data.guildCenter.myGuildInfo;
		this.notice_txt.text = t.notice
	}, e.prototype.updateInfo = function(t) {
		switch (void 0 === t && (t = 0), t) {
			case GuildEvent.INFO:
				this.updateGuildInfo();
				break;
			case GuildEvent.MEMBER:
				this.setMemberList()
		}
	}, e.prototype.updateGuildInfo = function() {
		var t = App.data.guildCenter.myGuildInfo;
		null != t && (0 != t.guildType ? this.btn_fight.visible = !0 : this.btn_fight.visible = !1, this.guildLv_txt.text =
			t.guildLevel + "", this.notice_txt.text = t.notice, "" == t.notice ? (this.notice_txt.text =
				"1.挑战帮会BOSS可以获得帮贡和图鉴\n2.帮贡可以在帮会商店购买灭神套装", this.notice_txt.textAlign = egret.HorizontalAlign.CENTER) : this.notice_txt
			.textAlign = egret.HorizontalAlign.LEFT, App.data.guildNameCenter.getGuildNameById(App.global.characterData.guildId,
				this._guildNameFuv), App.data.guildCenter.myGuildInfo.myPosition > EnumGuild.ZHANG_LAO ? (this.revise_bulletin.visible = !
				0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onRevisebulletinClick, this, this.revise_bulletin)
			) : this.revise_bulletin.visible = !1)
	}, e.prototype.onGuildNameChange = function(t, e) {
		this.guildName_txt.text = e
	}, e.prototype.setMemberList = function() {
		this._memberList.dataProvider = App.data.guildCenter.memberList;
		for (var t = App.data.guildCenter.memberList.length, e = 0; t > e; e++)
			if (App.data.guildCenter.memberList[e].guildPosition == EnumGuild.HUI_ZHANG) {
				this.hzname_txt.text = App.data.guildCenter.memberList[e].playerName;
				break
			} var i = App.data.guildCenter.myGuildInfo;
		this.guildNum_txt.text = i.personNum + "/" + App.data.guildCenter.getPersonNum(i.guildLevel)
	}, e
}(GuildMainViewUI);
__reflect(GuildInformationView.prototype, "GuildInformationView");
var GuildLGPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.registerSubPanel(0, GuildLiangongPanel, "titleview_banghui_png", 208, !0, !1)
	}, e
}(TabPanel);
__reflect(GuildLGPanel.prototype, "GuildLGPanel");
var GuildLiangongPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isCanLevelUP = !1, e.ShowToggleBtn = function() {
			e._view.guildCangku.currentState = "up", e._view.guildLiangong.currentState = "down", e._view.guildBoss.currentState =
				"up", e._view.guildShop.currentState = "up", e._view.guildFight.currentState = "up", e._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildFight), e._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, e.OpenJumpView, e, e._view.guildBoss), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView,
					e, e._view.guildShop), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildLiangong),
				e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildCangku), e._view.guildBoss_red
				.visible = App.data.guildCenter.guildBossRed(), App.data.castleWarCenter.dayRewardShow() || App.data.castleWarCenter
				.shabakShow() ? e._view.guildFight_red.visible = !0 : e._view.guildFight_red.visible = !1, e._view.guildShop_red.visible = !
				1
		}, e.OpenJumpView = function(t) {
			var i = t.target;
			switch (i.label) {
				case "帮会仓库":
					if (!App.global.funcOpen.isFunctionOpen(209, "", !0)) return;
					break;
				case "练功房":
					if (!App.global.funcOpen.isFunctionOpen(208, "", !0)) return
			}
			switch (e._view.guildBoss.currentState = "up", e._view.guildFight.currentState = "up", e._view.guildShop.currentState =
				"up", e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "up", i.currentState = "down",
				i.label) {
				case "帮会战":
					App.panel.isShowing(47) || App.panel.openPanel(47);
					break;
				case "帮会BOSS":
					App.panel.isShowing(201) || App.panel.openPanel(201);
					break;
				case "帮会商店":
					App.panel.isShowing(110) || App.panel.openPanel(110);
					break;
				case "帮会仓库":
					App.panel.isShowing(84) || App.panel.openPanel(84);
					break;
				case "练功房":
					App.panel.isShowing(83) || App.panel.openPanel(83)
			}
		}, e.index = 1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("LiangongPanelSkin"), this.addChild(this._view), this.icon = new CImage, this.icon
			.x = this._view.icon.x, this.icon.y = this._view.icon.y, this._view.addChild(this.icon), this.itemIcon = new CImage,
			this.itemIcon.x = this._view.itemIcon.x, this.itemIcon.y = this._view.itemIcon.y, this._view.addChild(this.itemIcon),
			App.dispatcher.addEventListener(EventType.GUILD_SELECT_LIANGONG, this.onSelectItem, this), this._view.btnRecover.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onLevelUP, this)
	}, e.prototype.onLevelUP = function(t) {
		if (this.currentItem)
			if (this.isCanLevelUP) {
				if (App.global.characterData.zhuanSheng < this.currentItem.data.q_zhuanshen) return void Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">解锁后才可以提升</font>");
				GuildCommandSender.sendLevelUpSkillMessage(1, this.currentItem.data.q_kind)
			} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">帮会积分不够</font>")
	}, e.prototype.onSelectItem = function(t) {
		for (var e = t.target, i = 0; i < this._view.con.numChildren; i++) {
			var n = this._view.con.getChildAt(i);
			n == e ? (n.onSelect(!0), this.showCurrent(n)) : n.onSelect(!1)
		}
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), this.index = 1, this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.onChangeRole,
			this), this._dispatcher.addEventListener(e.UPDATE_VIEW_LIST, this.updateShow, this);
		for (var n = App.data.guildCenter.getRoleGuildTrain(this.index), a = 0; a < n.trainList.length; a++) {
			var o = n.trainList[a],
				r = App.thing.create(GuildLiangongItemView, "GuildLiangongPanel", !0);
			r.onCreate();
			var s = App.data.guildCenter.getNextGuildSkillVo(o.trainleve, o.trainType);
			r.setData(s), r.onSelect(!1), r.y = r.height * a, this._view.con.addChild(r), 0 == a && (r.onSelect(!0), this.showCurrent(
				r))
		}
		this.ShowToggleBtn()
	}, e.prototype.onChangeRole = function(t) {
		this.index = t.roleIndex, this.updateShow()
	}, e.prototype.updateShow = function() {
		for (var t = App.data.guildCenter.getRoleGuildTrain(this.index), e = 0; e < t.trainList.length; e++) {
			var i, n = t.trainList[e];
			e < this._view.con.numChildren ? i = this._view.con.getChildAt(e) : (i = App.thing.create(GuildLiangongItemView,
				"GuildLiangongPanel", !0), i.onCreate(), this._view.con.addChild(i));
			var a = App.data.guildCenter.getNextGuildSkillVo(n.trainleve, n.trainType);
			i.setData(a), i.y = i.height * e, i == this.currentItem && this.showCurrent(this.currentItem)
		}
	}, e.prototype.showCurrent = function(t) {
		this.currentItem = t;
		var e, i = (t.data.q_id, App.data.guildCenter.getNextGuildSkillVo(t.data.q_id, t.data.q_kind));
		this._view.currentLv.text = "LV." + i.q_lv, this._view.currentName.text = i.q_name + "";
		var n = ResPathUtil.getIcon(t.data.q_tiny_icon + "", "item/80", ".png");
		this.icon.url = n, null != i.q_consume && "" != i.q_consume ? (e = App.data.guildCenter.getNextGuildSkillVo(t.data.q_next_id,
					t.data.q_kind), this.itemIcon.visible = this._view.lb_xh.visible = this._view.itemIcon.visible = this._view.scoreInfo
				.visible = !1) : this.itemIcon.visible = this._view.lb_xh.visible = this._view.itemIcon.visible = this._view.scoreInfo
			.visible = !0;
		var a = new BaseAttributeDataBean;
		a.convertAndAdd(i.q_prop);
		var o = a.getStrByBaseAttributeBean(a),
			r = o.split("\n");
		this._view.group1.visible = !1, this._view.group2.visible = !1;
		var s = "",
			h = [];
		if (e) {
			var l = new BaseAttributeDataBean;
			l.convertAndAdd(e.q_prop), s = a.getStrByBaseAttributeBean(l), h = s.split("\n")
		}
		var p = r.length;
		h.length > 0 && (p = h.length);
		for (var c = 0; p > c; c++) {
			this._view["group" + (c + 1)].visible = !0;
			var _ = [""];
			r.length > c && (_ = r[c].split(":"));
			var d = [];
			e && (d = h[c].split(":")), this._view["prop" + (c + 1 + "_name")].text = 1 == _.length ? d[0] : _[0], this._view[
				"prop" + (c + 1 + "_front")].text = "+" + (1 == _.length ? "0" : _[1]), e ? (this._view["prop" + (c + 1 +
				"_mark")].visible = !0, this._view["prop" + (c + 1 + "_after")].visible = !0, this._view["prop" + (c + 1 +
				"_after")].text = "+" + d[1]) : (this._view["prop" + (c + 1 + "_mark")].visible = !1, this._view["prop" + (c + 1 +
				"_after")].visible = !1, this._view["prop" + (c + 1 + "_after")].text = "")
		}
		if (1 == p ? this._view.group1.y = 134.5 : (this._view.group1.y = 111, this._view.group2.y = 157), e) {
			if (this.itemIcon.visible = this._view.lb_xh.visible = this._view.itemIcon.visible = this._view.scoreInfo.visible = !
				0, this._view.btnRecover.touchEnabled = !0, this._view.btnRecover.label = "提 升", i) {
				var u = StringUtil.JsonParse(i.q_consume),
					g = u[0].id,
					f = u[0].num,
					m = "",
					v = App.data.currencyDataCenter.getMoney(g),
					y = App.config.q_itemContainer.getDataBean(g).q_tiny_icon,
					E = ResPathUtil.getIcon(y + "", "item/64", ".png");
				this.itemIcon.url = E, this.itemIcon.width = 20, this.itemIcon.height = 20, v >= f ? (m =
						"<font color='0x2bb12a'>", this.isCanLevelUP = !0) : (m = "<font color='0xff0000'>", this.isCanLevelUP = !1),
					this._view.scoreInfo.textFlow = HtmlUtil.getHtmlStr(m + App.data.currencyDataCenter.getMoney(g) + "</font>/" + f)
			}
		} else this.itemIcon.visible = this._view.lb_xh.visible = this._view.itemIcon.visible = this._view.scoreInfo.visible = !
			1, this._view.btnRecover.touchEnabled = !1, this._view.btnRecover.label = "已满级"
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.removeAllList()
	}, e.prototype.removeAllList = function() {
		for (; this._view.con.numChildren > 0;) {
			var t = this._view.con.removeChildAt(0);
			t && (t.clear(), t.dispose(), App.thing.putIn(t))
		}
	}, e.prototype.dispose = function() {
		this.removeAllList(), t.prototype.dispose.call(this)
	}, e.UPDATE_VIEW_LIST = "UPDATE_VIEW_LIST", e
}(ViewBase);
__reflect(GuildLiangongPanel.prototype, "GuildLiangongPanel");
var GuildMainPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("帮会信息,帮会成员,申请列表,帮会列表"), this.registerSubPanel(0, GuildInformationView,
			"titleview_banghui_png", -1, !1, !1, null, null, !1), this.registerSubPanel(1, GuildMemberListView,
			"titleview_banghui_png"), this.registerSubPanel(2, GuildApplyLisytView, "titleview_banghui_png"), this.registerSubPanel(
			3, GuildAllListView, "titleview_banghui_png", -1, !1, !1, null, null, !1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(GuildMainPanel.prototype, "GuildMainPanel");
var GuildMemberListView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this, GuildMemberListRender)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), GuildCommandSender.sendGuildMemberListMessage()
	}, e.prototype.exitGuild = function() {
		t.prototype.exitGuild.call(this), Alert.showAlert(32, null, this.onLeavaGuild, this)
	}, e.prototype.onLeavaGuild = function(t) {
		if (void 0 === t && (t = null), App.data.guildCenter.hasGuild()) {
			if (App.data.guildCenter.myGuildInfo.myPosition == EnumGuild.HUI_ZHANG) return void Notice.showNoticeTypeMsg(
				Notice.BOTTOM, "会长无法退出帮会，请先卸任");
			GuildCommandSender.sendLeaveGuildMessage(), App.panel.isShowing(41) && App.panel.removePanel(41), App.panel.isShowing(
				33) && App.panel.removePanel(33)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(GuildCommonListView);
__reflect(GuildMemberListView.prototype, "GuildMemberListView");
var GuildPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentType = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
			this._view = UIMaker.createViewBase("GuildPanelSkin"), this.addChild(this._view), this._effect1 = EffectUtils.showCEffect(
					this, this._view, ResPathUtil.getMenuEffect("gongchengzhan", "guildbtn"), this._view.guildbtn_img.x + 25, this._view
					.guildbtn_img.y + 53, this._effect1), this._effect2 = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect(
					"gongchengzhan", "guildbtn"), this._view.dargonfightbtn_img.x + 25, this._view.dargonfightbtn_img.y + 53, this._effect2),
				this._effect3 = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect("gongchengzhan", "guildbtn"),
					this._view.guildboss_img.x + 25, this._view.guildboss_img.y + 53, this._effect3), this._effect4 = EffectUtils.showCEffect(
					this, this._view, ResPathUtil.getMenuEffect("gongchengzhan", "guildbtn"), this._view.guildShop_img.x + 25, this._view
					.guildShop_img.y + 53, this._effect4), this._effect5 = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect(
					"gongchengzhan", "guildbtn"), this._view.guildliangong_img.x + 25, this._view.guildliangong_img.y + 53, this._effect5),
				this._effect6 = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect("gongchengzhan", "guildbtn"),
					this._view.guildcangku_img.x + 25, this._view.guildcangku_img.y + 53, this._effect6), this._view.addChild(this._view
					.guild_shabak), this._view.addChild(this._view.red_guild), this._view.addChild(this._view.red_boss), this._view.addChild(
					this._view.red_shop), this._view.red_shop.visible = !1, this._view.bg_img.height = Config.SCREEN_HEIGHT
		}, e.prototype.show = function(e) {
			t.prototype.show.call(this, e), this.addEvent()
		}, e.prototype.setVisible = function(t) {}, e.prototype.adjustApplyTab = function() {}, e.prototype.addEvent =
		function() {
			this._dispatcher.addEventListener(GuildEvent.GUILD, this.onUpdate, this), this._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, this.onTouchFunc, this, this._view.guildbtn_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onTouchFunc, this, this._view.dargonfightbtn_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onTouchFunc, this, this._view.guildboss_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onTouchFunc, this, this._view.guildShop_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onTouchFunc, this, this._view.returnbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
					.onTouchFunc, this, this._view.guildliangong_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onTouchFunc, this, this._view.guildcangku_img), App.data.guildCenter.applyList && App.data.guildCenter.applyList
				.length > 0 && App.data.guildCenter.myGuildInfo.myPosition >= EnumGuild.ZHANG_LAO ? this._view.red_guild.visible = !
				0 : this._view.red_guild.visible = !1, 1 == App.data.castleWarCenter.dayRewardShow() || 1 == App.data.castleWarCenter
				.shabakShow() ? this._view.guild_shabak.visible = !0 : this._view.guild_shabak.visible = !1, this._dispatcher.addEventListener(
					ZoneEvent.ZONE_LIST_UPDATE, this.onZone, this), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate,
					this), ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.GUILD_BOSS)
		}, e.prototype.onZone = function(t) {
			t == EnumZoneType.GUILD_BOSS && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.GUILD_BOSS)
		}, e.prototype.bossUpdate = function(t) {
			t == EnumZoneType.GUILD_BOSS && (this._view.red_boss.visible = App.data.guildCenter.guildBossRed())
		}, e.prototype.onTouchFunc = function(t) {
			switch (t.currentTarget) {
				case this._view.guildbtn_img:
					null == App.global.characterData.guildId || "" == App.global.characterData.guildId ? PanelOpenManager.openPanel(
						31) : PanelOpenManager.openPanel(41);
					break;
				case this._view.dargonfightbtn_img:
					PanelOpenManager.openPanel(47);
					break;
				case this._view.guildboss_img:
					PanelOpenManager.openPanel(201);
					break;
				case this._view.guildShop_img:
					PanelOpenManager.openPanel(110);
					break;
				case this._view.guildliangong_img:
					App.global.funcOpen.isFunctionOpen(208, "", !0) && PanelOpenManager.openPanel(83);
					break;
				case this._view.guildcangku_img:
					App.global.funcOpen.isFunctionOpen(209, "", !0) && PanelOpenManager.openPanel(84);
					break;
				case this._view.returnbtn:
					App.panel.removeTopPanel()
			}
		}, e.prototype.onUpdate = function(t) {}, e.prototype.hide = function() {
			t.prototype.hide.call(this), this._currentType = -1
		}, Object.defineProperty(e.prototype, "width", {
			get: function() {
				return 640
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return 1136
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this._effect1 && this._effect1.dispose(), this._effect1 = null, this._effect2 &&
				this._effect2.dispose(), this._effect2 = null, this._effect3 && this._effect3.dispose(), this._effect3 = null,
				this._effect4 && this._effect4.dispose(), this._effect4 = null
		}, e
}(BasePanel);
__reflect(GuildPanel.prototype, "GuildPanel");
var GuildShopPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopItemList = [], e.ShowToggleBtn = function() {
			e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "up", e._view.guildBoss.currentState =
				"up", e._view.guildShop.currentState = "down", e._view.guildFight.currentState = "up", e._view.imgBottom.height =
				120, e._view.guild_jump.visible = !0, e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView,
					e, e._view.guildFight), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildBoss),
				e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildShop), e._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildLiangong), e._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, e.OpenJumpView, e, e._view.guildCangku), e._view.guildBoss_red.visible = App.data.guildCenter.guildBossRed(),
				App.data.castleWarCenter.dayRewardShow() || App.data.castleWarCenter.shabakShow() ? e._view.guildFight_red.visible = !
				0 : e._view.guildFight_red.visible = !1, e._view.guildShop_red.visible = !1
		}, e.OpenJumpView = function(t) {
			var i = t.target;
			switch (i.label) {
				case "帮会仓库":
					if (!App.global.funcOpen.isFunctionOpen(209, "", !0)) return;
					break;
				case "练功房":
					if (!App.global.funcOpen.isFunctionOpen(208, "", !0)) return
			}
			switch (e._view.guildBoss.currentState = "up", e._view.guildFight.currentState = "up", e._view.guildShop.currentState =
				"up", e._view.guildCangku.currentState = "up", e._view.guildLiangong.currentState = "up", i.currentState = "down",
				i.label) {
				case "帮会战":
					App.panel.isShowing(47) || App.panel.openPanel(47);
					break;
				case "帮会BOSS":
					App.panel.isShowing(201) || App.panel.openPanel(201);
					break;
				case "帮会商店":
					App.panel.isShowing(110) || App.panel.openPanel(110);
					break;
				case "帮会仓库":
					App.panel.isShowing(84) || App.panel.openPanel(84);
					break;
				case "练功房":
					App.panel.isShowing(83) || App.panel.openPanel(83)
			}
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MallViewSkin"), this.addChild(this._view), this._moneyBar = new MoneyBar, this
			._moneyBar.moveTo(181, 60, this._view), this._moneyBar.setMoneyLocationX(-80, 85), this._moneyBar.showBg(!1), this
			._view.timetextgroup.visible = !1, this._view.shemmigroup.visible = !1;
		var t = this._view.con;
		this.addChild(this._view), this._mallListPanel = new VScrollPanel(t.width, 676, MallItemView, 3), this._view.con.y =
			94, t.addChild(this._mallListPanel), this._shopItemList = App.data.mallCenter.getJinjiShopList(), this._view.btnGroup
			.visible = this._view.tab1.visible = this._view.tab2.visible = this._view.timeTF.visible = !1, this._moneyTxt =
			UIMaker.getTextField(this._view, e, 180, 814, 300, 20, 11639929, 20)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), MallPanel.CURRENT_SHOP_TYPE = 11, ShopCommandSender.sendRequestShopListMessage(11),
			this._dispatcher.addEventListener(GuideEvent.REFRESH_GUILDMALL, this.refrshMall, this), this._moneyBar.show(),
			this._moneyTxt.text = "我的贡献：" + App.data.currencyDataCenter.getMoney(EnumMoney.GUILD_CONTRIBUTE), this.ShowToggleBtn()
	}, e.prototype.refrshMall = function() {
		this._moneyTxt.text = "我的贡献：" + App.data.currencyDataCenter.getMoney(EnumMoney.GUILD_CONTRIBUTE), this._mallListPanel
			.dataProvider = App.data.guildCenter.shopList.sort(App.data.mallCenter.sortMallFunc)
	}, e.prototype.hide = function() {
		MallPanel.CURRENT_SHOP_TYPE = 0, this._moneyBar.hide(), t.prototype.hide.call(this), this._mallListPanel.removeAll()
	}, e.prototype.dispose = function() {
		this._mallListPanel && (this._mallListPanel.dispose(), this._mallListPanel = null), this._moneyBar && (this._moneyBar
			.dispose(), this._moneyBar = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GuildShopPanel.prototype, "GuildShopPanel");
var GuildApplyListBigRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GuildListApplyBigRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this._fightPowerBitmap && (this._fightPowerBitmap.dispose(), this._fightPowerBitmap = null), t.prototype.clear.call(
			this)
	}, e.prototype.onAddStage = function(t) {
		this._fightPowerBitmap || (this._fightPowerBitmap = new FightPower, this._fightPowerBitmap.setValue(0), this.addChild(
				this._fightPowerBitmap), this._fightPowerBitmap.setVis(!1), this._fightPowerBitmap.y = 15, this._fightPowerBitmap
			.x = 288)
	}, e.prototype.dataChanged = function() {
		if (this._info = this.data, this._info) {
			this.guildName_txt.text = this._info.guildName, this.name_txt.text = this._info.presidentName, this.power_txt.text =
				this._info.applyPower ? StringUtil.formatMoney(this._info.applyPower) : "无", this._fightPowerBitmap.setValue(this
					.data.totalFightPower), this.num_txt.text = this._info.memberNum + "/" + this.getNum(this._info.guildLevel);
			var t = App.data.guildCenter.getGuildListRank(this._info.guildName) + 1;
			switch (this.rank_txt.visible = !1, this.rank_txt0.visible = !1, t) {
				case 1:
					this.rank_img.source = "guild_guild_rank_1_png";
					break;
				case 2:
					this.rank_img.source = "guild_guild_rank_2_png";
					break;
				case 3:
					this.rank_img.source = "guild_guild_rank_3_png";
					break;
				default:
					this.rank_img.source = "", t > 9 ? (this.rank_txt.visible = !0, this.rank_txt.text = t + "") : (this.rank_txt0.visible = !
						0, this.rank_txt0.source = "guild_guild_" + t + "_png")
			}
		}
	}, e.prototype.getNum = function(t) {
		void 0 === t && (t = 0);
		var e = App.config.q_guildContainer.getDataBean(t);
		return e.q_number
	}, e
}(ItemRenderer);
__reflect(GuildApplyListBigRender.prototype, "GuildApplyListBigRender");
var GuildApplyListRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GuildListApplyRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.applyFunc, this, this.apply_btn)
	}, e.prototype.dataChanged = function() {
		this._info = this.data, this.guildName_txt.text = this._info.guildName, this.power_txt.text = "战力要求:" + (this._info
				.applyPower ? StringUtil.formatMoney(this._info.applyPower) : "无"), this.name_txt.text = this._info.presidentName,
			this.num_txt.text = this._info.memberNum + "/" + this.getNum(this._info.guildLevel), this.itemIndex >= 9 ? (this.rank_txt
				.visible = !0, this.rank_img.visible = !1, this.rank_txt.text = this.itemIndex + 1 + "") : (this.rank_txt.visible = !
				1, this.rank_img.visible = !0, this.rank_img.source = "guild_guild_" + (this.itemIndex + 1) + "_png")
	}, e.prototype.applyFunc = function(t) {
		if (this._info.applyPower) {
			var e = App.data.characterCenter.roleSumFight;
			e >= this._info.applyPower ? GuildCommandSender.sendApplyForJoinGuildMessage(0, this._info.guildId) : Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">战斗力不足，请提升自己变得更强大！</font>")
		} else GuildCommandSender.sendApplyForJoinGuildMessage(0, this._info.guildId)
	}, e.prototype.getNum = function(t) {
		void 0 === t && (t = 0);
		var e = App.config.q_guildContainer.getDataBean(t);
		return e.q_number
	}, e
}(ItemRenderer);
__reflect(GuildApplyListRender.prototype, "GuildApplyListRender");
var GuildEquipLogItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isDispose = !1, e.skinName = "GuildEquipLogItemSkin", e
	}
	return __extends(e, t), e.prototype.onCreate = function() {}, e.prototype.clear = function() {}, e.prototype.dispose =
		function() {}, e.prototype.setData = function(t) {
			this.data = t, this.lb_time.text = t.logTime + "";
			var e = "";
			1 == t.logType ? e = "捐献了" : 5 == t.logType && (e = "兑换了");
			var i = StringUtil.formatToTime_V10(t.logTime);
			this.lb_time.text = i + "";
			var n = App.config.q_itemContainer.getDataBean(t.itemMid).q_name;
			this.lb_info.textFlow = HtmlUtil.getHtmlStr("<font color='#ffb832'>" + t.playerName +
				"</font><font color='#00CC00'>" + e + "</font><font color='#ff0000'>" + n + "</font>")
		}, e
}(eui.Component);
__reflect(GuildEquipLogItemView.prototype, "GuildEquipLogItemView");
var GuildLiangongItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isDispose = !1, e.skinName = "LiangongSkillItemSkin", e._icon = new CImage, e._icon.x = e.img_icon.x, e._icon
			.y = e.img_icon.y, e.addChild(e._icon), e
	}
	return __extends(e, t), e.prototype.onCreate = function() {
		this.bg.source = RES.getRes("guild_skill_bg_png"), this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this)
	}, e.prototype.onTouch = function(t) {
		App.global.characterData.zhuanSheng >= this.data.q_zhuanshen ? App.dispatcher.dispatchEvent(EventType.GUILD_SELECT_LIANGONG, {
			target: this,
			obj: this.data
		}) : Notice.showMousePosMessage("人物" + this.data.q_zhuanshen + "转解锁该技能")
	}, e.prototype.onSelect = function(t) {
		this.img_select.visible = t
	}, e.prototype.clear = function() {
		this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this.data = null
	}, e.prototype.dispose = function() {
		this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this.data = null
	}, e.prototype.setData = function(t) {
		var e = t,
			i = ResPathUtil.getIcon(e.q_tiny_icon + "", "item/80", ".png");
		if (this._icon.url = i, this.data = t, this.lb_name.text = "" + e.q_name, this.lb_level.text = "LV." + e.q_lv, App.global
			.characterData.zhuanSheng < e.q_zhuanshen) {
			if (this._lock);
			else {
				var n = ResPathUtil.getIcon("suo", "item/80", ".png");
				this._lock = new CImage, this._lock.x = this.img_icon.x, this._lock.y = this.img_icon.y, this.addChild(this._lock),
					this._lock.url = n
			}
			this.lb_level.text = "LV.0", this.filters = FilterUtil.FILTER_GRAY
		} else this.filters = [], this._lock && (this._lock.visible = !1)
	}, e
}(eui.Component);
__reflect(GuildLiangongItemView.prototype, "GuildLiangongItemView");
var GuildMainRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GuildMainRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.dataChanged = function() {
		this.itemIndex % 2 == 0 ? this.bg_img.visible = !1 : this.bg_img.visible = !0, this.data.monthCardEndTime > 0 ?
			this.yueka_img.visible = !0 : this.yueka_img.visible = !1, this.data.vipLevel > 0 ? this.vip_img.visible = !0 :
			this.vip_img.visible = !1, this.name_txt.text = this.data.playerName, this.data.guildPosition == EnumGuild.HUI_ZHANG ?
			this.pos_txt.text = "会长" : this.data.guildPosition == EnumGuild.FU_HUI_ZHANG ? this.pos_txt.text = "副会长" : this.data
			.guildPosition == EnumGuild.ZHANG_LAO ? this.pos_txt.text = "长老" : this.data.guildPosition == EnumGuild.JING_YING ?
			this.pos_txt.text = "精英" : this.pos_txt.text = "成员", this.gongxian_txt.text = "" + this.data.fightPower
	}, e
}(ItemRenderer);
__reflect(GuildMainRender.prototype, "GuildMainRender");
var GuildMemberListRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GuildMemberListRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this._fightPowerBitmap && (this._fightPowerBitmap.dispose(), this._fightPowerBitmap = null), t.prototype.clear.call(
			this)
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.yes_btn), this._fightPowerBitmap ||
			(this._fightPowerBitmap = new FightPower, this._fightPowerBitmap.setValue(0), this.addChild(this._fightPowerBitmap),
				this._fightPowerBitmap.setVis(!1), this._fightPowerBitmap.y = 45, this._fightPowerBitmap.x = 80)
	}, e.prototype.createChildren = function() {}, e.prototype.dataChanged = function() {
		App.data.guildCenter.myGuildInfo.myPosition <= EnumGuild.COMMON ? this.yes_btn.visible = !1 : (this.yes_btn.visible = !
				0, this.data.guildPosition >= App.data.guildCenter.myGuildInfo.myPosition ? (this.yes_btn.filters = FilterUtil.FILTER_GRAY,
					this.yes_btn.touchEnabled = !1) : (this.yes_btn.filters = null, this.yes_btn.touchEnabled = !0)), this.name_txt.text =
			this.data.playerName;
		var t = this.data.guildPosition;
		if (this.position_txt.text = "[" + EnumGuild.getPositionName(t) + "]", this._fightPowerBitmap.setValue(this.data.fightPower),
			this.head_img.source = GridUtil.getHead(this.data.playerJob, this.data.sex), this.data.online <= 0) this.online_txt
			.text = "在线", this.online_txt.textColor = 8057856;
		else {
			this.online_txt.textColor = 11639929;
			var e = (this.data.online - this.data.online % 86400) / 86400;
			1 > e ? this.online_txt.text = "离线 1天內" : e >= 30 ? (e = 30, this.online_txt.text = "离线 " + e + "天") : this.online_txt
				.text = "离线 " + e + "天"
		}
		this.name_txt.x = this.position_txt.x + this.position_txt.width, this.data.monthCardEndTime > 0 ? this.yueka_img.visible = !
			0 : this.yueka_img.visible = !1, this.data.vipLevel > 0 ? this.vip_img.visible = !0 : this.vip_img.visible = !1
	}, e.prototype.onClick = function(t) {
		this.data.playerId != App.global.characterData.personId && App.panel.openPanel(81, this.data)
	}, e
}(ItemRenderer);
__reflect(GuildMemberListRender.prototype, "GuildMemberListRender");
var GuildReviseListRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GuildReviseListRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this._fightPowerBitmap && (this._fightPowerBitmap.dispose(), this._fightPowerBitmap = null), t.prototype.clear.call(
			this)
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.yes_btn), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.no_btn), this._fightPowerBitmap || (this._fightPowerBitmap =
			new FightPower, this._fightPowerBitmap.setValue(0), this.addChild(this._fightPowerBitmap), this.addChild(this.no_btn),
			this._fightPowerBitmap.y = 45, this._fightPowerBitmap.x = 80)
	}, e.prototype.createChildren = function() {}, e.prototype.dataChanged = function() {
		App.data.guildCenter.myGuildInfo.myPosition < EnumGuild.ZHANG_LAO ? this.no_btn.visible = this.yes_btn.visible = !1 :
			this.no_btn.visible = this.yes_btn.visible = !0, this.name_txt.text = this.data.playerName, this.head_img.source =
			GridUtil.getHead(this.data.playerJob, this.data.playerSex), this._fightPowerBitmap.setValue(this.data.zplus), this
			.yueka_img.visible = !1, this.data.vipLevel > 0 ? this.vip_img.visible = !0 : this.vip_img.visible = !1
	}, e.prototype.onClick = function(t) {
		t.stopImmediatePropagation(), GuildCommandSender.sendDealApplyForJoinGuildMessage(t.currentTarget == this.yes_btn,
			[this.data.playerId])
	}, e
}(ItemRenderer);
__reflect(GuildReviseListRender.prototype, "GuildReviseListRender");
var ManageMemberPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ManageMemberSkin"), this.addChild(this._view)
	}, e.prototype.refresh = function(t) {
		if (this._otherInfo = t, this._myPosition = App.data.guildCenter.myGuildInfo.myPosition, this._otherPosition = t.guildPosition,
			this._view.name_txt.text = t.playerName, this._view.power_txt.text = "战斗力：" + t.fightPower, this._view.gongxian_txt
			.text = "等级：" + t.playerLevel, this.setFilters(this._view.appointFH_btn, !0), this.setFilters(this._view.appointZL_btn,
				!0), this.setFilters(this._view.shotoff_btn, !0), this.setFilters(this._view.appointHZ_btn, !0), this._view.appointZL_btn
			.label = "任命长老", this._view.appointFH_btn.label = "任命副会", this._view.head_img.source = GridUtil.getHead(t.playerJob,
				t.sex), !(this._myPosition <= this._otherPosition)) switch (this._myPosition) {
			case EnumGuild.ZHANG_LAO:
				this.setFilters(this._view.shotoff_btn, !1);
				break;
			case EnumGuild.FU_HUI_ZHANG:
				this.setFilters(this._view.appointZL_btn, !1), this.setFilters(this._view.shotoff_btn, !1), this._otherPosition ==
					EnumGuild.ZHANG_LAO && (this._view.appointZL_btn.label = "解除长老");
				break;
			case EnumGuild.HUI_ZHANG:
				switch (this.setFilters(this._view.appointFH_btn, !1), this.setFilters(this._view.appointZL_btn, !1), this.setFilters(
					this._view.shotoff_btn, !1), this.setFilters(this._view.appointHZ_btn, !1), this._otherPosition) {
					case EnumGuild.ZHANG_LAO:
						this._view.appointZL_btn.label = "解除长老";
						break;
					case EnumGuild.FU_HUI_ZHANG:
						this._view.appointFH_btn.label = "解除副会"
				}
		}
	}, e.prototype.setFilters = function(t, e) {
		1 == e ? (t.filters = FilterUtil.FILTER_GRAY, t.touchEnabled = !1) : (t.filters = null, t.touchEnabled = !0)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this,
				this._view.appointHZ_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this
				._view.appointFH_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._view
				.appointZL_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this, this._view.shotoff_btn),
			this.refresh(e)
	}, e.prototype.okClick = function(t) {
		var e = "",
			i = parseInt(t.currentTarget.name);
		switch (i == this._otherInfo.guildPosition && (i = EnumGuild.COMMON), t.currentTarget) {
			case this._view.appointZL_btn:
				e = "长老";
				break;
			case this._view.appointFH_btn:
				e = "副会长";
				break;
			case this._view.appointHZ_btn:
				e = "会长";
				break;
			case this._view.shotoff_btn:
				i = -100, e = "是否将<font color='#35ea35'>" + this._otherInfo.playerName + "</font>踢出帮会"
		}
		"" != e && (i == EnumGuild.COMMON ? e = "是否解除<font color='#35ea35'>" + this._otherInfo.playerName + "</font>的" + e +
			"职位" : -100 == i || (e = "是否任命<font color='#35ea35'>" + this._otherInfo.playerName + "</font>为" + e), Alert.show(
				e, "成员管理", "确认|取消", this.onSure, this, i, !0))
	}, e.prototype.onSure = function(t) {
		-100 == t ? GuildCommandSender.sendKickOutGuildMessage(LongUtil.toString(this._otherInfo.playerId)) :
			GuildCommandSender.sendChangeGuildPositionMessage(this._otherInfo.playerId, t), App.panel.removePanel(81)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 430
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 375
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(ManageMemberPanel.prototype, "ManageMemberPanel");
var ConsumeData = function() {
	function t() {}
	return t
}();
__reflect(ConsumeData.prototype, "ConsumeData");
var ConsumeItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isDispose = !1, e.skinName = "ConsumeItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBuyFunc,
			this, this)
	}, e.prototype.dataChanged = function() {
		this.data.panelId > 0 ? this.btn.visible = !0 : this.btn.visible = !1, this.name_txt.text = this.data.name_des
	}, e.prototype.onBuyFunc = function(t) {
		0 == this.data.functinid ? 105 == this.data.panelId ? 0 == App.data.activityCenter.getData(ActivityCenter.firstChargeAct)
			.playerStates ? (App.panel.removePanel(19), PanelOpenManager.openPanel(this.data.panelId, {
				selectedIndex: this.data.scendid
			})) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">暂未开启</font>") : 8e3 == this.data.panelId ?
			(App.panel.removePanel(19), App.dispatcher.dispatchEvent(WarpetEvent.WARPET_PANEL_SELECTINDEX, this.data.scendid)) :
			(App.panel.removePanel(19), PanelOpenManager.openPanel(this.data.panelId, {
				selectedIndex: this.data.scendid
			})) : App.global.funcOpen.isFunctionOpen(this.data.functinid, "", !0) && (App.panel.removePanel(19),
				PanelOpenManager.openPanel(this.data.panelId, {
					selectedIndex: this.data.scendid
				}))
	}, e
}(ItemRenderer);
__reflect(ConsumeItemView.prototype, "ConsumeItemView");
var ConsumePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.height = 512, this._btnClose =
			this._windowView.close_btn, this._view = UIMaker.createViewBase("ConsumeSkin"), this._windowView.viewContainer.addChild(
				this._view), this._view.buynum_txt.restrict = "0-9", this.createChildren()
	}, e.prototype.createChildren = function() {
		this._itemList = new VScrollPanel(512, 61, ConsumeItemView, 1), this._itemList.move(-4, 0), this._view.item_con.addChild(
				this._itemList), this._itemList.scrollPolicyH = eui.ScrollPolicy.OFF, this._itemList.scrollPolicyV = eui.ScrollPolicy
			.OFF
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e);
		var i = GameUtil.getItemConfigData(e);
		this._itemid = e, this._shopBean = App.data.mallCenter.getItemShopBean(e), this._shopBean ? (this._view.common_con.visible = !
				0, this._view.pricetxt_con.visible = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick,
					this, this._view.add_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this,
					this._view.sub_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this._view
					.max_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this._view.min_btn),
				this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this._view.btn_buy), this._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this._view.btn_charge), this._dispatcher.addEventListener(
					egret.Event.CHANGE, this.updatePrice, this, this._view.buynum_txt), this._view.buynum_txt.text = "1", this._view
				.getdes_txt.y = 48, this._view.grid_bg.y = 93, this._view.icon_img.y = 94, this._view.itemname_txt.y = 181, this._view
				.item_con.y = 340, this._windowView.height = 462, this.updatePrice()) : (this._view.common_con.visible = !1, this
				._view.pricetxt_con.visible = !1, this._view.getdes_txt.y = 300, this._view.grid_bg.y = 93, this._view.icon_img.y =
				98, this._view.itemname_txt.y = 181, this._view.item_con.y = 245, this._windowView.height = 362), i || GameLog.log(
				"不存在此物品"), this._windowView.setTitle(i.q_name + "获取"), this._view.icon_img.source = ResPathUtil.getIcon(i.q_tiny_icon,
				EnumImageType.ITEM_80), this._view.grid_bg.source = GridUtil.getGridGradeBg(i.q_default), this._view.itemname_txt
			.text = i.q_name, this._view.itemname_txt.textColor = GameUtil.getItemNameColor(i.q_id);
		var n = i.q_input_intro.replace("[", "");
		n = n.replace("]", "");
		var a = n.split(","),
			o = a.length;
		this._dataAry = [];
		for (var r, s, h = 0; o > h; h++) s = App.config.q_output_introContainer.getDataBean(a[h]), s && (r = new ConsumeData,
			r.name_des = s.q_output_title, r.panelId = s.q_change_ui, r.scendid = s.q_need_level, r.functinid = s.q_need_level_zs,
			this._dataAry.push(r));
		this._windowView.height = this._windowView.height + 61 * (o - 1), o > 3 ? this._itemList.height = 248 : this._itemList
			.height = 61 + 61 * (o - 1), null != this._dataAry && (this._itemList.dataProvider = this._dataAry), this.resize()
	}, e.prototype.onBtnClick = function(t) {
		var e = t.currentTarget,
			i = parseInt(this._view.buynum_txt.text);
		switch (e) {
			case this._view.max_btn:
				this._view.buynum_txt.text = "" + (Number(this._view.buynum_txt.text) + 10);
				break;
			case this._view.min_btn:
				this._view.buynum_txt.text = "" + (Number(this._view.buynum_txt.text) - 10);
				break;
			case this._view.add_btn:
				999 >= i ? this._view.buynum_txt.text = i + 1 + "" : this._view.buynum_txt.text = "999";
				break;
			case this._view.sub_btn:
				i > 0 ? this._view.buynum_txt.text = i - 1 + "" : this._view.buynum_txt.text = "1";
				break;
			case this._view.btn_buy:
				App.global.itemBuy.buyItemByItemId(this._itemid, i);
				break;
			case this._view.btn_charge:
		}
		this.updatePrice()
	}, e.prototype.updatePrice = function() {
		var t = parseInt(this._view.buynum_txt.text);
		t > 999 && (this._view.buynum_txt.text = "999", t = 999), 1 > t && (this._view.buynum_txt.text = "1", t = 1), t >=
			1 && this._shopBean && (this._view.oneprice_txt.text = this._shopBean.q_price + "", this._view.allprice_txt.text =
				this._shopBean.q_price * t + "")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._itemList.removeAll()
	}, e.prototype.dispose = function() {
		this._view.icon_img && this._view.icon_img.dispose(), this._itemList.dispose(), this._itemList = null, t.prototype.dispose
			.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 527
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._view.item_con.y + this._itemList.height
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(ConsumePanel.prototype, "ConsumePanel");
var BiQiZone = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.track = new YeZhanBiQiTrackPanel, this.addChild(this.track)
	}, e.prototype.exit = function() {
		this.track.hide(), this.track.visible = !1, t.prototype.exit.call(this)
	}, e.prototype.enter = function() {
		this.track.show(), this.track.visible = !0, t.prototype.enter.call(this)
	}, e.prototype.dispose = function() {
		this.track && this.removeChild(this.track), this.track = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BaseZone);
__reflect(BiQiZone.prototype, "BiQiZone");
var YeZhanBiEndRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("积分榜"), this._windowView
			.height = 727, this._btnClose = this._windowView.close_btn, this._rankView = new YeZhanBiQiRankView, this.addChild(
				this._rankView)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._rankView.refresh()
	}, e.prototype.hide = function() {
		this._rankView.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.removeChild(this._rankView), this._rankView.dispose(), this._rankView = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 527
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 727
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(YeZhanBiEndRankPanel.prototype, "YeZhanBiEndRankPanel");
var YeZhanBiQiAlert = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._view = UIMaker.createViewBase("YeZhanBiQiAlertSkin"), e.addChild(e._view), e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(YeZhanBiQiAlert.prototype, "YeZhanBiQiAlert");
var YeZhanBiQiRankView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._view = UIMaker.createViewBase("YeZhanBiQiRankSkin"), e.addChild(e._view), e._scroll = new VScrollPanel(e._view
			.con.width, e._view.con.height, YeZhanBiQiRankRender), e._view.con.addChild(e._scroll), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._scroll.dispose(), this._scroll = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this)
	}, e.prototype.refresh = function() {
		var t = App.data.getWangZheZBCenter().biqiRank;
		this._view.txt_jifen.text = t.myPoint + "", this._view.txt_rank.text = t.myRank + "", this._scroll.dataProvider = t
			.rankInfo
	}, e.prototype.hide = function() {
		this._scroll.removeAll(), t.prototype.hide.call(this)
	}, e
}(ViewBase);
__reflect(YeZhanBiQiRankView.prototype, "YeZhanBiQiRankView");
var YeZhanBiQiRewardPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("积分榜"), this._windowView
			.height = 727, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"YeZhanBiQiRewardSkin"), this.addChild(this._view), this._rankView = new YeZhanBiQiRankView, this.addChild(this._rankView),
			this._socrll = new VScrollPanel(this._view.con_item.width, this._view.con_item.height, YeZhanBiQIRewardItemRender),
			this._view.con_item.addChild(this._socrll), this._tab = new TabBar([this._view.rank_btn, this._view.reward_btn]),
			this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 5, 33), this._gridLayout.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this._gridLayout.setShowTip(!1), this._gridLayout.moveTo(10, 20, this._view.con_item0)
	}, e.prototype.ceaterReward = function() {
		var t = App.data.activityCenter,
			e = t.getListBean(604);
		this._socrll.dataProvider = e;
		for (var i, n, a = t.getListBean(605), o = (a.length, []), r = 0; r < a.length; r++) n = StringUtil.JsonParse(a[r].bean
				.q_rewards), i = new ItemData, i.itemId = n[0].id, i.count = n[0].num, o.push(i), this._view["txt_jifen" + r].text =
			a[r].bean.q_sort + "积分";
		this._gridLayout.dataProvider = o
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabSelectHandler,
			this, this._tab), this._tab.selectedIndex = 0, this.tabSelectHandler(), this._rankView.show(), this.ceaterReward()
	}, e.prototype.tabSelectHandler = function() {
		switch (this._tab.selectedIndex) {
			case 0:
				this._view.main_group.visible = !0, this._rankView.visible = !1;
				break;
			case 1:
				this._view.main_group.visible = !1, this._rankView.visible = !0, this._rankView.refresh()
		}
	}, e.prototype.hide = function() {
		this._rankView.hide(), t.prototype.hide.call(this), this._tab.clear(), this._socrll.removeAll()
	}, e.prototype.dispose = function() {
		this._rankView.dispose(), this._socrll.dispose(), this._socrll = null, this._gridLayout && (this._gridLayout.dispose(),
			this._gridLayout = null), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 527
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 727
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(YeZhanBiQiRewardPanel.prototype, "YeZhanBiQiRewardPanel");
var YeZhanBiQiTrackPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._actId = 10009, e._currScore = 0, e._view = UIMaker.createViewBase("YeZhanBiQiSkin"), e.addChild(e._view),
			e
	}
	return __extends(e, t), e.prototype.hide = function() {
		App.timer.clearTimer(this.onChangeGroupTime, this), App.timer.clearTimer(this.gonggaoOnTime, this), t.prototype.hide
			.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END,
				this.btnClick, this, this._view.txt_rank), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.scorerewardGridCilck,
				this, this._view.reward_img), this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this),
			this._dispatcher.addEventListener(ActivityEvent.SUCCESS_JOIN, this.onSuccessjoin, this), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.onRefeshAct, this), this._dispatcher.addEventListener(ActivityEvent.BIQINIGHT_FIGHT,
				this.refreshLeft, this), this.refreshRight(), this.refreshLeft(App.data.getWangZheZBCenter().biqiRank),
			ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([this._actId])
	}, e.prototype.onEnterZone = function(t, e) {
		e == EnumZoneType.BIQI_NIGHT && App.panel.removePanel(36)
	}, e.prototype.scorerewardGridCilck = function(t) {
		1 == this._view.red_img.visible ? ActivityCommandSender.sendC2S_JoinActivityMessage(this._currRewardId) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">未达到领取条件</font>")
	}, e.prototype.onRefeshAct = function(t) {
		605 == t ? this.refrshCurrReward() : 1 == t && this.refreshRight()
	}, e.prototype.onSuccessjoin = function(t) {
		t == this._currRewardId && ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([this._currRewardId])
	}, e.prototype.refrshCurrReward = function(t) {
		void 0 === t && (t = 0);
		var e, i = App.data.activityCenter.getList(605, !1),
			n = i.length;
		this._view.red_img.visible = !1;
		for (var a = 0; n > a; a++) {
			if (1 == i[a].playerStates) {
				e = i[a], this._view.red_img.visible = !0;
				break
			}
			if (2 == i[a].playerStates) {
				e = i[a];
				break
			}
		}
		e ? this._view.txt_jifen0.text = this._currScore + "/" + e.bean.q_sort : (e = i[n - 1], this._view.txt_jifen0.text =
			"已经领取全部奖励"), e && (this._currRewardId = e.bean.q_id)
	}, e.prototype.btnClick = function() {
		PanelOpenManager.openPanel(56)
	}, e.prototype.refreshLeft = function(t) {
		if (t) {
			if (t.rankInfo) {
				this._rankList = t.rankInfo;
				for (var e = this._rankList.length, i = 0; 3 > i; i++) e > i ? this._view["txt_ord" + i].text = i + 1 + "." +
					this._rankList[i].playerName + " " + this._rankList[i].point : this._view["txt_ord" + i].text = i + 1 + ".无"
			}
			this._view.txt_jifen.text = "我的积分:" + t.myPoint, this._currScore = t.myPoint, this._currRewardId > 0 ?
				ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([this._currRewardId]) : this.refrshCurrReward(t.myPoint),
				this._view.txt_pm.text = "排名:" + t.myRank
		}
	}, e.prototype.onChangeGroupTime = function(t) {
		this._activityTime = t.spuleTime, this._activityTime <= 0 && (this._activityTime = 0), this._view.txt_time2.text =
			StringUtil.converTime2(this._activityTime), this._activityTime--
	}, e.prototype.gonggaoOnTime = function(t) {
		this._gonggaoTime = t.spuleTime, this._gonggaoTime <= 0 && (this._gonggaoTime = 0), this._view.txt_time1.text =
			StringUtil.converTime2(this._gonggaoTime), this._gonggaoTime--
	}, e.prototype.refreshRight = function() {
		for (var t = App.data.activityCenter.getList(1, !0), e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			if (null != n && 1 == n.bean.q_function_type) {
				var a = StringUtil.JsonParse(n.extendMap);
				return 1 == n.activityStates ? (this.setRoleGroup(null == a.group ? 0 : a.group), this._gonggaoTime = n.finishTime) :
					(this.setRoleGroup(0), this._gonggaoTime = a.force_quit_sec), this._activityTime = a.next_changegroup_sec, App.timer
					.serverTimeEnd(this, this.gonggaoOnTime, this._gonggaoTime), void App.timer.serverTimeEnd(this, this.onChangeGroupTime,
						this._activityTime)
			}
		}
	}, e.prototype.setRoleGroup = function(t) {
		for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++)
			if (0 == t) e[n].group = t;
			else if (0 == e[n].getIsDead()) {
			e[n].group = t;
			break
		}
	}, e
}(ViewBase);
__reflect(YeZhanBiQiTrackPanel.prototype, "YeZhanBiQiTrackPanel");
var NightAttackCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5075, this.onS2C_NightSecurityMessage), this.register(5265, this.onS2C_NightAttackInfoMessage)
	}, e.prototype.onS2C_NightSecurityMessage = function(t) {
		t.nightSecurity, t.nightSecurityCount, App.dispatcher.dispatchEvent(EventType.KILL_COMBO_BITAMAP, t.nightSecurityCount)
	}, e.prototype.onS2C_NightAttackInfoMessage = function(t) {
		App.data.getWangZheZBCenter().biqiRank = t, App.dispatcher.dispatchEvent(ActivityEvent.BIQINIGHT_FIGHT, t)
	}, e
}(BaseConnectionRegister);
__reflect(NightAttackCommandRegister.prototype, "NightAttackCommandRegister");
var YeZhanBiQiRankRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "YeZhanBiQiRankRenderSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function() {
		var t = this.data;
		this.txt_name.text = t.playerName, this.txt_jifen.text = t.point + "", this.itemIndex < 3 ? (this.img_rank.visible = !
			0, this.txt_rank.visible = !1, this.img_rank.source = "yezhanbiqi_rank" + (this.itemIndex + 1) + "_png_png") : (
			this.img_rank.visible = !1, this.txt_rank.visible = !0, this.txt_rank.text = this.itemIndex + 1 + "")
	}, e
}(ItemRenderer);
__reflect(YeZhanBiQiRankRender.prototype, "YeZhanBiQiRankRender");
var YeZhanBiQIRewardItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "YeZhanBiQiRewardItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._gridLayout || (this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 5, 24), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(0, 0, this.con))
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		t ? this.txt_rank.text = t.bean.q_info : this.itemIndex < 3 ? this.txt_rank.text = "第" + (this.itemIndex + 1) + "名" :
			this.txt_rank.text = "第4-10名";
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		this._gridLayout.dataProvider = e
	}, e
}(ItemRenderer);
__reflect(YeZhanBiQIRewardItemRender.prototype, "YeZhanBiQIRewardItemRender");
var MineCenter = function() {
	function t() {
		this.miningNum = 3, this._maxMiningtimes = 3, this._maxRobtimes = 5, this.minerZoneID = 3600, this._mineFightMapid =
			0, this.minerColorArr = [4109873, 12935392, 14705664, 14693428], this.robLogList = [], this._isInMine = !1
	}
	return t.prototype.showRed = function() {
		return App.global.funcOpen.isFunctionOpen(77) && (this.miningNum > 0 && 0 == this.isMining() || void 0 != App.data.minecenter
			.miningEndInfo && 0 != App.data.minecenter.miningEndInfo.mineId) ? !0 : !1
	}, t.prototype.loadMyMineInfo = function(t) {
		if (void 0 != t.miningNum) {
			t.layer > 0 && (this.layerNum = t.layer, this.miningNum = t.miningNum, this.robNum = t.robNum, this.miningEndInfo =
				t.miningEndInfo, void 0 != t.miningEndInfo && 0 != t.miningEndInfo.mineId && App.dispatcher.dispatchEvent(
					MineEvent.MINE_MINING_END, this.miningEndInfo)), this.loadMiningInfoList(t.miningInfoList), App.dispatcher.dispatchEvent(
				MineEvent.MINE_ENTER_MESSAGE);
			for (var e, i = this.enterMinelist.length, n = App.global.characterData.personId, a = 0; i > a; a++) n == LongUtil
				.toString(this.enterMinelist[a].playerId) && (e = this.enterMinelist[a]);
			e && (this.miningInfo = e, App.dispatcher.dispatchEvent(MineEvent.MINING_NOW, e)), App.data.getWangZheZBCenter().refreshRed(
				wfid.miner)
		}
	}, t.prototype.loadMiningInfoList = function(t) {
		void 0 === t && (t = []), this.enterMinelist = [];
		for (var e = t.length, i = 0; e > i; i++) this.enterMinelist.push(t[i]);
		this.enterMinelist.sort(this.sortFunc)
	}, t.prototype.loadMineMessage = function(t) {
		this._mineInfo || (this._mineInfo = new Object), this._mineInfo.mineId = t.mineId, this._mineInfo.upTime = t.upTime,
			this._mineInfo.luckValue = t.luckValue, App.dispatcher.dispatchEvent(MineEvent.MINE_SOURCE_MESSAGE, this._mineInfo)
	}, t.prototype.refreshMineSource = function(t) {
		this._mineInfo.mineId = t.mineId, this._mineInfo.upTime = t.upTime, this._mineInfo.luckValue = t.luckValue, App.dispatcher
			.dispatchEvent(MineEvent.MINE_SOURCE_MESSAGE, this._mineInfo)
	}, Object.defineProperty(t.prototype, "mineInfo", {
		get: function() {
			return this._mineInfo || (this._mineInfo = new Object, this._mineInfo.mineId = 0, this._mineInfo.upTime = 0,
				this._mineInfo.luckValue = 0), this._mineInfo
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "mineList", {
		get: function() {
			return App.config.q_miningContainer.list
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "maxMiningtimes", {
		get: function() {
			return this._maxMiningtimes
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "maxRobtimes", {
		get: function() {
			return this._maxRobtimes
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.isFreeUpquilty = function() {
		var t = App.config.q_miningContainer.getDataBean(this._mineInfo.mineId).q_free_up;
		return this._mineInfo.upTime >= t ? !1 : !0
	}, t.prototype.isCanMining = function() {
		return this.miningNum > 0 && 0 == this.isMining() ? !0 : !1
	}, t.prototype.isCanRob = function() {
		return this.robNum > 0 ? !0 : !1
	}, t.prototype.getMineIndex = function() {
		var t = 0;
		return t = 101 == this._mineInfo.mineId ? 0 : 102 == this._mineInfo.mineId ? 1 : 103 == this._mineInfo.mineId ? 2 :
			104 == this._mineInfo.mineId ? 3 : 4
	}, t.prototype.startMiningInfo = function(t) {
		this.miningNum = t.miningNum, this.robNum = t.robNum, App.dispatcher.dispatchEvent(MineEvent.MINE_ENTER_MESSAGE),
			App.dispatcher.dispatchEvent(MineEvent.MINING_NOW, t.miningInfo), App.data.getWangZheZBCenter().refreshRed(wfid.miner)
	}, t.prototype.getReward = function(t) {
		return App.dispatcher.dispatchEvent(MineEvent.MINE_GETREWARD_RESULT, t), 0 == t ? void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">领取失败,请稍后再试！</font>") : (this.miningEndInfo = void 0, void(this.miningInfo =
			void 0))
	}, t.prototype.isMining = function() {
		return this.miningInfo ? !0 : !1
	}, t.prototype.getConsumeToClearTime = function() {
		var t = GameUtil.getGlobalConfigData(230);
		return t.q_int_value
	}, t.prototype.getMineNameByMineId = function(t) {
		return App.config.q_miningContainer.getDataBean(t).q_mining_name
	}, t.prototype.sortFunc = function(t, e) {
		return t.remainTime > e.remainTime ? -1 : t.remainTime == e.remainTime && t.mineId > e.mineId ? -1 : 1
	}, Object.defineProperty(t.prototype, "mineFightMapId", {
		get: function() {
			if (0 != this._mineFightMapid) return this._mineFightMapid;
			var t = GameUtil.getZoneBean(this.minerZoneID);
			if (t) {
				var e = t.q_mapid,
					i = StringUtil.JsonParse(e);
				this._mineFightMapid = i[0]
			}
			return this._mineFightMapid
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.isInMine = function(t) {
		return void 0 === t && (t = !0), t && this._isInMine && Notice.showMousePosMessage("此地图不能进行此操作"), this._isInMine
	}, t.prototype.setInMine = function(t) {
		this._isInMine = t
	}, t.prototype.getRewardListByIdAndType = function(t, e) {
		void 0 === t && (t = 1), void 0 === e && (e = 101), this._rewardList = [];
		var i, n = App.config.q_miningContainer.getDataBean(e);
		if (1 == t)
			for (var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n.q_plunder_reward)), o = a.length, r = 0; o > r; r++) i =
				new ItemData, i.itemId = a[r].id, i.count = a[r].num, this._rewardList.push(i);
		else
			for (var a = StringUtil.JsonParse(StringUtil.replacJosnStr(n.q_plunder_double)), s = a.length, r = 0; s > r; r++) i =
				new ItemData, i.itemId = a[r].id, i.count = a[r].num, this._rewardList.push(i);
		return this._rewardList
	}, t
}();
__reflect(MineCenter.prototype, "MineCenter");
var MineEvent = function() {
	function t() {}
	return t.MINE_ENTER_MESSAGE = "mine_enter_message", t.MINE_SOURCE_MESSAGE = "mine_source_message", t.MINE_ROBLOGLIST =
		"mine_robloglist", t.MINE_MINING_END = "mine_mining_end", t.MINE_GETREWARD_RESULT = "mine_getreward_result", t.MINING_NOW =
		"mining_now", t.MINE_FIGHT_RESULT = "mine_fight_result", t.MINE_OTHERMINE_INFO = "mine_othermine_info", t.MINE_OTHER_STATE =
		"MINE_OTHER_STATE", t.WANGZHECHANGE = "WANGZHECHANGE", t.MINER_SLAVE_REFRESH = "MINER_SLAVE_REFRESH", t
}();
__reflect(MineEvent.prototype, "MineEvent");
var MinerFightLogsPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._window.setTitle("捣乱记录"), this._window.setHeight(
			492), this._btnClose = this._window.close_btn, this._listPanel = new VScrollPanel(510, 430, MinerFightLogRender,
			2), this._listPanel.move(10, 52), this._window.viewContainer.addChild(this._listPanel)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(MineEvent.MINE_ROBLOGLIST,
			this.refresh, this), MineCommandSender.sendC2S_GetBeRobLogMessage()
	}, e.prototype.refresh = function() {
		this._listPanel.dataProvider = App.data.minecenter.robLogList
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._listPanel.dispose(), this._listPanel = null, t.prototype.dispose
			.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 450
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MinerFightLogsPanel.prototype, "MinerFightLogsPanel");
var MinerFightPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerFightSkin"), this._window = new WindowSecond, this.addChild(this._window),
			this._window.setTitle("复仇"), this._window.setHeight(542), this._btnClose = this._window.close_btn, this._window.viewContainer
			.addChild(this._view), this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 2, 66, 60), this._gridLayout
			.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this
			._gridLayout.moveTo(170, 230, this._view)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addEvent(), this.refresh(e)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.revenge_btn), this._dispatcher
			.addEventListener(PlayerAttributeEvent.CHECK_OTHER_PALYERINFO_BACK, this.onShowRoleHead, this)
	}, e.prototype.onShowRoleHead = function(t) {
		this._view.rolehead.source = GridUtil.getHead(t.job, t.sex)
	}, e.prototype.refresh = function(t) {
		App.data.characterCenter.checkPlayer(t.destPlayerId, 1, !1), this._revengeId = t.destPlayerId, this._view.name_txt.text =
			t.playerName, this._view.power_txt.text = t.fightPower + "", this._view.time_txt.text = StringUtil.format(new Date(
				Number(App.data.minecenter.clickRobtime))), this._gridLayout.dataProvider = App.data.minecenter.getRewardListByIdAndType(
				App.data.minecenter.clickNowType, App.data.minecenter.clickNowMineId)
	}, e.prototype.onClick = function(t) {
		App.data.minecenter.isCanRob && (MineCommandSender.sendC2S_RevengeMineMessage(this._revengeId, App.data.minecenter.clickRobtime),
			App.panel.removePanel(75))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._gridLayout.dispose(), this._gridLayout = null, t.prototype.dispose
			.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 520
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 500
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MinerFightPanel.prototype, "MinerFightPanel");
var MinerGetRewardPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerGetRewardSkin"), this._window = new WindowSecond, this.addChild(this._window),
			this._window.setTitle("领取奖励"), this._window.setHeight(492), this._btnClose = this._window.close_btn, this._window.viewContainer
			.addChild(this._view)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addEvent(), this.refresh(App.data.minecenter.miningEndInfo)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.one_btn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.two_btn), this._dispatcher.addEventListener(
				MineEvent.MINE_GETREWARD_RESULT, this.backFunc, this)
	}, e.prototype.getMineIndex = function(t) {
		return 101 == t ? 2 : 102 == t ? 3 : 103 == t ? 4 : 104 == t ? 5 : 2
	}, e.prototype.refresh = function(t) {
		void 0 === t && (t = null);
		var e = App.config.q_miningContainer.getDataBean(t.mineId);
		this._view.miner_img.source = "digore_icon_15" + this.getMineIndex(t.mineId) + "_png";
		for (var i = StringUtil.JsonParse(StringUtil.replacJosnStr(e.q_reward)), n = (StringUtil.JsonParse(StringUtil.replacJosnStr(
				e.q_plunder)), i.length), a = "", o = 0; n > o; o++) {
			var r = "<font color='#F9C329'>" + ItemUtil.getItemName(i[o].id) + "x" + i[o].num + "</font>";
			0 == o && t.beRobNum > 0 && (r += "<font color='#ff0000'>              -" + t.beRobNum + "</font>"), a = a + r +
				"\n"
		}
		this._view.reward_txt.textFlow = HtmlUtil.getHtmlStr(a), this._view.name_txt.text = e.q_mining_name, n = t.robLogList
			.length, a = "";
		for (var s = 0; n > s; s++) a = a + "<font color='#ff0000'>" + t.robLogList[s].robName + "</font>捣乱了您的" + App.config
			.q_miningContainer.getDataBean(t.robLogList[s].mineId).q_mining_name + (0 == t.robLogList[s].revenge ?
				"<font color='#00cc00'>失败</font>\n" : "<font color='#ff0000'>成功</font>\n");
		this._view.log_txt.textFlow = HtmlUtil.getHtmlStr(a), this._view.needitem_txt.text = e.q_yuanbao + ""
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.one_btn:
				MineCommandSender.sendC2S_GetMiningRewardMessage(1);
				break;
			case this._view.two_btn:
				MineCommandSender.sendC2S_GetMiningRewardMessage(2)
		}
	}, e.prototype.backFunc = function(t) {
		1 == t && App.panel.removePanel(76)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 520
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 500
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MinerGetRewardPanel.prototype, "MinerGetRewardPanel");
var MinerOthersPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerOthersPanelSkin"), this._window = new WindowSecond, this.addChild(this._window),
			this._window.setTitle("捣乱"), this._window.setHeight(492), this._btnClose = this._window.close_btn, this._window.viewContainer
			.addChild(this._view), this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 2, 66, 60), this._gridLayout
			.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this
			._gridLayout.moveTo(120, 70, this._view), this._view.canslave_txt.visible = !1
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addEvent(), this.refresh(e);
		var i = App.data.minecenter.getRewardListByIdAndType(1, App.data.minecenter.clickNowMineId);
		this._gridLayout.dataProvider = i
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.do_btn)
	}, e.prototype.refresh = function(t) {
		this._robId = t.destPlayerId, this._view.name_txt.text = t.playerName, this._view.power_txt.text = t.fightPower +
			"", this._view.guild_txt.text = t.guildName ? t.guildName : "无", this._view.remainTimes_txt.text = "我的剩余捣乱次数: " +
			App.data.minecenter.robNum + " / " + App.data.minecenter.maxRobtimes
	}, e.prototype.onClick = function(t) {
		MineCommandSender.sendC2S_RobPlayerMineMessage(this._robId), App.panel.removePanel(78)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._gridLayout.dispose(), this._gridLayout = null, t.prototype.dispose
			.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 450
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MinerOthersPanel.prototype, "MinerOthersPanel");
var MinerSelectPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerSelectPanelSkin"), this.window = new WindowMain, this.addChild(this.window),
			this._btnClose = this.window.close_btn, this.window.imgBottom.visible = !1, this.window.imgTitle.source =
			"titleview_guyongkuanggong_png", this.window.showRoleList(!1), this.window.showFightPower(!1), this.window.viewContainer
			.addChild(this._view), this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 2, 66, 73), this._gridLayout
			.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this
			._gridLayout.moveTo(210, 105, this._view), this._view.item_group.visible = !1, this._view.auto_cheakbox.selected = !
			1;
		for (var t, e, i, n, a = this.minecenter.mineList, o = [], r = 0; 4 > r; r++) {
			t = this._view["minerName_txt" + r], t.text = a[r].q_mining_name, i = StringUtil.JsonParse(StringUtil.replacJosnStr(
				a[r].q_reward)), n = i.length;
			for (var s = 0; n > s; s++) e = new ItemData, e.itemId = i[s].id, e.count = i[s].num, 3 == r && 2 == s ? (this._itemGrid ||
				(this._itemGrid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL)), this._itemGrid.setData(e), this._itemGrid
				.x = 27, this._itemGrid.y = 26, this._view.item_group.addChild(this._itemGrid), this._view.item_group.visible = !
				0) : o.push(e)
		}
		this._gridLayout.dataProvider = o
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.window.show(), this.addEvent(), MineCommandSender.sendC2S_MineSourceMessage(),
			this.refresh()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.auto_cheakbox), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.up_btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.do_btn), this._dispatcher.addEventListener(MineEvent.MINE_ENTER_MESSAGE,
				this.updateInfo, this), this._dispatcher.addEventListener(MineEvent.MINE_SOURCE_MESSAGE, this.refresh, this)
	}, e.prototype.updateInfo = function() {
		var t = this.minecenter.miningNum;
		this._view.times_txt.text = "今日修炼次数：" + t + " / " + this.minecenter.maxMiningtimes
	}, e.prototype.refresh = function() {
		this.updateInfo();
		var t = this.minecenter.mineInfo;
		if (t) {
			var i = this.minecenter.getMineIndex();
			this._view.selected_img.y = 150 * i + 65;
			var n = App.config.q_miningContainer.getDataBean(t.mineId),
				a = n.q_blessnum_limit;
			if (0 == a ? this._view.bar_img.visible = !1 : this._view.bar_img.visible = !0, this._view.progress_num.text = t.luckValue +
				" / " + a, this._view.bar_img.width = t.luckValue / a * e.WIDTH, "" == n.q_levelup_consume) this._view.needItem_group
				.visible = !1;
			else if (this._view.needItem_group.visible = !0, this.minecenter.isFreeUpquilty()) this._view.money_txt.text =
				"消耗:0", this._view.money_txt0.text = "消耗:0";
			else {
				var o = StringUtil.JsonParse(StringUtil.replacJosnStr(n.q_levelup_consume))[0].num,
					r = StringUtil.JsonParse(StringUtil.replacJosnStr(n.q_item_consume))[0].num;
				this._curMoney = Number(o), this._view.money_txt.text = "消耗:" + o, this._view.money_txt0.text = "消耗:" + r
			}
			0 == App.config.q_miningContainer.getDataBean(this.minecenter.mineInfo.mineId).q_id_next ? this._view.progress_num
				.visible = !1 : this._view.progress_num.visible = !0
		}
	}, e.prototype.onClick = function(t) {
		if (void 0 != this.minecenter.miningInfo || null != this.minecenter.miningInfo) return void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">您的法身正在努力修炼中,请稍作等待~</font>");
		switch (t.currentTarget) {
			case this._view.up_btn:
				if (0 == App.config.q_miningContainer.getDataBean(this.minecenter.mineInfo.mineId).q_id_next) return void Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">已提升至顶级法身！</font>");
				App.data.currencyDataCenter.isMoneyEnough(Number(this._curMoney), EnumMoney.YUAN_BAO, !1) && (1 == this._view.auto_cheakbox
					.selected ? MineCommandSender.sendC2S_UpQualityMessage(1) : MineCommandSender.sendC2S_UpQualityMessage(0));
				break;
			case this._view.do_btn:
				if (this.minecenter.isCanMining) {
					var e = "<font color=#f8f3b7>每日修炼次数有限,确认不修炼真仙?</font></br><font color=#ff0000>真仙不会被掠夺</font>";
					Alert.show(e, "提示", Alert.DEFAULT_BTN_LABEL, this.onStartMining, this, null, !0)
				}
				break;
			case this._view.auto_cheakbox:
		}
	}, e.prototype.onStartMining = function(t) {
		MineCommandSender.sendC2S_StartMiningMessage(), App.panel.removePanel(74)
	}, Object.defineProperty(e.prototype, "minecenter", {
		get: function() {
			return App.data.minecenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this._curMoney = 0, this.window.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.window.dispose(), this.window = null, this._itemGrid && (this._itemGrid.dispose(), this._itemGrid = null),
			this._gridLayout.dispose(), this._gridLayout = null, t.prototype.dispose.call(this)
	}, e.WIDTH = 460, e
}(BasePanel);
__reflect(MinerSelectPanel.prototype, "MinerSelectPanel");
var MinerSlavePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerSlaveSkin"), this.window = new WindowMain, this.addChild(this.window),
			this._btnClose = this.window.close_btn, this.window.imgBottom.visible = !1, this.window.imgTitle.source =
			"titleview_guyongkuanggong_png", this.window.showRoleList(!1), this.window.showFightPower(!1), this.window.viewContainer
			.addChild(this._view), this._bg = new CImage, this._bg.x = 11, this._bg.y = 119, this._view.addChildAt(this._bg, 1)
	}, e.prototype.hide = function() {
		this.window.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.onReleaseTimer, this), App.timer.clearTimer(this.onMinerTimer, this), this.window.dispose(),
			this.window = null, this._bg.dispose(), this._bg = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.window.show(), MineCommandSender.sendC2S_SlaveInfoMessage(),
			this.addEvent(), this.refresh()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.fight_btn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.help_btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.btn_flog), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this._view.btn_release), this._dispatcher.addEventListener(MineEvent.MINER_SLAVE_REFRESH,
				this.refresh, this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.fight_btn:
				MineCommandSender.sendC2S_SlaveFightMessage();
				break;
			case this._view.help_btn:
				App.data.guildCenter.hasGuild() ? MineCommandSender.sendC2S_SlaveHelpMessage() : Notice.showMousePosMessage(
					"<font color=" + Notice.MIDDLE_COLOR_2 + ">加入帮会方可请求支援！</font>");
				break;
			case this._view.btn_flog:
				Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">今日已无鞭笞次数</font>");
				break;
			case this._view.btn_release:
				Alert.show("你要释放", "提示", "确定|取消", this.onAlert, this)
		}
	}, e.prototype.onAlert = function(t) {
		MineCommandSender.sendC2S_SlaveReleaseMessage()
	}, e.prototype.onReleaseTimer = function(t) {
		t.spuleTime > 0 ? this._view.release_txt.text = StringUtil.convertTime(t.spuleTime) : (this._view.release_txt.text =
			"00:00:00", App.timer.clearTimer(this.onReleaseTimer, this))
	}, e.prototype.onMinerTimer = function(t) {
		t.spuleTime > 0 ? this._view.time_txt.text = "剩余时间：" + StringUtil.convertTime(t.spuleTime) : (this._view.time_txt.text =
			"剩余时间：00:00:00", App.timer.clearTimer(this.onMinerTimer, this))
	}, e.prototype.refresh = function() {
		var t = !1;
		this._view.group_myState0.visible = t, this._view.group_myState1.visible = !t, t ? (this._view.noSlave_txt.text =
				"你被抓了！无法抓捕其他人", this._view.minerstate_txt.text = "停止挖矿", this._view.noSlave_txt.textColor = this._view.minerstate_txt
				.textColor = 15938099, this._view.ownername_txt.text = "你的主人：", this._view.release_txt.text = "00:00:00", App.timer
				.serverTimeEnd(this, this.onReleaseTimer, 1e3)) : (this._view.noSlave_txt.text = "捣乱成功后自动抓捕法身！", this._view.minerstate_txt
				.text = "挖矿中...", this._view.noSlave_txt.textColor = this._view.minerstate_txt.textColor = 2863402, this._view.des_txt
				.text = ""), this._view.reward_txt.text = "0", this._view.speed_txt.text = "0/h", this._view.time_txt.text =
			"剩余时间：00:00:00";
		var e = !1;
		this._view.group_miner.visible = e, this._view.group_no.visible = !e, e && (this._view.minerName_txt.text = "",
			this._view.playerName_txt.text = "", this._view.flognum_txt.text = "鞭笞次数：/", t || (this._view.reward_txt.text =
				"0", this._view.speed_txt.text = "0/h", this._view.time_txt.text = "剩余时间：00:00:00", App.timer.serverTimeEnd(this,
					this.onMinerTimer, 1e3)))
	}, e
}(BasePanel);
__reflect(MinerSlavePanel.prototype, "MinerSlavePanel");
var MinerZoneTrackPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentPage = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MinerZoneTrackSkin"), this.addChild(this._view), this.createMineSmall(), this._view
			.finish_btn.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>快速完成</u></font>")
	}, e.prototype.resize = function(t) {
		this._view.group_resize.x = Config.SCREEN_WIDTH - 640, this._view.mining_group.x = Config.SCREEN_WIDTH - this._view
			.mining_group.width >> 1
	}, e.prototype.exit = function() {
		this._transEffect && (this._transEffect.dispose(), this._transEffect = null), this.hideMining();
		for (var e = 0; 10 > e; e++) this._viewList[e] && (this._viewList[e].dispose(), this._viewList[e] = null);
		this._viewList = null, App.global.characterData.crossDressing(null), t.prototype.exit.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), (!this._viewList || this._viewList.length <= 0) && this.createMineSmall(), App.panel.removePanel(
				36), MineCommandSender.sendC2S_EnterMineMessage(0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.do_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.record_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.finish_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.last_txt), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.next_txt),
			this._dispatcher.addEventListener(MineEvent.MINE_ENTER_MESSAGE, this.refresh, this), this._dispatcher.addEventListener(
				MineEvent.MINING_NOW, this.showMining, this), this._dispatcher.addEventListener(MineEvent.MINE_OTHERMINE_INFO,
				this.showInfoView, this), this._dispatcher.addEventListener(MineEvent.MINE_OTHER_STATE, this.mineOtherState, this),
			this._dispatcher.addEventListener(MineEvent.MINE_FIGHT_RESULT, this.onShowOrHide, this), this._dispatcher.addEventListener(
				MineEvent.MINE_MINING_END, this.openMiningEndPanel, this), this._view.mining_group.visible = !1, this.resize()
	}, e.prototype.mineOtherState = function(t) {
		t && this._viewList && (this._viewList[t.pos].show(t), 0 == this.visible && (this._viewList[t.pos].visible = !1))
	}, e.prototype.onShowOrHide = function(t) {
		var e = (App.data.minecenter, App.data.minecenter.enterMinelist.length);
		if (-100 == t) {
			if (this.fightHide(), this.visible = !1, this._viewList)
				for (var i = 0; e > i; i++) this._viewList[i] && (this._viewList[i].visible = !1)
		} else {
			if (this.visible = !0, this._viewList)
				for (var i = 0; e > i; i++) this._viewList[i] && (this._viewList[i].visible = !0);
			MineCommandSender.sendC2S_EnterMineMessage()
		}
	}, e.prototype.createMineSmall = function() {
		var t, e = StringUtil.JsonParse(GameUtil.getGlobalConfigData(255).q_string_value),
			i = e.length;
		this._viewList = [];
		for (var n = 0; i > n; n++) t = new MineSmallMiningView, this._viewList.push(t), t.x = e[n].x - 75, t.y = e[n].y -
			215, App.layer.sceneLayer.guideLayer.addChild(t)
	}, e.prototype.fightHide = function() {
		App.global.mapModule.mapDummyModel.clear();
		for (var t = 0; t < this._viewList.length; t++) this._viewList[t].hide()
	}, e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.refresh = function() {
		var t = App.data.minecenter,
			e = t.enterMinelist;
		this._view.minernum_txt.text = "修炼次数:" + t.miningNum + "/" + t.maxMiningtimes, this._view.fightnum_txt.text =
			"捣乱次数:" + t.robNum + "/" + t.maxRobtimes, this._view.zonename_txt.text = "修仙洞府" + t.layerNum + "层", this._view.worker_num
			.text = "人数：" + e.length + "人", t.miningNum >= t.maxMiningtimes && this.guide.show("点击修炼", Guide.RIGHT, this.width -
				310, this._view.do_btn.y + 45, this), this.fightHide();
		for (var i = StringUtil.JsonParse(GameUtil.getGlobalConfigData(255).q_string_value), n = e.length, a = new Object,
				o = 0; n > o; o++) a.playerName = "", a.weaponId = "0", a.bodyResStr = App.config.q_miningContainer.getDataBean(e[
				o].mineId).q_map_show, a.bodyId = "0", a.sex = 1, a.mapX = i[e[o].pos].x, a.mapY = i[e[o].pos].y, a.actionType =
			AvatarActionType.ACTION_TYPE_DREDGE, a.dir = i[e[o].pos].dir, a.playerId = e[o].playerId, this._viewList[e[o].pos]
			.show(e[o]), App.global.mapModule.mapDummyModel.createDummy(a);
		this._view.red_img0.visible = t.showRed()
	}, e.prototype.openMiningEndPanel = function(t) {
		void 0 === t && (t = null), this.hideMining(), App.panel.isShowing(76) || App.panel.openPanel(76, t)
	}, e.prototype.showMining = function(t) {
		this._view.info_txt.text = "修炼中", this._time1 = t.remainTime, this._time1 > 0 && (App.timer.serverTimeEndCount(this,
				this.onTimerHandler, this._time1), this.onTimer(t.remainTime), this._view.mining_group.visible = !0), this._view.red_img0
			.visible = !1
	}, e.prototype.onTimerHandler = function(t) {
		t.spuleTime > 0 && this.onTimer(t.spuleTime)
	}, e.prototype.onTimer = function(t) {
		this._time1 = t, this._time1 <= 0 ? (App.timer.clearTimer(this.onTimerHandler, this), this.hideMining(),
			MineCommandSender.sendC2S_EnterMineMessage()) : (this._view.miningTime_txt.text = "(" + StringUtil.convertTime5(
			this._time1) + ")", this._time1--)
	}, e.prototype.showInfoView = function(t) {
		1 != App.data.minecenter.clickNowType ? App.panel.isShowing(75) || App.panel.openPanel(75, t) : App.panel.isShowing(
			78) || App.panel.openPanel(78, t)
	}, e.prototype.hideMining = function() {
		this._view.mining_group.visible = !1, App.timer.clearTimer(this.onTimerHandler, this)
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.do_btn:
				if (this.hideGuide(), void 0 != App.data.minecenter.miningEndInfo && 0 != App.data.minecenter.miningEndInfo.mineId)
					return void App.panel.openPanel(76);
				if (App.data.minecenter.isMining()) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">您的法身正在努力修炼中！</font>");
				App.data.minecenter.isCanMining() ? App.panel.openPanel(74) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">修炼次数不足！</font>");
				break;
			case this._view.record_btn:
				App.panel.isShowing(77) || App.panel.openPanel(77);
				break;
			case this._view.finish_btn:
				var e = App.data.minecenter.getConsumeToClearTime(),
					i = e * Math.floor(this._time1 / 60 + 1),
					n = "消耗" + i + "元宝清除冷却时间？";
				Alert.show(n, "提示", "确定|取消", this.okFunc1, this, [i]);
				break;
			case this._view.last_txt:
				0 == App.data.minecenter.layerNum ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">已没有上一层</font>") : this.moveToPoint(1);
				break;
			case this._view.next_txt:
				App.data.minecenter.enterMinelist.length < 8 ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">当前洞府还有修炼位置，不能前往下一层</font>") : 10 == App.data.minecenter.layerNum ? Notice.showMousePosMessage("<font color=" +
					Notice.MIDDLE_COLOR_2 + ">已没有下一层了</font>") : this.moveToPoint(0)
		}
	}, e.prototype.moveToPoint = function(t) {
		this.onEnterFrame(t)
	}, e.prototype.onEnterFrame = function(t) {
		MineCommandSender.sendC2S_EnterMineMessage(t)
	}, e.prototype.makeTransEffect = function(t, e) {
		this._transEffect && (this._transEffect.dispose(), this._transEffect = null);
		var i = ResPathUtil.getMenuEffect("chuansong", "chuansongmen");
		this._transEffect = App.global.mapModule.mapEffectModel.creatEffect(i, t, e)
	}, e.prototype.okFunc1 = function(t) {
		App.data.currencyDataCenter.isMoneyEnough(t[0], EnumMoney.YUAN_BAO, !1) && MineCommandSender.sendC2S_SpeedUpMiningMessage()
	}, e
}(BaseZone);
__reflect(MinerZoneTrackPanel.prototype, "MinerZoneTrackPanel");
var MineCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5451, this.onS2C_EnterMineMessage), this.register(5452, this.onS2C_MineSourceMessage), this.register(
				5458, this.onS2C_GetMiningRewardMessage), this.register(5460, this.onS2C_SpeedUpMiningMessage), this.register(
				5459, this.onS2C_StartMiningMessage), this.register(5461, this.onS2C_GetBeRobLogMessage), this.register(5457,
				this.onS2C_UpQualityMessage), this.register(5464, this.onS2C_MineFightResultMessage), this.register(5463, this.onS2C_PvpFightInfoMessage),
			this.register(5462, this.onS2C_ViewMinePlayerInfoMessage), this.register(5566, this.onS2C_MineInfoChangeMessage)
	}, e.prototype.onS2C_MineInfoChangeMessage = function(t) {
		App.dispatcher.dispatchEvent(MineEvent.MINE_OTHER_STATE, t.mininfo)
	}, e.prototype.onS2C_EnterMineMessage = function(t) {
		App.data.minecenter.loadMyMineInfo(t), App.dispatcher.dispatchEvent(MainViewNotification.Event_MinerTips)
	}, e.prototype.onS2C_MineSourceMessage = function(t) {
		App.data.minecenter.loadMineMessage(t)
	}, e.prototype.onS2C_GetMiningRewardMessage = function(t) {
		App.data.minecenter.getReward(t.result), MineCommandSender.sendC2S_EnterMineMessage()
	}, e.prototype.onS2C_SpeedUpMiningMessage = function(t) {
		App.data.minecenter.miningEndInfo = t.miningEndInfo, App.data.getWangZheZBCenter().refreshRed(wfid.miner), App.dispatcher
			.dispatchEvent(MineEvent.MINE_MINING_END, t.miningEndInfo)
	}, e.prototype.onS2C_StartMiningMessage = function(t) {
		App.data.minecenter.startMiningInfo(t), MineCommandSender.sendC2S_EnterMineMessage()
	}, e.prototype.onS2C_GetBeRobLogMessage = function(t) {
		App.data.minecenter.robLogList = t.robLogList, App.dispatcher.dispatchEvent(MineEvent.MINE_ROBLOGLIST)
	}, e.prototype.onS2C_UpQualityMessage = function(t) {
		App.data.minecenter.refreshMineSource(t)
	}, e.prototype.onS2C_PvpFightInfoMessage = function(t) {
		App.data.minecenter.fightData = t, App.data.minecenter.monsterList = new Array, App.data.minecenter.monsterList = t
			.myFighterList.concat(t.destFighterList)
	}, e.prototype.onS2C_MineFightResultMessage = function(t) {
		var e = (t.type, t.result);
		t.mineId;
		App.dispatcher.dispatchEvent(MineEvent.MINE_FIGHT_RESULT, e);
		var i = 1 == t.result ? !0 : !1;
		PanelOpenManager.openZoneFinishPanel(App.data.minecenter.minerZoneID, App.data.minecenter.getRewardListByIdAndType(
			t.type, t.mineId), !i), MineCommandSender.sendC2S_GetBeRobLogMessage(), App.data.getWangZheZBCenter().clear()
	}, e.prototype.onS2C_ViewMinePlayerInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(MineEvent.MINE_OTHERMINE_INFO, t)
	}, e
}(BaseConnectionRegister);
__reflect(MineCommandRegister.prototype, "MineCommandRegister");
var MineCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_EnterMineMessage = function(t) {
			void 0 === t && (t = 2);
			var e = this.createCmd(16383);
			e.type = t, this.sendCommand(e)
		}, e.sendC2S_MineSourceMessage = function() {
			var t = this.createCmd(16384);
			this.sendCommand(t)
		}, e.sendC2S_StartMiningMessage = function() {
			var t = this.createCmd(16391);
			this.sendCommand(t)
		}, e.sendC2S_SpeedUpMiningMessage = function() {
			var t = this.createCmd(16389);
			this.sendCommand(t)
		}, e.sendC2S_GetMiningRewardMessage = function(t) {
			var e = this.createCmd(16392);
			e.type = t, this.sendCommand(e)
		}, e.sendC2S_UpQualityMessage = function(t) {
			var e = this.createCmd(16390);
			e.type = t, this.sendCommand(e)
		}, e.sendC2S_GetBeRobLogMessage = function() {
			var t = this.createCmd(16393);
			this.sendCommand(t)
		}, e.sendC2S_RobPlayerMineMessage = function(t) {
			void 0 === t && (t = null);
			var e = this.createCmd(16394);
			e.destPlayerId = t, this.sendCommand(e)
		}, e.sendC2S_ViewMinePlayerInfoMessage = function(t, e) {
			void 0 === e && (e = 1);
			var i = this.createCmd(16395);
			i.destPlayerId = t, i.type = e, this.sendCommand(i)
		}, e.sendC2S_RevengeMineMessage = function(t, e) {
			var i = this.createCmd(16396);
			i.destPlayerId = t, i.robTime = LongUtil.fromNumber(e), this.sendCommand(i)
		}, e.sendC2S_SlaveInfoMessage = function() {}, e.sendC2S_SlaveFlogMessage = function() {}, e.sendC2S_SlaveReleaseMessage =
		function() {}, e.sendC2S_SlaveHelpMessage = function() {}, e.sendC2S_SlaveFightMessage = function() {}, e
}(BaseConnectionSender);
__reflect(MineCommandSender.prototype, "MineCommandSender");
var MinerFightLogRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "MinerFightLogRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.fight_txt)
	}, e.prototype.dataChanged = function() {
		this._robInfo = this.data;
		var t = this.data.robGuildName ? this.data.robGuildName + "的" : "",
			e = this.data.robName,
			i = App.config.q_miningContainer.getDataBean(this.data.mineId).q_mining_name,
			n = "";
		n = 4 == this._robInfo.revenge || 5 == this._robInfo.revenge ? "我捣乱<font color='#F9C329'>" + t +
			"</font><font color='#ff0000'>" + e + "</font>的<font color='#F9C329'>" + i + "</font>" + (0 == this.data.revenge ?
				"<font color='#00cc00'>失败</font>" : "<font color='#ff0000'>成功</font>") : "<font color='#F9C329'>" + t +
			"</font><font color='#ff0000'>" + e + "</font>捣乱我的<font color='#F9C329'>" + i + "</font>" + (0 == this.data.revenge ?
				"<font color='#00cc00'>失败</font>" : "<font color='#ff0000'>成功</font>"), this.log_txt.textFlow = HtmlUtil.getHtmlStr(
				n), this.fight_txt.textFlow = HtmlUtil.getHtmlStr(this.getStr()), this.time_txt.text = StringUtil.format(new Date(
				Number(this.data.robTime)))
	}, e.prototype.onClick = function() {
		1 == this._robInfo.revenge && (App.data.minecenter.clickNowType = 2, App.data.minecenter.clickRobtime = LongUtil.toNumber(
			this._robInfo.robTime), App.data.minecenter.clickNowMineId = this._robInfo.mineId, MineCommandSender.sendC2S_ViewMinePlayerInfoMessage(
			this._robInfo.robPlayerId, 2), App.panel.removePanel(77))
	}, e.prototype.getStr = function() {
		return 0 == this._robInfo.revenge ? (this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this.fight_txt), "") : 1 == this._robInfo.revenge ? "<u><font color='#00cc00'>我要复仇</font></u>" : 2 == this._robInfo
			.revenge ? (this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.fight_txt),
				"<font color='#ff0000'>复仇失败</font>") : 3 == this._robInfo.revenge ? (this._dispatcher.removeEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this.fight_txt), "<font color='#00ff00'>复仇成功</font>") : 4 == this._robInfo.revenge ?
			"<font color='#00ff00'>捣乱成功</font>" : 5 == this._robInfo.revenge ? "<font color='#00ff00'>捣乱失败</font>" : void 0
	}, e
}(ItemRenderer);
__reflect(MinerFightLogRender.prototype, "MinerFightLogRender");
var MineSmallMiningView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "MinerSmallMiningSkin", e._dispatcher = new DispatcherRegister, e.visible = !1, e
	}
	return __extends(e, t), e.prototype.show = function(t) {
		void 0 === t && (t = null), this.touchEnabled = !0, this._dispatcher.addEventListener(EventType.SELECT_DUMMY_ROLE,
			this.onClick, this), null == t ? this.visible = !1 : (this.visible = !0, this.setInfo(t))
	}, e.prototype.setInfo = function(t) {
		this._robId = t.playerId, this._mineId = t.mineId, this.isCanrob_txt.visible = !1, this._canbeRob = !1, this._effect &&
			(this._effect.stop(), this._effect.visible = !1), 0 == t.canBeRob ? this.isCanrob_txt.visible = this._canbeRob = !
			0 : 1 == t.canBeRob && (this._effect || (this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
				"zone", "fight"), 40, 0, this._effect)), this._effect.play(), this._effect.visible = !0), this._canbeRob = t.canBeRob >
			0 ? !0 : !1, this.isCanrob_txt.visible = 1 == t.canBeRob ? !0 : !1, t.playerId.toString() == App.global.characterData
			.personId ? (this.playername_txt.text = "我的法身", this.isCanrob_txt.visible = !1) : this.playername_txt.text = t.playerName +
			"的法身", App.timer.serverTimeEndCount(this, this.onTimerHandler, t.remainTime), this.onTimer(t.remainTime)
	}, e.prototype.onTimerHandler = function(t) {
		t.spuleTime > 0 && this.onTimer(t.spuleTime)
	}, e.prototype.onTimer = function(t) {
		0 >= t ? (App.timer.clearTimer(this.onTimerHandler, this), MineCommandSender.sendC2S_EnterMineMessage(), this.visible = !
			1) : this.time_txt.text = StringUtil.convertTime(t)
	}, e.prototype.onClick = function(t) {
		this._robId.toString() == t && ("我的法身" == this.playername_txt.text ? Notice.showMousePosMessage("<font color=" +
			Notice.MIDDLE_COLOR_2 + ">不可捣乱自己的法身！</font>") : App.data.minecenter.robNum > 0 ? (App.data.minecenter.clickNowType =
			1, MineCommandSender.sendC2S_ViewMinePlayerInfoMessage(this._robId, 1), App.data.minecenter.clickNowMineId =
			this._mineId, App.data.minecenter.clickNowCanRob = this._canbeRob) : Notice.showMousePosMessage("<font color=" +
			Notice.MIDDLE_COLOR_2 + ">当前法身已被捣乱完!</font>"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._effect && (this._effect.dispose(), this._effect = null), this._dispatcher.removeAllListeners(),
			App.timer.clearTimer(this.onTimerHandler, this), this.visible = !1
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._dispatcher.removeAllListeners(), App.timer.clearTimer(
			this.onTimerHandler, this), this.visible = !1, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MineSmallMiningView.prototype, "MineSmallMiningView");
var NearbyPlayerClearPkPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowThird, this.addChild(this._windowView), this._windowView.setTitle("提示"), this._windowView
			.height = 277, this._view = UIMaker.createViewBase("ClearPkNumAlertSkin"), this.addChild(this._view)
	}, e.prototype.onClick = function(t) {
		t.currentTarget == this._view.btnOk && (WangZheZBCommandSender.onC2S_NearPkClearPkValueMessage(),
			WangZheZBCommandSender.onC2S_NearPkStartMessage(this._playerId)), App.panel.removePanel(64)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._playerId = e, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClick, this, this._view.btnOk), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
			this, this._view.btnCancel);
		var i = App.data.getWangZheZBCenter().myPkNum;
		this._view.txtDesc0.text = (i - 99) * GameUtil.getGlobalConfigData(244).q_int_value + "", this._view.txtDesc.textFlow =
			HtmlUtil.getHtmlStr("当前PK值达到<font color='#ff0000'>" + i + "</font>"), this._view.txtDesc1.textFlow = HtmlUtil.getHtmlStr(
				"减少<font color='#00ff00'>" + (i - 99) + "</font>点PK值<font color='#00ff00'>立即挑战</font>?")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 430
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 277
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(NearbyPlayerClearPkPanel.prototype, "NearbyPlayerClearPkPanel");
var NearbyPlayerPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._timeFrame = 0, e._refrshListTime = 0, e._autoBoss = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("NearbyPlayerPanelSkin"), this._windowView = new WindowMain, this._btnClose =
			this._windowView.close_btn, this._windowView.imgBottom.visible = !1, this.addChild(this._windowView), this._windowView
			.showRoleList(!1), this._windowView.showFightPower(!1), this._windowView.imgTitle.source =
			"titleview_fujinwanjia_png", this._windowView.viewContainer.addChild(this._view), this._vscroller = new VScrollPanel(
				this._view.con.width, this._view.con.height, NearbyPlayerRender, 5), this._view.con.addChild(this._vscroller)
	}, e.prototype.refresh = function(t) {
		this._view.killnum_txt.text = t.killValue, this._view.killrank_txt.text = t.rank, this._view.head_img.source =
			GridUtil.getHead(App.global.characterData.job, App.global.characterData.sex), this._vscroller.dataProvider = t.playerList,
			t.playerList.length > 0 ? this._view.kongbaitishi.visible = !1 : this._view.kongbaitishi.visible = !0, t.refreshTime >
			0 ? (this._view.time_txt.visible = !0, this._refrshListTime = t.refreshTime, this._view.time_txt.text = StringUtil
				.convertTime(this._refrshListTime) + "后刷新", App.timer.doTimeLoop(this, 1e3, this.onRefrshListTime)) : this._view.time_txt
			.visible = !1, this._view.pknum_txt.text = t.pkValue
	}, e.prototype.onRefrshListTime = function() {
		this._refrshListTime--, this._refrshListTime <= 0 ? (App.timer.clearTimer(this.onRefrshListTime, this), this._view.time_txt
				.text = "", this._view.time_txt.visible = !1) : this._view.time_txt.text = StringUtil.convertTime(this._refrshListTime) +
			"后刷新"
	}, e.prototype.onPkNumChange = function() {
		this._view.pknum_txt.text = App.data.getWangZheZBCenter().myPkNum + ""
	}, e.prototype.onTimer = function() {
		this._timeFrame--, this._timeFrame <= 0 ? (App.timer.clearTimer(this.onTimer, this), this._view.pknum_txt.text = "") :
			this._view.pknum_txt.text = "" + this._timeFrame + "分钟后可挑战"
	}, e.prototype.onMouseHandler = function(t) {
		App.panel.openPanel(63)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._windowView.show(), this._autoBoss = App.data.zoneCenter.guanQiaCenter.auto,
			App.data.zoneCenter.guanQiaCenter.auto = !1, this._dispatcher.addEventListener(EnumEvent.EVENT_PKNUM_CHANGE, this.onPkNumChange,
				this), this._dispatcher.addEventListener(EnumEvent.EVENT_NEARB_PALYER, this.refresh, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this._view.dayreward_btn), WangZheZBCommandSender.onC2S_OpenNearPkPlanelMessage()
	}, e.prototype.hide = function() {
		this._windowView.hide(), App.timer.clearTimer(this.onTimer, this), App.timer.clearTimer(this.onRefrshListTime, this),
			this._vscroller.removeAll(), App.data.zoneCenter.guanQiaCenter.auto = this._autoBoss, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this._windowView.dispose(), this._windowView = null, t.prototype
			.dispose.call(this)
	}, e.prototype.resize = function() {
		FullScreenMask.ins.removeMask(FullScreen.Panel), this.GrandFather.y = 0, this.GrandFather.x = Config.SCREEN_WIDTH -
			this.width >> 1
	}, Object.defineProperty(e.prototype, "GrandFather", {
		get: function() {
			for (var t = this;;) {
				if (egret.is(t, "BaseSinglePanel") || egret.is(t, "BasePanel")) return t;
				t = t.parent
			}
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(NearbyPlayerPanel.prototype, "NearbyPlayerPanel");
var NearbyPlayerPanelUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(NearbyPlayerPanelUI.prototype, "NearbyPlayerPanelUI");
var NearbyPlayerRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("排名奖励"), this._windowView
			.height = 672, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"NearbyPlayerRankSkin"), this.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller = new VScrollPanel(t.width, t.height, NearbyPlayerRankRender, 0), this._view.con_item.addChild(this
			._vscroller)
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this.removeChild(this._windowView), this._windowView = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.show = function() {
		t.prototype.show.call(this);
		var e = App.data.getWangZheZBCenter().nearbyPlayerRank;
		e > 0 ? this._view.txt_rank.text = "我的当前排名：" + e : this._view.txt_rank.text = "我的当前排名：未上榜", this._vscroller.dataProvider =
			App.data.activityCenter.getListBean(7)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 662
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(NearbyPlayerRankPanel.prototype, "NearbyPlayerRankPanel");
var NearbyPlayerRankRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PersonalJJRankItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._gridLayout || (this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 2, 55), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(287, 5, this))
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data,
			e = t.bean;
		if (e) {
			this.itemIndex < 3 ? this.txt_rank.textColor = 15397963 : this.txt_rank.textColor = 11639929, this.txt_rank.text =
				e.q_info;
			for (var i, n = StringUtil.JsonParse(e.q_rewards), a = [], o = 0; o < n.length; o++) i = new ItemData, i.itemId =
				n[o].id, i.count = n[o].num, a.push(i);
			this._gridLayout.dataProvider = a
		}
	}, e
}(ItemRenderer);
__reflect(NearbyPlayerRankRender.prototype, "NearbyPlayerRankRender");
var NearbyPlayerRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "NearbyPlayerRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.fight && (this.fight.dispose(), this.fight = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		this.fight.setValue(t.fightPower), this.fight.setVis(!1), this.name_txt.text = t.name, 1 == t.isRed ? this.name_txt
			.textColor = 15938355 : this.name_txt.textColor = 11639929, t.reain > 0 ? this.lv_txt.text = t.reain + "转" + t.level +
			"级" : this.lv_txt.text = t.level + "级", this.img_face.source = GridUtil.getHead(t.job, t.sex), 3 == this.itemIndex &&
			egret.setTimeout(this.resizeGuide, this, 50)
	}, e.prototype.resizeGuide = function() {
		if (App.data.taskCenter.getThreadTaskShowGuide(10) && 3 == this.itemIndex) {
			var t = this.localToGlobal(457, 42).x,
				e = this.localToGlobal(457, 42).y;
			Guide.getGuide().show("点击挑战", Guide.RIGHT, t - 185, e + 25, this.btn_fight, !0, t, e)
		}
	}, e.prototype.onAddStage = function(t) {
		this.fight || (this.fight = new FightPower, this.fight.x = 80, this.fight.y = 75, this.addChild(this.fight)), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnHandler, this, this.btn_fight), this._dispatcher.addEventListener(
				EventType.STGAE_RESIZE, this.resizeGuide, this)
	}, e.prototype.btnHandler = function() {
		App.data.taskCenter.getThreadTaskShowGuide(10) && 3 == this.itemIndex && (Guide.getGuide().hide(), this.addChild(
			this.btn_fight), this.btn_fight.x = 457, this.btn_fight.y = 42);
		var t = this.data;
		App.data.getWangZheZBCenter().isRedName = t.isRed, App.data.getWangZheZBCenter().myPkNum >= 100 ? App.panel.openPanel(
			64, t.playerId) : WangZheZBCommandSender.onC2S_NearPkStartMessage(t.playerId)
	}, e
}(ItemRenderer);
__reflect(NearbyPlayerRender.prototype, "NearbyPlayerRender");
var JingJiPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("日常任务,日常玩法,限时玩法"), this.registerSubPanel(0, DailyLifeView,
				"knight_icon_191_png", 101, !1, !1), this.registerSubPanel(1, WanFaDailyView, "titleview_wanfa_png", -1, !1, !1),
			this.registerSubPanel(2, WanfaXianShiView, "titleview_wanfa_png", -1, !1, !1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), App.data.getWangZheZBCenter().getTypeRed(1) && (this.tab.selectedIndex = 2), this._dispatcher
			.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this)
	}, e.prototype.tabSelectHandler = function(e) {
		t.prototype.tabSelectHandler.call(this, e), this.tab.setRedSign(1, !0), App.data.getWangZheZBCenter().getTypeRed(1) &&
			this.tab.setRedSign(2, !0)
	}, e.prototype.onEnterZone = function(t, e) {
		2501 == t && this.onClose()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e
}(TabPanel);
__reflect(JingJiPanel.prototype, "JingJiPanel");
var JinjiShopPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopItemList = [], e.refreshHonor = function(t, i) {
			void 0 === i && (i = 0), t == EnumMoney.ARENA_HONOR && (e._moneyTxt.text = "荣誉积分：" + i)
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MallViewSkin"), this.addChild(this._view), this._moneyBar = new MoneyBar, this
			._moneyBar.moveTo(181, 60, this._view), this._moneyBar.setMoneyLocationX(-75, 85), this._moneyBar.showBg(!1), this
			._view.timetextgroup.visible = !1, this._view.shemmigroup.visible = !1;
		var t = this._view.con;
		this.addChild(this._view), this._mallListPanel = new VScrollPanel(t.width, 690, MallItemView, 3), this._view.con.y =
			94, t.addChild(this._mallListPanel), this._shopItemList = App.data.mallCenter.getJinjiShopList(), this._view.btnGroup
			.visible = this._view.tab1.visible = this._view.tab2.visible = this._view.timeTF.visible = !1, this._moneyTxt =
			UIMaker.getTextField(this._view, e, 180, 814, 300, 20, 11639929, 20)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), MallPanel.CURRENT_SHOP_TYPE = 5, this._moneyBar.show(), ShopCommandSender.sendRequestShopListMessage(
			5), this._dispatcher.addEventListener(ArenaEvent.REFRESH_MALL, this.refrshMall, this), this._dispatcher.addEventListener(
			MoneyEvent.CHANGE, this.refreshHonor, this), this._moneyTxt.text = "荣誉积分：" + App.data.currencyDataCenter.getMoney(
			EnumMoney.ARENA_HONOR)
	}, e.prototype.refrshMall = function() {
		this._mallListPanel.dataProvider = App.data.mallCenter.jinjiShopInfoList
	}, e.prototype.hide = function() {
		MallPanel.CURRENT_SHOP_TYPE = 0, this._moneyBar.hide(), this._mallListPanel.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._moneyTxt && UIMaker.putToPool(this._moneyTxt), this._moneyBar && (this._moneyBar.dispose(), this._moneyBar =
			null), this._mallListPanel && (this._mallListPanel.dispose(), this._mallListPanel = null), t.prototype.dispose.call(
			this)
	}, e
}(BasePanel);
__reflect(JinjiShopPanel.prototype, "JinjiShopPanel");
var PersonalJJExpliotPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isFrist = !0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("成就奖励"), this._windowView
			.height = 615, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"PersonalJJExpliotSkin"), this.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller = new VScrollPanel(t.width, t.height, PersonalJJExpliotRender, 1), this._view.con_item.addChild(
			this._vscroller), this._rankList = App.config.q_rankRewardContainer.list
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this.removeChild(this._windowView), this._windowView = null, t.prototype
			.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this), App.timer.clearTimer(this.onTimer1, this),
			this._vscroller.removeAll()
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(MineEvent.WANGZHECHANGE, this.update, this), this._isFrist = !
			0, this.update()
	}, e.prototype.update = function() {
		var t = App.data.getWangZheZBCenter().rankRewardsArr;
		this._vscroller.dataProvider = t;
		for (var e = t.length, i = e - 1; i >= 0; i--)
			if (0 == t[i].state) {
				i - 4 > 0 && (this._isFrist ? (App.timer.doTimeOnce(this, 100, this.onTimer, [i]), this._isFrist = !1) : App.timer
					.doFrameLoop(this, 1, this.onTimer1, [i]));
				break
			}
	}, e.prototype.onTimer = function(t) {
		this._vscroller.viewport && (this._vscroller.viewport.scrollV = 93 * (t - 4))
	}, e.prototype.onTimer1 = function(t) {
		this._vscroller.viewport ? (this._vscroller.viewport.scrollV -= 10, this._vscroller.viewport.scrollV <= 93 * (t - 4) &&
			(this._vscroller.viewport.scrollV = 93 * (t - 4), App.timer.clearTimer(this.onTimer1, this))) : App.timer.clearTimer(
			this.onTimer1, this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 522
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 615
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(PersonalJJExpliotPanel.prototype, "PersonalJJExpliotPanel");
var PersonalJJRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowSecond, this.addChild(this._windowView), this._windowView.setTitle("排名奖励"), this._windowView
			.height = 742, this._btnClose = this._windowView.close_btn, this._view = UIMaker.createViewBase(
				"PersonalJJRankSkin"), this.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller = new VScrollPanel(t.width, t.height, PersonalJJRankItemRender, 1), this._view.con_item.addChild(
				this._vscroller), this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 2, 55), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(287, 7, this._view.myrank_group), this._rankList = App.config.q_rank_configContainer.list
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), this._vscroller = null, this._windowView.dispose(), this._windowView = null, this._gridLayout
			.dispose(), this._gridLayout = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.show = function() {
		t.prototype.show.call(this);
		var e = this._rankList.length,
			i = App.data.getWangZheZBCenter().rank; - 1 == i && (i = App.data.getWangZheZBCenter().bestRank);
		var n;
		if (i > 0) {
			this._view.txt_rank.text = "我的当前排名：" + i;
			for (var a = 0; e > a; a++)
				if (n = this._rankList[a], n.q_interval_a <= i && n.q_interval_b >= i) {
					for (var o = StringUtil.JsonParse(n.q_paiming_reward), r = void 0, s = [], a = 0; a < o.length; a++) r = new ItemData,
						r.itemId = o[a].id, r.count = o[a].num, s.push(r);
					this._gridLayout.dataProvider = s;
					break
				}
		} else this._view.txt_rank.text = "我的当前排名：未上榜";
		this._vscroller.dataProvider = this._rankList
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 742
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(PersonalJJRankPanel.prototype, "PersonalJJRankPanel");
var WanFaDailyView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("JinJiRegulationsSkin"), this.addChild(this._view);
		var t = this._view.con;
		this._vscroller = new VScrollPanel(t.width, t.height, JinJiRegulationItemRender, 1), this._vscroller.scrollPolicyH =
			eui.ScrollPolicy.OFF, this._vscroller.scrollPolicyV = eui.ScrollPolicy.OFF, t.addChild(this._vscroller)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._vscroller.dataProvider = [wfid.fujinPlayer, 58, wfid.miner, wfid.abyss], App.data
			.taskCenter.getThreadTaskShowGuide(10) && Guide.getGuide().show("点击附近玩家", Guide.RIGHT, 308, 165, this), this._view
			.red.visible = !1
	}, e.prototype.hide = function() {
		Guide.getGuide().hide(), this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller && this._vscroller.dispose(), this._vscroller = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WanFaDailyView.prototype, "WanFaDailyView");
var WanfaXianShiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("JinJiRegulationsSkin"), this.addChild(this._view);
		var t = this._view.con;
		this._vscroller = new VScrollPanel(t.width, t.height, JinJiRegulationItemRender, 1), this._vscroller.scrollPolicyH =
			eui.ScrollPolicy.OFF, this._vscroller.scrollPolicyV = eui.ScrollPolicy.OFF, t.addChild(this._vscroller)
	}, e.prototype.show = function() {
		t.prototype.show.call(this);
		var e = App.data.getWangZheZBCenter().xsWanfaIdArr;
		this._vscroller.dataProvider = e, this._view.red.visible = !1, ActivityCommandSender.sendC2S_ActivityDetailInfosMessage(
			e)
	}, e.prototype.sortFunc = function(t, e) {
		return App.data.activityCenter.getData(t).openTime < App.data.activityCenter.getData(e).openTime ? -1 : 1
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller && this._vscroller.dispose(), this._vscroller = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WanfaXianShiView.prototype, "WanfaXianShiView");
var WangZheZBPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._initData = !1, e._refreshTimeFrame = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dataCenter = App.data.getWangZheZBCenter(), this._view = UIMaker.createViewBase("PersonalJJPanelSkin"), this._windowView =
			new WindowMain, this._btnClose = this._windowView.close_btn, this.addChild(this._windowView), this._windowView.showRoleList(
				!1), this._windowView.showFightPower(!1), this._windowView.imgTitle.source = "titleview_wangzhejingji_png", this._windowView
			.viewContainer.addChild(this._view);
		var t = this._view.con_list;
		this._vscroller = new VScrollPanel(t.width, t.height, WangZheZBItemRender, 1), this._view.con_list.addChild(this._vscroller),
			this._view.btn_add.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>购买挑战次数</u></font>")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._windowView.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this._view.btn_shop), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this._view.btn_expliot), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this._view.btn_rank), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this._view.btn_refresh), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this._view.btn_add), this._dispatcher.addEventListener(EnumEvent.EVENT_WCZB_INFO, this
				.refersh, this), this._dispatcher.addEventListener(EnumEvent.EVENT_WCZB_REFRESH_COUNT, this.refershFightNum, this),
			this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this), WangZheZBCommandSender.requestListInfo(),
			this._view.red.visible = App.data.getWangZheZBCenter().rankRewardRed()
	}, e.prototype.onEnterZone = function(t, e) {
		6e3 == t && this.onClose()
	}, e.prototype.onMouseHandler = function(t) {
		switch (t.currentTarget) {
			case this._view.btn_expliot:
				PanelOpenManager.openPanel(114), this._view.red.visible = !1;
				break;
			case this._view.btn_shop:
				PanelOpenManager.openPanel(69);
				break;
			case this._view.btn_rank:
				PanelOpenManager.openPanel(37);
				break;
			case this._view.btn_refresh:
				WangZheZBCommandSender.requestRefreshListInfo();
				break;
			case this._view.btn_add:
				var e = this._dataCenter.canBuyNum,
					i = App.config.q_globalContainer.getDataBean(228),
					n = 100;
				if (App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) < i.q_int_value) PanelOpenManager.openChargePanel(i.q_int_value),
					Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">元宝数量不足!</font>");
				else if (0 >= e) Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">可购买次数不足!</font>");
				else {
					var a = StringUtil.substitute(
						"花费<font color='#35ea35'>{0}元宝</font>购买{1}次挑战次数\n(今天还能购买<font color='#35ea35'>{2}</font>次)", i.q_int_value, i.q_int_value /
						n, e);
					Alert.show(a, "购买物品", "购买|取消", this.sureBuy, this, null, !0)
				}
		}
	}, e.prototype.sureBuy = function(t) {
		WangZheZBCommandSender.requestAddFightNum()
	}, e.prototype.sortFunc = function(t, e) {
		return t.rank > e.rank ? 1 : t.rank < e.rank ? -1 : 0
	}, e.prototype.refersh = function() {
		this._vscroller.dataProvider = this._dataCenter.arrListInfo.sort(this.sortFunc);
		var t = App.data.getWangZheZBCenter().rank; - 1 == t && (t = App.data.getWangZheZBCenter().bestRank), this._view.txt_myrank
			.text = "我的排名：" + t, this._view.txt_fightnum.text = "我的战力：" + App.data.characterCenter.roleSumFight, this.refershFightNum()
	}, e.prototype.refershFightNum = function() {
		this._view.txt_count.text = "次数:" + this._dataCenter.fightNum + "/" + this._dataCenter.totalNum, this._refreshTimeFrame =
			this._dataCenter.addNumTime, App.timer.doTimeLoop(this, 1e3, this.refreshNum), App.timer.doTimeLoop(this, 1e3,
				this.timeTick), this.timeTick(), this.refreshNum()
	}, e.prototype.refreshNum = function() {
		return this._refreshTimeFrame <= 0 ? (App.timer.clearTimer(this.refreshNum, this), void(this._view.refreshNum_time.text =
			"")) : (this._view.refreshNum_time.text = "次数刷新：" + StringUtil.convertTime(this._refreshTimeFrame), void this._refreshTimeFrame--)
	}, e.prototype.timeTick = function() {
		var t = this._dataCenter.refreshTime - Math.ceil(ServerTime.serverTime / 1e3);
		t > 0 ? this._view.txt_time.text = StringUtil.substitute("免费刷新倒计时：{0}", StringUtil.convertTime(t)) : (App.timer.clearTimer(
			this.timeTick, this), this._view.txt_time.text = "免费刷新")
	}, e.prototype.hide = function() {
		this._windowView.hide(), App.timer.clearTimer(this.timeTick, this), App.timer.clearTimer(this.refreshNum, this),
			this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._windowView.dispose(), this._windowView = null, this._vscroller.dispose(), this._vscroller = null, t.prototype
			.dispose.call(this)
	}, e.prototype.resize = function() {
		FullScreenMask.ins.removeMask(FullScreen.Panel), this.GrandFather.y = 0, this.GrandFather.x = Config.SCREEN_WIDTH -
			this.width >> 1
	}, Object.defineProperty(e.prototype, "GrandFather", {
		get: function() {
			for (var t = this;;) {
				if (egret.is(t, "BaseSinglePanel") || egret.is(t, "BasePanel")) return t;
				t = t.parent
			}
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WangZheZBPanel.prototype, "WangZheZBPanel");
var WangZheZBDataCenter = function() {
	function t() {
		this.areanzoneId = 6e3, this.fightNum = 0, this.rank = 0, this.bestRank = 0, this.refreshTime = 0, this.addNumTime =
			0, this.arrListInfo = [], this.totalNum = 10, this.canBuyNum = 3, this.maxNum = 0, this.myMonsters = [], this.destMonsters = [],
			this.typeMonster = 0, this.myPkNum = 0, this.shayi = 0, this.nearbyPlayerRank = 0, this.isRedName = 0, this.playerNum =
			0, this.rankRewardsArr = [], this.rcWanfaIdArr = [wfid.fujinPlayer, wfid.wangzhe, wfid.miner, wfid.abyss], this.xsWanfaIdArr0 = [
				wfid.txdy0, wfid.mobaiChengzhu, wfid.yuanbaoGui0, wfid.biqiNight0, wfid.guildboss0
			], this.xsWanfaIdArr1 = [wfid.txdy1, wfid.mobaiChengzhu, wfid.yuanbaoGui1, wfid.biqiNight1, wfid.guildboss1]
	}
	return t.prototype.hasMyMonster = function(t) {
		return this.myMonsterHash && this.myMonsterHash[t] ? !0 : !1
	}, t.prototype.parseListInfo = function(t) {
		this.fightNum = t.challengeNum, this.canBuyNum = t.hasChallengeNum, this.rank = t.myRank, this.bestRank = t.myBestRank,
			this.refreshTime = t.changeChallengeListCooldownTimeS, this.addNumTime = t.challengeCooldownTimeS, this.arrListInfo =
			t.challengeList, App.dispatcher.dispatchEvent(EnumEvent.EVENT_WCZB_INFO)
	}, t.prototype.setRedArr = function(t) {}, t.prototype.showRed = function() {
		for (var t = 2, e = 0; t > e; e++)
			if (1 == this.getTypeRed(e)) return !0;
		return !1
	}, t.prototype.getFunctionId = function(t) {
		var e = 123;
		if (t == wfid.fujinPlayer) e = 123;
		else if (t == wfid.wangzhe) e = 124;
		else {
			if (-1 != App.data.getWangZheZBCenter().xsWanfaIdArr.indexOf(t)) return !0;
			e = 77
		}
		return App.global.funcOpen.isFunctionOpen(e)
	}, t.prototype.getTypeRed = function(t) {
		void 0 === t && (t = 0);
		for (var e = 0 == t ? this.rcWanfaIdArr : this.xsWanfaIdArr, i = e.length, n = 0; i > n; n++)
			if (this.getIdRed(e[n])) return !0;
		return !1
	}, t.prototype.getIdRed = function(t) {
		var e = !1;
		if (1 == this.getFunctionId(t))
			if (t == wfid.fujinPlayer) e = this.showRedNear();
			else if (t == wfid.wangzhe) e = this.showRedJJ();
		else if (t == wfid.miner) e = App.data.minecenter.showRed();
		else
			for (var i = this.xsWanfaIdArr.length, n = 0; i > n; n++)
				if (this.xsWanfaIdArr[n] == t)
					if (1 == App.data.activityCenter.getData(this.xsWanfaIdArr[n]).activityStates) {
						if (e = !0, wfid.txdy0 == this.xsWanfaIdArr[n] || wfid.txdy1 == this.xsWanfaIdArr[n]) {
							var a = StringUtil.JsonParse(App.data.activityCenter.getData(this.xsWanfaIdArr[n]).extendMap);
							e = 1 == a.canJoin ? !0 : !1
						}
					} else e = !1;
		return App.global.redPoint.redPointDispatchEvent(123), e
	}, t.prototype.refreshRed = function(t) {
		void 0 === t && (t = 0), App.global.redPoint.redPointDispatchEvent(123)
	}, t.prototype.showRedNear = function() {
		return this.myPkNum < 100 && this.playerNum > 0 ? !0 : !1
	}, t.prototype.showRedJJ = function() {
		return this.fightNum > 0 ? !0 : !1
	}, t.prototype.parseFightResult = function(t) {
		if (t.result ? (t.bestRank >= 0 || t.rank >= 0) && (this.rank = t.rank, this.bestRank = t.bestRank,
				WangZheZBCommandSender.requestListInfo()) : Notice.showBottomMessage("挑战失败"), t.bestRank >= 0 || t.rank >= 0) {
			--this.fightNum;
			for (var e = App.config.q_level_configContainer.getDataBean(App.global.characterData.level), i = 1 == t.result ? e
					.q_rank_win_award : e.q_rank_fail_award, n = StringUtil.JsonParse(i), a = n.length, o = void 0, r = [], s = 0; a >
				s; s++) o = new ItemData, o.itemId = n[s].id, o.count = n[s].num, r.push(o);
			var h = 1 == t.result ? !0 : !1;
			PanelOpenManager.openZoneFinishPanel(this.areanzoneId, r, !h, !0, 58)
		} else !App.data.taskCenter.getThreadTaskShowGuide(10);
		2 == this.typeMonster && 1 == t.result && App.global.zone.showWelcome("杀人PK爆装备，就是这么爽！"), App.dispatcher.dispatchEvent(
			EventType.MAINPANEL_SHOWORHIDE, !0), this.clear()
	}, t.prototype.clear = function() {
		this.myMonsters = [], this.destMonsters = [], this.areanMonsterHash = null, this.myMonsterHash = null, this.destMosnterHash =
			null
	}, t.prototype.refreshFightNum = function(t) {
		this.fightNum = t.challengeNum, this.canBuyNum = t.hasChallengeNum, this.refreshTime = t.changeChallengeListCooldownTimeS,
			this.addNumTime = t.challengeCooldownTimeS, App.dispatcher.dispatchEvent(EnumEvent.EVENT_WCZB_REFRESH_COUNT), this
			.refreshRed(wfid.wangzhe)
	}, t.prototype.createAreanMonsterInfo = function(t) {
		this.typeMonster = t.type, this.myMonsters = t.myMonsters, this.destMonsters = t.destMonsters, this.areanMonsterHash =
			new Object, this.myMonsterHash = new Object, this.destMosnterHash = new Object;
		for (var e = this.myMonsters, i = e.length, n = 0; i > n; n++) this.areanMonsterHash[LongUtil.toString(e[n].id)] =
			e[n], this.myMonsterHash[LongUtil.toString(e[n].id)] = e[n];
		for (e = this.destMonsters, i = e.length, n = 0; i > n; n++) this.areanMonsterHash[LongUtil.toString(e[n].id)] = e[
			n], this.destMosnterHash[LongUtil.toString(e[n].id)] = e[n]
	}, t.prototype.createAreanMonster = function(t) {
		if (this.areanMonsterHash && this.areanMonsterHash[t]) {
			var e, i, n = this.areanMonsterHash[t];
			i = App.global.mapModule.mapAvatarModel.getMonster(n.id.toString()), i && (e = new RoleCrossDressData, e.sex = n.sex,
					e.name = n.name, e.body = n.clothes, e.weapon = n.weaponModelId, e.wing = n.raywing, i.crossDressing(e), 1 ==
					this.isRedName ? i.setName(n.name, 16711680) : 1 == this.typeMonster || (2 == this.typeMonster ? this.destMosnterHash[
						LongUtil.toString(n.id)] && i.setName(n.name, 16776960) : 3 == this.typeMonster), this.myMonsterHash[LongUtil.toString(
						n.id)] && i.roleView.hpBar.changeHpBarStyle(AvatarHpMpBar.STYLE_1)), App.data.zoneCenter.zoneID == App.data.minecenter
				.minerZoneID ? App.dispatcher.dispatchEvent(MineEvent.MINE_FIGHT_RESULT, -100) : 2 == this.typeMonster && (App.dispatcher
					.dispatchEvent(EventType.MAINPANEL_SHOWORHIDE, !1, !0), App.data.taskCenter.getThreadTaskShowGuide(10) && Guide.getGuide()
					.hide()), i && 0 == i.isDispose && i.roleView.mouseDown(), App.data.zoneCenter.guanQiaCenter.auto = !1
		}
	}, t.prototype.rankRewardList = function(t) {
		this.rankRewardsArr = t.RankRewardsInfo, this.rankRewardsArr.sort(this.sortRank), App.dispatcher.dispatchEvent(
			MineEvent.WANGZHECHANGE)
	}, t.prototype.sortRank = function(t, e) {
		return t.rankid < e.rankid ? -1 : 1
	}, t.prototype.rankRewardRed = function() {
		for (var t = this.rankRewardsArr.length, e = 0; t > e; e++)
			if (0 == this.rankRewardsArr[e].state) return !0;
		return !1
	}, Object.defineProperty(t.prototype, "xsWanfaIdArr", {
		get: function() {
			return 0 == App.data.crossCenter().isOpenCross ? this.xsWanfaIdArr0 : this.xsWanfaIdArr1
		},
		enumerable: !0,
		configurable: !0
	}), t
}();
__reflect(WangZheZBDataCenter.prototype, "WangZheZBDataCenter");
var wfid;
! function(t) {
	t[t.fujinPlayer = 62] = "fujinPlayer", t[t.wangzhe = 58] = "wangzhe", t[t.miner = 3600] = "miner", t[t.abyss = 7e3] =
		"abyss", t[t.mobaiChengzhu = 10105] = "mobaiChengzhu", t[t.biqiNight0 = 10009] = "biqiNight0", t[t.txdy0 = 10201] =
		"txdy0", t[t.yuanbaoGui0 = 10106] = "yuanbaoGui0", t[t.guildboss0 = 10107] = "guildboss0", t[t.biqiNight1 = 20001] =
		"biqiNight1", t[t.txdy1 = 20002] = "txdy1", t[t.yuanbaoGui1 = 20003] = "yuanbaoGui1", t[t.guildboss1 = 20004] =
		"guildboss1"
}(wfid || (wfid = {}));
var MobaiChengzhuActView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.euiSkinName = "MobaiChengzhuActSkin"
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this)
	}, e.prototype.refresh = function(t) {
		this.visible = t, t && (this.txt_time.text = "", this.txt_reward.text = "")
	}, e
}(ViewBase);
__reflect(MobaiChengzhuActView.prototype, "MobaiChengzhuActView");
var YuanbaoGuiActView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.euiSkinName = "YuanBaoActSkin"
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this)
	}, e.prototype.refresh = function(t) {
		if (this.visible = t, t)
			for (var e = 0, i = 0, n = "", a = 0; e > a; a++) this.txt_name.text = "\n", i / 1e4 > 1 && (i /= 1e4, n = "万", i /
				1e4 > 1 && (n = "亿", i /= 1e4)), this.txt_num.text = i.toFixed(1) + n + "\n", this.txt_reward.text = "\n"
	}, e
}(ViewBase);
__reflect(YuanbaoGuiActView.prototype, "YuanbaoGuiActView");
var ZoneGuildBossActTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), App.panel.removePanel(36)
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BaseZone);
__reflect(ZoneGuildBossActTrack.prototype, "ZoneGuildBossActTrack");
var ZoneMobaiChengzhuActTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), App.panel.removePanel(36), 1 == App.data.activityCenter.getData(wfid.mobaiChengzhu).activityStates &&
			(this._view || (this._view = new MobaiChengzhuView, this.addChild(this._view), this._view.x = Config.SCREEN_WIDTH -
				this._view.width >> 1, this._view.y = 766), this._view.show())
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._view && this._view.hide()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view && (this._view.dispose(), this._view = null)
	}, e
}(BaseZone);
__reflect(ZoneMobaiChengzhuActTrack.prototype, "ZoneMobaiChengzhuActTrack");
var MobaiChengzhuView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "MobaiChengzhuActSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refresh(), this._dispatcher.addEventListener(ActivityEvent.UPDATE_MOBAICHENGZHU,
			this.refresh, this)
	}, e.prototype.refresh = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0);
		var i = App.data.activityCenter.getData(wfid.mobaiChengzhu);
		App.timer.serverTimeEnd(this, this.onTimer, i.finishTime), this.txt_reward.text = e + ""
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.txt_time.text = StringUtil.converTime2(t.spuleTime) : this.txt_time.text = ""
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MobaiChengzhuView.prototype, "MobaiChengzhuView");
var ZoneYuanbaoGuiActTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), App.panel.removePanel(36), this._view || (this._view = new YuanbaoguiView, this.addChild(
			this._view), this._view.x = Config.SCREEN_WIDTH - this._view.width >> 1, this._view.y = 738), this._view.show()
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._view.hide()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view.dispose(), this._view = null
	}, e
}(BaseZone);
__reflect(ZoneYuanbaoGuiActTrack.prototype, "ZoneYuanbaoGuiActTrack");
var YuanbaoguiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "YuanBaoActSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = App.data.zoneCenter.getMyZoneData();
		null == i || null == i.zonedata.bossid || void 0 == i.zonedata.bossid ? this.btn_boss_to.visible = !1 : this.btn_boss_to
			.visible = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.btn_boss_to)
	}, e.prototype.onMouseHandler = function(t) {
		var e = App.data.zoneCenter.getMyZoneData();
		(null == e || null == e.zonedata.bossid || void 0 == e.zonedata.bossid) && App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT,
			e.zonedata.bossid)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(YuanbaoguiView.prototype, "YuanbaoguiView");
var WangZheZBCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		function t(t) {
			App.data.getWangZheZBCenter().rankRewardList(t)
		}

		function e(t) {
			void 0 != t.isRed && App.data.getWangZheZBCenter().setRedArr(t.isRed), App.global.redPoint.redPointDispatchEvent(
				123), App.global.funcOpen.isFunctionOpen(124) && WangZheZBCommandSender.requestListInfo(), MineCommandSender.sendC2S_EnterMineMessage()
		}

		function i(t) {
			var e = App.data.getWangZheZBCenter();
			e.parseListInfo(t)
		}

		function n(t) {
			var e = App.data.getWangZheZBCenter();
			e.parseFightResult(t)
		}

		function a(t) {
			var e = App.data.getWangZheZBCenter();
			e.refreshFightNum(t)
		}

		function o(t) {
			var e = App.data.getWangZheZBCenter();
			e.createAreanMonsterInfo(t), 2 == t.type && App.dispatcher.dispatchEvent(EnumEvent.EVENT_NEARB_NOTICE)
		}

		function r(t) {
			App.data.getWangZheZBCenter().myPkNum = t.pkValue, App.dispatcher.dispatchEvent(EnumEvent.EVENT_PKNUM_CHANGE), App
				.data.getWangZheZBCenter().refreshRed(wfid.fujinPlayer)
		}

		function s(t) {
			App.data.getWangZheZBCenter().myPkNum = t.pkValue, App.data.getWangZheZBCenter().nearbyPlayerRank = t.rank, App.data
				.getWangZheZBCenter().shayi = t.killValue, App.data.getWangZheZBCenter().playerNum = t.playerList.length, App.dispatcher
				.dispatchEvent(EnumEvent.EVENT_NEARB_PALYER, t), App.data.getWangZheZBCenter().refreshRed(wfid.fujinPlayer)
		}
		this.register(5143, i), this.register(5027, n), this.register(5450, a), this.register(5347, o), this.register(5520,
			r), this.register(5521, s), this.register(5570, e), this.register(5577, t)
	}, e
}(BaseConnectionRegister);
__reflect(WangZheZBCommandRegister.prototype, "WangZheZBCommandRegister");
var WangZheZBCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.getRankReward = function(t) {
		var e = this.createCmd(16504);
		e.rankId = LongUtil.fromNumber(t), this.sendCommand(e)
	}, e.requestListInfo = function() {
		var t = this.createCmd(16016);
		t.job = 1, this.sendCommand(t)
	}, e.requestFightUnit = function(t) {
		var e = this.createCmd(16211);
		e.destPlayerId = t, this.sendCommand(e)
	}, e.requestAddFightNum = function() {
		var t = this.createCmd(16225);
		this.sendCommand(t)
	}, e.requestRefreshListInfo = function() {
		var t = this.createCmd(16097);
		t.type = 0, this.sendCommand(t)
	}, e.onC2S_NearPkStartMessage = function(t) {
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		if (e && EnumZoneType.AUTO_FIGHT_ZONE == e.q_zone_client_type) {
			var i = this.createCmd(16444);
			i.playerId = t, this.sendCommand(i), this.closePage()
		} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">副本中，不能挑战附近玩家</font>")
	}, e.closePage = function() {
		App.panel.removePanel(62), App.panel.removePanel(36)
	}, e.onC2S_NearPkClearPkValueMessage = function() {
		var t = this.createCmd(16443);
		this.sendCommand(t)
	}, e.onC2S_OpenNearPkPlanelMessage = function() {
		var t = this.createCmd(16442);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(WangZheZBCommandSender.prototype, "WangZheZBCommandSender");
var JinJiRegulationItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "JinJiRegulationItemSkin", e
	}
	return __extends(e, t), e.prototype.playEffect = function(t) {
		t ? (this._btneft || (this._btneft = EffectUtils.showCEffect(this, this.btn, ResPathUtil.getMenuEffect("panel",
			"btneffect1"), 58, 21, this._btneft)), this._bgeft || (this._bgeft = EffectUtils.showCEffect(this, this,
			ResPathUtil.getMenuEffect("panel", "bigseleted"), 301, 72, this._bgeft))) : (this._btneft && (this._btneft.dispose(),
			this._btneft = null), this._bgeft && (this._bgeft.dispose(), this._bgeft = null))
	}, e.prototype.dataChanged = function() {
		if (this.id = this.data, this.red_img.visible = App.data.getWangZheZBCenter().getIdRed(this.id), -1 != App.data.getWangZheZBCenter()
			.xsWanfaIdArr.indexOf(this.id)) {
			var t = App.config.q_activitiesContainer.getDataBean(this.id),
				e = t.q_desc;
			this.help_img.visible = this.txt_desc0.visible = !0, App.tip.addTip(this.txt_desc0, new TipData(1, [e, "玩法说明"])),
				this.playEffect(this.red_img.visible), this.btn.filters = 1 == this.red_img.visible ? null : FilterUtil.FILTER_GRAY
		} else if (this.id == wfid.miner) {
			var i = GameUtil.getZoneBean(this.id),
				e = i.q_tips;
			this.help_img.visible = this.txt_desc0.visible = !0, App.tip.addTip(this.txt_desc0, new TipData(1, [e, "玩法说明"]))
		} else if (this.id == wfid.abyss) {
			var t = App.config.q_tipContainer.getDataBean(175);
			t && App.tip.addTip(this.txt_desc0, new TipData(1, [t.q_tipDesc, "玩法说明"])), this.help_img.visible = this.txt_desc0
				.visible = !0;
			var n = App.data.zoneCenter.getBeanList(EnumZoneType.ABYSS)[0];
			if (n) {
				var a = App.global.characterData.zhuanSheng;
				n.q_min_metem_lv > a ? this.txt_desc.text = n.q_min_metem_lv + "转后开启" : this.txt_desc.text = "6:00-24:00"
			}
		} else this.help_img.visible = this.txt_desc0.visible = !1;
		this.id == wfid.fujinPlayer ? this.txt_desc.visible = !1 : (this.txt_desc.visible = !0, -1 != App.data.getWangZheZBCenter()
				.xsWanfaIdArr.indexOf(this.id) ? this.txt_desc.text = StringUtil.resloveFormatHMS1(App.data.activityCenter.getData(
					this.id).openTime) + "开放" : this.id == wfid.wangzhe ? this.txt_desc.text = "次数：" + App.data.getWangZheZBCenter()
				.fightNum + "/" + App.data.getWangZheZBCenter().totalNum : this.id == wfid.miner && (this.txt_desc.text = "次数：" +
					App.data.minecenter.miningNum + "/" + App.data.minecenter.maxMiningtimes)), this.img_bg.source = "wanfa_" + this
			.id + "_jpg", this.txt_desc0.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("玩法说明"))
	}, e.prototype.onAddStage = function(t) {
		this.btn.addEventListener(egret.TouchEvent.TOUCH_END, this.btnClick, this)
	}, e.prototype.btnClick = function(t) {
		if (-1 != App.data.getWangZheZBCenter().xsWanfaIdArr.indexOf(this.id)) {
			if (this.id == wfid.guildboss1 && !App.data.guildCenter.hasGuild()) return void Alert.show("请先加入帮会后才能参加帮会战场", "提示",
				"确定|取消",
				function() {
					PanelOpenManager.openPanel(31)
				}, this);
			if (this.id == wfid.mobaiChengzhu && App.data.zoneCenter.zoneID == EnumZoneID.MAIN_CITY_ID) return void Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">当前正在悟道参玄活动中</font>");
			ActivityCommandSender.sendC2S_JoinActivityMessage(this.id)
		} else this.id == wfid.miner ? ZoneCommandSender.sendC2S_ZoneIntoMessage(wfid.miner, EnumZoneType.MINE_ZONE) : this
			.id == wfid.fujinPlayer ? PanelOpenManager.openPanel(this.id, null, !0, !0, 123) : this.id == wfid.wangzhe ?
			PanelOpenManager.openPanel(this.id, null, !0, !0, 124) : PanelOpenManager.openPanel(this.id)
	}, e.prototype.onRemoveStage = function(t) {
		this.playEffect(!1), this.btn.filters = null, App.tip.removeTip(this.txt_desc0), this.btn.removeEventListener(egret
			.TouchEvent.TOUCH_END, this.btnClick, this)
	}, e
}(ItemRenderer);
__reflect(JinJiRegulationItemRender.prototype, "JinJiRegulationItemRender");
var PersonalJJExpliotRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PersonalJJExpliotRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._gridLayout || (this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 3, 10), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(130, 5, this)), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGet,
			this, this.btn)
	}, e.prototype.onGet = function(t) {
		var e = this.data;
		0 == e.state ? WangZheZBCommandSender.getRankReward(e.rankid) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">首次达到更高名次可领奖</font>")
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data,
			e = App.config.q_rankRewardContainer.getDataBean(t.rankid);
		if (e) {
			this.red.visible = this.get_txt.visible = this.btn.visible = !1, -1 == t.state ? this.btn.visible = !0 : 0 == t.state ?
				this.red.visible = this.btn.visible = !0 : this.get_txt.visible = !0, this.itemIndex < 3 ? this.txt_rank.textColor =
				15397963 : this.txt_rank.textColor = 11639929, this.txt_rank.text = "第" + e.q_paiming + "名";
			for (var i, n = StringUtil.JsonParse(e.q_paiming_reward), a = [], o = 0; o < n.length; o++) i = new ItemData, i.itemId =
				n[o].id, i.count = n[o].num, a.push(i);
			this._gridLayout.dataProvider = a
		}
	}, e
}(ItemRenderer);
__reflect(PersonalJJExpliotRender.prototype, "PersonalJJExpliotRender");
var PersonalJJRankItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PersonalJJRankItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._gridLayout || (this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 2, 55), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(287, 5, this))
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (t) {
			this.itemIndex < 3 ? this.txt_rank.textColor = 15397963 : this.txt_rank.textColor = 11639929, t.q_interval_a == t.q_interval_b ?
				this.txt_rank.text = "第" + t.q_interval_a + "名" : this.txt_rank.text = "第" + t.q_interval_a + "-" + t.q_interval_b +
				"名";
			for (var e, i = StringUtil.JsonParse(t.q_paiming_reward), n = [], a = 0; a < i.length; a++) e = new ItemData, e.itemId =
				i[a].id, e.count = i[a].num, n.push(e);
			this._gridLayout.dataProvider = n
		}
	}, e
}(ItemRenderer);
__reflect(PersonalJJRankItemRender.prototype, "PersonalJJRankItemRender");
var WangZheZBItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PersonalJJRenderSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.fight && this.fight.dispose(), this.fight = null, t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		this.fight.setValue(t.fightPower), this.fight.setVis(!1), this.txt_name.text = t.playerName, this.txt_rank.text =
			"第" + t.rank + "名", this.img_face.source = GridUtil.getHead(t.job, t.sex)
	}, e.prototype.onAddStage = function(e) {
		this.fight || (this.fight = new FightPower, this.fight.x = 72, this.fight.y = 43, this.addChild(this.fight)), t.prototype
			.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnHandler, this,
				this.btn_fight)
	}, e.prototype.btnHandler = function() {
		if (App.data.getWangZheZBCenter().fightNum <= 0) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">挑战次数已用完</font>");
		var t = this.data,
			e = App.data.zoneCenter.type;
		return e != EnumZoneType.AUTO_FIGHT_ZONE && e != EnumZoneType.PAGODA && e != EnumZoneType.MAIN_CITY_OLD ? (Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">您已在副本中，不能进入其他副本</font>"), !1) : (App.panel.removeAllPanel(), void WangZheZBCommandSender
			.requestFightUnit(t.playerId))
	}, e
}(ItemRenderer);
__reflect(WangZheZBItemRender.prototype, "WangZheZBItemRender");
var WangZheZBPanelUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(WangZheZBPanelUI.prototype, "WangZheZBPanelUI");
var LogCenter = function() {
	function t() {}
	return t.inputMsgByType = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		var n = this.logHashMap.get(t);
		null == n && (n = [], this.logHashMap.put(t, n)), this.indexArr[t]++;
		var a = this.indexArr[t] + "、[" + this.typeArr[t] + "] " + e.join(" ") + "\n\n";
		n.push(a), this.logTotalNum++, this.logTotalCharLength += a.length, n.length >= this.maxArr[t] && n.splice(10, 100)
	}, t.getMaxPage = function(t) {
		var e = 0,
			i = this.logHashMap.get(t);
		return null != i && (e = Math.ceil(i.length / this.showArr[t])), e
	}, t.getMsgsByType = function(t) {
		var e = [];
		return null != this.logHashMap.get(t) && (e = this.logHashMap.get(t)), e
	}, t.getMsgsByRegExp = function(t, e) {
		for (var i = [], n = new RegExp(e), a = this.getMsgsByType(t), o = 0; o < a.length; o++) n.test(a[o]) && i.push(a[o]);
		return i
	}, t.getMsgHashMap = function(t, e) {
		void 0 === e && (e = "");
		var i = new HashObject,
			n = [];
		n = "" == e ? this.getMsgsByType(t) : this.getMsgsByRegExp(t, e);
		for (var a = n.length, o = this.showArr[t], r = Math.ceil(a / o), s = 0; r > s; s++) i.put(s, n.slice(s * o, Math.min(
			(s + 1) * o, a)));
		return i
	}, t.logHashMap = new HashObject, t.logTotalNum = 0, t.logTotalCharLength = 0, t.showArr = [300, 100, 100, 100, 100,
		10, 1
	], t.maxArr = [1e4, 1e4, 1e3, 1e3, 2e3, 2e3, 1e3], t.indexArr = [0, 0, 0, 0, 0, 0, 0], t.typeArr = ["info", "error",
		"debug", "warn", "echo", "性能", "local"
	], t
}();
__reflect(LogCenter.prototype, "LogCenter");
var EnumLogType;
! function(t) {
	t[t.INFO = 0] = "INFO", t[t.ERROR = 1] = "ERROR", t[t.DEBUG = 2] = "DEBUG", t[t.WARN = 3] = "WARN", t[t.ECHO = 4] =
		"ECHO", t[t.XINGNENG = 5] = "XINGNENG", t[t.LOCAL_LOG = 6] = "LOCAL_LOG"
}(EnumLogType || (EnumLogType = {}));
var LogPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._go = !0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._view = UIMaker.createViewBase("LogPanelSkin"),
			this.addChild(this._view), this._tabBar = new TabBar([this._view.tbtnInfo, this._view.tbtnError, this._view.tbtnDebug,
				this._view.tbtnWarn, this._view.tbtnEcho, this._view.tbtnCapability, this._view.tbtnLocal
			]), this._cpage = new Cpage(this._view.btnPre, this._view.labelPageNumInfo, this._view.btnNext);
		var t = new eui.Label;
		t.textColor = 16711680, t.size = 20, t.text = "页数", this._view.txtPageNo.promptDisplay = t
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.tabBarChange, this, this._tabBar), this._dispatcher
			.addEventListener(Cpage.PAGE_CHANGE, this.onPageChange, this, this._cpage), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onJumpPage, this, this._view.btnJump), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onSearch, this, this._view.btnSearch), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onCopy, this, this._view.btnCopy), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClear,
				this, this._view.btnClear), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onStopOrGo, this,
				this._view.btnStop), this._tabBar.selectedIndex = 0
	}, e.prototype.tabBarChange = function(t) {
		this.cpageData(this.type)
	}, e.prototype.onPageChange = function(t) {
		null == this._cpage.pageData ? this._view.logContent.text = "无该类型(" + LogCenter.typeArr[this._tabBar.selectedIndex] +
			")日志" : this._view.logContent.text = this._cpage.pageData.join("\n"), this._view.logContent.height = this._view.logContent
			.textHeight, this._view.logContent.height >= this._view.scroller.height ? this._view.scroller.viewport && (this._view
				.scroller.viewport.scrollV = this._view.logContent.height - this._view.scroller.height) : this._view.scroller.viewport &&
			(this._view.scroller.viewport.scrollV = 0)
	}, e.prototype.onJumpPage = function(t) {
		this._cpage.pageNo = Number(this._view.txtPageNo.text)
	}, e.prototype.onSearch = function(t) {
		this.cpageData(this.type, this.field)
	}, e.prototype.cpageData = function(t, e) {
		var i;
		i = e ? LogCenter.getMsgsByRegExp(t, e) : LogCenter.getMsgsByType(t), this._cpage.pageSize = LogCenter.showArr[t],
			this._cpage.data = i, this._cpage.pageNo = this._cpage.totalPages
	}, e.prototype.onCopy = function(t) {}, e.prototype.onClear = function(t) {
		this._view.logContent.text = "", this._cpage.data = []
	}, e.prototype.onStopOrGo = function(t) {
		this.go = !this.go
	}, Object.defineProperty(e.prototype, "go", {
		get: function() {
			return this._go
		},
		set: function(t) {
			this._go = t, this._view.btnStop.label = t ? "STOP" : "GO"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "type", {
		get: function() {
			return this._tabBar.selectedIndex
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "field", {
		get: function() {
			return this._view.txtSearch.text
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(i) {
		t.prototype.show.call(this), this.addListeners(), App.timer.doTimeLoop(this, e.DELAY_TIME, this.onTimer)
	}, e.prototype.onTimer = function() {
		this.go && this.cpageData(this.type, this.field)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._tabBar && (this._tabBar = null), this._cpage && (this._cpage = null), this._go = !
			1, App.timer.clearTimer(this.onTimer, this), this._view = void 0
	}, Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 800
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 654
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.moni = function() {
		for (var t = LogCenter.maxArr[EnumLogType.INFO]; --t;) {
			var e = ["信息1", "信息2", "信息3", "信息4", "信息5"];
			LogCenter.inputMsgByType(EnumLogType.INFO, e)
		}
	}, e.DELAY_TIME = 1e3, e
}(BasePanel);
__reflect(LogPanel.prototype, "LogPanel");
var MailDetailPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MailDetailSkin"), this.addChild(this._view), this._layoutContainer = new LayoutContainer(
			ItemGrid, 100, 110, -1, new FunctionVO(this.itemRender, this)), this._view.scrollerAccessory.viewport = this._layoutContainer
	}, e.prototype.itemRender = function(t, e) {
		t.setData(e), t.width = 100
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this._dispatcher.addEventListener(MailEvent.MAIL_QUERYDETAIL_MESSAGE, this.refresh,
			this);
		var i = this.mailDataCenter.mailDetailDict.get(e.mailId);
		i ? this.refresh(i) : MailCommandSender.C2S_MailDetail(e.mailId)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getAccessoryHandler, this, this._view.btnGetAccessory)
	}, e.prototype.getAccessoryHandler = function(t) {
		if (this._mailData && this._mailData.isAccessory) {
			for (var e = 0, i = void 0, n = 0; n < this._mailData.itemList.length; n++) i = this._mailData.itemList[n],
				ItemUtil.isEquip(i.type) && e++;
			this.bagItemDataCenter.equipBagCapacity - this.bagItemDataCenter.equipCount >= e && MailCommandSender.C2S_MailGetItem(
				[this._mailData.mailId])
		}
	}, e.prototype.refresh = function(t, e, i) {
		this._mailData = t, t && (this._view.lalContent.textFlow = HtmlUtil.getHtmlStr(t.notice), t.isAccessory ? (this._view
				.scrollerAccessory.visible = !0, this._view.btnGetAccessory.visible = !0) : (this._view.scrollerAccessory.visible = !
				1, this._view.btnGetAccessory.visible = !1), this._layoutContainer.dataProvider = t.itemList, this._view.lalNoAccessory
			.visible = 0 == t.itemList.length, this.addEvents())
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.lalContent.text = ""
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._mailData = void 0, this._layoutContainer && this._layoutContainer.clear(),
			this._layoutContainer = void 0, this._view = void 0
	}, Object.defineProperty(e.prototype, "bagItemDataCenter", {
		get: function() {
			return App.data.bagItemDataCenter
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mailDataCenter", {
		get: function() {
			return App.data.mailDataCenter
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MailDetailPanel.prototype, "MailDetailPanel");
var MailPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowMain, this.addChild(this.window), this._btnClose = this.window.close_btn, this.window.imgTitle
			.source = "titleview_youjian_png", this._view = UIMaker.createViewBase("MailSkin"), this.window.viewContainer.addChild(
				this._view), this._mailScroller = new VScrollPanel(620, 703, MailItemView, 3), this._mailScroller.move(10, 68),
			this._view.addChild(this._mailScroller)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this.addEvents(), this.mailListRefresh(!0), this.window.show()
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(MailEvent.MAIL_QUERYLIST_MESSAGE, this.mailListRefresh, this), this._dispatcher.addEventListener(
			MailEvent.MAIL_QUERYDETAIL_MESSAGE, this.mailDetailRefresh, this), this._dispatcher.addEventListener(MailEvent.DEL_MAIL_MESSAGE,
			this.mailListRefresh, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getAllAccesoryHandler,
			this, this._view.btnGet)
	}, Object.defineProperty(e.prototype, "ids", {
		get: function() {
			var t = [];
			if (this._mailList) {
				var e = void 0;
				for (var i in this._mailList) e = this._mailList[i], e && e.isAccessory && t.push(e.mailId)
			}
			return t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "countAccessory", {
		get: function() {
			var t = 0;
			if (this._mailList) {
				var e = void 0;
				for (var i in this._mailList)
					if (e = this._mailList[i], e && e.isAccessory && e.itemList)
						for (var n = 0; n < e.itemList.length; n++) ItemUtil.isEquip(e.itemList[n].type) && t++
			}
			return t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.allAccessory = function() {}, e.prototype.getAllAccesoryHandler = function(t) {
		this.bagItemDataCenter.equipBagCapacity - this.bagItemDataCenter.equipCount >= this.countAccessory ? this.ids &&
			this.ids.length > 0 ? MailCommandSender.C2S_MailGetItem(this.ids) : Notice.showMousePosMessage("<font color=" +
				Notice.MIDDLE_COLOR_2 + ">没有附件可领取</font>") : App.panel.openPanel(107, null, !1)
	}, e.prototype.mailListRefresh = function(t) {
		void 0 === t && (t = !1), t && this.mailDataCenter.mailList.sort(this.sortFunc), this.refresh(0, this.mailDataCenter
			.mailList.concat())
	}, e.prototype.sortFunc = function(t, e) {
		var i = 259200;
		if (t.lostTime <= i) {
			if (e.lostTime > i) return -1;
			if (t.isAccessory && !e.isAccessory) return -1
		} else if (e.lostTime > i)
			if (t.isRead) {
				if (e.isRead && t.isAccessory && !e.isAccessory) return -1
			} else {
				if (e.isRead) return -1;
				if (t.isAccessory && !e.isAccessory) return -1
			} return t.sendTime > e.sendTime ? -1 : 1
	}, e.prototype.refresh = function(t, e, i) {
		void 0 === t && (t = 0), void 0 === e && (e = null), void 0 === i && (i = null), null != e && (this._mailList = e),
			e && (this._mailScroller.dataProvider = e)
	}, e.prototype.mailDetailRefresh = function(t, e, i) {
		this.mailListRefresh()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.window.hide(), this._mailScroller.removeAll()
	}, e.prototype.dispose = function() {
		this._mailList = void 0, this._mailScroller && (this._mailScroller.dispose(), this._mailScroller = null), this._mailScroller =
			void 0, this._view = void 0, this.window.dispose(), this.window = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "mailDataCenter", {
		get: function() {
			return App.data.mailDataCenter
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "bagItemDataCenter", {
		get: function() {
			return App.data.bagItemDataCenter
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MailPanel.prototype, "MailPanel");
var FightNumMoveItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._effectArr = [], e._timeFrame = 0, e.euiSkinName = "FightPowerSkin", e.touchEnabled = e.touchChildren = !1,
			e.bg.visible = !1, e
	}
	return __extends(e, t), e.prototype.setValue = function(t, e) {
		void 0 === e && (e = 1), this._fightNumberBmp ? this._fightNumberBmp.show(t + "", e, 0, BitmapNumberType.CURR_FIGHT_POWER) :
			(this._fightNumberBmp = NumberBitmapCache.show(BitmapNumberType.CURR_FIGHT_POWER, t + "", e, 0,
					EnumNumberSheetType.NUM_FIGHT), this._fightNumberBmp.x = this.imgFight.x + 85, this._fightNumberBmp.y = this.imgFight
				.y + 12, this.addChild(this._fightNumberBmp)), this._fightNumberBmp.alpha = 1
	}, e.prototype.setAddValue = function(t, e) {
		void 0 === e && (e = 0), this._addNumBmp ? this._addNumBmp.show("+" + t, e, 0, BitmapNumberType.ADD_FIGHT_POWER) :
			(this._addNumBmp = NumberBitmapCache.show(BitmapNumberType.ADD_FIGHT_POWER, "+" + t, e, 0, EnumNumberSheetType.NUM_FIGHT),
				this._addNumBmp.y = this._fightNumberBmp.y, this.addChild(this._addNumBmp)), this._addNumBmp.alpha = 1, this._addNumBmp
			.x = this._fightNumberBmp.x + this._fightNumberBmp.width + 10
	}, e.prototype.palyFightNumEffect = function(t, e) {
		null == this.parent && App.layer.guideLayer.addChild(this), App.panel.isShowing(6) || App.panel.isShowing(5) ? this
			.y = 630 : App.panel.isShowing(8e3) ? this.y = 588 : App.panel.isShowing(8004) ? this.y = 550 : this.y = 700, App.timer
			.clearTimer(this.end, this), App.timer.clearTimer(this.onTimer, this), this._bgEffect || (this._bgEffect =
				EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("main", "addFightNum2"), 88, 3, this._bgEffect),
				this.addChildAt(this._bgEffect.view, 0)), this._bgEffect.currentIndex = 0, this._bgEffect.play(), EffectUtils.showOnceEffect(
				this, this, ResPathUtil.getMenuEffect("main", "addFightNum1"), 70, 25), this.x = (Config.SCREEN_WIDTH - this.width) /
			2 + 60, this.visible = !0, this.setValue(t), this._bitMapArr = this._fightNumberBmp.getbitMapArr(), this.setAddValue(
				e);
		var i = 0,
			n = this._addNumBmp.getbitMapArr().length;
		for (i = 0; n > i; i++) this._addNumBmp.getbitMapArr()[i].alpha = .01;
		if (0 == this._bitMapArr.length) return void(this.visible = !1);
		n = t.toString().length;
		var a;
		for (i = 0; n > i; i++) i >= this._effectArr.length ? (a = new CEffect, a.url = ResPathUtil.getMenuEffect("main",
				"fightNum"), a.addParent(this), this._effectArr.push(a)) : a = this._effectArr[i], a.x = this.imgFight.x + 95 +
			19 * i, a.y = this.imgFight.y + 25, a.currentIndex = i, a.visible = !0, a.play(), i < this._bitMapArr.length && (
				this._bitMapArr[i].visible = !1);
		this._timeFrame = 0, App.timer.doTimeLoop(this, 25, this.onTimer)
	}, e.prototype.onTimer = function() {
		if (this._timeFrame >= 5 && (this._timeFrame - 5 < this._effectArr.length && (this._effectArr[this._timeFrame - 5].stop(),
					this._effectArr[this._timeFrame - 5].visible = !1), this._timeFrame - 5 < this._bitMapArr.length && (this._bitMapArr[
					this._timeFrame - 5].visible = !0), this._timeFrame - 5 < this._effectArr.length && this._timeFrame - 5 < this._bitMapArr
				.length)) {
			App.timer.clearTimer(this.onTimer, this);
			var t = 0,
				e = this._addNumBmp.getbitMapArr().length;
			for (t = 0; e > t; t++) t == e - 1 ? TweenLite.to(this._addNumBmp.getbitMapArr()[t], .2, {
				alpha: 1,
				onComplete: this.removeItem,
				onCompleteParams: [t],
				onCompleteScope: this
			}) : TweenLite.to(this._addNumBmp.getbitMapArr()[t], .2, {
				alpha: 1
			});
			0 == e && this.removeItem(0)
		}
		this._timeFrame++
	}, e.prototype.removeItem = function(t) {
		App.timer.doTimeOnce(this, 1e3, this.end)
	}, e.prototype.end = function() {
		this.visible = !1, this._bgEffect.stop()
	}, e.prototype.dispose = function() {
		if (App.timer.clearTimer(this.end, this), this._fightNumberBmp && (this._fightNumberBmp.dispose(), this._fightNumberBmp =
				null), this._addNumBmp && (this._addNumBmp.dispose(), this._addNumBmp = null), this._bgEffect && (this._bgEffect.dispose(),
				this._bgEffect = null), this._effectArr) {
			for (var e = this._effectArr.length, i = 0; e > i; i++) this._effectArr[i].dispose, this._effectArr[i] = null;
			this._effectArr = []
		}
		this._bitMapArr = [], App.timer.clearTimer(this.onTimer, this), TweenLite.killTweensOf(this), this.imgFight = null,
			t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(FightNumMoveItem.prototype, "FightNumMoveItem");
var GodEquipBaolv = function() {
	function t() {
		App.dispatcher.addEventListener(ItemEvent.ADD, this.onItemChange, this)
	}
	return t.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = t.length;
		if (e == EnumReasons.TAKEUP || e == EnumReasons.ZONEREWARDITEM) {
			for (var a = 0; n > a; a++)
				if (i = t[a], 1 == i.getDataBean().q_itme_prompt)
					if (ItemUtil.isEquip(i.itemId) && App.global.funcOpen.isFunctionOpen(5)) {
						var o = 100 * Math.random(),
							r = GameUtil.getGlobalConfigData(263).q_int_value;
						r >= o ? Notice.showLegendView(i.itemId, !1) : Notice.showLegendView(i.itemId)
					} else Notice.showLegendView(i.itemId)
		} else e == EnumReasons.PROMISE && PanelOpenManager.openPanel(115, t)
	}, t
}();
__reflect(GodEquipBaolv.prototype, "GodEquipBaolv");
var HejiSkillYlPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._windowView = new WindowMain, this._windowView.imgTitle.source = "titleview_hejijineng_png", this.addChild(
				this._windowView), this._btnClose = this._windowView.close_btn, this._windowView.showRoleList(!1), this._windowView
			.showFightPower(!1), this._bgImg = UIMaker.getCImage(this._windowView.viewContainer, e, ResPathUtil.getImgPath(
				"hejiyl_" + App.global.characterData.job, "tazhuang", ".jpg"), 0, 60);
		var t = App.data.characterCenter.hejiEquipCenter.getTzSkillId();
		this._skillBean = GameUtil.getSkillConfigDataById(t), this.useEffect(), App.timer.doTimeOnce(this, 500, this.onShowGuide)
	}, e.prototype.onShowGuide = function() {
		App.dispatcher.dispatchEvent(EventType.BACKGUIDE)
	}, e.prototype.playSkillProgressAnimation = function() {
		if ("" != this._skillBean.q_trajectory_effect)
			for (var t = ResPathUtil.parseSkillEffect(this._skillBean.q_File_client, this._skillBean.q_trajectory_effect), e =
					t.length, i = 0; e > i; i++) {
				var n = t[i];
				if (n) {
					var a = 30;
					EffectUtils.showOnceEffect("HejiSkillYlPanel", this, n, 180, 300, null, Config.gameSceneSpeed, 0, a),
						EffectUtils.showOnceEffect("HejiSkillYlPanel", this, n, 180, 300, null, Config.gameSceneSpeed, 0, -24 + a),
						EffectUtils.showOnceEffect("HejiSkillYlPanel", this, n, 180, 300, App.thing.create(CPlayOnceEffect,
							"HejiSkillYlPanel", !0), Config.gameSceneSpeed, 70, -12 + a), EffectUtils.showOnceEffect("HejiSkillYlPanel",
							this, n, 180, 300, null, Config.gameSceneSpeed, 0, 24 + a);
					var o = EffectUtils.showOnceEffect("HejiSkillYlPanel", this, n, 180, 300, App.thing.create(CPlayOnceEffect,
						"HejiSkillYlPanel", !0), Config.gameSceneSpeed, 70, 12 + a);
					o.finishCallBackFun = new FunctionVO(this.useEffect, this)
				}
			}
	}, e.prototype.useEffect = function() {
		for (var t = ResPathUtil.parseSkillEffect(this._skillBean.q_File_client, this._skillBean.q_use_effect), e = t.length,
				i = 0; e > i; i++) {
			var n = t[i];
			i == e - 1 ? App.global.characterData.job == EnumRole.FA_SHI ? this.createEffect(n, 180, 380, new FunctionVO(this.trajectoryEffect,
				this)) : (t = ResPathUtil.parseSkillEffect(this._skillBean.q_File_client, this._skillBean.q_use_effect, 3), App.global
				.characterData.job == EnumRole.DAO_SHI ? this.createEffect(t[t.length - 1], 180, 380, new FunctionVO(this.playSkillProgressAnimation,
					this)) : this.createEffect(t[t.length - 1], 180, 380, new FunctionVO(this.useEffect, this))) : this.createEffect(
				n, 180, 380, null)
		}
	}, e.prototype.trajectoryEffect = function() {
		var t;
		t = ResPathUtil.parseSkillEffect(this._skillBean.q_File_client, this._skillBean.q_trajectory_effect);
		for (var e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			i == e - 1 ? this.createEffect(n, 500, 580, new FunctionVO(this.useEffect, this)) : this.createEffect(n, 500, 580,
				null)
		}
	}, e.prototype.createEffect = function(t, e, i, n) {
		var a = App.thing.create(CPlayOnceEffect, "HejiSkillYlPanel", !0);
		a.finishCallBackFun = n, a.url = t, a.x = e, a.y = i, a.addParent(this), a.play()
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._windowView.show()
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onShowGuide, this), this._windowView.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._windowView.dispose(), this._windowView = null, this._bgImg.dispose(), this._bgImg = null, t.prototype.dispose
			.call(this)
	}, e
}(BasePanel);
__reflect(HejiSkillYlPanel.prototype, "HejiSkillYlPanel");
var MainPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._a = 0, e._dispatcher = new DispatcherRegister, e.initialize(), e.addEvents(), e.resize(), e.touchEnabled = !
			1, e
	}
	return __extends(e, t), e.prototype.initialize = function() {
		if (Config.isWxGame && Config.isPhoneX) {
			var t = new h5_engine.GShape;
			t.graphics.beginFill(0, 1), t.graphics.drawRect(0, 0, 640, 50), t.graphics.endFill(), this.addChild(t)
		}
		this._shadow = UIMaker.getImage(this, this, ResPathUtil.getImgPath("shadow"), 0, 0, !1), this._shadow.scale9Grid =
			new egret.Rectangle(100, 100, 100, 100), this.headMenuView = new MainTopView, this.addChild(this.headMenuView),
			this.mainMenuView = new MainMenuView, this.addChild(this.mainMenuView), this._sceneChatView = new ChatScenePanel(
				this, 376, 50), this._sceneChatView.show(), this.addChild(this._sceneChatView), this.menuButtonContainer = new EnterButtonContainer,
			this.addChild(this.menuButtonContainer), this.mainMenuView.navigation.setNavigationButtons(this.mainMenuView.btn_show,
				this.mainMenuView.btn_hide, this.mainMenuView.groupCity), this._mainViewNotification = new MainViewNotification,
			this.addChild(this._mainViewNotification), new GodEquipBaolv, new PayingEffect, new ReconnectionEffect, new SuccessEffect,
			new GatherEffect, new KunEffect, new OpenFuncGuideView, new TanBaoResultEffect
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(EventType.MAINPANEL_SHOWORHIDE, this.onShowOrHide, this), App.stage.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this._dispatcher.addEventListener(PlayerAttributeEvent.CHARACTER_LEVEL,
			this.OnSettingOpenData, this), this._dispatcher.addEventListener(PlayerAttributeEvent.ROLE_CREATE, this.OnSettingOpenData,
			this)
	}, e.prototype.OnSettingOpenData = function() {
		if (Config.isWxGame) {
			var t = App.global.characterData.getLevel().toString();
			Weixin.setUserCloudStorage(t)
		}
	}, e.prototype.onTouch = function(t) {}, e.prototype.removeItem = function(t) {
		t && t.parent && (TweenLite.killTweensOf(t), t.parent.removeChild(t))
	}, e.prototype.onShowOrHide = function(t) {
		0 == t && App.panel.removeTopPanel(), this.headMenuView.visible = t
	}, e.prototype.resize = function() {
		this.menuButtonContainer.resize(), this._sceneChatView.resize(), this.headMenuView.resize(), this.mainMenuView.resize(),
			this._shadow.width = Config.SCREEN_WIDTH, this._shadow.height = Config.SCREEN_HEIGHT
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(MainPanel.prototype, "MainPanel");
var MainParams;
! function(t) {
	t[t.Down = 55] = "Down", t[t.UP = 30] = "UP"
}(MainParams || (MainParams = {}));
var MainViewNotification = function(t) {
	function e() {
		var i = t.call(this) || this;
		return i.offsetY = 50, i.AddEvent = function() {
			App.dispatcher.addEventListener(e.Event_MinerTips, i.ShowMinerTimes, i), App.dispatcher.addEventListener(MineEvent
				.MINE_MINING_END, i.FinishMiner, i), App.dispatcher.addEventListener(EventType.MAINPANEL_SHOWORHIDE2, i.MinerTipShow,
				i), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, i.ViewReszie, i)
		}, i.ViewReszie = function() {
			i._backEffect && (i._backEffect.x = Config.SCREEN_WIDTH - 99, i._backEffect.y = 320 + i.offsetY), i._backImg && (i
				._backImg.x = Config.SCREEN_WIDTH - 199, i._backImg.y = 300 + i.offsetY), i._minerLb && (i._minerLb.x = Config.SCREEN_WIDTH -
				i._minerLb.width - 18, i._minerLb.y = 310 + i.offsetY)
		}, i.ShowMinerTimes = function() {
			if (App.data.zoneCenter.type == EnumZoneType.AUTO_FIGHT_ZONE && App.global.funcOpen.isFunctionOpen(77)) {
				var t = App.data.minecenter;
				t.miningInfo && (i._times = t.miningInfo.remainTime), i.$AddMinerTips(t)
			}
		}, i.FinishMiner = function() {
			i.$ShowFinish()
		}, i.$ShowFinish = function() {
			App.data.zoneCenter.type == EnumZoneType.AUTO_FIGHT_ZONE && App.global.funcOpen.isFunctionOpen(77) && (i.$CreateCompoent(),
				i._minerLb && (i._minerLb.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'>修炼完成前往领取</font>"), i._minerLb.removeEventListener(
						egret.TouchEvent.TOUCH_TAP, i.JumpView, i), i._minerLb.once(egret.TouchEvent.TOUCH_TAP, function() {}, i), App
					.timer.clearTimer(i.$ShowFinish, i)))
		}, i.MinerTipShow = function(t) {
			t ? i._minerGroup && (i._minerGroup.visible = !0) : i._minerGroup && (i._minerGroup.visible = !1)
		}, i.$AddMinerTips = function(t) {
			i.$CreateCompoent(), t.miningInfo ? (App.timer.serverTimeEndCount(i, i.$onMinerTimer, i._times), i.$CheckMinerTime()) :
				t.miningNum <= 0 ? i.$RemoveMinerTips() : (i._minerLb.textFlow = HtmlUtil.getHtmlStr(
					"<font color='#00ff00'>修炼剩余次数:" + t.miningNum + "</font>"), i._backEffect || (i._backEffect = App.thing.create(
						CEffect, i, !0), i._backEffect.url = ResPathUtil.getMenuEffect("main", "minerTips"), i._backEffect.x = Config.SCREEN_WIDTH -
					99, i._backEffect.y = 320 + i.offsetY, i._backEffect.addParent(i._minerGroup), i._backEffect.play()))
		}, i.$CheckMinerTime = function() {
			MineCommandSender.sendC2S_EnterMineMessage()
		}, i.$CreateCompoent = function() {
			i._minerGroup || (i._minerGroup = new eui.Group, i._minerGroup.width = 0, i._minerGroup.height = 0, i.addChild(i._minerGroup)),
				i._backImg || (i._backImg = App.thing.create(CImage, i, !0), i._backImg.url = ResPathUtil.getImgPath(
						"main_miner_back"), i._minerGroup.addChild(i._backImg), i._backImg.x = Config.SCREEN_WIDTH - 199, i._backImg.y =
					300 + i.offsetY), i._minerLb || (i._minerLb = new eui.Label, i._minerGroup.addChild(i._minerLb), i._minerLb.size =
					22, i._minerLb.x = Config.SCREEN_WIDTH - 2 * i._minerLb.width - 190, i._minerLb.y = 310 + i.offsetY, i._minerLb.textAlign =
					egret.HorizontalAlign.CENTER, i._minerLb.addEventListener(egret.TouchEvent.TOUCH_TAP, i.JumpView, i))
		}, i.JumpView = function() {
			ZoneCommandSender.sendC2S_ZoneIntoMessage(wfid.miner, EnumZoneType.MINE_ZONE)
		}, i.$onMinerTimer = function() {
			i._times ? (i._times--, i._times < 0 && (i._times = null, App.timer.clearTimer(i.$onMinerTimer, i)), i._minerLb.textFlow =
					HtmlUtil.getHtmlStr("<font color='#E89A47'>[修炼]" + StringUtil.convertTime5(i._times) + "后完成</font>")) : i._minerLb
				.textFlow = HtmlUtil.getHtmlStr("<font color='#E89A47'>[修炼]" + StringUtil.convertTime5(i._times--) + "后完成</font>")
		}, i.$RemoveMinerTips = function() {
			i._minerLb.removeEventListener(egret.TouchEvent.TOUCH_TAP, i.JumpView, i), i._minerGroup.contains(i._minerLb) && i
				._minerGroup.removeChild(i._minerLb), i._minerGroup.contains(i._backImg) && i._minerGroup.removeChild(i._backImg),
				i.contains(i._minerGroup), i.removeChild(i._minerGroup), i._backEffect && i._backEffect.parent && i._backEffect.removeParent(),
				i._minerLb = null, i._backImg = null, i._minerGroup = null, i._backEffect = null
		}, i.AddEvent(), i
	}
	return __extends(e, t), e.Event_MinerTips = "Event_MinerTips", e
}(egret.DisplayObjectContainer);
__reflect(MainViewNotification.prototype, "MainViewNotification");
var OfflineExpPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("OfflineExpSkin"), this.addChild(this._view);
		var t = new MaskShape;
		t.graphics.beginFill(0, .01), t.graphics.drawRect(0, 0, 459, 42), t.graphics.endFill(), t.touchEnabled = !0, this._view
			.groupClick.addChild(t)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e.info,
			n = 1 == i.isMoonCard;
		n ? (this._view.time_txt.text = "离线时间：" + DateUtil.formatToTime_V2(i.offlineTime), this._view.money_txt.text = Math
			.floor(i.gold / 11 * 10) + "", this._view.exp_txt.text = Math.floor(i.exp / 11 * 10) + "", this._view.equip_txt.text =
			i.equipNum + "", this._view.jinglian_txt.text = i.sellNum + "", this._view.money_txt0.text = Math.floor(i.gold /
				11) + "", this._view.exp_txt0.text = Math.floor(i.exp / 11) + "") : (this._view.time_txt.text = "离线时间：" +
			DateUtil.formatToTime_V2(i.offlineTime), this._view.money_txt.text = i.gold + "", this._view.exp_txt.text = i.exp +
			"", this._view.equip_txt.text = i.equipNum + "", this._view.jinglian_txt.text = i.sellNum + "", this._view.money_txt0
			.text = "0", this._view.exp_txt0.text = "0")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 394
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 520
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(OfflineExpPanel.prototype, "OfflineExpPanel");
var RevivePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ReviveSkin"), this.addChild(this._view), this._view.bg.source = ResPathUtil.getImgPath(
			"bg_revive")
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onTouch, this, this._view.btn), App.dispatcher.dispatchEvent(EventType.OPEN_REVIVE, !0), this.update(e.cmd)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimeCount, this), App.dispatcher.dispatchEvent(EventType.OPEN_REVIVE,
			!1)
	}, e.prototype.onTouchStage = function(t) {}, e.prototype.update = function(t) {
		var e = App.config.q_mapContainer.getDataBean(App.global.characterData.mapId);
		App.timer.serverTimeEnd(this, this.onTimeCount, ServerTime.getServerTime() + e.q_auto_revive_daily / 1e3);
		var i = 0;
		if (e.q_revive_consume) {
			var n = StringUtil.JsonParse(StringUtil.replacJosnStr(e.q_revive_consume)),
				a = t.dayConsumeLocalReviveTimes < n.length ? t.dayConsumeLocalReviveTimes : n.length - 1;
			i = n[a].num
		}
		var o = [EnumZoneType.SHABAK, EnumZoneType.BIQI_NIGHT],
			r = -1 != o.indexOf(App.data.zoneCenter.type) ? "立即复活" : "原地复活";
		10030 == e.q_map_id && (r = -1 != o.indexOf(App.data.zoneCenter.type) ? "立即复活" : "快速复活"), this._view.cost_txt.text =
			i + r;
		var s = t.attackername || 0 == t.monstermodelid ? t.attackername : GameUtil.getMonsterConfigData(t.monstermodelid).q_name;
		this._view.name_txt.textFlow = HtmlUtil.getHtmlStr("你被 " + HtmlUtil.formatColor(s, 15408925) + " 击败"), this._view.groupKill
			.x = this.width - this._view.groupKill.width >> 1
	}, e.prototype.onTouch = function(t) {
		ReviveComandSender.sendLocalReviveMessage(2, EnumMoney.YUAN_BAO)
	}, e.prototype.onTimeCount = function(t) {
		t.spuleTime > 0 ? this._view.time_txt.text = t.spuleTime + "秒自动复活" : App.panel.isShowing(49) && (App.timer.clearTimer(
			this.onTimeCount, this), App.panel.removePanel(49))
	}, e.prototype.resize = function() {
		this.stage && (this.x = Config.SCREEN_WIDTH - this.width >> 1, this.y = 686)
	}, e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 152
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 441
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(RevivePanel.prototype, "RevivePanel");
var BossRemindEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.touchEnabled = !1, e.touchChildren = !1, e._effect = EffectUtils.showCEffect(e, e, ResPathUtil.getMenuEffect(
				"main", "remind"), 100, 9, e._effect), e._txt = UIMaker.getTextField(e, e, -10, 0, 200, 18, 11639929, 18), e._txt.textAlign =
			egret.HorizontalAlign.CENTER, e
	}
	return __extends(e, t), e.prototype.play = function(t) {
		if (t) {
			this._effect.play(), this._effect.visible = !0;
			var i = GameUtil.getZoneBean(t.zoneID);
			i && i.q_zone_client_type == EnumZoneType.BOSS_HOME ? this._txt.text = "BOSS之家刷新了" : (e.isPlaying = !0, this._txt.textFlow =
				HtmlUtil.getHtmlStr(HtmlUtil.formatColor(t.name, 3533365) + "刷新了")), this.x = -180, this.move()
		} else this.clear()
	}, e.prototype.clear = function() {
		App.data.boss.resetRemindBoss(), this._effect.stop(), this._effect.visible = !1, this._txt.text = "", e.isPlaying = !
			1, this.clearTween()
	}, e.prototype.clearTween = function() {
		var t;
		t = this instanceof e ? this : this.target, t.x = -180, TweenLite.killTweensOf(t)
	}, e.prototype.move = function() {
		var t;
		t = this instanceof e ? this : this.target, t && (TweenLite.killTweensOf(t), t.x >= -180 ? (t.x = -180, TweenLite.to(
			t, .5, {
				x: -230,
				ease: Linear.easeIn,
				onComplete: t.move
			})) : t.x <= -230 && (t.x = -230, TweenLite.to(t, .5, {
			x: -180,
			ease: Linear.easeIn,
			onComplete: t.move
		})))
	}, e.isPlaying = !1, e
}(h5_engine.GDisplayObjectContainer);
__reflect(BossRemindEffect.prototype, "BossRemindEffect");
var GatherEffect = function() {
	function t() {
		this.init()
	}
	return t.prototype.init = function() {
		App.dispatcher.addEventListener(EventType.Gathering, this.onGather, this), App.dispatcher.addEventListener(
			ItemEvent.ADD, this.onAdd, this)
	}, t.prototype.onAdd = function(t, e) {
		1204 == e && PanelOpenManager.openPanel(115, t)
	}, t.prototype.onGather = function(t, e) {
		if (t) {
			null == this._bg_bar && (this._bg_bar = UIMaker.getImage(App.layer.zoneLayer, this, "main_jindu_a01_png", 163, 838),
				this._bg_bar.width = 313, this._bg_bar.scale9Grid = new egret.Rectangle(20, 9, 10, 9), this._bg_bar.x = Config.SCREEN_WIDTH -
				this._bg_bar.width >> 1), null == this._bar && (this._bar = UIMaker.getImage(App.layer.zoneLayer, this,
				"main_jindu_a04_png", 174, 845), this._bar.width = 291, this._bar.scale9Grid = new egret.Rectangle(12, 1, 10,
				13), this._bar.x = Config.SCREEN_WIDTH - this._bar.width >> 1), null == this._hp && (this._hp = new HpBar, this._hp
				.setUiComponent(this._bar, null, 291, 15, null, e / 1e3));
			var i = EnumZoneType.CROSS_FLAG == App.data.zoneCenter.type ? "flag" : "gather";
			this._effect = EffectUtils.showCEffect(this, App.layer.zoneLayer, ResPathUtil.getMenuEffect("main", i), Config.SCREEN_WIDTH >>
				1, 822, this._effect), this._hp.setDefaultValue(0, 1), this._hp.setValue(1, 1), App.timer.doTimeOnce(this, e +
				500, this.clear)
		} else this.clear()
	}, t.prototype.clear = function() {
		App.timer.clearTimer(this.clear, this), this._effect && (this._effect.dispose(), this._effect = null), this._hp &&
			(this._hp.dispose(), this._hp = null), this._bg_bar && (UIMaker.putToPool(this._bg_bar), this._bg_bar = null),
			this._bar && (UIMaker.putToPool(this._bar), this._bar = null)
	}, t
}();
__reflect(GatherEffect.prototype, "GatherEffect");
var KunEffect = function() {
	function t() {
		this._playing = !1, this._queue = [], this.init()
	}
	return t.prototype.init = function() {
		App.dispatcher.addEventListener(WarpetEvent.KUN_EAT, this.toQueue, this), App.dispatcher.addEventListener(ZoneEvent
			.ENTER_ZONE, this.onEnter, this)
	}, t.prototype.onEnter = function(t, e) {
		App.data.warpetCenter.kunCenter.showEat() && (this._effect = EffectUtils.showCEffect(this, App.layer.guideLayer,
			ResPathUtil.getMenuEffect("main", "kun_eat"), Config.SCREEN_WIDTH >> 1, Config.SCREEN_HEIGHT - 450, this._effect
		), this._effect.stop(), this._effect.removeParent(), App.dispatcher.removeEventListener(ZoneEvent.ENTER_ZONE,
			this.onEnter, this))
	}, t.prototype.toQueue = function(t) {
		this._queue.push(t), this.play()
	}, t.prototype.play = function() {
		this._playing || (this._queue.length > 0 ? (this._vo = this._queue.shift(), this.start()) : this.clear())
	}, t.prototype.start = function() {
		this._playing = !0, null == this._bg && (this._bg = new h5_engine.GShape, this._bg.graphics.clear(), this._bg.graphics
			.beginFill(0, 1), this._bg.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this._bg.graphics.endFill(),
			App.layer.guideLayer.addChild(this._bg)), this._bg.alpha = 0, TweenLite.to(this._bg, .2, {
			alpha: 1
		}), this.addBossAvatarUI(this._vo.targetModelId), App.timer.doTimeOnce(this, 200, this.jump)
	}, t.prototype.jump = function() {
		this._bossAvatar && (this._bossAvatar.changeAct(AvatarActionType.ACTION_TYPE_SKILL_ATK1, !0, !0), this._bossAvatar.playEndHanlder =
			new FunctionVO(this.endSkillAtk, this, this._bossAvatar), this._bossAvatar.play()), this._effect.addParent(App.layer
			.guideLayer), this._effect.restart(), this._effect.play(), this._effect.lastFrameHanderCallBack = new FunctionVO(
			this.onLastFrame, this), App.timer.doTimeOnce(this, 500, this.eat)
	}, t.prototype.onLastFrame = function() {
		this._effect.stop(), this._effect.removeParent()
	}, t.prototype.eat = function() {
		this._bossAvatar.visible = 1 != this._vo.result;
		var t = 1 == this._vo.result ? "kun_success" : "kun_fail";
		EffectUtils.showOnceEffect("KunEffect", App.layer.guideLayer, ResPathUtil.getMenuEffect("main", t), Config.SCREEN_WIDTH >>
			1, Config.SCREEN_HEIGHT - 800), App.timer.doTimeOnce(this, 1200, this.levelUp)
	}, t.prototype.levelUp = function() {
		App.data.warpetCenter.kunCenter.play ? (App.data.warpetCenter.kunCenter.play = !1, this._bossAvatar.visible = !1,
			this.addKunAvatarUI(), App.timer.doTimeOnce(this, 200, this.levelUpEffect), App.timer.doTimeOnce(this, 1400, this
				.fly)) : (TweenLite.to(this._bg, .2, {
			alpha: 0
		}), App.timer.doTimeOnce(this, 100, this.end))
	}, t.prototype.levelUpEffect = function() {
		EffectUtils.showOnceEffect("KunEffect", App.layer.zoneLayer, ResPathUtil.getMenuEffect("main", "kun_up"), Config.SCREEN_WIDTH >>
			1, Config.SCREEN_HEIGHT - 780)
	}, t.prototype.fly = function() {
		if (this._avatar) {
			var e = t.targetFly;
			e && (TweenLite.to(this._bg, .2, {
				alpha: 0
			}), TweenLite.to(this._avatar, .25, {
				x: e.localToGlobal().x + e.width / 2,
				y: e.localToGlobal().y + e.height + 10,
				scaleX: .25,
				scaleY: .25
			}), e.visible = !1, App.timer.doTimeOnce(this, 200, this.onLight))
		}
		App.timer.doTimeOnce(this, 400, this.end)
	}, t.prototype.onLight = function() {
		var e = t.targetFly;
		e.visible = !0, this._avatar && (this._avatar.visible = !1), EffectUtils.showOnceEffect("KunEffect", App.layer.zoneLayer,
			ResPathUtil.getMenuEffect("main", "kun_button"), e.localToGlobal().x + e.width / 2, e.localToGlobal().y + e.height /
			2)
	}, t.prototype.end = function() {
		this._playing = !1, this.play()
	}, t.prototype.addBossAvatarUI = function(t) {
		var e = App.config.q_monsterContainer.getDataBean(t);
		if (null != e) {
			var i = e.q_featureid;
			null == this._bossAvatar && (this._bossAvatar = new CUIShowAvatar, App.layer.guideLayer.addChild(this._bossAvatar),
					this._bossAvatar.aniDirType = 1, this._bossAvatar.dir = 3, this._bossAvatar.touchEnabled = !1, this._bossAvatar.touchChildren = !
					1), this._bossAvatar.visible = !0, this._bossAvatar.x = Config.SCREEN_WIDTH >> 1, this._bossAvatar.y = Config.SCREEN_HEIGHT -
				440, this._bossAvatar.changeAvatarPartResource(AvatarPartType.BODY, ResPathUtil.getMapMonsterAvatarRes(i)), this._bossAvatar
				.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0)
		}
	}, t.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_STAND, !0, !0), t.playEndHanlder = null
	}, t.prototype.addKunAvatarUI = function() {
		var t = App.data.warpetCenter.kunCenter.vo.featureid;
		null == this._avatar && (this._avatar = new CUIShowAvatar, App.layer.zoneLayer.addChild(this._avatar), this._avatar
				.aniDirType = 1, this._avatar.dir = 0, this._avatar.touchEnabled = !1, this._avatar.touchChildren = !1), this._avatar
			.x = (Config.SCREEN_WIDTH >> 1) - this._avatar.width, this._avatar.y = Config.SCREEN_HEIGHT - 500, this._avatar.scaleX =
			1, this._avatar.scaleY = 1, this._avatar.changeAvatarPartResource(AvatarPartType.BODY, ResPathUtil.getMapPetAvatarRes(
				t)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_UI, !1, !1), this._avatar.play(), this._avatar.alpha =
			.01, TweenLite.to(this._avatar, .4, {
				alpha: 1
			})
	}, t.prototype.clear = function() {
		App.timer.clearTimer(this.jump, this), App.timer.clearTimer(this.eat, this), App.timer.clearTimer(this.end, this),
			this._bg && (this._bg.graphics.clear(), this._bg = null), this._bossAvatar && (this._bossAvatar.dispose(), this._bossAvatar =
				null), this._avatar && (this._avatar.dispose(), this._avatar = null)
	}, t
}();
__reflect(KunEffect.prototype, "KunEffect");
var CProgressBar = function(t) {
	function e(e, i, n, a, o, r) {
		void 0 === e && (e = 293), void 0 === i && (i = 29), void 0 === n && (n = 4), void 0 === a && (a = 4), void 0 === o &&
			(o = "jindutiao1_di_png"), void 0 === r && (r = "jindutiao1_01_png");
		var s = t.call(this) || this;
		return s._maxPar = 100, s._currPar = 0, s._moveType = 0, s._swith = e, s._sheight = i, s._px = n, s._py = a, s.img_bg =
			new eui.Image, s.img_bg.source = o, s.addChild(s.img_bg), s.img_bar = new eui.Image, s.img_bar.source = r, s.addChild(
				s.img_bar), s.img_bar.x = n, s.img_bar.y = a, s.maskBar = new MaskBar(s.img_bar, s, s._swith, s._sheight), s
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "maxPar", {
		get: function() {
			return this._maxPar
		},
		set: function(t) {
			this._maxPar = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setLabel = function(t) {
		"" == t ? void 0 != this.label && null != this.label && null != this.label.parent && (this.label.parent.removeChild(
			this.label), this.label = void 0) : ((void 0 == this.label || null == this.label) && (this.label = new eui.Label,
				this.addChild(this.label), this.label.size = 20, this.label.width = this._swith, this.label.height = 30, this.label
				.x = this._px, this.label.y = this._py + (this._sheight - 30) / 2, this.label.textAlign = "center"), this.label.text =
			t)
	}, Object.defineProperty(e.prototype, "currPar", {
		get: function() {
			return this._currPar
		},
		set: function(t) {
			this._currPar = t;
			var e = 0;
			e = 0 == this._moveType ? this._currPar / this.maxPar : 1 - this._currPar / this.maxPar, e > 1 ? this.maskBar.progress =
				1 : this.maskBar.progress = e
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "moveType", {
		get: function() {
			return this._moveType
		},
		set: function(t) {
			this._moveType = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.img_bar.parent.removeChild(this.img_bar), this.img_bg.parent.removeChild(this.img_bg), this.img_bar = void 0,
			this.img_bg = void 0
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(CProgressBar.prototype, "CProgressBar");
var ReconnectionEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._msg = "自动重连中", e
	}
	return __extends(e, t), e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.EventTypeIsRelogin, this.onPlay, this), App.dispatcher.addEventListener(
			EventType.STGAE_RESIZE, this.resize, this)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this)
	}, e.prototype.onPlay = function(e, i) {
		void 0 === i && (i = null), t.prototype.onPlay.call(this, e), e ? (App.timer.doTimeLoop(this, 1e3, this.onTimer), i ?
			this._msg = i : this._msg = "自动重连中") : App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onTimer = function() {
		Config.socket.connected && (this.onPlay(!1), App.timer.clearTimer(this.onTimer, this))
	}, e
}(PayingEffect);
__reflect(ReconnectionEffect.prototype, "ReconnectionEffect");
var SuccessEffect = function() {
	function t() {
		this._time = 2, this._centerFinish = !1, this.addEvent()
	}
	return t.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.ShowSuccess, this.play, this)
	}, t.prototype.play = function(e, i, n, a) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = 0);
		var o = App.stage,
			r = n == t.Lv ? "success" : "shengxing";
		n == t.Lv ? (null == this._mask && (this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics
				.beginFill(0, .85), this._mask.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this._mask.graphics
				.endFill(), this._mask.touchEnabled = !0, o.addChild(this._mask)), this._centerFinish = !1, this._center =
			EffectUtils.showCEffect(this, o, ResPathUtil.getMenuEffect("main", "success_light"), Config.SCREEN_WIDTH >> 1, .4 *
				Config.SCREEN_HEIGHT, this._center), this._center.restart(), this._center.play(), this._center.lastFrameHanderCallBack =
			new FunctionVO(this.centerFinish, this), e && (this._target = EffectUtils.showCEffect(this, o, e, (Config.SCREEN_WIDTH >>
				1) + a, this._center.y + i, this._target)), this._success = EffectUtils.showCEffect(this, o, ResPathUtil.getMenuEffect(
				"main", r), Config.SCREEN_WIDTH >> 1, this._center.y - 200, this._success), this._success.restart(), this._success
			.play(), this._success.lastFrameHanderCallBack = new FunctionVO(this.successFinish, this)) : (this._star =
			EffectUtils.showCEffect(this, o, ResPathUtil.getMenuEffect("main", r), Config.SCREEN_WIDTH >> 1, i, this._star),
			this._star.restart(), this._star.play(), this._star.lastFrameHanderCallBack = new FunctionVO(this.onStop2, this),
			App.timer.doTimeOnce(this, 1e3 * this._time, this.end2))
	}, t.prototype.end = function() {
		App.timer.clearTimer(this.end, this), App.timer.clearTimer(this.successFinish, this), this._success && (this._success
				.dispose(), this._success = null), this._center && (this._center.dispose(), this._center = null), this._target &&
			(this._target.dispose(), this._target = null), this._mask && this._mask.parent && (this._mask.parent.removeChild(
				this._mask), this._mask = null)
	}, t.prototype.end2 = function() {
		App.timer.clearTimer(this.end2, this), this._star && (this._star.dispose(), this._star = null)
	}, t.prototype.onStop2 = function() {
		this._star && this._star.stop(), this.end()
	}, t.prototype.centerFinish = function() {
		this._centerFinish || (this._centerFinish = !0)
	}, t.prototype.successFinish = function() {
		this._success && this._success.stop(), this._centerFinish ? this.end() : App.timer.doTimeLoop(this, 1e3 * this._time,
			this.successFinish)
	}, t.Lv = 0, t.STAR = 1, t
}();
__reflect(SuccessEffect.prototype, "SuccessEffect");
var FightBossProxy = function() {
	function t(t) {
		this._dispatcher = new DispatcherRegister, this._viewContainer = t, this._model = App.data.boss, this.init(), this.resize(),
			App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), App.dispatcher.addEventListener(
				ActivityEvent.CLOSE, this.activityCloseHandle, this)
	}
	return t.prototype.activityCloseHandle = function(t) {
		if (t == wfid.guildboss1) {
			var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
			e && e.q_zone_client_type == EnumZoneType.ALLGUILDBOSS && this.clear()
		}
	}, t.prototype.resize = function() {
		this._boss.x = (Config.SCREEN_WIDTH >> 1) - (this._boss.width >> 1), this._kun.x = (Config.SCREEN_WIDTH >> 1) - 70,
			this._fightBossLook && this._fightBossLook.resize()
	}, t.prototype.init = function() {
		this._boss = new FightBossItem, this._boss.x = (Config.SCREEN_WIDTH >> 1) - this._boss.width, this._playerListPanel =
			new BossPlayerListPanel, this._playerListPanel.x = 0, this._playerListPanel.y = 200, this._playerList2Panel = new BossPlayerList2Panel,
			this._playerList2Panel.x = 0, this._playerList2Panel.y = 200, this._fightBossLook = new FightBossLook, this._kun =
			new FightKunItem, this._kun.x = (Config.SCREEN_WIDTH >> 1) - 70, this._kun.y = Config.SCREEN_HEIGHT - 453, this._fightBossLook &&
			this._fightBossLook.resize(), this._dispatcher.addEventListener(BossEvent.BOSS_MAP_UPDATE, this.onMap, this)
	}, t.prototype.onMap = function() {
		if (0 == this._model.type || 2 == this._model.type) {
			var t = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
			if ("-1" != this._model.bossID && 0 == this._model.isDie && t && t.q_zone_client_type != EnumZoneType.GUAN_KA_ZONE) {
				if (this._boss.show(), this._viewContainer.addChild(this._boss), 2 == t.q_zone_type || t.q_zone_client_type ==
					EnumZoneType.SPECIAL_STORY_ZONE, 2 == t.q_zone_type && t.q_zone_client_type == EnumZoneType.BOSS_HOME ? (this._playerList2Panel
						.show(), this._viewContainer.addChild(this._playerList2Panel), this._fightBossLook.show(), this._viewContainer.addChild(
							this._fightBossLook)) : (this._playerList2Panel.hide(), this._playerList2Panel.remove(), this._fightBossLook.hide(),
						this._fightBossLook.remove()), 2 != t.q_zone_type || t.q_zone_client_type != EnumZoneType.SECRET && t.q_zone_client_type !=
					EnumZoneType.WILD_BOSS && t.q_zone_client_type != EnumZoneType.KUANGFENG_BOSS && t.q_zone_client_type !=
					EnumZoneType.HONGMO_BOSS && t.q_zone_client_type != EnumZoneType.QIDAO_BOSS ? (this._playerListPanel.hide(),
						this._playerListPanel.remove(), this._fightBossLook.hide(), this._fightBossLook.remove()) : (this._playerListPanel
						.show(), this._viewContainer.addChild(this._playerListPanel), this._fightBossLook.show(), this._viewContainer.addChild(
							this._fightBossLook)), 0 == this._model.type) {
					var e = !0,
						i = App.config.q_globalContainer.getDataBean(315);
					if (i)
						for (var n = JSON.parse(i.q_string_value), a = 0; a < n.length; a++)
							if (n[a] == t.q_id) {
								e = !1;
								break
							} e && App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._model.bossID)
				}
			} else this.clear()
		} else App.timer.doTimeOnce(this, 2e3, this.clear);
		App.data.warpetCenter.kunCenter.showEat() ? (this._kun.show(), this._viewContainer.addChild(this._kun)) : (this._kun
			.hide(), this._kun.remove())
	}, t.prototype.clear = function() {
		App.timer.clearTimer(this.clear, this), this._boss.hide(), this._boss.remove(), this._playerListPanel.hide(), this._playerListPanel
			.remove(), this._playerList2Panel.hide(), this._playerList2Panel.remove(), this._fightBossLook.hide(), this._fightBossLook
			.remove(), this._kun.hide(), this._kun.remove()
	}, t.prototype.dispose = function() {
		this._dispatcher && this._dispatcher.dispose(), this._dispatcher = null, this._boss && this._boss.dispose(), this._boss =
			null, this._playerListPanel && this._playerListPanel.dispose(), this._playerListPanel = null, this._playerList2Panel &&
			this._playerList2Panel.dispose(), this._playerList2Panel = null, this._fightBossLook && this._fightBossLook.dispose(),
			this._fightBossLook = null, this._heji && this._heji.dispose(), this._heji = null
	}, t
}();
__reflect(FightBossProxy.prototype, "FightBossProxy");
var FightCurrentProxy = function() {
	function t(t, e, i) {
		void 0 === e && (e = 522), void 0 === i && (i = 226);
		var n = this;
		this._dispatcher = new DispatcherRegister, this._parent = t, this._x = e, this._y = i, App.dispatcher.addEventListener(
			EventType.STGAE_RESIZE,
			function() {
				n._itemList && (n._itemList.x = Config.SCREEN_WIDTH - n._itemList.width)
			}, this)
	}
	return t.prototype.enter = function(t, e) {
		var i = GameUtil.getZoneBean(t);
		e == EnumZoneType.MAIN_CITY_OLD || e == EnumZoneType.YUBAOGUI || e == EnumZoneType.AUTO_FIGHT_ZONE || e ==
			EnumZoneType.GUAN_KA_ZONE || 2 != i.q_zone_type && e != EnumZoneType.SPECIAL_STORY_ZONE || (this._dispatcher.addEventListener(
					ZoneEvent.ZONE_PLAYERLIST, this.updateHp, this), this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL,
					this.clear, this), this._dispatcher.addEventListener(EventType.LAST_ATTACK_ROLE_CHANGE, this.onUpdate, this),
				this._dispatcher.addEventListener(EventType.SELECT_MONSTER, this.onSelectBoss, this)), e == EnumZoneType.SHABAK ||
			e == EnumZoneType.BIQI_NIGHT ? this._fightKillComboBitmap || (this._fightKillComboBitmap = new FightKillComboBitMap,
				this._parent.addChild(this._fightKillComboBitmap), this._fightKillComboBitmap.x = this._x - 220, this._fightKillComboBitmap
				.y = this._y) : (this._fightKillComboBitmap && this._fightKillComboBitmap.dispose(), this._fightKillComboBitmap =
				null)
	}, t.prototype.exit = function() {
		this._dispatcher.removeAllListeners(), this._fightKillComboBitmap && this._fightKillComboBitmap.dispose(), this._fightKillComboBitmap =
			null, this.clear()
	}, t.prototype.onSelectBoss = function(t) {
		if (t && ByteUtils.hasKey(t.monsterType, 8) || ByteUtils.hasKey(t.monsterType, 24)) {
			if (!this._target) return;
			this.onUpdate(this._target)
		}
	}, t.prototype.updateHp = function() {
		this._target && this.onUpdate(this._target)
	}, t.prototype.onUpdate = function(t) {
		if (this._target = t, t) {
			if (egret.is(t, "MapMonsterRoleData")) {
				if (!App.data.taskCenter.getThreadTaskShowGuide(12) && !ByteUtils.hasKey(t.monsterType, 8) && !ByteUtils.hasKey(t
						.monsterType, 24)) return
			} else if (egret.is(t, "MapPetRoleData")) {
				if (t.ownerId == App.global.characterData.personId) return
			} else if (egret.is(t, "CharcterPartnerRoleData")) return;
			null == this._itemList && (this._itemList = new FightItemList(1, FightItemList.FIGHT_COMPETITORS), this._parent.addChild(
				this._itemList), this._itemList.x = 0, this._itemList.y = this._y), this._itemList.dataProvider = [t]
		} else this._itemList && (this._itemList.dispose(), this._itemList = null), this._target = null
	}, t.prototype.clear = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null), this._target = null
	}, t.prototype.dispose = function() {
		this.clear(), this.exit(), this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this._target =
			null, this._parent = null
	}, t
}();
__reflect(FightCurrentProxy.prototype, "FightCurrentProxy");
var FightHeadView = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.RestBlood = function(t) {
			if (!t) {
				var e = App.global.roles.roleList;
				e.map(function(t) {
					i.ShowMatchJob(t)
				})
			}
		}, i.UpdateBlood = function() {
			var t = App.global.roles.roleList;
			t.map(function(t) {
				1 == t.job ? i.ShowHpProgress(t.hp, t.maxHp, i["fighter" + t.job + "_blue"], 86) : i.ShowHpProgress(t.hp, t.maxHp,
					i["fighter" + t.job + "_blue"], 45)
			})
		}, i.ShowMatchJob = function(t) {
			1 == t.job ? (i["fighter" + t.job + "_head"].source = "fight_json.fight_bugFighter" + t.job + "_png", i["fighter" +
				t.job + "_blue"].width = 86) : (i["fighter" + t.job + "_head"].source = "fight_json.fight_fighter" + t.job +
				"_png", i["fighter" + t.job + "_blue"].width = 45), i["fight" + t.job].visible = !0
		}, i.ShowHpProgress = function(t, e, i, n) {
			var a = Math.floor(t / e * 100) / 100;
			i.width = n * a
		}, i.skinName = "FightHeadSkin", i._parentLayer = e, i
	}
	return __extends(e, t), e.prototype.show = function(e) {
		var i = this;
		void 0 === e && (e = null), t.prototype.show.call(this);
		var n = App.global.roles.roleList;
		n.map(function(t) {
			i.ShowMatchJob(t)
		}), this._parentLayer.addChild(this), this._dispatcher.addEventListener(PlayerAttributeEvent.HP, this.UpdateBlood,
			this), this._dispatcher.addEventListener(EventType.OPEN_REVIVE, this.RestBlood, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._parentLayer.contains(this) && this._parentLayer.removeChild(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(FightHeadView.prototype, "FightHeadView");
var FightKillComboBitMap = function(t) {
	function e() {
		var i = t.call(this) || this;
		return i._currNum = 0, i._killCimg = UIMaker.getCImage(i, e, ResPathUtil.getImgPath("kill_combo", "tazhuang")), i.visible = !
			1, i.addEvent(), i
	}
	return __extends(e, t), e.prototype.onStart = function(t, e) {
		return void 0 === e && (e = 1), t == this._currNum || 0 >= t ? void(this.visible = !1) : (App.timer.doTimeOnce(this,
				2e3, this.onTimer), this.visible = !0, this._currNum = t, this._killNumBitmap0 || (this._killNumBitmap0 =
				NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, this._currNum - 1 + "", e, 0, EnumNumberSheetType.NUM_FIGHT),
				this.addChild(this._killNumBitmap0)), this._killNumBitmap1 || (this._killNumBitmap1 = NumberBitmapCache.show(
				BitmapNumberType.SKILL_HEJI_COMBO, this._currNum + "", e, 0, EnumNumberSheetType.NUM_FIGHT), this.addChild(this
				._killNumBitmap1)), TweenLite.killTweensOf(this._killNumBitmap0), TweenLite.killTweensOf(this._killNumBitmap1),
			this._killNumBitmap0.show(this._currNum - 1 + "", e, 0, BitmapNumberType.SKILL_HEJI_COMBO), this._killNumBitmap1.show(
				this._currNum + "", e, 0, BitmapNumberType.SKILL_HEJI_COMBO), this._killNumBitmap1.x = this._killNumBitmap0.x =
			40 - 38 * ((this._currNum + "").length - 1), this._killNumBitmap0.y = 10, this._killNumBitmap0.alpha = 1, this._killNumBitmap1
			.y = -52, this._killNumBitmap1.alpha = 0, TweenLite.to(this._killNumBitmap0, .25, {
				alpha: 0,
				y: 52
			}), void TweenLite.to(this._killNumBitmap1, .25, {
				alpha: 1,
				y: 10
			}))
	}, e.prototype.onTimer = function() {
		this.visible = !1
	}, e.prototype.tweenOverEnd = function(t) {
		t && (t.dispose(), t = null)
	}, e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.KILL_COMBO_BITAMAP, this.onStart, this)
	}, e.prototype.removeEvent = function() {
		App.dispatcher.removeEventListener(EventType.KILL_COMBO_BITAMAP, this.onStart, this)
	}, e.prototype.dispose = function() {
		this.removeEvent(), App.timer.clearTimer(this.onTimer, this), this._killCimg && (this._killCimg.dispose(), this._killCimg =
				null), this._killNumBitmap0 && (this._killNumBitmap0.dispose(), this._killNumBitmap0 = null), this._killNumBitmap1 &&
			(this._killNumBitmap1.dispose(), this._killNumBitmap1 = null), this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(FightKillComboBitMap.prototype, "FightKillComboBitMap");
var FightListProxy = function() {
	function t(t, e, i) {
		void 0 === e && (e = 522), void 0 === i && (i = 371);
		var n = this;
		this._dispatcher = new DispatcherRegister, this._targetList = [], this.currentZoneId = 0, this.GetIDFormat =
			function(t) {
				var e;
				return egret.is(t, "MapPlayerPartnerRoleData") ? e = t.ownerId : egret.is(t, "MapPetRoleData") ? e = t.ownerId :
					egret.is(t, "MapPlayerRoleData") ? e = t.personId : egret.is(t, "MapMonsterRoleData"), e
			}, this._parent = t, this._x = e, this._y = i, App.dispatcher.addEventListener(EventType.STGAE_RESIZE, function() {
				n._itemList && (n._itemList.x = 0)
			}, this)
	}
	return Object.defineProperty(t, "_attackID", {
		get: function() {
			return this.__attackID
		},
		set: function(t) {
			this.__attackID = t, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_UPDATE_TARGET)
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.updateTarget = function(t) {
		this.canDoLogic() && this.setMeFight()
	}, t.prototype.enter = function(t, e) {
		this._dispatcher.addEventListener(ZoneEvent.ZONE_UPDATE_TARGET, this.updateTarget, this), this.currentZoneId = t;
		var i = GameUtil.getZoneBean(t);
		2 == i.q_zone_type && this._dispatcher.addEventListener(EventType.BOSS_OWNER_CHANGE, this.onChangeOwner, this), e ==
			EnumZoneType.MAIN_CITY_OLD || e == EnumZoneType.YUBAOGUI || e == EnumZoneType.AUTO_FIGHT_ZONE || e == EnumZoneType
			.GUAN_KA_ZONE || 2 != i.q_zone_type && e != EnumZoneType.SPECIAL_STORY_ZONE || (this._dispatcher.addEventListener(
				PlayerAttributeEvent.ADD_ATTACKER, this.addAttacker, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.REMOVE_ATTACKER, this.removeAttacker, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.OTHER_ROLE_DEAD_ALL, this.removeAttacker, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.clear, this), this._dispatcher.addEventListener(EventType.LAST_ATTACK_ROLE_CHANGE,
				this.onMeFight, this), this._dispatcher.addEventListener(ZoneEvent.ZONE_PLAYERLIST, this.onUpdate, this)), e ==
			EnumZoneType.SHABAK || e == EnumZoneType.BIQI_NIGHT ? this._fightKillComboBitmap || (this._fightKillComboBitmap =
				new FightKillComboBitMap, this._parent.addChild(this._fightKillComboBitmap), this._fightKillComboBitmap.x = this._x -
				220, this._fightKillComboBitmap.y = this._y) : (this._fightKillComboBitmap && this._fightKillComboBitmap.dispose(),
				this._fightKillComboBitmap = null)
	}, t.prototype.onChangeOwner = function(t) {
		this.setOwner(LongUtil.toString(t.monsterId), LongUtil.toString(t.ownerId), t.ownerName, LongUtil.toNumber(t.hp),
			LongUtil.toNumber(t.maxHp), t.insidePower, t.maxInsidePower, t.job)
	}, t.prototype.setOwner = function(t, e, i, n, a, o, r, s) {
		if (this.canDoLogic() && this._itemList) {
			var h = {
				bossID: t,
				ownerID: e,
				ownerName: i,
				hp: n,
				maxHp: a,
				insidePower: o,
				maxInsidePower: r,
				job: s
			};
			this._itemList.AddBossOwner(h)
		}
	}, t.prototype.onMeFight = function(t) {}, t.prototype.setMeFight = function() {
		this.canDoLogic() && this._itemList.ModifyDataSource(t.__attackID, FightItemList.FIGHT_TOATTACK)
	}, t.prototype.removeAttacker = function(t) {
		if (this.canDoLogic()) {
			var e = App.global.mapModule.mapAvatarModel.getRoleData(t);
			if (e) {
				var i = this._targetList.indexOf(e);
				this._targetList.splice(i, 1), this.onUpdate()
			} else if (this._targetList && this._targetList.length > 0)
				for (var n, a = this._targetList.length, o = 0; a > o; o++)
					if (n = this._targetList[o], n.personId == t) return this._targetList.splice(o, 1), void this.onUpdate()
		}
	}, t.prototype.addAttacker = function(t) {
		if (this.canDoLogic()) {
			var e = App.global.mapModule.mapAvatarModel.getRoleData(t);
			e && (this._targetList.push(e), this.onUpdate())
		}
	}, t.prototype.canDoLogic = function() {
		if (0 == this.currentZoneId) return !1;
		var t = GameUtil.getZoneBean(this.currentZoneId);
		return null == t ? !1 : 2 == t.q_zone_type && t.q_zone_client_type == EnumZoneType.BOSS_HOME ? !1 : 2 != t.q_zone_type ||
			t.q_zone_client_type != EnumZoneType.SECRET && t.q_zone_client_type != EnumZoneType.WILD_BOSS && t.q_zone_client_type !=
			EnumZoneType.KUANGFENG_BOSS && t.q_zone_client_type != EnumZoneType.HONGMO_BOSS && t.q_zone_client_type !=
			EnumZoneType.QIDAO_BOSS ? !0 : !1
	}, t.prototype.onUpdate = function() {
		var e = this;
		if (this.canDoLogic()) {
			var i = App.data.zoneCenter.mapPlayList;
			if (i && i.length > 0 ? (null == this._itemList && (this._itemList = new FightItemList(3, FightItemList.FIGHT_COMPETITORS),
						this._parent.addChild(this._itemList), this._itemList.x = 0, this._itemList.y = this._y), this._itemList.dataProvider =
					i) : this.clear(), this._targetList.length > 0) {
				var n = [],
					a = void 0,
					o = [];
				i.map(function(t) {
					var e = LongUtil.toString(t.id);
					o.push(e)
				});
				var r = [];
				this._targetList.map(function(t) {
					var i = e.GetIDFormat(t);
					i && -1 == o.indexOf(i) && r.push(i)
				});
				var s = [];
				r.map(function(t) {
					e._targetList.map(function(i) {
						var n = e.GetIDFormat(i);
						t != n && s.push(i)
					})
				}), r.length > 0 && (this._targetList = s);
				for (var h = 0; h < this._targetList.length; h++) {
					var l = void 0;
					a = this._targetList[h], a.getIsDead() || (l = this.GetIDFormat(a), void 0 != l && -1 == n.indexOf(l) && l !=
						App.global.characterData.personId && n.push(l))
				}
				n.length > 0 && this._itemList && n.map(function(i) {
					e._itemList && t._attackID != i && e._itemList.ModifyDataSource(i, FightItemList.FIGHT_HITME)
				}), this._itemList && i.map(function(t) {
					var i = LongUtil.toString(t.id),
						a = !0;
					n.map(function(t) {
						t == i && (a = !1)
					}), a && e._itemList.ModifyDataSource(i, FightItemList.FIGHT_COMPETITORS)
				})
			}
		}
	}, t.prototype.exit = function() {
		this._fightKillComboBitmap && this._fightKillComboBitmap.dispose(), this._fightKillComboBitmap = null, this._dispatcher
			.removeAllListeners(), this.clear()
	}, t.prototype.clear = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null), this._targetList = [], this.currentZoneId = 0
	}, t
}();
__reflect(FightListProxy.prototype, "FightListProxy");
var FightMeProxy = function() {
	function t(t, e, i) {
		void 0 === e && (e = 522), void 0 === i && (i = 371);
		var n = this;
		this._dispatcher = new DispatcherRegister, this._targetList = [], this._mefightId = "", this._parent = t, this._x =
			e, this._y = i, App.dispatcher.addEventListener(EventType.STGAE_RESIZE, function() {
				n._itemList && (n._itemList.x = Config.SCREEN_WIDTH - n._itemList.width)
			}, this)
	}
	return t.prototype.enter = function(t, e) {
		e != EnumZoneType.MAIN_CITY_OLD && e != EnumZoneType.YUBAOGUI && (this._dispatcher.addEventListener(
			PlayerAttributeEvent.ADD_ATTACKER, this.addAttacker, this), this._dispatcher.addEventListener(
			PlayerAttributeEvent.REMOVE_ATTACKER, this.removeAttacker, this), this._dispatcher.addEventListener(
			PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.clear, this), this._dispatcher.addEventListener(EventType.LAST_ATTACK_ROLE_CHANGE,
			this.onMeFight, this), this._dispatcher.addEventListener(ZoneEvent.ZONE_PLAYERLIST, this.onUpdate, this))
	}, t.prototype.exit = function() {
		this._dispatcher.removeAllListeners(), this.clear()
	}, t.prototype.onMeFight = function(t) {
		t && (this._mefightId = t.personId)
	}, t.prototype.addAttacker = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getRoleData(t);
		e && (this._targetList.push(e), this.onUpdate())
	}, t.prototype.removeAttacker = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getRoleData(t);
		if (e) {
			var i = this._targetList.indexOf(e);
			this._targetList.splice(i, 1), this.onUpdate()
		} else if (this._targetList && this._targetList.length > 0)
			for (var n, a = this._targetList.length, o = 0; a > o; o++)
				if (n = this._targetList[o], n.personId == t) return this._targetList.splice(o, 1), void this.onUpdate()
	}, t.prototype.onUpdate = function() {
		if (this._targetList.length > 0) {
			for (var t = this._targetList.length, e = [], i = [], n = void 0, a = void 0, o = !1, r = 0; t > r; r++)
				if (a = this._targetList[r], !a.getIsDead()) {
					if (egret.is(a, "MapPlayerPartnerRoleData")) n = a.ownerId;
					else if (egret.is(a, "MapPetRoleData")) n = a.ownerId;
					else if (egret.is(a, "MapPlayerRoleData")) n = a.personId;
					else if (egret.is(a, "MapMonsterRoleData")) {
						var s = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
						if (App.data.taskCenter.getThreadTaskShowGuide(12) && s && s.q_zone_client_type == EnumZoneType.SPECIAL_STORY_ZONE) {
							var h = a;
							5100020 == h.monsterModelId && (n = a.personId, n != this._mefightId && (o = !0))
						}
					}
					void 0 != n && -1 == i.indexOf(n) && n != App.global.characterData.personId && (i.push(n), e.push(a))
				} e.length > 0 ? (null == this._itemList && (this._itemList = new FightItemList(3, FightItemList.FIGHT_HITME),
					this._parent.addChild(this._itemList), this._itemList.x = 0, this._itemList.y = this._y), this._itemList.dataProvider =
				e) : this._itemList && (this._itemList.dispose(), this._itemList = null)
		} else this._itemList && (this._itemList.dispose(), this._itemList = null)
	}, t.prototype.clear = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null), this._targetList = []
	}, t.prototype.dispose = function() {
		this.exit(), this.clear(), this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this._targetList =
			null, this._parent = null
	}, t
}();
__reflect(FightMeProxy.prototype, "FightMeProxy");
var FightNpcProxy = function() {
	function t() {
		this._dispatcher = new DispatcherRegister
	}
	return t.prototype.enter = function(t, e) {
		this._dispatcher.addEventListener(ZoneEvent.ZONE_NPC, this.onMoveToPostion, this)
	}, t.prototype.exit = function() {
		this._dispatcher.removeAllListeners(), this.clear()
	}, t.prototype.onMoveToPostion = function(t) {
		var e = App.config.q_npcContainer.getDataBean(t);
		if (null == e) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">NPC不存在！</font>");
		this._npcID = e.q_id;
		var i = App.global.mapModule.mapMouseModel.controlRoleData,
			n = SearchToPointVO.getVO();
		n.finishHandler = new FunctionVO(this.onNpc, this), n.search(i, e.q_px, e.q_py, "autoFight-moveToPostion"), i.ai.reset()
	}, t.prototype.onNpc = function() {
		App.global.mapModule.mapAvatarModel.clickNpc(this._npcID)
	}, t.prototype.clear = function() {
		this._npcID = -1
	}, t
}();
__reflect(FightNpcProxy.prototype, "FightNpcProxy");
var FightOtherProxy = function() {
	function t(t, e, i) {
		void 0 === e && (e = 0), void 0 === i && (i = 371);
		var n = this;
		this._dispatcher = new DispatcherRegister, this._parent = t, this._x = e, this._y = i, App.dispatcher.addEventListener(
			EventType.STGAE_RESIZE,
			function() {
				n._itemList && (n._itemList.x = Config.SCREEN_WIDTH - n._itemList.width)
			}, this)
	}
	return t.prototype.enter = function(t, e) {
		var i = GameUtil.getZoneBean(t);
		e == EnumZoneType.MAIN_CITY_OLD || e == EnumZoneType.YUBAOGUI || 2 != i.q_zone_type && e != EnumZoneType.SPECIAL_STORY_ZONE ||
			(this._dispatcher.addEventListener(ZoneEvent.ZONE_PLAYERLIST, this.onUpdateList, this), this._dispatcher.addEventListener(
				EventType.LAST_ATTACK_ROLE_CHANGE, this.onUpdateList, this))
	}, t.prototype.exit = function() {
		App.data.zoneCenter.mapPlayList = [], this._dispatcher.removeAllListeners(), this.clear()
	}, t.prototype.onUpdateList = function() {
		var t = App.data.zoneCenter.mapPlayList;
		t && t.length > 0 ? (null == this._itemList && (this._itemList = new FightItemList(4, FightItemList.FIGHT_COMPETITORS),
				this._parent.addChild(this._itemList), this._itemList.x = 0, this._itemList.y = this._y), this._itemList.dataProvider =
			t) : this.clear()
	}, t.prototype.clear = function() {
		this._itemList && (this._itemList.dispose(), this._itemList = null)
	}, t.prototype.dispose = function() {
		this.exit(), this.clear(), this._dispatcher && (this._dispatcher.dispose(), this._dispatcher = null), this._parent =
			null
	}, t
}();
__reflect(FightOtherProxy.prototype, "FightOtherProxy");
var FightProxy = function() {
	function t() {
		this._dispatcher = new DispatcherRegister, this._time = 3
	}
	return t.prototype.enter = function(t, e) {
		this._dispatcher.addEventListener(PlayerAttributeEvent.ROLE_CREATE, this.onCreateRole, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.ROLE_DEAD, this.onRoleDead, this), this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL,
				this.onDeadAll, this), this._dispatcher.addEventListener(ZoneEvent.ZONE_PLAYERPOS, this.onMoveToPostion, this),
			this._dispatcher.addEventListener(EventType.MOUSE_DOWN_ROLE, this.onSelectOther, this), this._dispatcher.addEventListener(
				ZoneEvent.ZONE_FIGHT, this.onFight, this), this._dispatcher.addEventListener(ZoneEvent.ZONE_NPC, this.onNpc, this)
	}, t.prototype.exit = function() {
		this._dispatcher.removeAllListeners(), this.clear()
	}, t.prototype.onFight = function(t) {
		this._targetID != t && (this._targetID = t), ZoneCommandSender.sendC2S_MapPlayerPoisitionInfoMessage(t)
	}, t.prototype.onCreateRole = function(t) {
		(this._targetID == t || this._finalID == t) && (this._time = 1, ZoneCommandSender.sendC2S_MapPlayerPoisitionInfoMessage(
			t))
	}, t.prototype.onNpc = function(t) {
		this.clear()
	}, t.prototype.onRoleDead = function(t) {
		this._finalID == t && this.clear()
	}, t.prototype.onDeadAll = function() {
		this.clear()
	}, t.prototype.onMoveToPostion = function(t) {
		if (null != t && this._targetID == LongUtil.toString(t.playerId)) {
			var e = t.reason;
			if (-1 == e) this.clear(), Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">攻击对象已死亡！</font>");
			else if (-2 == e) this.clear(), Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">该玩家已不在此地图！</font>");
			else {
				this._finalID = 666 == e ? LongUtil.toString(t.playerId) : LongUtil.toString(t.playerId2);
				var i = App.global.mapModule.mapAvatarModel.getRoleData(this._finalID),
					n = App.global.mapModule.mapMouseModel.controlRoleData,
					a = !1;
				if (i && !i.getIsDead() && h5_engine.MapVO.getDistanceBy2Point(i.serverMap_x, i.serverMap_y, n.serverMap_x, n.serverMap_y) <=
					6 && (a = !0), a) n.actionList.clear(), i.roleView.mouseDown(), this._time = 3, App.timer.clearTimer(this.ontimer,
					this);
				else {
					var o = App.global.mapModule.mapMouseModel.controlRoleData,
						r = SearchToPointVO.getVO();
					r.search(o, t.posX, t.posY, "autoFight-moveToPostion"), o.ai.reset(), App.timer.doTimeOnce(this, 1e3 * this._time,
						this.ontimer)
				}
			}
		}
	}, t.prototype.ontimer = function() {
		this._targetID && ZoneCommandSender.sendC2S_MapPlayerPoisitionInfoMessage(this._targetID)
	}, t.prototype.onSelectOther = function(t) {
		this._finalID != t.personId && this.clear()
	}, t.prototype.clear = function() {
		this._targetID = "", this._finalID = "", App.timer.clearTimer(this.ontimer, this)
	}, t.prototype.dispose = function() {
		this._dispatcher && this._dispatcher.dispose(), this._dispatcher = null
	}, t
}();
__reflect(FightProxy.prototype, "FightProxy");
var FightSkillBitMap = function(t) {
	function e() {
		var e = t.call(this) || this;
		return App.layer.sceneLayer.addChild(e), e.addEvent(), e
	}
	return __extends(e, t), e.prototype.onAddBuffer = function(t, e) {
		var i = App.global.mapModule.mapAvatarModel.getPet(t);
		(null != App.global.roles.getRoleInfoById(t) || i && i.ownerId == App.global.characterData.personId) && GameUtil.getBufferConfigData(
			e.bufferModelId, e.bufflv) && this.onStart(GameUtil.getBufferConfigData(e.bufferModelId, e.bufflv).q_piaozi)
	}, e.prototype.onAddSkill = function(t, e) {
		this.onStart(GameUtil.getSkillConfigData(t, e).q_piaozi)
	}, e.prototype.onStart = function(t) {
		if (!(t.length <= 0)) {
			this.removeChildren();
			var i = UIMaker.getCImage(this, e, ResPathUtil.getIcon(t, "fightpic"), Config.SCREEN_WIDTH / 2 - 170, Config.SCREEN_HEIGHT /
				2 - 160, !1);
			i.scaleX = 1.5, i.scaleY = 1.5, TweenLite.to(i, .15, {
				alpha: 1,
				x: i.x - 70,
				y: i.y - 60,
				scaleX: 1,
				scaleY: 1
			}), TweenLite.to(i, .4, {
				delay: 1.4,
				alpha: 0,
				onComplete: this.tweenOverEnd,
				onCompleteParams: [i],
				onCompleteScope: this
			})
		}
	}, e.prototype.tweenOverEnd = function(t) {
		t && (t.dispose(), t = null)
	}, e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.SKILL_BITMAP, this.onAddSkill, this), App.dispatcher.addEventListener(
			PlayerBufferEvent.ADD_BUFFER, this.onAddBuffer, this)
	}, e.prototype.removeEvent = function() {
		App.dispatcher.removeEventListener(EventType.SKILL_BITMAP, this.onAddSkill, this), App.dispatcher.removeEventListener(
			PlayerBufferEvent.ADD_BUFFER, this.onAddBuffer, this)
	}, e.prototype.dispose = function() {
		this.removeEvent(), this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(FightSkillBitMap.prototype, "FightSkillBitMap");
var FightBossItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "FightBossItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bossHp = new BossHpBar, this._bossHp.moveTo(0, 0, this.groupHp), this._wudiBar = new HpBar, this._wudiBar.setUiComponent(
			this.bar_wudi, this.bar_wudi_flow, 310, 7, null, .5), this._wudiBar.setValue(0, 1), this._reward_types = JSON.parse(
			App.config.q_globalContainer.getDataBean(310).q_string_value)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(PlayerAttributeEvent.HP, this.onChangeHp, this),
			this._dispatcher.addEventListener(EventType.BOSS_WUDI, this.onBossWuDi, this), this._dispatcher.addEventListener(
				BossEvent.BOSS_HP, this.onChangeHp, this), this.btn_reward.visible = this.getRewardShow(), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onReward, this, this.btn_reward), this.updateState()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._icon && this._icon.clear(), this.clear()
	}, e.prototype.updateState = function() {
		var t = App.data.boss;
		this.visible = 1 != t.isDie, this._bossID != t.bossID && (this.clear(), this._bossID = t.bossID, this._bossModelID =
			t.bossModelID);
		var e = App.config.q_monsterContainer.getDataBean(this._bossModelID);
		if (null != e) {
			this._icon = UIMaker.getCImage(this, this, ResPathUtil.getHead(e.q_faceid + "", EnumImageType.BOSS_HEAD), 107, 82,
				!1, this._icon);
			var i = App.data.zoneCenter.getMyZoneData().bean;
			i && i.q_min_metem_lv > 0 ? this.lv_txt.text = i.q_min_metem_lv + "转" : this.lv_txt.text = "Lv." + e.q_lvl, this.boss_txt
				.text = e.q_name, this.boss_txt.x = this.lv_txt.x + this.lv_txt.width + 5, this._shieldtime = e.q_death_shield_time,
				this._hpMax = e.q_hp_max, this._bossHp.setDefaultParams(this._bossModelID, t.defaultHp, t.defaultMaxHp, e.q_hp_max),
				App.timer.doTimeLoop(this, 3e3, this.onHp)
		}
	}, e.prototype.onHp = function() {
		var t = App.global.mapModule.mapAvatarModel.getFightRoleData(this._bossID);
		null == t && ZoneCommandSender.sendC2S_GetBossHpInfoMessage(this._bossID)
	}, e.prototype.onChangeHp = function(t, e, i) {
		this._bossID == t && this._bossHp.setDefaultParams(this._bossModelID, e, i, this._hpMax)
	}, e.prototype.onBossWuDi = function(t, e, i) {
		if (this._bossID == t && (this._wudiBar.setValue(e, i), e > 0)) {
			var n = Math.ceil(e / (i / this._shieldtime * 1e3));
			App.global.zone.showWelcome("BOSS开启护盾，免疫所有伤害", 1e3 * n), App.timer.doTimeLoop(this, 1e3, this.onWudi)
		}
	}, e.prototype.onWudi = function() {
		var t = this._wudiBar.getValue() - this._wudiBar.getMax() / this._shieldtime * 1e3;
		this._wudiBar.setValue(t, this._wudiBar.getMax()), this._wudiBar.getValue() <= 0 && App.timer.clearTimer(this.onWudi,
			this)
	}, e.prototype.onReward = function() {
		App.panel.openPanel(200)
	}, e.prototype.getRewardShow = function() {
		for (var t = App.data.zoneCenter.type, e = 0; e < this._reward_types.length; e++)
			if (this._reward_types[e] == t) return !0;
		return !1
	}, e.prototype.clear = function() {
		this._bossID = "", this._bossModelID = -1, this._shieldtime = -1, this._hpMax = 1, this._bossHp.clear(), this._wudiBar
			.setDefaultValue(0, 1), App.timer.clearTimer(this.onWudi, this), App.timer.clearTimer(this.onHp, this)
	}, e.prototype.dispose = function() {
		this._icon && this._icon.dispose(), this._icon = null, this._bossHp && this._bossHp.dispose(), this._bossHp = null,
			this._wudiBar && this._wudiBar.dispose(), this._wudiBar = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(FightBossItem.prototype, "FightBossItem");
var FightBossLook = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.btn = new eui.Image, e.addChild(e.btn), e.btn.source = "main_look_png", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onBtnHandler, this, this.btn);
		var i = App.global.mapModule.mapAvatarModel;
		this.btn.source = i.hideData.checkAll ? "main_notlook_png" : "main_look_png", this.btn.visible = !0, this.updateShow()
	}, e.prototype.onBtnHandler = function(t) {
		var e = App.global.mapModule.mapAvatarModel;
		e.hideData.checkAll = !e.hideData.checkAll, e.hideData.checkAll ? this.btn.source = "main_notlook_png" : this.btn.source =
			"main_look_png", e.hideData.checkOther = e.hideData.checkSkill = e.hideData.checkDress = e.hideData.checkAll, this
			.updateShow()
	}, e.prototype.updateShow = function() {
		var t = App.global.mapModule.mapAvatarModel;
		t.hideData.hide_allPlayer = t.hideData.checkAll, t.hideData.hide_skillEffect = t.hideData.checkAll, t.HideAvatar(t.hideData),
			SystemSetPanel.updateShow()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.btn.visible = !1
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - 77, this.y = Config.SCREEN_HEIGHT - 350
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.btn && (this.removeChild(this.btn), this.btn = null)
	}, e
}(ViewBase);
__reflect(FightBossLook.prototype, "FightBossLook");
var FightHeJiItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "FightHeJiItemSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpen, this,
				this.btn_heji), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.btn_heji_close),
			this.btn_heji.visible = App.global.characterData.autoSettingData.isAutoHeji, this.btn_heji_close.visible = !this.btn_heji
			.visible
	}, e.prototype.onOpen = function(t) {
		this.btn_heji.visible = !1, this.btn_heji_close.visible = !0, App.global.characterData.autoSettingData.isAutoHeji = !
			1, App.dispatcher.dispatchEvent(EventType.SYSTENSET_RESLUT)
	}, e.prototype.onClose = function(t) {
		this.btn_heji_close.visible = !1, this.btn_heji.visible = !0, App.global.characterData.autoSettingData.isAutoHeji = !
			0, App.dispatcher.dispatchEvent(EventType.SYSTENSET_RESLUT)
	}, e
}(ViewBase);
__reflect(FightHeJiItem.prototype, "FightHeJiItem");
var FightItem = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._barW = 113, i.ShowBoss = function(t) {
			var e = t,
				n = App.data.boss;
			i.img_head.visible = !1, i.bar_img.visible = !1, i.bar_blood_back.visible = !1;
			var a = App.config.q_monsterContainer.getDataBean(n.bossModelID);
			a && (i.name_txt.text = a.q_name, i.name_txt.size = 24, e.ownerID ? (i.btn_action.visible = !0, i.btn_action.source =
				"fight_in_fighting_png") : i.btn_action.visible = !1)
		}, i.ShowOwner = function(t) {
			var e = t;
			i.name_txt.text = e.ownerName, i.name_txt.size = 16, i.img_state.visible = !0, i.img_state.source =
				"fight_owner_png", e.ownerID == App.global.characterData.personId ? (i.img_me.visible = !0, i.btn_action.visible = !
					1) : (i.img_me.visible = !1, i.btn_action.visible = !0, i.btn_action.source = "fight_rob_png"), i.refreshHp(e.hp,
					e.maxHp)
		}, i.skinName = "FightItemSkin", i._type = e, e == FightItemList.FIGHT_COMPETITORS && (i.img_state.visible = !1, i.btn_action
			.visible = !0, i.btn_action.source = "fight_attack_png"), i
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onBegin, this,
			this.btn_action), e && (e.boss && this.ShowBoss(e.owner), e.owner && this.ShowOwner(e.owner))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._target = null
	}, e.prototype.ChangeFightState = function(t) {
		switch (this.img_head.visible = !0, this.bar_img.visible = !0, this.bar_blood_back.visible = !0, this.name_txt.size =
			16, this.btn_action.visible = !0, t) {
			case FightItemList.FIGHT_COMPETITORS:
				this._type = FightItemList.FIGHT_COMPETITORS, this.img_state.visible = !1, this.btn_action.source =
					"fight_attack_png";
				break;
			case FightItemList.FIGHT_HITME:
				if (this.img_state.visible = !0, this.img_state.source = "fight_attacking_png", this._type == FightItemList.FIGHT_TOATTACK)
					return;
				this._type = FightItemList.FIGHT_HITME, this.btn_action.source = "fight_beatback_png";
				break;
			case FightItemList.FIGHT_TOATTACK:
				this._type = FightItemList.FIGHT_TOATTACK, this.btn_action.source = "fight_in_fighting_png"
		}
	}, e.prototype.onBegin = function(t) {
		this.btn_action.y += 1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, App.stage)
	}, e.prototype.onEnd = function(t) {
		this.btn_action.y -= 1, this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, App.stage),
			this.onTouch()
	}, e.prototype.setContent = function(t) {
		this._target = t, egret.is(t, "MapMonsterRoleData") ? this.isBoss(t) : egret.is(t, "MapPlayerPartnerRoleData") ?
			this.isPlayer(t) : egret.is(t, "MapPlayerRoleData") ? this.isPlayer(t) : egret.is(t, "MapPetRoleData") ? this.isPet(
				t) : (this.identify = LongUtil.toString(t.id), this.isPlayerInfo(t))
	}, e.prototype.isPlayerInfo = function(t) {
		App.data.zoneCenter.type == EnumZoneType.TIANXIADIYI ? this.name_txt.text = "蒙面人" : this.name_txt.textFlow =
			HtmlUtil.getHtmlStr(t.name), this.isGather.visible = 1 == t.gather, this.refreshHp(LongUtil.toNumber(t.totalHp),
				LongUtil.toNumber(t.totalMaxHp), LongUtil.toString(t.id))
	}, e.prototype.isPlayer = function(t) {
		App.data.zoneCenter.type == EnumZoneType.TIANXIADIYI ? this.name_txt.text = "蒙面人" : this.name_txt.textFlow =
			HtmlUtil.getHtmlStr(t.name);
		var e = App.data.zoneCenter.getMapPlayerInfo(t.personId);
		if (e) this.refreshHp(LongUtil.toNumber(e.totalHp), LongUtil.toNumber(e.totalMaxHp), t.personId);
		else {
			var i;
			if (App.data.zoneCenter.mapPlayList.map(function(e) {
					e.name == t.name && (i = e)
				}), !i) return;
			this.refreshHp(LongUtil.toNumber(i.totalHp), LongUtil.toNumber(i.totalMaxHp), t.personId)
		}
	}, e.prototype.refreshHp = function(t, e, i) {
		return void 0 === i && (i = null), 0 == e || 0 == t ? void(this.bar_img.width = 0) : void(this.bar_img.width = Math
			.floor(this._barW * t / e * 100) / 100)
	}, e.prototype.onTouch = function(t) {
		if (void 0 === t && (t = null), this._target) {
			var e = void 0;
			this._target.id ? e = LongUtil.toString(this._target.id) : this._target.personId && (e = LongUtil.toString(this._target
				.personId)), FightListProxy._attackID = e, App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, e)
		}
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("zone", "click"), this.width - 20, this.height / 2 -
			10)
	}, e.prototype.isBoss = function(t) {
		this.name_txt.text = t.name, this.refreshHp(t.hp, t.maxHp, t.personId)
	}, e.prototype.isPartner = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getPlayer(t.ownerId);
		e && this.isPlayer(e)
	}, e.prototype.isPet = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getPlayer(t.ownerId);
		e && this.isPlayer(e)
	}, e
}(ViewBase);
__reflect(FightItem.prototype, "FightItem");
var FightItemList = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n._itemPool = [], n.euiSkinName = "FightItemListSkin", n._repeatY = e, n._type = i, n._itemContainer = new eui
			.Group, n._itemContainer.y = 50, n.addChild(n._itemContainer), n._itemContainer.touchEnabled = !1, n
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			this._dataProvider = t, this.updateState(), this.useScroller()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.AddBossOwner = function(t) {
		this.clear();
		for (var e, i = 0; 2 > i; i++) 0 == i ? (e = this.getFightItem(), this._itemContainer.addChild(e), e.show({
			boss: t
		}), e.x = 0, e.y = -70 * i, e.setContent(this._dataProvider[i])) : (e = this.getFightItem(), this._itemContainer.addChild(
			e), e.show({
			owner: t
		}), e.x = 0, e.y = -70 * i, e.setContent(this._dataProvider[i]))
	}, e.prototype.ModifyDataSource = function(t, e) {
		this._itemContainer.numChildren > 0 && this._itemContainer.$children.map(function(i) {
			var n = i;
			n.identify == t && n.ChangeFightState(e)
		})
	}, e.prototype.updateState = function() {
		this.clear();
		for (var t, e = this._dataProvider.length, i = 0; e > i; i++) t = this.getFightItem(), this._itemContainer.addChild(
			t), t.show(), t.x = 0, t.y = 70 * i, t.setContent(this._dataProvider[i]);
		this.bg.height = 30 + 70 * Math.min(e, this._repeatY)
	}, e.prototype.useScroller = function() {
		this._dataProvider.length > 0 ? (null == this._scroller && (this._scroller = UIMaker.getScroller(this, this, 0, 30,
				230, this.bg.height), this._scroller.scrollPolicyH = eui.ScrollPolicy.OFF, this._scroller.viewport = this._itemContainer),
			this._scroller.height = this.bg.height) : this._scroller && (this._scroller.parent && this._scroller.parent.removeChild(
			this._scroller), this._scroller = null)
	}, e.prototype.clear = function() {
		for (var t; this._itemContainer.numChildren > 0;) t = this._itemContainer.removeChildAt(0), t && (t.hide(), this._itemPool
			.push(t))
	}, e.prototype.getFightItem = function() {
		return this._itemPool.length > 0 ? this._itemPool.pop() : new FightItem(this._type)
	}, e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this)
	}, e.FIGHT_COMPETITORS = "竞争者", e.FIGHT_HITME = "正在打我", e.FIGHT_TOATTACK = "我攻击的对象", e
}(ViewBase);
__reflect(FightItemList.prototype, "FightItemList");
var FightKunItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._hpEnough = !1, e._hpPercent = -1, e._cd = -1, e._isMe = !1, e._eating = !1, e.euiSkinName =
			"FightKunItemSkin", e._model = App.data.warpetCenter.kunCenter, e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		var i = this;
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onYes, this,
				this.btn_yes), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNo, this, this.btn_no), this._dispatcher
			.addEventListener(PlayerAttributeEvent.HP, this.onChangeHp, this), this._dispatcher.addEventListener(BossEvent.BOSS_HP,
				this.onChangeHp, this), this._dispatcher.addEventListener(EventType.BOSS_OWNER_CHANGE, this.onChangeOwner, this),
			this._dispatcher.addEventListener(EventType.STGAE_RESIZE, function() {
				i.x = (Config.SCREEN_WIDTH >> 1) - 70
			}, this), this._dispatcher.addEventListener(WarpetEvent.KUN_EAT_CD, this.onCD, this), this._type = App.data.zoneCenter
			.type, this.updateState()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clear()
	}, e.prototype.updateState = function() {
		App.data.zoneCenter.getMyZoneData() && 2 != App.data.zoneCenter.getMyZoneData().bean.q_zone_type && (this._isMe = !
			0), this._eating = this._model.getIsFull();
		var t = this._cd <= 0 && this._isMe && this._hpEnough && !this._eating && this._hp > 0;
		this.btn_yes.visible = t, this.btn_no.visible = !t, this._hp <= 0 && (this.btn_no.visible = !1), t ? (this._effect =
			EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("main", "kun_btn"), 122, 70, this._effect), this._effect
			.visible = !0) : this._effect && (this._effect.stop(), this._effect.visible = !1)
	}, e.prototype.onChangeHp = function(t, e, i) {
		App.data.boss.bossID == t && (-1 == this._hpPercent && (this._hpPercent = this._model.getEatHpPercent(this._type)),
			this._hpEnough = e / i < this._hpPercent, this._hp = e, this.updateState())
	}, e.prototype.onChangeOwner = function(t) {
		var e = LongUtil.toString(t.monsterId),
			i = LongUtil.toString(t.ownerId);
		App.data.boss.bossID != e && i && "0" != i || (this._isMe = i == App.global.characterData.personId, this.updateState())
	}, e.prototype.onCD = function() {
		var t = this._model.cd;
		this._cd = t, -1 != t ? App.timer.serverTimeEnd(this, this.onTimer, t) : App.timer.clearTimer(this.onTimer, this),
			this.updateState()
	}, e.prototype.onTimer = function(t) {
		this._cd = t.spuleTime, t.spuleTime < 0 && App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onYes = function(t) {
		WarpetCommandSender.sendC2S_WarPetKunDevourMessage()
	}, e.prototype.onNo = function(t) {
		this._eating ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">鲲正在消化中，无法继续吞噬！</font>") : this
			._cd > 0 ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">吞噬技能CD还剩" + this._cd + "秒</font>") :
			this._isMe ? this._hpEnough || Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">boss血量暂未达到可吞噬的血量，无法吞噬！</font>") : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">只有归属者才能吞噬！</font>")
	}, e.prototype.clear = function() {
		this._isMe = !1, this._hpEnough = !1, this._hpPercent = -1, this._cd = -1, App.timer.clearTimer(this.onTimer, this)
	}, e
}(ViewBase);
__reflect(FightKunItem.prototype, "FightKunItem");
var FightOwnerItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "FightOwnerItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._hpBar = new HpBar, this._hpBar.setUiComponent(this.bar_owner, this.bar_owner_flow, 187, 14), this._insideBar =
			new HpBar, this._insideBar.setUiComponent(this.bar_insidePower, this.bar_insidePower_flow, 166, 4), this.visible = !
			1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EventType.BOSS_OWNER_CHANGE, this.onChangeOwner,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFightOwner, this, this), this._bossID =
			App.data.boss.bossID, this._modelID = App.data.boss.bossModelID
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clear()
	}, e.prototype.onChangeOwner = function(t) {
		this.setOwner(LongUtil.toString(t.monsterId), LongUtil.toString(t.ownerId), t.ownerName, LongUtil.toNumber(t.hp),
			LongUtil.toNumber(t.maxHp), t.insidePower, t.maxInsidePower, t.job, t.sex)
	}, e.prototype.setOwner = function(t, e, i, n, a, o, r, s, h) {
		this._bossID != t && e && "0" != e || (this.visible = "-1" != e, "-1" != e && (this._ownerID != e && (this._ownerID =
				e, this.owner_txt.text = i, this.owner_head.source = GridUtil.getHead(s, h)), this._hpBar.setValue(n, a), this._insideBar
			.setValue(o, r)))
	}, e.prototype.onFightOwner = function(t) {
		this._ownerID != App.global.characterData.personId && App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._ownerID)
	}, e.prototype.clear = function() {
		this._bossID = "", this._ownerID = "", this._hpBar.reset(), this.visible = !1
	}, e.prototype.dispose = function() {
		this._hpBar && this._hpBar.dispose(), this._hpBar = null, this._insideBar && this._insideBar.dispose(), this._insideBar =
			null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(FightOwnerItem.prototype, "FightOwnerItem");
var FightSelectedItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isMe = !1, e._firstGuide = !1, e.euiSkinName = "FightSelectedItemSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EventType.BOSS_OWNER_CHANGE, this.onChangeOwner,
				this), this._dispatcher.addEventListener(EventType.LAST_ATTACK_ROLE_CHANGE, this.onAttack, this), this._dispatcher
			.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.onDie, this), this._dispatcher.addEventListener(
				EventType.SELECT_NPC, this.onNpc, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFightBoss,
				this, this.btn_boss_to), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFightOwner, this,
				this.btn_owner_to), App.data.taskCenter.getThreadTaskShowGuide(12, 2) && 0 == this._firstGuide && (this._firstGuide = !
				0, Guide.getGuide().show("点击攻击", Guide.RIGHT, this.btn_owner_to.x - 165, this.btn_owner_to.y + 30, this)), this._bossID =
			App.data.boss.bossID
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clear()
	}, e.prototype.onChangeOwner = function(t) {
		if (this._bossID == LongUtil.toString(t.monsterId)) {
			this._ownerID = LongUtil.toString(t.ownerId);
			var e = App.global.characterData;
			this._isMe = this._ownerID == e.personId;
			var i = "我是归属者";
			App.data.zoneCenter.type == EnumZoneType.CROSS ? (i = "本服归属中", this._isMe = e.serverid == t.serverid) : App.data.zoneCenter
				.type == EnumZoneType.ALLGUILDBOSS && (i = "本帮归属中", this._isMe = e.guildId == LongUtil.toString(t.guildid)), this
				.btn_mine.label = this._isMe ? i : "正在攻击归属者", this.btn_owner_to.visible = this._isMe ? !1 : this._attackID !=
				this._ownerID, this.btn_mine.visible = this._isMe ? !0 : this._attackID == this._ownerID
		}
	}, e.prototype.onAttack = function(t) {
		return null == t ? (this.btn_owner_to.visible = this._isMe ? !1 : !0, this.btn_mine.visible = this._isMe ? !0 : !1,
			this.btn_boss_to.visible = !0, void(this.btn_boss_ing.visible = !1)) : (this._attackID = t.personId, void(
			ZoneUtil.isBoss(t) ? (this.btn_owner_to.visible = this._isMe ? !1 : !0, this.btn_mine.visible = this._isMe ? !0 :
				!1, this.btn_boss_to.visible = !1, this.btn_boss_ing.visible = !0) : ZoneUtil.getOwnerID(t) == this._ownerID ?
			(this._attackID = this._ownerID, this.btn_owner_to.visible = !1, this.btn_mine.visible = !0, this.btn_boss_to.visible = !
				0, this.btn_boss_ing.visible = !1, App.data.taskCenter.getThreadTaskShowGuide(12, 2) && Guide.getGuide().hide()
			) : (this.btn_owner_to.visible = this._isMe ? !1 : !0, this.btn_mine.visible = this._isMe ? !0 : !1, this.btn_boss_to
				.visible = !0, this.btn_boss_ing.visible = !1)))
	}, e.prototype.onFightBoss = function(t) {
		App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._bossID)
	}, e.prototype.onFightOwner = function(t) {
		"" != this._ownerID && "0" != this._ownerID && "-1" != this._ownerID ? this._ownerID != App.global.characterData.personId &&
			App.dispatcher.dispatchEvent(ZoneEvent.ZONE_FIGHT, this._ownerID) : Notice.showMousePosMessage("<font color=" +
				Notice.MIDDLE_COLOR_2 + ">暂无归属者！</font>")
	}, e.prototype.onDie = function() {
		this.btn_owner_to.visible = this._isMe ? !1 : !0, this.btn_mine.visible = this._isMe ? !0 : !1, this.btn_boss_to.visible = !
			0, this.btn_boss_ing.visible = !1
	}, e.prototype.onNpc = function(t) {
		this.btn_owner_to.visible = this._isMe ? !1 : !0, this.btn_mine.visible = this._isMe ? !0 : !1, this.btn_boss_to.visible = !
			0, this.btn_boss_ing.visible = !1
	}, e.prototype.clear = function() {
		this._bossID = "", this._ownerID = "", this._attackID = "", this.btn_owner_to.visible = !0, this.btn_mine.visible = !
			1, this.btn_boss_to.visible = !0, this.btn_boss_ing.visible = !1, this._firstGuide = !1, App.data.taskCenter.getThreadTaskShowGuide(
				12, 2) && Guide.getGuide().hide()
	}, e
}(ViewBase);
__reflect(FightSelectedItem.prototype, "FightSelectedItem");
var MiniMapProxy = function() {
	function t() {
		this._scaleW = 1, this._scaleH = 1
	}
	return t.prototype.setComponent = function(t, e, i, n, a, o) {
		this._bg = t, this._bgWidth = e, this._bgHeight = i, this._me = n, this._meWidth = a, this._meHeight = o
	}, t.prototype.enterMap = function() {
		var t = App.global.characterData,
			e = App.config.q_mapContainer.getDataBean(t.mapId);
		null != e && (this._mapWidth = e.q_map_width, this._mapHeight = e.q_map_height, this._scaleW = this._mapWidth /
			this._bgWidth, this._scaleH = this._mapHeight / this._bgHeight, this.updatePosition(t.pixel_x, t.pixel_y))
	}, t.prototype.updatePosition = function(t, e) {
		this._me.x = t / this._scaleW - this._meWidth / 2, this._me.y = e / this._scaleH - this._meHeight / 2
	}, t.prototype.dispose = function() {
		this._bg = null, this._me = null, this._mapWidth = 0, this._mapHeight = 0
	}, t
}();
__reflect(MiniMapProxy.prototype, "MiniMapProxy");
var MiniMapView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "MiniMapSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._proxy = new MiniMapProxy, this._proxy.setComponent(this.bg, 246, 159, this.me, 14, 14)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EventType.CHARACTER_UPDATE_POSITION, this.updatePosition,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowMap, this, this.btn_show), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onHideMap, this, this.btn_hide), this._proxy.enterMap(), this.onShowMap()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.updatePosition = function(t, e, i, n, a, o) {
		this._proxy.updatePosition(t, e)
	}, e.prototype.onShowMap = function(t) {
		void 0 === t && (t = null), this.groupMap.visible = !0, this.btn_hide.visible = !0, this.btn_show.visible = !1
	}, e.prototype.onHideMap = function(t) {
		void 0 === t && (t = null), this.groupMap.visible = !1, this.btn_hide.visible = !1, this.btn_show.visible = !0
	}, e.prototype.dispose = function() {
		this._proxy && this._proxy.dispose(), this._proxy = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MiniMapView.prototype, "MiniMapView");
var MenuBottom = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._gap = 8, e
	}
	return __extends(e, t), e.prototype.buttonLayout = function() {
		ArrayUtil.sortOnArr(this._menuBtns, ["sortIndex"], [ArrayUtil.NUMERIC]);
		for (var t, e = 0; e < this._menuBtns.length; e++) t = this._menuBtns[e], t.moveTo(e * (t.width + this._gap) + 7,
			17), t.parentX = this.defaultX, t.parentY = this.defaultY, this.experienceSetting(t)
	}, e.prototype.experienceSetting = function(t) {
		12 == t.data.id && t.moveTo(-77, 30)
	}, e.prototype.tween = function(t) {}, e.prototype.showOther = function(t, e) {
		void 0 === e && (e = 0);
		for (var i = this._menuBtns.length, n = 0; i > n; n++) this._menuBtns[n].isPlaying = t;
		App.timer.doTimeOnce(this, e, this.ontimer)
	}, e.prototype.ontimer = function() {
		for (var t = this._menuBtns.length, e = 0; t > e; e++) this._menuBtns[e].setOtherVisible(this._menuBtns[e].isPlaying)
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH / 2 - 225;
		var t = Config.isPhoneX && (Config.isWxGame || Config.isNeiZhiWeb) ? MainParams.UP : 0;
		this.y = Config.SCREEN_HEIGHT - EnumMainMenu.Main_Menu_Height + 60 - t
	}, e
}(MenuBase);
__reflect(MenuBottom.prototype, "MenuBottom");
var MenuLeft = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.AddThirdBtn = function() {
			var t = App.global.enterBtn.getButton(102);
			e._menuBtns.push(t), e.buttonLayout()
		}, e.DelAssginBtn = function() {
			var t = -1,
				i = -1;
			e._menuBtns.map(function(n) {
				101 == n.data.id && App.global.roles.getRoleInfoByIndex(2) && (n.visible = !1, t = e._menuBtns.indexOf(n)), 102 ==
					n.data.id && (App.global.roles.getRoleInfoByIndex(2) || (n.visible = !1, i = e._menuBtns.indexOf(n)), App.global
						.roles.getRoleInfoByIndex(3) && (n.visible = !1, i = e._menuBtns.indexOf(n)))
			}), -1 != t && (e._menuBtns.splice(t, 1), t = -1), -1 != i && (e._menuBtns.splice(i, 1), i = -1)
		}, e._gap = 15, App.dispatcher.addEventListener(EnterButtonEvent.THIRDBTN, e.AddThirdBtn, e), App.dispatcher.addEventListener(
			EnterButtonEvent.THIRDREFRESH, e.buttonLayout, e), e
	}
	return __extends(e, t), e.prototype.buttonLayout = function() {
		ArrayUtil.sortOnArr(this._menuBtns, ["sortIndex"], [ArrayUtil.NUMERIC]);
		var t, e = 0;
		this.DelAssginBtn();
		for (var i = 0; i < this._menuBtns.length; i++)
			if (t = this._menuBtns[i], 18 == t.data.id) t.moveTo(12, 429);
			else if (65 == t.data.id) t.moveTo(13, 420);
		else {
			if (17 == t.data.id) t.moveTo(13, e * (63 + this._gap));
			else if (103 == t.data.id) t.moveTo(15, e * (63 + this._gap));
			else if (t.moveTo(0, e * (63 + this._gap)), 102 == t.data.id) {
				var n = App.global.enterBtn.getButton(102);
				n && (n.visible = !0, n.y = t.y)
			}
			e++
		}
	}, e.prototype.resize = function() {
		this.x = -5, this.y = 359
	}, e
}(MenuBase);
__reflect(MenuLeft.prototype, "MenuLeft");
var MenuNavigation = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._leftSpace = 70, e._isShow = !1, e.rowCnt = 7, e._gap = 8, e.addEvent(), e.resize(), e
	}
	return __extends(e, t), e.prototype.buttonLayout = function() {
		ArrayUtil.sortOnArr(this._menuBtns, ["sortIndex"], [ArrayUtil.NUMERIC]);
		for (var t, e = 0; e < this._menuBtns.length; e++) t = this._menuBtns[e], t.moveTo(e % this.rowCnt * (t.width +
			this._gap) + this._leftSpace, Math.floor(e / this.rowCnt) * t.height)
	}, e.prototype.resize = function() {
		this.x = 20
	}, e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(EventType.FUNCTION_OPEN, this.showNavigation, this)
	}, e.prototype.showNavigation = function() {
		App.global.funcOpen.isFunctionOpen(36, "", !1) && App.dispatcher.removeEventListener(EventType.FUNCTION_OPEN, this.showNavigation,
			this)
	}, e.prototype.setNavigationButtons = function(t, e, i) {
		this.groupCity = i
	}, e.prototype.showNavigationPoint = function() {
		App.timer.doFrameOnce(this, 6, this.onShowNavigationPoint)
	}, e.prototype.onShowNavigationPoint = function() {
		for (var t = !1, e = this.getButtonList(), i = 0; i < e.length; i++)
			if (null != e[i].red) {
				t = !0;
				break
			} UIMaker.showPoint(this.groupCity, this, t)
	}, e
}(MenuBase);
__reflect(MenuNavigation.prototype, "MenuNavigation");
var MenuRight = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._gap = 0, e
	}
	return __extends(e, t), e.prototype.buttonLayout = function() {
		ArrayUtil.sortOnArr(this._menuBtns, ["sortIndex"], [ArrayUtil.NUMERIC]);
		for (var t, e = 0, i = 0; i < this._menuBtns.length; i++) t = this._menuBtns[i], t.x = 0, 39 == t.data.id ? t.moveTo(
			-160, 450) : 104 == t.data.id ? (t.moveTo(-10, 890), t.visible = !1) : (t.moveTo(0, 70 * e + 460), e++), GameLog.log(
			"按钮id" + t.data.id + "按钮显示状态", t.isPlaying, "按钮显示", t.visible, "按钮透明度", t.alpha);
		GameLog.log("容器显示状态", this.isPlaying)
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - 76
	}, e
}(MenuBase);
__reflect(MenuRight.prototype, "MenuRight");
var MenuTop = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._gap = -5, e.width = 400, e
	}
	return __extends(e, t), e.prototype.buttonLayout = function() {
		var t = 6;
		ArrayUtil.sortOnArr(this._menuBtns, ["sortIndex"], [ArrayUtil.NUMERIC]);
		for (var e, i = 0; i < this._menuBtns.length; i++) e = this._menuBtns[i], e.moveTo(this.width - i % t * (e.width +
			this._gap) - e.width, Math.floor(i / t) * (e.height - 8) - 5)
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - this.width, this.y = Config.isAllShow() ? 80 + MainParams.Down : 80
	}, e
}(MenuBase);
__reflect(MenuTop.prototype, "MenuTop");
var HpBar = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.setUiComponent = function(t, e, i, n, a, o) {
		void 0 === o && (o = 1), this._bar = t, this._flowBar = e, this._barWidth = i, this._barHeight = n, this._txt = a,
			this._time = o, this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics.beginFill(0, 1),
			this._mask.graphics.drawRect(t.x, t.y, i, n), this._mask.graphics.endFill(), this._bar.parent.addChild(this._mask),
			this._bar.mask = this._mask, this._mask.x = -this._barWidth
	}, e.prototype.getMax = function() {
		return this._max
	}, e.prototype.getValue = function() {
		return this._value
	}, e.prototype.setDefaultValue = function(t, e) {
		this._max = e, this._value = Math.min(e, Math.max(0, t));
		var i = this._value / e * this._barWidth;
		this._mask.x = i - this._barWidth, this._flowBar && (this._flowBar.width = i)
	}, e.prototype.setValue = function(t, e, i) {
		void 0 === i && (i = 0), this._max = e, this._value = Math.min(e, Math.max(0, t));
		var n = this._value / e * this._barWidth;
		if (this.clear(), this._flowBar) this._mask.x = n - this._barWidth, TweenLite.to(this._flowBar, this._time, {
			width: n
		});
		else {
			var a = 0;
			i > 0 && n - this._barWidth < this._mask.x && (TweenLite.killTweensOf(this._mask), a = .1, TweenLite.to(this._mask,
				a, {
					x: 0,
					onComplete: this.tweenEnd,
					onCompleteScope: this
				})), TweenLite.to(this._mask, this._time, {
				delay: a,
				x: n - this._barWidth
			})
		}
		this._txt && (this._txt.text = t + "/" + e)
	}, e.prototype.tweenEnd = function() {
		this._mask.x = -this._barWidth
	}, e.prototype.clear = function() {
		this._flowBar && TweenLite.killTweensOf(this._flowBar), this._mask && TweenLite.killTweensOf(this._mask)
	}, e.prototype.reset = function() {
		this.clear(), this._mask && (this._mask.x = 0), this._flowBar && (this._flowBar.width = this._barWidth)
	}, e.prototype.dispose = function() {
		this.clear(), this._bar && (this._bar.mask = null), this._bar = null, this._mask && (this._mask.graphics.clear(),
			this._mask = null), this._flowBar = null
	}, e
}(egret.HashObject);
__reflect(HpBar.prototype, "HpBar");
var MaskBar = function(t) {
	function e(e, i, n, a) {
		var o = t.call(this) || this;
		return o._progress = 0, o._maskWidth = 0, o._maskHeight = 0, o._target = e, o._parent = i, o._maskWidth = n, o._maskHeight =
			a, o.initMask(), o
	}
	return __extends(e, t), e.prototype.initMask = function() {
		this._mask = new egret.Rectangle(0, 0, this._maskWidth, this._maskHeight), this._mask.x = 0, this._mask.y = 0, this
			._target.mask = this._mask
	}, Object.defineProperty(e.prototype, "progress", {
		get: function() {
			return this._progress
		},
		set: function(t) {
			t = 0 > t ? 0 : t, t = t > 1 ? 1 : t, this._progress = t, this._mask.x = this._maskWidth * this._progress - this
				._maskWidth, this._target.mask = this._mask
		},
		enumerable: !0,
		configurable: !0
	}), e
}(egret.HashObject);
__reflect(MaskBar.prototype, "MaskBar");
var EnterButtonContainer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._vObj = {}, e.init(), e.addEvents(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.bottomMenu = new MenuBottom, this.addChild(this.bottomMenu), this.leftMenu = new MenuLeft, this.addChild(this.leftMenu),
			this.rightMenu = new MenuRight, this.addChild(this.rightMenu), this.topMenu = new MenuTop, this.addChild(this.topMenu),
			this.effectContainer = new MenuEffectContainer, this.addChild(this.effectContainer), this.txtContainer = new MenuTextContainer,
			this.addChild(this.txtContainer), this.tipContainer = new MenuTipContainer, this.addChild(this.tipContainer);
		var t = App.global.enterBtn;
		t.registContainer(1, this.topMenu), t.registContainer(2, this.bottomMenu), t.registContainer(6, this.bottomMenu), t
			.registContainer(3, this.leftMenu), t.registContainer(4, this.rightMenu), this._kunBtn = new KunEatingButton, this
			._kunBtn.moveTo(Config.SCREEN_WIDTH - 60 >> 1, Config.SCREEN_HEIGHT - 400, this), this.resize()
	}, e.prototype.addEvents = function() {
		App.dispatcher.addEventListener(EnterButtonEvent.REFRESH, this.addButton, this), App.dispatcher.addEventListener(
			EnterButtonEvent.END_TIME, this.onEndTime, this), App.dispatcher.addEventListener(EnterButtonEvent.SHOW_TIME,
			this.onShowTime, this), App.dispatcher.addEventListener(EnterButtonEvent.ONLY_SHOW_TIME, this.onOnlyShowTime,
			this), App.dispatcher.addEventListener(EnterButtonEvent.SHOW_EFFECT, this.showEffect, this), App.dispatcher.addEventListener(
			EnterButtonEvent.SHOW_RED_POINT, this.showPoint, this), App.dispatcher.addEventListener(EnterButtonEvent.CHANGE_URL,
			this.onChangeUrl, this), App.dispatcher.addEventListener(ActivityEvent.UPDATE_ENTERBUTTON, this.onUpdateActivity,
			this), App.dispatcher.addEventListener(ZoneEvent.ENTER_ZONE, this.onEnterZone, this), App.dispatcher.addEventListener(
			EventType.SHOW_HIDE_PANEL, this.onPanelOpen, this), App.dispatcher.addEventListener(EventType.MAINPANEL_SHOWORHIDE,
			this.onHideMainPanel, this)
	}, e.prototype.addButton = function(t, e) {
		if (104 != t && 0 != this.checkPlatformButton(t)) {
			var i = App.global.enterBtn,
				n = i.getButton(t);
			if (null != n != e) {
				var a = i.getInfo(t);
				if (a) {
					var o = i.getContainer(a.type);
					o && (e ? (o.addMenuBtn(t), this.tipContainer.addTip(t), this.effectContainer.initPoint(t), this.txtContainer.initText(
						t), App.data.activityCenter.checkJiezhi()) : (this.tipContainer.hideTip(t), this.effectContainer.disposeEffect(
						t), this.txtContainer.hideText(t), o.removeMenuBtn(t)))
				}
			}
		}
	}, e.prototype.checkPlatformButton = function(t) {
		return 814 == t && 0 == Platfrom_HDHD.is_client ? !1 : 811 == t && 0 == Platfrom_HDHD.is_verify ? !1 : 812 == t &&
			0 == Platfrom_HDHD.is_bind ? !1 : 813 == t && 0 == Platfrom_HDHD.is_share ? !1 : 54 == t && 0 == Platfrom_HDHD.is_customerService ?
			!1 : 815 == t && 0 == Platfrom_HDHD.is_vipService ? !1 : 816 == t && 0 == Platfrom_HDHD.is_todesktop ? !1 : 817 ==
			t && 0 == Platfrom_HDHD.is_subscribe ? !1 : !0
	}, e.prototype.showPoint = function(t, e) {
		e ? this.effectContainer.showPoint(t) : this.effectContainer.hidePoint(t)
	}, e.prototype.showEffect = function(t, e, i, n, a) {
		void 0 === i && (i = 0), void 0 === n && (n = 0), e ? this.effectContainer.showEffect(t, i, n, a) : this.effectContainer
			.hideEffect(t)
	}, e.prototype.onOnlyShowTime = function(t, e) {
		e > 0 ? this.txtContainer.showText(t, e, 1) : this.txtContainer.hideText(t)
	}, e.prototype.onShowTime = function(t, e, i) {
		void 0 === i && (i = 0), e > ServerTime.getServerTime() ? this.txtContainer.showText(t, e, i) : this.txtContainer.hideText(
			t)
	}, e.prototype.onChangeUrl = function(t, e) {
		var i = App.global.enterBtn.getButton(t);
		null != i && i.changeUrl(e)
	}, e.prototype.showOrHide = function(t, e) {
		this._vObj[e] = t;
		for (var i in this._vObj)
			if (0 == this._vObj[i]) return void this.showAll(!1);
		this.showAll(!0)
	}, e.prototype.showAll = function(t) {
		this.topMenu.setVisible(t), this.leftMenu.setVisible(t), this.rightMenu.setVisible(t), App.dispatcher.dispatchEvent(
			EventType.MAINPANEL_SHOWORHIDE2, t)
	}, e.prototype.resize = function() {
		this.topMenu.resize(), this.leftMenu.resize(), this.bottomMenu.resize(), this.rightMenu.resize(), this._kunBtn &&
			this._kunBtn.Resize()
	}, e.prototype.onEnterZone = function(t, e) {
		var i = [EnumZoneType.AUTO_FIGHT_ZONE, EnumZoneType.MAIN_CITY_OLD, EnumZoneType.MAIN_CITY],
			n = -1 != i.indexOf(e);
		this.showOrHide(n, ZoneEvent.ENTER_ZONE), this._kunBtn.onUpdate()
	}, e.prototype.onPanelOpen = function(t) {
		this.showOrHide(!t, EventType.SHOW_HIDE_PANEL)
	}, e.prototype.onHideMainPanel = function(t) {
		this.showOrHide(t, EventType.MAINPANEL_SHOWORHIDE)
	}, e.prototype.onEndTime = function(t) {
		var e = App.global.enterBtn.getButton(t);
		e && 39 == t && ZoneCommandSender.sendC2S_daobaoMessage()
	}, e.prototype.onUpdateActivity = function(t) {
		var e = App.data.activityCenter;
		if (800 == t.type) {
			var i = e.isEvdAllGet();
			i && e.isHasFirstFlush() ? this.addButton(27, !0) : this.addButton(27, !1)
		}
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(EnterButtonContainer.prototype, "EnterButtonContainer");
var MenuEffectContainer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._effectObj = {}, e._playingObj = {}, e._redObj = {}, e._redEffectObj = {}, e._redPlayingObj = {}, e._showObj = {},
			e.specialArr = [], e.init(), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.resize, e), App.dispatcher.addEventListener(
				EnterButtonEvent.GUILD_POINT, e.getRedPoint, e), e
	}
	return __extends(e, t), e.prototype.resize = function() {
		for (var t in this._redObj) this.showPoint(Number(t));
		for (var e in this._effectObj) {
			var i = this._effectObj[Number(e)];
			this.showEffect(Number(e), i.px, i.py, i.url)
		}
	}, e.prototype.init = function() {
		this._manager = App.global.enterBtn, this._redContainer = new h5_engine.GDisplayObjectContainer, this.addChild(this
			._redContainer), this._defaultUrl = ResPathUtil.getMenuEffect("enterbutton", "1_0")
	}, e.prototype.initPoint = function(t) {
		var e = this._showObj[t];
		e ? e.red ? this.showPoint(t) : this.showEffect(t, e.px, e.py, e.url) : this.specialButton(t)
	}, e.prototype.specialButton = function(t) {
		this.specialArr.indexOf(t) > -1 && this.showEffect(t)
	}, e.prototype.showEffect = function(t, e, i, n) {
		void 0 === e && (e = 0), void 0 === i && (i = 0);
		var a = (this._playingObj[t], this._manager.getButton(t));
		if (null == a) return void(this._showObj[t] = {
			red: !1,
			px: e,
			py: i,
			url: n
		});
		var o = this._effectObj[t];
		null == o ? (n = n ? n : this._defaultUrl, o = EffectUtils.showCEffect(this, this, n, a.parent.x + a.x + a.width /
				2 + e, a.parent.y + a.y + a.height / 2 + i), this._effectObj[t] = o, a.effect = o) : o.setTo(a.parent.x + a.x + a
				.width / 2 + e, a.parent.y + a.y + a.height / 2 + i), (2 == a.data.type || 6 == a.data.type) && (o.x = a.parentX +
				a.x + a.width / 2, o.x = a.parentY + a.y + a.height / 2), n == this._defaultUrl && (o.scaleX = 1, o.scaleY = 1),
			a.saveUiComponentXY(o.hashCode, o.x, o.y, o), this._playingObj[t] = !0, delete this._showObj[t]
	}, e.prototype.hideEffect = function(t) {
		var e = this._playingObj[t];
		if (e) {
			var i = this._manager.getButton(t);
			if (null != i) {
				var n = this._effectObj[t];
				n && (i.deleteUiComponentXY(n.hashCode), i.effect = null, n.dispose(), this._effectObj[t] = null, delete this._effectObj[
					t], this._playingObj[t] = !1)
			}
		}
	}, e.prototype.getRedPoint = function(t) {
		var e = t[0],
			i = t[1],
			n = this._redObj[e];
		if (n) {
			-1 != App.panel.getTopPanelID() && (i = !1), n.visible = i;
			var a = this._redEffectObj[e];
			a && (a.visible = i)
		}
	}, e.prototype.showPoint = function(t) {
		var e = this._manager.getButton(t);
		if (null == e) return void(this._showObj[t] = {
			red: !0
		});
		var i = e.data,
			n = 0,
			a = 0;
		e.width > 80 && e.width < 130 && (n = -10, a = 10);
		var o = this._redObj[t];
		null == o && (o = UIMaker.getImage(null, this, "main_main_tip_png_png"), o.name = "red" + t, this._redContainer.addChildAt(
			o, 0), this._redObj[t] = o, e.red = o);
		var r = this._redEffectObj[t];
		null == r && (r = EffectUtils.showCEffect(this, this._redContainer, ResPathUtil.getMenuEffect("main", "redpoint"),
				o.x + 11, o.y + 10), this._redEffectObj[t] = r, e.redEffect = r), o.x = e.width - 22 + n + e.x + e.parent.x, o.y =
			a + e.y + e.parent.y, (2 == e.data.type || 6 == e.data.type) && (e.parentX = e.parent.x, e.parentY = e.parent.y, o
				.x = e.parentX + e.x + e.width - 22 + n, o.y = e.parentY + e.y + a + 8, 12 == t && (o.y -= 10)), 5 == e.data.type &&
			(e.parentX = e.parent.x + e.parent.parent.x, e.parentY = e.parent.y + e.parent.parent.y, o.x = e.parentX + e.x + e
				.width - 22 + n, o.y = e.parentY + e.y + a + 8), e.saveUiComponentXY(o.hashCode, o.x, o.y, o), r.x = o.x + 10, r.y =
			o.y + 10, e.saveUiComponentXY(r.hashCode, r.x, r.y, r), r.play(), this._redPlayingObj[t] = !0, delete this._showObj[
				t], 1 == i.bean.q_zhuanquan && this.showEffect(t)
	}, e.prototype.hidePoint = function(t) {
		this.disposeEffect(t)
	}, e.prototype.disposeEffect = function(t) {
		var e = this._manager.getButton(t);
		if (null != e) {
			var i = this._redObj[t];
			i && (e.deleteUiComponentXY(i.hashCode), e.red = null, UIMaker.putToPool(i), this._redObj[t] = null, delete this._redObj[
				t], this._redPlayingObj[t] = !1);
			var n = this._redEffectObj[t];
			n && (e.deleteUiComponentXY(n.hashCode), e.redEffect = null, n.dispose(), this._redEffectObj[t] = null, delete this
				._redEffectObj[t]), n = this._effectObj[t], n && (e.deleteUiComponentXY(n.hashCode), e.effect = null, n.dispose(),
				this._effectObj[t] = null, delete this._effectObj[t], this._playingObj[t] = !1)
		}
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(MenuEffectContainer.prototype, "MenuEffectContainer");
var MenuTextContainer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._txtObj = {}, e._bgObj = {}, e._btnObj = {}, e._delayObj = {}, e._manager = App.global.enterBtn, App.dispatcher
			.addEventListener(EventType.STGAE_RESIZE, e.resize, e), e
	}
	return __extends(e, t), e.prototype.resize = function() {
		for (var t in this._btnObj) this.updatePos(Number(t))
	}, e.prototype.initText = function(t) {
		var e = this._delayObj[t];
		e && this.showText(t, e.endtime, e.type)
	}, e.prototype.updatePos = function(t) {
		var e = this._btnObj[t];
		if (e) {
			var i = e.btn,
				n = e.type;
			if (i) {
				var a = 2 == n ? 105 : 7,
					o = i.time_bg;
				if (o) {
					2 == n ? (o.x = .5 * (i.width - 77) + i.parentX + i.x, o.y = i.height - a + i.parentY + i.y) : (o.x = .5 * (i.width -
						77) + i.parent.x + i.x, o.y = i.height - a + i.parent.y + i.y), i.time_bg = o, i.saveUiComponentXY(o.hashCode,
						o.x, o.y, o);
					var r = i.time_txt;
					r && (2 == n ? (r.x = i.parentX + i.x, r.y = i.height - a + 1 + i.parentY + i.y) : (r.x = i.parent.x + i.x, r.y =
						i.height - a + 1 + i.parent.y + i.y), i.time_txt = r, i.saveUiComponentXY(r.hashCode, r.x, r.y, r))
				}
			}
		}
	}, e.prototype.showText = function(t, e, i) {
		void 0 === i && (i = 0);
		var n = this._manager.getButton(t);
		if (null == n) return void(this._delayObj[t] = {
			endtime: e,
			type: i
		});
		var a = 2 == i ? 105 : 7,
			o = this._bgObj[t];
		null == o && (o = UIMaker.getImage(null, this, "enterbutton_daojishi_01_png"), o.name = "time_bg" + t, 2 == i ? (o.x =
			.5 * (n.width - 77) + n.parentX + n.x, o.y = n.height - a + n.parentY + n.y) : (o.x = .5 * (n.width - 77) + n.parent
			.x + n.x, o.y = n.height - a + n.parent.y + n.y), this.addChildAt(o, 0), this._bgObj[t] = o, n.time_bg = o, n.saveUiComponentXY(
			o.hashCode, o.x, o.y, o));
		var r = this._txtObj[t];
		null == r && (r = UIMaker.getTextField(this, this, 0, 0, n.width + 15, 18, 3533365, 18), r.name = "time_txt" + t, 2 ==
			i ? (r.x = n.parentX + n.x, r.y = n.height - a + 1 + n.parentY + n.y) : (r.x = n.parent.x + n.x, r.y = n.height -
				a + 1 + n.parent.y + n.y), this._txtObj[t] = r, n.time_txt = r, n.saveUiComponentXY(r.hashCode, r.x, r.y, r));
		var s = this._btnObj[t];
		s || (s = {}, s.btn = n, s.type = i, this._btnObj[t] = s), n.addTimer(e, i)
	}, e.prototype.hideText = function(t) {
		var e = this._manager.getButton(t);
		if (null == e) return void delete this._delayObj[t];
		var i = this._bgObj[t];
		i && (e.deleteUiComponentXY(i.hashCode), e.time_bg = null, UIMaker.putToPool(i), this._bgObj[t] = null, delete this
			._bgObj[t]);
		var n = this._txtObj[t];
		n && (e.deleteUiComponentXY(n.hashCode), e.time_txt = null, UIMaker.putToPool(n), this._txtObj[t] = null, delete this
			._txtObj[t]);
		var a = this._btnObj[t];
		a && (this._btnObj[t] = null, delete this._btnObj[t])
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(MenuTextContainer.prototype, "MenuTextContainer");
var MenuTipContainer = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._dispatcher = new DispatcherRegister, e._tipObj = {}, e._isLucky = !1, e._isPromise = !1, e._manager = App.global
			.enterBtn, e.addEvent(), e
	}
	return __extends(e, t), e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(EnterButtonEvent.TOUCH_BUTTON, this.onTouch, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.CHARACTER_LEVEL, this.onUpdatePlayer, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.ZHUAN_SHENG, this.onUpdatePlayer, this), this._dispatcher.addEventListener(EventType.SHOW_REDPOINT,
				this.onShowPoint, this), this._dispatcher.addEventListener(ItemEvent.BAG_OPEN_GRID, this.showRecovery, this),
			this._dispatcher.addEventListener(BossEvent.REFRESH, this.showBossTip, this), this._dispatcher.addEventListener(
				PromiseCenter.UPDATE, this.showPromiseGuide, this), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize,
				this)
	}, e.prototype.resize = function() {
		this.onUpdatePlayer();
		for (var t in this._tipObj) this.addTip(Number(t));
		this.showBossTip(), this.showRecovery(), this.showPromiseGuide()
	}, e.prototype.showTip = function(t, e, i, n, a, o) {
		void 0 === o && (o = !1);
		var r = this._tipObj[t];
		r = UIMaker.getImage(this, this, i, n, a, o, r), r.name = "tip" + t, this._tipObj[t] = r, e.tip = r, e.saveUiComponentXY(
			r.hashCode, r.x, r.y, r)
	}, e.prototype.hideTip = function(t) {
		var e = this._manager.getButton(t);
		if (null != e) {
			var i = this._tipObj[t];
			i && (e.deleteUiComponentXY(i.hashCode, i), e.tip = null, UIMaker.putToPool(i), this._tipObj[t] = null, delete this
				._tipObj[t]), this.hideSpcialTip(t)
		}
	}, e.prototype.hideSpcialTip = function(t) {
		switch (t) {
			case 23:
				this.hideBossTip();
				break;
			case 61:
				this.hidePromiseGuide()
		}
	}, e.prototype.addTip = function(t) {
		switch (t) {
			case 68:
			case 26:
				this.showLimitTip(t);
				break;
			case 61:
				this.showPromiseGuide()
		}
	}, e.prototype.onTouch = function(t) {
		14 == t ? this._isLucky && (this._isLucky = !1, this.showRecovery()) : this.hideTip(t), 61 == t && (this._isPromise = !
			0)
	}, e.prototype.onUpdatePlayer = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		this.showLucky(), this.showFirstRechargeTip(), this.showMoonCardTip()
	}, e.prototype.onShowPoint = function(t) {
		2 == t && this.showRecovery()
	}, e.prototype.showRecovery = function() {
		var t = 14;
		if (App.data.bagItemDataCenter.isFull()) {
			if (this._isLucky) return;
			var e = this._manager.getButton(t);
			if (null == e) return;
			this.showTip(t, e, "enterbutton_tip_recovery_png", .5 * (e.width - 155) + e.x + e.parentX, -30 + e.y + e.parentY)
		} else this.hideTip(t)
	}, e.prototype.showLucky = function() {
		this.showFirstRechargeTip();
		var t = 14,
			e = this._manager.getButton(t);
		if (null != e)
			for (var i = App.data.bagItemDataCenter.getAllTypeProp(7), n = App.global.characterData.level, a = App.global.characterData
					.zhuanSheng, o = i.length, r = 0; o > r; r++) {
				var s = i[r];
				if ("幸运宝箱" == s.name) {
					var h = s.bean.q_zhuanshen;
					if (a == h && 0 != h || 0 == h && s.bean.q_level == n) {
						this._isLucky = !0, this.showTip(t, e, "enterbutton_tip_lucky_png", .5 * (e.width - 155) + e.x + e.parent.x, -
							30 + e.y + e.parent.y);
						break
					}
				}
			}
	}, e.prototype.showFirstRechargeTip = function() {
		var t = [20, 40, 60],
			e = App.global.characterData.level;
		if (App.data.getVipCenter()._firstRechange && e >= 20);
		else {
			if (-1 == t.indexOf(e)) return;
			if (0 == App.data.getVipCenter()._firstRechange) return
		}
		var i = 16,
			n = this._manager.getButton(i);
		null != n && this.showTip(i, n, "enterbutton_tip_recharge_png", 70 + n.x + n.parent.x, -7 + n.y + n.parent.y, !0)
	}, e.prototype.showMoonCardTip = function() {
		var t = [30, 50],
			e = App.global.characterData.level;
		if (-1 != t.indexOf(e) && !(30 > e || App.data.moonCardCenter.isCardVip())) {
			var i = 15,
				n = this._manager.getButton(i);
			null != n && this.showTip(i, n, "enterbutton_tip_yk_png", 70 + n.x + n.parent.x, -7 + n.y + n.parent.y, !0)
		}
	}, e.prototype.showLimitTip = function(t) {
		var e = this._manager.getButton(t);
		null != e && this.showTip(t, e, "enterbutton_tip_limit_png", -50 + e.x + e.parent.x, 90 + e.y + e.parent.y, !0)
	}, e.prototype.showBossTip = function() {
		var t = this._manager.getButton(23);
		if (null != t) {
			var e = App.data.boss.getRemindBossData();
			e ? (null == this._remind && (this._remind = new BossRemindEffect, t.addChild(this._remind), this._remind.x = -180,
				this._remind.y = t.height / 2 - 9), this._remind.play(e)) : this.hideBossTip()
		}
	}, e.prototype.hideBossTip = function() {
		this._remind && (this._remind.clear(), this._remind.parent && this._remind.parent.removeChild(this._remind), this._remind =
			null)
	}, e.prototype.showPromiseGuide = function() {
		var t = this._manager.getButton(61);
		if (null != t) {
			var e = App.data.promiseCenter,
				i = 1 == e.day && !e.isPromise;
			i && (this._isPromise ? this.hidePromiseGuide() : (this._isPromise = !0, Guide.getGuide().show("点击许愿", Guide.RIGHT,
				t.localToGlobal().x - 204, t.localToGlobal().y + 40, App.layer.guideLayer)))
		}
	}, e.prototype.hidePromiseGuide = function() {
		this._isPromise = !0, Guide.getGuide().hide()
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(MenuTipContainer.prototype, "MenuTipContainer");
var DangerHpView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currtype = 0, e.touchEnabled = !1, e.touchChildren = !1, e
	}
	return __extends(e, t), e.getDangerHpView = function() {
		return this.view || (this.view = new e), this.view
	}, Object.defineProperty(e.prototype, "effect", {
		get: function() {
			return this._effect || (this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("main",
						"dangerHp"), Config.SCREEN_WIDTH / 2, Config.SCREEN_HEIGHT / 2, this._effect), this._effect.scaleY = Config.SCREEN_HEIGHT /
					1062, this._effect.scaleX = Config.SCREEN_WIDTH / 640, App.layer.mainLayer.addChildAt(this._effect.view, 0)),
				this._effect
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.showView = function() {
		for (var t, e = App.global.roles.roleList, i = e.length, n = 0, a = 0; i > a; a++) 0 == e[a].getIsDead() && (n++, t =
			e[a]);
		if (1 == n && t && t.hp > 0)
			if (t.hp / t.maxHp <= .2) {
				if (1 == this._currtype) return;
				this._currtype = 1, this.showTween(.8)
			} else if (t.hp / t.maxHp <= .5) {
			if (2 == this._currtype) return;
			this._currtype = 2, this.showTween(.8)
		} else this.dispose();
		else this.dispose()
	}, e.prototype.showTween = function(t) {
		this.effect.alpha = 0;
		var e = 1 - t;
		TweenLite.to(this.effect, e, {
			alpha: t
		}), TweenLite.to(this.effect, e, {
			delay: e,
			alpha: 0
		}), TweenLite.to(this.effect, e, {
			delay: 2 * e,
			alpha: t
		}), TweenLite.to(this.effect, e, {
			delay: 3 * e,
			alpha: 0,
			onComplete: this.tweenOverBegin,
			onCompleteScope: this
		})
	}, e.prototype.tweenOverBegin = function() {
		this._currtype = 0, 2 == this._currtype ? App.timer.doTimeOnce(this, 4e3, this.showView) : App.timer.doTimeOnce(
			this, 1e3, this.showView)
	}, e.prototype.dispose = function() {
		this._effect && (TweenLite.killTweensOf(this._effect), this._effect.dispose()), this._effect = null, this._currtype =
			0, App.timer.clearTimer(this.showView, this)
	}, e
}(eui.Group);
__reflect(DangerHpView.prototype, "DangerHpView");
var HejiSkillUseItem = function(t) {
	function e(e) {
		void 0 === e && (e = null);
		var i = t.call(this) || this;
		return i._state = 0, i.ObjToResize = function(t, e) {
				t && (t.x = e)
			}, i._clickFrame = 1, i._effectArr = [], i._cdFrame = 0, i._currAngel = 0, i._timeMax = 0, i._autoTime = 0, i._scaleHei =
			1062, i._isCanClick = !0, i.init(), i.addEvents(), i._func = e, i
	}
	return __extends(e, t), e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.onRoleDead, this), this._dispatcher.addEventListener(
			EventType.STGAE_RESIZE, this.resize, this)
	}, e.prototype.resize = function() {
		this.ObjToResize(this._bgLeftImg, (Config.SCREEN_WIDTH >> 1) - 306), this.ObjToResize(this._bgRightImg, (Config.SCREEN_WIDTH >>
			1) - 50), this.ObjToResize(this._frameImg, (Config.SCREEN_WIDTH >> 1) - 60), this.ObjToResize(this._skillIconImg,
			(Config.SCREEN_WIDTH >> 1) - 60), this.ObjToResize(this._comboImg, (Config.SCREEN_WIDTH >> 1) - 94), this.ObjToResize(
			this._comboNum, (Config.SCREEN_WIDTH >> 1) + 120), this.ObjToResize(this._guildEffect2, (Config.SCREEN_WIDTH >> 1) -
			50), this.ObjToResize(this._guildEffect1, Config.SCREEN_WIDTH >> 1), this.resizeEffect()
	}, e.prototype.onRoleDead = function() {
		this._cdFrame = this._timeMax / 50, this.onEnterFrame()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.onEnterFrame, this), App.timer.clearTimer(this.onEnterFrame1, this), this._dispatcher.removeAllListeners(),
			this._dispatcher = null;
		for (var t = this._effectArr.length, e = 0; t > e; e++) this._effectArr[e].dispose(), this._effectArr[e] = null;
		this._effectArr = [], this._func = null, this._bgLeftImg && this._bgLeftImg.dispose(), this._bgLeftImg = null, this
			._bgRightImg && this._bgRightImg.dispose(), this._bgRightImg = null, this._skillIconImg && this._skillIconImg.dispose(),
			this._skillIconImg = null, this._frameImg && this._frameImg.dispose(), this._frameImg = null, this._guildEffect2 &&
			this._guildEffect2.dispose(), this._guildEffect2 = null, this._guildEffect1 && this._guildEffect1.dispose(), this._guildEffect1 =
			null, this._comboImg && this._comboImg.dispose(), this._comboImg = null, this._comboNum && this._comboNum.dispose(),
			this._comboNum = null, this._shapeCD = null, this._group && this._group.removeChildren(), this._group = null, this
			.removeChildren(), this.parent && this.parent.removeChild(this)
	}, e.prototype.init = function() {
		this.y = 2 * Config.SCREEN_HEIGHT / 3, this.width = Config.SCREEN_WIDTH, this.height = Config.SCREEN_HEIGHT - this.y,
			this._dispatcher = new DispatcherRegister, this._group = new eui.Group, this._group.y = 0, this.addChild(this._group),
			this._timeMax = GameUtil.getGlobalConfigData(262).q_int_value, this._shapeCD = new egret.Shape, this._group.addChild(
				this._shapeCD);
		App.global.mapModule.mapMouseModel.controlRoleData;
		this._bgLeftImg = UIMaker.getCImage(this._group, e, ResPathUtil.getImgPath("hejika_11", "tazhuang"), (Config.SCREEN_WIDTH >>
				1) - 306, 0), this._bgRightImg = UIMaker.getCImage(this._group, e, ResPathUtil.getImgPath("hejika_1", "tazhuang"),
				(Config.SCREEN_WIDTH >> 1) - 50, 0), this._skillIconImg = UIMaker.getCImage(this._group, e, ResPathUtil.getImgPath(
				"hejika_icon1", "tazhuang"), (Config.SCREEN_WIDTH >> 1) - 60, 25), this._frameImg = UIMaker.getCImage(this._group,
				e, ResPathUtil.getImgPath("hejika_14", "tazhuang"), (Config.SCREEN_WIDTH >> 1) - 60, this._skillIconImg.y - 1),
			this._comboImg = UIMaker.getCImage(this._group, e, ResPathUtil.getImgPath("combo", "tazhuang"), (Config.SCREEN_WIDTH >>
				1) - 94, -60), this._bgLeftImg.visible = this._bgRightImg.visible = this._skillIconImg.visible = this._frameImg.visible = !
			1
	}, e.prototype.playEffect = function(t) {
		this._effectArr.length < 2 && (this._effectArr = [], this._effectArr.push(this.createEffect1("hejiUse4", 320,
			Config.SCREEN_HEIGHT / 2)), this._effectArr.push(this.createEffect1("hejiUse5", 320, Config.SCREEN_HEIGHT / 2)));
		for (var e = this._effectArr.length, i = 0; e > i; i++) 1 == t ? (this._effectArr[i].play(), this._effectArr[i].visible = !
			0) : (this._effectArr[i].stop(), this._effectArr[i].visible = !1)
	}, e.prototype.resizeEffect = function() {
		for (var t = this._effectArr.length, e = 0; t > e; e++) {
			var i = this._effectArr[e];
			i.scaleX = Config.SCREEN_WIDTH / 296, i.scaleY = Config.SCREEN_HEIGHT / 487, i.setTo(Config.SCREEN_WIDTH / 2,
				Config.SCREEN_HEIGHT / 2)
		}
	}, e.prototype.setValue = function(t, e) {
		void 0 === e && (e = 0), this._comboNum ? this._comboNum.show(t + "", e, 0, BitmapNumberType.SKILL_HEJI_COMBO) : (
			this._comboNum = NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, t + "", e, 0, EnumNumberSheetType.NUM_FIGHT),
			this._comboNum.x = (Config.SCREEN_WIDTH >> 1) + 120, this._comboNum.y = -70, this._group.addChild(this._comboNum)
		), this._comboNum.alpha = 1
	}, e.prototype.createEffect = function(t, e, i, n, a) {
		void 0 === t && (t = ""), void 0 === e && (e = 325), void 0 === i && (i = 90), void 0 === n && (n = this._group),
			void 0 === a && (a = "main");
		var o = App.thing.create(CPlayOnceEffect, "HejiSkillUseItem", !0);
		o.url = ResPathUtil.getMenuEffect(a, t), o.x = Config.SCREEN_WIDTH / 2, o.y = i, o.addParent(n), o.play()
	}, e.prototype.createEffect1 = function(t, e, i, n, a) {
		void 0 === n && (n = 2.18), void 0 === a && (a = 1);
		var o = new CEffect;
		return o.url = ResPathUtil.getMenuEffect("heji", t), o.stop(), o.visible = !1, o.scaleX = Config.SCREEN_WIDTH / 296,
			o.scaleY = Config.SCREEN_HEIGHT / 487, o.setTo(Config.SCREEN_WIDTH / 2, Config.SCREEN_HEIGHT / 2), App.layer.mainLayer
			.addChildAt(o.view, 0), o
	}, e.prototype.setVis = function(t) {
		return 1 == t && 0 == this._state ? (this.visible = !1, this.touchEnabled = !1, void(this.touchChildren = !1)) : (
			this.visible = t, this.touchEnabled = t, void(this.touchChildren = t))
	}, e.prototype.beginUse = function() {
		this._state = 1, this._clickFrame = 1;
		App.global.mapModule.mapMouseModel.controlRoleData;
		this._bgLeftImg.url = ResPathUtil.getImgPath("hejika_11", "tazhuang"), this._bgRightImg.url = ResPathUtil.getImgPath(
				"hejika_1", "tazhuang"), this._skillIconImg.url = ResPathUtil.getImgPath("hejika_icon1", "tazhuang"), App.panel.getPanelNum() >
			0 ? this.setVis(!1) : this.setVis(!0);
		var t = App.data.CDCenter.getCD(CDType.SKILL, GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter
			.getTzSkillId()).q_skillID);
		if (!t) {
			var t = new CDInfo;
			t.id = GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId()).q_skillID
		}
		t.time = 0, this.createEffect("hejiUse"), this.createEffect("hejiUse1"), this.playEffect(!0), TweenLite.to(this._bgLeftImg,
			.06, {
				x: (Config.SCREEN_WIDTH >> 1) - 306,
				onComplete: this.tweenOverBegin,
				onCompleteScope: this
			}), this.setValue(0);
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		e && e.q_zone_client_type == EnumZoneType.GUAN_KA_ZONE && parseInt(e.q_duplicate_name) >= 3 && parseInt(e.q_duplicate_name) <=
			12 && (this._guildEffect1 = this.createEffect2(this._guildEffect1, "hejiUse2", Config.SCREEN_WIDTH >> 1, 100),
				this._guildEffect2 = this.createEffect2(this._guildEffect2, "hejiUse3", (Config.SCREEN_WIDTH >> 1) - 50, 60),
				this._guildEffect2.play(), this._guildEffect1.play(), this._guildEffect1.visible = this._guildEffect2.visible = !
				0)
	}, e.prototype.createEffect2 = function(t, e, i, n, a) {
		return void 0 === a && (a = "heji"), t || (t = new CEffect, t.url = ResPathUtil.getMenuEffect(a, e), t.setTo(i, n),
			t.play(), t.addParent(this._group)), t
	}, e.prototype.tweenOverBegin = function() {
		this._isCanClick = !0, this._bgLeftImg.x = (Config.SCREEN_WIDTH >> 1) - 306, this._bgRightImg.x = (Config.SCREEN_WIDTH >>
				1) - 50, this._frameImg.scaleX = 1, this._frameImg.scaleY = 1, this._skillIconImg.scaleX = 1, this._skillIconImg.scaleY =
			1, this._bgLeftImg.visible = this._bgRightImg.visible = this._skillIconImg.visible = this._frameImg.visible = !0,
			this._bgLeftImg.alpha = this._bgRightImg.alpha = this._skillIconImg.alpha = this._frameImg.alpha = 1, 1 == App.global
			.characterData.autoSettingData.isAutoHeji && this.onMouseHandler(), App.timer.doTimeLoop(this, 50, this.onEnterFrame),
			this._currAngel = 18e3 / this._timeMax, this._cdFrame = 0, 2 == App.global.characterData.autoSettingData.isAutoClickHeji ?
			this._autoTime = 200 : this._autoTime = 350, App.timer.doTimeLoop(this, this._autoTime, this.onEnterFrame1), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this), this._dispatcher.addEventListener(
				EventType.MYPLAYER_KILL_MONSTER, this.onKill, this)
	}, e.prototype.onMouseHandler = function(t) {
		if (void 0 === t && (t = null), 0 != this._isCanClick && !App.global.characterData.isJumping) {
			this._isCanClick = !1, App.timer.doTimeOnce(this, 50, this.onMouseTimer);
			var e = GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId());
			null != t && App.sound.playSound(e.q_use_sound, 0, 1), App.dispatcher.dispatchEvent(EventType.USER_SKILL, !0, e.q_skillID,
				e.q_skill_level, !1, !1, null == t ? 0 : 1), this.setValue(this._clickFrame), this._clickFrame++, t && (App.data
				.crossCenter().isHaveShowNum > 0 ? 1 == App.data.crossCenter().isShowYuBao ? (App.data.crossCenter().isShowYuBao = !
					1, this.showMoneyEft(t.stageX, t.stageY - this.y, "yuanbao1")) : this.showMoneyEft(t.stageX, t.stageY - this.y,
					"jinbi") : this.createEffect("hejiUse2", t.stageX, t.stageY - this.y, this))
		}
	}, e.prototype.showMoneyEft = function(t, e, i) {
		for (var n, a, o, r = parseInt((4 * Math.random() + 3).toString()), s = 0; r > s; s++) {
			var h = new CEffect;
			h.url = ResPathUtil.getMenuEffect("main", i), h.x = t, h.y = e, h.play(), this.addChild(h.view), a = 200 * -Math.random() +
				e, s % 2 == 0 ? (n = 100 * Math.random() + t, o = n + 30) : (n = 100 * -Math.random() + t, o = n - 30), TweenMax.to(
					h, .4, {
						bezier: [{
							x: h.x,
							y: h.y
						}, {
							x: n,
							y: a
						}, {
							x: o,
							y: a + 30
						}],
						orientToBezier: !0,
						ease: Linear.easeInOut,
						onComplete: this.tweenOver,
						onCompleteParams: [h],
						onCompleteScope: this
					})
		}
	}, e.prototype.tweenOver = function(t) {
		t && t.dispose(), t = null
	}, e.prototype.onMouseTimer = function() {
		this._isCanClick = !0
	}, e.prototype.onEnterFrame1 = function() {
		App.data.moonCardCenter.isCardVip() && this.onMouseHandler()
	}, e.prototype.onKill = function(t) {
		if (ByteUtils.hasKey(t.monsterModelBean.q_type, 8) || 520 == t.monsterModelBean.q_type || ByteUtils.hasKey(t.monsterModelBean
				.q_type, 4)) {
			var e = GameUtil.getGlobalConfigData(274).q_string_value.replace("[", "");
			e = e.replace("]", "");
			var i = e.split(","); - 1 != i.indexOf(App.data.zoneCenter.type.toString()) && (this._cdFrame = this._timeMax / 50,
				this.onEnterFrame())
		}
	}, e.prototype.onEnterFrame = function() {
		if (this._cdFrame >= this._timeMax / 50) {
			this._cdFrame = 0;
			var t = GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId()),
				e = App.data.CDCenter.getCD(CDType.SKILL, t.q_skillID);
			e && (e.time = t.q_cd, e.needCdTime = !0), this.useEnd()
		}
		UIMaker.drawSector(this._shapeCD, this._skillIconImg.x + 70, this._skillIconImg.y + 50, 100, 360 - this._cdFrame *
			this._currAngel), this._cdFrame++, this._frameImg.mask = this._shapeCD
	}, e.prototype.useEnd = function() {
		this._state = 0, TweenLite.to(this._bgLeftImg, .5, {
			x: -382,
			alpha: .1,
			onComplete: this.tweenOverEnd,
			onCompleteScope: this
		}), TweenLite.to(this._bgRightImg, .5, {
			x: Config.SCREEN_WIDTH,
			alpha: .1
		}), TweenLite.to(this._skillIconImg, .5, {
			alpha: .1,
			scaleX: 0,
			scaleY: 0
		}), TweenLite.to(this._frameImg, .5, {
			alpha: .1,
			scaleX: 0,
			scaleY: 0
		}), this.playEffect(!1), this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler,
			this, this), this._dispatcher.removeEventListener(EventType.MYPLAYER_KILL_MONSTER, this.onKill, this), App.timer.clearTimer(
			this.onEnterFrame, this), App.timer.clearTimer(this.onEnterFrame1, this);
		for (var t = App.global.roles.roleList, e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			n && n.operation && (n.operation.userMouseNextSkill = 0)
		}
		this._guildEffect1 && (this._guildEffect1.stop(), this._guildEffect1.visible = !1), this._guildEffect2 && (this._guildEffect2
			.stop(), this._guildEffect2.visible = !1)
	}, e.prototype.tweenOverEnd = function() {
		this._func && this._func.exec(), this.setVis(!1);
		var t = App.global.mapModule.mapMouseModel.controlRoleData;
		t.roleView.cavatar.speed = 1
	}, e
}(eui.Group);
__reflect(HejiSkillUseItem.prototype, "HejiSkillUseItem");
var HpMpProgress = function() {
	function t(t, e, i, n) {
		void 0 === n && (n = !0), this._isHp = !0, this._progress = 0, this._width = 0, this._height = 0, this._bg = t, this
			._width = e, this._height = i, this._isHp = n, this.init()
	}
	return t.prototype.init = function() {
		this._mask = new h5_engine.GShape, this._bg.parent.addChild(this._mask), this._bg.mask = this._mask, this.progress =
			1
	}, Object.defineProperty(t.prototype, "progress", {
		get: function() {
			return this._progress
		},
		set: function(t) {
			if (t = 0 > t ? 0 : t, t = t > 1 ? 1 : t, this._progress != t) {
				this._progress = t;
				var e = 180 * t;
				this._isHp ? UIMaker.drawRectBlood(this._mask, 0, 0, 252, 12, t) : UIMaker.drawSector(this._mask, 74, 59, 60, -
					e - 180, 270)
			}
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.dispose = function() {
		this._mask = null
	}, t
}();
__reflect(HpMpProgress.prototype, "HpMpProgress");
var MainHejiSkillView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._cdFrame1 = 0, e._currAngel1 = 0, e._cdFrame2 = 0, e._currAngel2 = 0, e._lastFightNum = 0, e._startSkill = !
			1, e._timeMax = 0, e._showHejiNum = 0, e._pointXArr = [0, -75, 26, 20, -36], e._pointYArr = [0, 8, 14, -28, -6], e.skillState =
			0, e.isStart = !1, e.init(), e.addEvents(), e
	}
	return __extends(e, t), e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(CDCenter.START, this.beginCD, this), this._dispatcher.addEventListener(EventType.SKILL_START,
				this.onSkillStart, this), this._dispatcher.addEventListener(EventType.SYSTENSET_RESLUT, this.onSystemset, this),
			this._dispatcher.addEventListener(EventType.HEJI_FIGHTNUM, this.onHejiFightNum, this), this._dispatcher.addEventListener(
				ZoneEvent.ENTER_ZONE, this.onEnterZone, this), this._dispatcher.addEventListener(PlayerBufferEvent.ADD_BUFFER,
				this.onAddBuffer, this), this._dispatcher.addEventListener(PlayerBufferEvent.REMOVE_BUFFER, this.onRemoveBuffer,
				this), App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), this.resize()
	}, e.prototype.resize = function() {
		this._guildEffect1 && (this._guildEffect1.x = Config.SCREEN_WIDTH / 2 + 275), this._guildEffect2 && (this._guildEffect2
			.x = Config.SCREEN_WIDTH / 2 + 275), this._hejiNoticeCimg && (this._hejiNoticeCimg.x = Config.SCREEN_WIDTH / 2 -
			275)
	}, e.prototype.init = function() {
		this._timeMax = GameUtil.getGlobalConfigData(262).q_int_value, this._dispatcher = new DispatcherRegister, this._hejiEffect =
			this.createEffect(this, this._hejiEffect, "heji_cd", 43, 41), this._hejiMakeEffect = this.createEffect(this, this._hejiMakeEffect,
				"heji_make", 43, 41), this._shapeCD = new egret.Shape, this.addChild(this._shapeCD)
	}, e.prototype.createEffect = function(t, e, i, n, a, o) {
		return void 0 === o && (o = "main"), e || (e = new CEffect, e.url = ResPathUtil.getMenuEffect(o, i), e.setTo(n, a),
			e.play(), e.addParent(t)), e
	}, e.prototype.canMakeHeji = function(t) {
		this.skillState = t, 0 == t ? (this._showHejiNum = 0, this._startSkill = !1, this._hejiMakeEffect.visible = !0,
			this._hejiMakeEffect.play(), this._hejiEffect.visible = !1, this._hejiEffect.stop(), this.isStart = !1, this.addSkillGuide(),
			this.onSystemset()) : (this._hejiMakeEffect.visible = !1, this._hejiMakeEffect.stop(), this._hejiEffect.visible = !
			0, this._hejiEffect.play(), 1 == t ? (App.timer.clearTimer(this.onEnterFrame, this), App.timer.doTimeLoop(this,
				50, this.onEnterFrame1), this._currAngel1 = 18e3 / this._timeMax, this._cdFrame1 = 0) : (this.isStart = !1, this
				._cdFrame2 = 0, App.timer.clearTimer(this.onEnterFrame1, this), App.timer.doTimeLoop(this, 50, this.onEnterFrame)
			))
	}, e.prototype.onEnterZone = function(t, e) {
		this.addSkillGuide()
	}, e.prototype.addSkillGuide = function(t) {
		if (void 0 === t && (t = !0), App.global.funcOpen.isFunctionOpen(103)) {
			var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
			0 == this.skillState && e && e.q_zone_client_type == EnumZoneType.GUAN_KA_ZONE && (0 == t || (parseInt(e.q_duplicate_name) >=
					3 && parseInt(e.q_duplicate_name)) <= 12) ? (this._guildEffect1 = this.createEffect(App.layer.zoneLayer, this._guildEffect1,
						"hejiUse2", Config.SCREEN_WIDTH / 2 + 275, this.parent.parent.y + this.parent.y + 40, "heji"), this._guildEffect2 =
					this.createEffect(App.layer.zoneLayer, this._guildEffect2, "hejiUse3", Config.SCREEN_WIDTH / 2 + 230, this.parent
						.parent.y + this.parent.y - 30, "heji"), 0 != t || this._hejiNoticeCimg || (this._hejiNoticeCimg = UIMaker.getCImage(
						App.layer.zoneLayer, this, ResPathUtil.getImgPath("hejiyindao_a01", "tazhuang"), 0, 618, !1), this.resize())) :
				this.hideGuildEffect()
		}
	}, e.prototype.onAddBuffer = function(t, e) {
		null != App.global.roles.getRoleInfoById(t) && e && 22222 == e.bufferModelId && this.addSkillGuide(!1)
	}, e.prototype.onRemoveBuffer = function(t, e, i) {
		null != App.global.roles.getRoleInfoById(t) && 22222 == i && this.hideGuildEffect()
	}, e.prototype.onEnterFrame1 = function() {
		if (this._cdFrame1 >= this._timeMax / 50) {
			this._cdFrame1 = 0;
			var t = GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId()),
				e = App.data.CDCenter.getCD(CDType.SKILL, t.q_skillID);
			e && (e.time = t.q_cd, e.needCdTime = !0);
			for (var i = App.global.roles.roleList, n = i.length, a = 0; n > a; a++) {
				var o = i[a];
				o && o.operation && (o.operation.userMouseNextSkill = 0)
			}
			this.canMakeHeji(2), App.timer.clearTimer(this.onEnterFrame1, this)
		}
		UIMaker.drawSector(this._shapeCD, 41.5, 42.5, 100, 360 - this._cdFrame1 * this._currAngel1), this._cdFrame1++, this
			._hejiEffect.view.mask = this._shapeCD
	}, e.prototype.onEnterFrame = function() {
		this._cdFrame2 * this._currAngel2 >= 360 && (this._cdFrame2 = 0, this._startSkill = !1, this.canMakeHeji(0), App.timer
				.clearTimer(this.onEnterFrame, this)), UIMaker.drawSector(this._shapeCD, 41.5, 42, 100, this._cdFrame2 * this._currAngel2),
			this._cdFrame2++, this._hejiEffect.view.mask = this._shapeCD
	}, e.prototype.onHejiFightNum = function(t, e) {
		if (t && GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId()).q_skillID == t.skillId) {
			var i = NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_NUM_NEW, e + "", 0, BitmapNumberType.HEJI_SKILL,
				EnumNumberSheetType.NUM_FIGHT);
			this.parent.parent.addChild(i), i.touchEnabled = !1, i.touchChildren = !1;
			var n = (App.stage.stageWidth - i.width >> 1) + this._pointXArr[this._showHejiNum % 5],
				a = -(App.stage.stageHeight - i.height >> 1) - 100 - this._pointYArr[this._showHejiNum % 5];
			i.x = n, i.y = a, i.scaleX = .8, i.scaleY = .8, TweenLite.to(i, .06, {
				alpha: 1,
				x: n + 30,
				y: a - 30,
				scaleX: 1.3,
				scaleY: 1.3
			}), TweenLite.to(i, .09, {
				delay: .06,
				scaleX: 1,
				scaleY: 1
			}), TweenLite.to(i, .75, {
				delay: .06,
				x: n + 48,
				y: a - 48,
				onComplete: this.tweenOver,
				onCompleteParams: [i],
				onCompleteScope: this
			}), TweenLite.to(i, .75, {
				delay: .3,
				alpha: 0
			}), this._showHejiNum++
		}
	}, e.prototype.tweenOver = function(t) {
		t && (TweenLite.killTweensOf(t), t.dispose(), t = null)
	}, e.prototype.onSystemset = function() {
		if (App.global.funcOpen.isFunctionOpen(103) && 1 == this.visible && 1 == this._hejiMakeEffect.visible) {
			for (var t = StringUtil.JsonParse(GameUtil.getGlobalConfigData(268).q_string_value), e = t.length, i = 0; e > i; i++)
				if (App.data.zoneCenter.type == t[i]) return;
			var n = App.global.mapModule.mapMouseModel.controlRoleData;
			1 == App.global.characterData.autoSettingData.isAutoHeji && App.data.zoneCenter.type != EnumZoneType.AUTO_FIGHT_ZONE &&
				null != n.operationData.lastAttackRole && this.useHeji()
		}
	}, e.prototype.onSkillStart = function(t) {
		var e = App.data.characterCenter.hejiEquipCenter.getTzSkillId(),
			i = GameUtil.getSkillConfigDataById(e);
		if (t == i.q_skillID) {
			if (1 == this.skillState) {
				var n = App.data.CDCenter.getCD(CDType.SKILL, t);
				n && (n.needCdTime = !1)
			}
			this.addHejitxtEffect()
		}
	}, e.prototype.beginCD = function(t, e) {
		if (void 0 === e && (e = 1), 1 != this.skillState || 1 != e) {
			var i = App.data.characterCenter.hejiEquipCenter.getTzSkillId(),
				n = GameUtil.getSkillConfigDataById(i);
			t.id == n.q_skillID && (t.time <= 0 ? this.canMakeHeji(0) : (this._currAngel2 = 18e3 / (n.q_cd + 100), this.canMakeHeji(
				2), this._cdFrame2 = (n.q_cd + 100 - t.time) / 50, this._cdFrame2 < 0 && (this._cdFrame2 = 0)))
		}
	}, e.prototype.onMakeSKill = function() {
		App.global.funcOpen.isFunctionOpen(103, "", !0) && 0 == this.skillState && this.useHeji()
	}, e.prototype.useHeji = function() {
		App.data.zoneCenter.zoneID != App.data.getWangZheZBCenter().areanzoneId && App.data.zoneCenter.zoneID != App.data.guildCenter
			.fightHzId && (this._useItem || (this._useItem = new HejiSkillUseItem), App.layer.guideLayer.addChild(this._useItem),
				this._useItem.beginUse(), this.hideGuildEffect(), this.canMakeHeji(1))
	}, e.prototype.addHejitxtEffect = function() {
		if (0 == this._startSkill) {
			this._startSkill = !0;
			var t = App.global.mapModule.mapMouseModel.controlRoleData;
			null == this._hejiCimg && (this._hejiCimg = UIMaker.getCImage(this.parent.parent, this, "", 0, this.parent.parent.height -
					Config.SCREEN_HEIGHT / 5 * 4 + 50, !1)), this._hejiCimg.url = ResPathUtil.getImgPath("yulan_" + t.job,
					"tazhuang"), this._hejiCimg.y = this.parent.parent.height - Config.SCREEN_HEIGHT / 5 * 4 + 50, this._hejiCimg.scaleX =
				2.5, this._hejiCimg.scaleY = 2.5, this._hejiCimg.alpha = 1, TweenLite.to(this._hejiCimg, .2, {
					y: this._hejiCimg.y - 50,
					scaleX: 1,
					scaleY: 1,
					ease: Linear.easeOut
				}), TweenLite.to(this._hejiCimg, .6, {
					delay: .8,
					alpha: 0
				})
		}
		var e = .06,
			i = .4;
		TweenLite.to(App.layer.sceneLayer, e, {
			delay: i,
			y: App.layer.sceneLayer.y + 5
		}), TweenLite.to(App.layer.sceneLayer, e, {
			delay: e + i,
			y: App.layer.sceneLayer.y - 5,
			onComplete: this.onOver
		})
	}, e.prototype.onOver = function() {
		App.layer.sceneLayer.y = 0
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.onEnterFrame, this), App.timer.clearTimer(this.onEnterFrame1, this), this._hejiMakeEffect &&
			this._hejiMakeEffect.dispose(), this._hejiMakeEffect = null, this._hejiEffect && this._hejiEffect.dispose(), this._hejiEffect =
			null, this.hideGuildEffect(), this._useItem && this._useItem.dispose(), this._useItem = null
	}, e.prototype.hideGuildEffect = function() {
		this._guildEffect1 && this._guildEffect1.dispose(), this._guildEffect1 = null, this._guildEffect2 && this._guildEffect2
			.dispose(), this._guildEffect2 = null, this._hejiNoticeCimg && this._hejiNoticeCimg.dispose(), this._hejiNoticeCimg =
			null
	}, e
}(eui.Group);
__reflect(MainHejiSkillView.prototype, "MainHejiSkillView");
var MainMenuView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._lastFightNum = 0, e.HienReturnBtn = function(t) {
				e.return_btn.visible = t
			}, e.return_flag = !1, e._guideType = 0, e._expMaxWidth = 488, e.timenum = -1, e.timer = -1, e.expbol = !1, e.levelbol = !
			1, e.euiSkinName = "MenuBottomSkin", e.init(), e.addEvents(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.hejiEffect_group.addChild(this.effect_img), this.barMask = new egret.Rectangle(0, 0, this._expMaxWidth, 8),
			this.imgExp.mask = this.barMask, this.refresh(), this._fightSkillBitMap = new FightSkillBitMap, this._eftCallFunc =
			new FunctionVO(this.onReturnBtnEffect, this), this.navigation = new MenuNavigation, this.addChildAt(this.navigation,
				0), this.navigation.y = 10;
		var t = App.global.enterBtn;
		t.registContainer(5, this.navigation)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(PlayerAttributeEvent.MP, this.updateMp, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.PLAYER_PET_MP, this.updateMp, this), this._dispatcher.addEventListener(PlayerAttributeEvent.EXP,
				this.updateExp, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this,
				this.gocross_group), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this,
				this.home_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.return_btn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.btnBack), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.hejiEffect_group), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.btnGM), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onMouseHandler, this, this.bg_panel), this._dispatcher.addEventListener(EventType.EventTypeFightChange,
				this.onFightChange, this), this._dispatcher.addEventListener(EventType.SHOW_GM, this.onShowGM, this), this._dispatcher
			.addEventListener(EventType.SHOW_HIDE_PANEL, this.showbackBtn, this), this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE,
				this.onEnterZone, this), this._dispatcher.addEventListener(ZoneEvent.EXIT_ZONE, this.onExitZone, this), this._dispatcher
			.addEventListener(EventType.FUNCTION_OPEN, this.onHejiFunction, this), this._dispatcher.addEventListener(EventType
				.BACKGUIDE, this.onBackGuide, this), this._dispatcher.addEventListener(EventType.OPEN_REVIVE, this.onReturn, this),
			this._dispatcher.addEventListener(EnumEvent.EVENT_STORY_RETURN, this.HienReturnBtn, this), this.onHejiFunction(103),
			this.back_group.visible = !1, this.btnGM.visible = !1
	}, e.prototype.onFightChange = function() {
		var t = App.data.characterCenter.roleSumFight;
		t - this._lastFightNum > 0 && 0 != this._lastFightNum && this.palyFightNumEffect(t, t - this._lastFightNum), this._lastFightNum =
			t
	}, e.prototype.palyFightNumEffect = function(t, e) {
		this._fightNumEffcet || (this._fightNumEffcet = new FightNumMoveItem, App.layer.guideLayer.addChild(this._fightNumEffcet)),
			this._fightNumEffcet.palyFightNumEffect(t, e)
	}, e.prototype.onBackGuide = function() {
		(this.back_group.visible = !0) && (this.guide.setText("返回战斗场景"), this.resizeBackGuide(), this._guideType = 1)
	}, e.prototype.resizeBackGuide = function() {
		if (this.guide && "返回战斗场景" == this.guide.text) {
			var t = this.back_group.localToGlobal().x - 195,
				e = this.back_group.localToGlobal().y + 55;
			this.guide.show("返回战斗场景", Guide.RIGHT, t, e, App.layer.guideLayer)
		}
	}, e.prototype.onReturnBtnEffect = function() {
		App.timer.doTimeOnce(this, 600, this.addEffect)
	}, e.prototype.addEffect = function() {
		if (App.timer.clearTimer(this.addEffect, this), 1 == this.back_group.visible) {
			var t = App.thing.create(CPlayOnceEffect, "MainBottomView", !0);
			t.finishCallBackFun = this._eftCallFunc, t.url = ResPathUtil.getMenuEffect("main", "btnreturn"), t.x = this.btnBack
				.x + 35, t.y = this.btnBack.y + 35, t.addParent(this.back_group), t.play()
		}
	}, e.prototype.createEffect = function(t, e, i, n, a) {
		return e || (e = new CEffect, e.url = ResPathUtil.getMenuEffect("main", i), e.setTo(n, a), e.play(), e.addParent(t)),
			e
	}, e.prototype.onHejiFunction = function(t) {
		103 == t && (App.global.funcOpen.isFunctionOpen(t) ? (this._mainHejiSkillView || (this._mainHejiSkillView = new MainHejiSkillView,
				this.hejiEffect_group.addChild(this._mainHejiSkillView)), this.hejiwjh_img.visible = !1, 0 == this.back_group.visible &&
			(this.hejiEffect_group.visible = !0, this.back_group.visible = !1)) : (this.hejiwjh_img.visible = !0, this.hejiEffect_group
			.visible = !1, this.back_group.visible = !0))
	}, e.prototype.onExitZone = function(t, e) {
		var i = GameUtil.getZoneBean(t);
		null != i && i.q_id == App.data.getWangZheZBCenter().areanzoneId
	}, e.prototype.onEnterZone = function(t, e) {
		var i = GameUtil.getZoneBean(t);
		null != i && (i.q_id == App.data.getWangZheZBCenter().areanzoneId ? this.zonehj_img.visible = !0 : this.zonehj_img.visible = !
			1, e == EnumZoneType.AUTO_FIGHT_ZONE || e == EnumZoneType.GUAN_KA_ZONE ? (this.return_btn.visible = !1, this.return_flag = !
				1) : (this.return_btn.visible = !0, this.return_flag = !0), this.crossBtnGuide())
	}, e.prototype.onReturn = function(t) {
		t ? (App.layer.panelLayer.addChild(this.return_btn), this.return_btn.y = this.y - 47) : (this.addChildAt(this.return_btn,
			0), this.return_btn.y = -47)
	}, e.prototype.onMouseHandler = function(t) {
		switch (t.currentTarget) {
			case this.hejiEffect_group:
				App.global.funcOpen.isFunctionOpen(103, "", !0) && (this._mainHejiSkillView || (this._mainHejiSkillView = new MainHejiSkillView,
						this.hejiEffect_group.addChild(this._mainHejiSkillView)), 0 == this._mainHejiSkillView.skillState && this.hideGuide(),
					this._mainHejiSkillView.onMakeSKill());
				break;
			case this.gocross_group:
				this.hideGuide(), App.data.crossCenter().transfor(App.data.crossCenter().getNationMapArr()[App.global.characterData
					.nation]);
				break;
			case this.btnGM:
				App.panel.openPanel(10086);
				break;
			case this.return_btn:
				var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
				if (e) switch (e.q_zone_client_type) {
					case EnumZoneType.BIQI_NIGHT:
						Alert.show("退出后，需要等待1分钟才能再进入！", "提示", "确定|取消", this.onSureExitZone, this);
						break;
					case EnumZoneType.SECRET:
					case EnumZoneType.GOD_BOSS:
					case EnumZoneType.WILD_BOSS:
						Alert.show("确定退出BOSS战？", "提示", "确定|取消", this.onSureExitZone, this, null, !1, !1, !0, !0);
						break;
					default:
						ZoneCommandSender.sendC2S_ZoneFinishMessage()
				} else ZoneCommandSender.sendC2S_ZoneFinishMessage();
				break;
			case this.btnBack:
				this.hideGuide(), App.panel.removeTopPanel();
				break;
			case this.bg_panel:
				t.stageY > 900 && App.panel.removeTopPanel()
		}
	}, e.prototype.onSureExitZone = function(t) {
		ZoneCommandSender.sendC2S_ZoneFinishMessage()
	}, e.prototype.onShowGM = function() {
		this.btnGM.visible = !0
	}, e.prototype.refresh = function() {
		this.updateExp(), this.updateMp()
	}, e.prototype.updateExp = function(t, e) {
		if (void 0 === t && (t = -1), void 0 === e && (e = -1), 1301 == e && (this._expEffect = EffectUtils.showOnceEffect(
					this, App.layer.mainLayer, ResPathUtil.getMenuEffect("panel", "expeffect"), 320, 531, null, 1, -.2), this._expEffect
				.scaleX = 2, this._expEffect.scaleY = 2), !this.expbol) {
			var i = App.global.characterData,
				n = GameUtil.getCharacterConfigData(i.getLevel());
			this.txtExp.text = i.exp + " / " + n.q_exp, App.global.characterData.prelevel >= App.global.characterData.level ?
				(this.timenum = this.barMask.x = Math.floor(this._expMaxWidth * i.exp / n.q_exp) - this._expMaxWidth, App.timer.doTimeOnce(
					this, 0, this.timeFunction, [!1], !0)) : (App.timer.doTimeOnce(this, 0, this.timeFunction, [!0], !0), App.global
					.characterData.prelevel = App.global.characterData.level)
		}
	}, e.prototype.timeFunction = function(t) {
		t ? this.timer = this.timenum : this.levelbol ? (this.timer = -488, this.levelbol = !1) : this.timer = this.timenum,
			this.expbol = !0, App.timer.doFrameLoop(this, 1, this.updatebar, [t], !0)
	}, e.prototype.updatebar = function(t) {
		this.timer = this.timer + 5, this.timer > (t ? 0 : this.timenum) ? (App.timer.clearTimer(this.updatebar, this),
			this.expbol = !1, t ? (this.levelbol = !0, this.updateExp()) : (this.barMask.x = this.timenum, this.imgExp.mask =
				this.barMask)) : (this.barMask.x = this.timer, this.imgExp.mask = this.barMask)
	}, e.prototype.updatePetMp = function(t, e, i, n, a) {
		void 0 === t && (t = ""), void 0 === e && (e = ""), void 0 === i && (i = 1), void 0 === n && (n = -1), void 0 ===
			a && (a = -1), App.global.characterData.personId == e && this.updateMp()
	}, e.prototype.updateRoleMp = function(t, e, i) {
		void 0 === t && (t = ""), void 0 === e && (e = -1), void 0 === i && (i = -1), App.global.characterData.personId ==
			t && this.updateMp()
	}, e.prototype.updateMp = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0, n = 0, a = 0; e > a; a++) i += t[a].mp, n += t[a].maxMp
	}, e.prototype.crossBtnGuide = function(t) {
		void 0 === t && (t = !0);
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		t && e && e.q_id == EnumZoneID.MAIN_CITY_ID_OLD && App.global.enterBtn.getButton(53) ? (this.gocross_group.visible = !
			0, this.guide.show("点击前往", Guide.RIGHT, -180, 20, this.gocross_group)) : (this.gocross_group.visible = !1, this.hideGuide())
	}, e.prototype.checkReturnBtn = function(t) {
		this.return_flag && (this.return_btn.visible = !t)
	}, e.prototype.showbackBtn = function(t) {
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		this.checkReturnBtn(t), this.navigation.setVisible(!t);
		var i = App.layer.moduleLayer.getChildByName("HongBaoView");
		i && (i.visible = !t), 1 == t ? (this.crossBtnGuide(!1), this.hejiEffect_group.visible = !1, this.hejiwjh_img.visible = !
			1, e && e.q_id == App.data.getWangZheZBCenter().areanzoneId && (this.zonehj_img.visible = !1), this.back_group.visible = !
			0, this.bg_panel.visible = !0, this.bg_panel.x = -Config.SCREEN_WIDTH, this.bg_panel.y = -Config.SCREEN_HEIGHT,
			this.bg_panel.width = 2 * Config.SCREEN_WIDTH, this.bg_panel.height = 2 * Config.SCREEN_HEIGHT, App.panel.isShowing(
				20) ? this.bg_panel.source = "newopenrole_bg_010_1_png" : this.bg_panel.source =
			"common1_img_bggai102_public_png", this.addEffect(), App.layer.zoneLayer.visible = App.layer.sceneLayer.visible = !
			1, 2 == this._guideType && this.hideGuide()) : (this.crossBtnGuide(!0), App.timer.clearTimer(this.addEffect, this),
			this.back_group.visible = !1, e && e.q_id == App.data.getWangZheZBCenter().areanzoneId && (this.zonehj_img.visible = !
				0), this.onHejiFunction(103), this.bg_panel.visible = !1, App.layer.zoneLayer.visible = App.layer.sceneLayer.visible = !
			0, 1 == this._guideType && this.hideGuide())
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - EnumMainMenu.Main_Menu_Width >> 1;
		var t = Config.isPhoneX && (Config.isWxGame || Config.isNeiZhiWeb) ? MainParams.UP : 0;
		this.y = Config.SCREEN_HEIGHT - EnumMainMenu.Main_Menu_Height - App.layer.moduleLayer.y - t, this.return_btn.x =
			Config.SCREEN_WIDTH - 80 - this.x, this.resizeBackGuide()
	}, e.prototype.dispose = function() {
		this._mpEffect && this._mpEffect.dispose(), this._mpEffect = null, this._hpEffect && this._hpEffect.dispose(), this
			._hpEffect = null, this.parent && this.parent.removeChild(this), this.navigation && (this.navigation = null), t.prototype
			.dispose.call(this)
	}, e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null, this._guideType = 0)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(MainMenuView.prototype, "MainMenuView");
var EnumMainMenu;
! function(t) {
	t[t.Main_Menu_Width = 640] = "Main_Menu_Width", t[t.Main_Menu_Height = 170] = "Main_Menu_Height"
}(EnumMainMenu || (EnumMainMenu = {}));
var MainTopView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._frameCount = 0, e._headFlag = !1, e._lastFightNum = 0, e._closeSound = !0, e.setVisble = function(t) {
			e.visible = t, e._ActivityTipView && (e._ActivityTipView.visible = t)
		}, e.euiSkinName = "MenuTopSkin", e.init(), e.addEvents(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = App.global.characterData;
		this.imgHead.source = GridUtil.getHead(t.job, t.sex), EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
				"main", "fightPower_effect"), 210, 10), this.addChild(this.imgFight), this.addChild(this.level_txt), this._moneyBar =
			new MoneyBar, this._moneyBar.moveTo(323, 8, this), this.updateMyInfo(), this.onFightChange(), this.updateVipLvl(t.vipLevel),
			this._hpBar = new HpMpProgress(this.mp_group, 252, 12), this.setGameSoundBtn()
	}, e.prototype.setGameSoundBtn = function() {
		(App.platform.agent == EnumPlatform.GAME_HUDIEHUDONG || App.platform.agent == EnumPlatform.GAME_AIWEIYOU) && 1 ==
			Platfrom_HDHD.is_gameSound ? this.btn_gameSound.visible = !0 : this.btn_gameSound.visible = !1
	}, e.prototype.setSoundChange = function() {
		(App.platform.agent == EnumPlatform.GAME_HUDIEHUDONG || App.platform.agent == EnumPlatform.GAME_AIWEIYOU) && (this.closeSound =
			App.sound.isCloseBgm && App.sound.isCloseSound)
	}, Object.defineProperty(e.prototype, "closeSound", {
		get: function() {
			return this._closeSound
		},
		set: function(t) {
			this._closeSound = t, this.btn_gameSound.source = t ? "main_sound_close_png" : "main_sound_open_png"
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(PlayerAttributeEvent.HP, this.updateHp, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.PLAYER_PET_HP, this.updateHp, this), this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE,
				this.onEnterZone, this), this._dispatcher.addEventListener(PlayerAttributeEvent.NAME, this.updateMyInfo, this),
			this._dispatcher.addEventListener(PlayerAttributeEvent.CHARACTER_LEVEL, this.updateMyInfo, this), this._dispatcher
			.addEventListener(EventType.MY_METEM, this.updateMyInfo, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.ZHUAN_SHENG, this.updateMyInfo, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.MY_PLAYER_ATTRIBUTE_CHANGE, this.updateFightNum, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this.imgHead), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onMouseHandler, this, this.btn_vip), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onMouseHandler, this, this.btn_kefu), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler,
				this, this.btn_gameSound), this._dispatcher.addEventListener(EventType.SHOW_REDPOINT, this.showVipRed, this),
			this._dispatcher.addEventListener(VipEvent.VIP_INFO_REFRESH, this.updateVipLvl, this), this._dispatcher.addEventListener(
				VipEvent.VIP_LEVEL_UP, this.updateVipLvl, this), this._dispatcher.addEventListener(EventType.CHARACTER_UPDATE_POSITION,
				this.onShowPlayerPlace, this), this._dispatcher.addEventListener(EventType.SHOW_YUANBAO_EFFECT, this.onShowYuanbaoEffect,
				this), this._dispatcher.addEventListener(EventType.EventTypeFightChange, this.onFightChange, this), this._dispatcher
			.addEventListener(PlatformEventType.PLATFORM_SHOW_KEFU_BTN, this.onShowKefu, this), this._dispatcher.addEventListener(
				ActivityEvent.OPEN, this.onUpdateWanfa, this), this._dispatcher.addEventListener(ActivityEvent.CLOSE, this.onUpdateWanfa,
				this), this._dispatcher.addEventListener(TaskEvent.UPDATETASKTRACK, this.onUpdatePanel, this), this._dispatcher.addEventListener(
				EventType.RANK_LIST_REFRESH, this.changePageData, this), this._dispatcher.addEventListener(EventType.MAINPANEL_SHOWORHIDE2,
				this.setVisble, this), this._dispatcher.addEventListener(PlayerAttributeEvent.MY_PLAYER_INFO_INIT, this.updateHp,
				this), this._dispatcher.addEventListener(EventType.MY_INSIDE_POWER, this.updateHp, this), this._dispatcher.addEventListener(
				EventType.SET_SOUND_CHANGE, this.setSoundChange, this), this._moneyBar.show()
	}, e.prototype.updateHp = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0, n = 0, a = 0; e > a; a++) i += t[a].hp, n += t[a].maxHp;
		this.boold_num.text = i + "/" + n, this._hpBar.progress = i / n, DangerHpView.getDangerHpView().showView()
	}, e.prototype.onUpdatePanel = function(t) {
		0 == App.global.characterData.autoSettingData.isAutoHeji && App.data.taskCenter.getThreadTaskShowGuide(17) && Guide
			.getGuide().show("设置流畅模式", Guide.LEFT, this.imgHead.x + 270, this.imgHead.y + 40, this)
	}, e.prototype.onShowKefu = function() {
		this.btn_kefu.visible = !0
	}, e.prototype.onUpdateWanfa = function(t) {
		var e = App.global.enterBtn.getButton(21);
		if (e)
			for (var i = App.data.getWangZheZBCenter().xsWanfaIdArr, n = i.length, a = 0; n > a; a++)
				if (t == i[a]) {
					var o = "";
					return App.data.getWangZheZBCenter().refreshRed(t), App.data.getWangZheZBCenter().getIdRed(t) && (o = App.data.activityCenter
						.getData(t).bean.q_name), void("" != o ? (this._ActivityTipView || (this._ActivityTipView = new ActivityTipView,
							this._ActivityTipView.show(App.data.activityCenter.getData(t)), App.layer.popLayer.addChild(this._ActivityTipView),
							this._ActivityTipView.x = Config.SCREEN_WIDTH - 280, this._ActivityTipView.y = this.height + 420 >> 1, this._ActivityTipView
							.visible = this.visible), null == App.global.enterBtn.getButton(1102) && (App.dispatcher.dispatchEvent(
							EnterButtonEvent.REFRESH, 1102, !0), App.dispatcher.dispatchEvent(EnterButtonEvent.SHOW_EFFECT, 1102, !0))) :
						(this._ActivityTipView && (-1 != this.$children.indexOf(this._ActivityTipView) && App.layer.popLayer.removeChild(
							this._ActivityTipView), this._ActivityTipView.dispose(), this._ActivityTipView = null), App.global.enterBtn.removeButton(
							1102)))
				}
	}, e.prototype.onShowYuanbaoEffect = function() {
		EffectUtils.showOnceEffect(this, App.layer.moduleLayer, ResPathUtil.getMenuEffect("main", "yuanbao"), 320, 531)
	}, e.prototype.showVipRed = function(t) {
		128 == t && UIMaker.showPoint(this.btn_vip, this, App.data.getVipCenter().showVipRedDot(), 10)
	}, e.prototype.onShowPlayerPlace = function(t, e, i, n, a, o) {
		Config.isDebug ? (null == this.place_txt && (this.place_txt = UIMaker.getTextField(App.stage, this, 0, 150), this.place_txt
				.textAlign = egret.HorizontalAlign.LEFT), this.place_txt.text = "像素坐标x:" + Math.floor(t) + "\n像素坐标y:" + Math.floor(
				e) + "\n格子坐标x:" + i + "\n格子坐标y:" + n + "\n服务器x:" + Math.floor(a) + "\n服务器y:" + Math.floor(o) + "\nIsMobile:" +
			Config.isMobile) : this.place_txt && (this.place_txt.parent && this.place_txt.parent.removeChild(this.place_txt),
			this.place_txt = null)
	}, e.prototype.onMouseHandler = function(t) {
		switch (t.currentTarget) {
			case this.btn_vip:
				App.global.funcOpen.isFunctionOpen(128, null, !0) && PanelOpenManager.openPanel(35);
				break;
			case this.imgHead:
				break;
			case this.btn_37:
				App.panel.openPanel(2030);
				break;
			case this.btn_kefu:
				App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_OPEN_KEFU);
				break;
			case this.btn_gameSound:
				this.closeSound ? (App.global.characterData.autoSettingData.isCloseBgm = App.sound.isCloseBgm = !1, App.global.characterData
					.autoSettingData.isCloseSound = App.sound.isCloseSound = !1) : (App.sound.stopAll(), App.global.characterData.autoSettingData
					.isCloseBgm = App.sound.isCloseBgm = !0, App.global.characterData.autoSettingData.isCloseSound = App.sound.isCloseSound = !
					0)
		}
	}, e.prototype.updateMyInfo = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = App.global.characterData,
			n = i.name,
			a = i.getLevel(),
			o = i.zhuanSheng;
		o > 0 ? this.level_txt.text = o + "转" + a + "级" : this.level_txt.text = a + "级", this.txtMyInfo.text = n;
		var r = App.config.q_globalContainer.getDataBean(261);
		r && r.q_int_value < a && !this._headFlag && (this._headFlag = !0)
	}, e.prototype.onFightChange = function() {
		this._fightNumberBmp ? this._fightNumberBmp.show(App.data.characterCenter.roleSumFight + "", -3, 0,
			BitmapNumberType.FIGHT_POWER) : (this._fightNumberBmp = NumberBitmapCache.show(BitmapNumberType.FIGHT_POWER, App.data
				.characterCenter.roleSumFight + "", -3, 0, EnumNumberSheetType.FIGHT_POWER_NUMBER), this._fightNumberBmp.x =
			this.imgFight.x + 80, this._fightNumberBmp.y = this.imgFight.y + 9, this.addChild(this._fightNumberBmp));
		var t = App.data.characterCenter.roleSumFight;
		t - this._lastFightNum > 0 && 0 != this._lastFightNum && this.palyFightNumEffect(t, t - this._lastFightNum), this._lastFightNum =
			t
	}, e.prototype.palyFightNumEffect = function(t, e) {
		this._fightNumEffcet || (this._fightNumEffcet = new FightNumMoveItem, App.layer.guideLayer.addChild(this._fightNumEffcet)),
			this._fightNumEffcet.palyFightNumEffect(t, e)
	}, e.prototype.updateFightNum = function(t) {
		if (this.updateHp(), 1 == App.global.characterData.isShengji) App.global.characterData && t && (t.dcmax > 0 ?
			Notice.showRechange1Message(t.dcmax + "", 0) : t.mcmax > 0 ? Notice.showRechange1Message(t.mcmax + "", 0) : t.scmax >
			0 && Notice.showRechange1Message(t.scmax + "", 0), t.maxHp > 0 && Notice.showRechange1Message(t.maxHp + "", 1), t
			.acmax > 0 && Notice.showRechange1Message(t.acmax + "", 2), t.macmax > 0 && Notice.showRechange1Message(t.macmax +
				"", 3));
		else if (App.global.characterData && t) {
			App.global.characterData.job;
			t.dcmax > 0 ? Notice.showRechangeMessage(t.dcmax + "", 0) : t.mcmax > 0 ? Notice.showRechangeMessage(t.mcmax + "",
				0) : t.scmax > 0 && Notice.showRechangeMessage(t.scmax + "", 0), t.maxHp > 0 && Notice.showRechangeMessage(t.maxHp +
				"", 1), t.acmax > 0 && Notice.showRechangeMessage(t.acmax + "", 2), t.macmax > 0 && Notice.showRechangeMessage(t
				.macmax + "", 3), t.hit > 0 && Notice.showRechangeMessage(t.hit + "", 4), t.juck > 0 && Notice.showRechangeMessage(
				t.juck + "", 5), t.crit > 0 && Notice.showRechangeMessage(t.crit + "", 6), t.critadddamage > 0 && Notice.showRechangeMessage(
				t.critadddamage + "", 7)
		}
	}, e.prototype.onEnterZone = function(t, e) {
		var i = GameUtil.getZoneBean(t);
		if (null != i) {
			e == EnumZoneType.MAIN_CITY_OLD ? this.passnum_txt.textFlow = HtmlUtil.getHtmlStr("<font color='#fd5b1c'>" + i.q_duplicate_name +
				"</font>") : this.passnum_txt.textFlow = HtmlUtil.getHtmlStr("第<font color='#fd5b1c'>" + i.q_duplicate_name +
				"</font>关"), e == EnumZoneType.MAIN_CITY && (this.passnum_txt.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#fd5b1c'>" + i.q_duplicate_name + "</font>"));
			var n = App.config.q_bot_rewardContainer.getDataBean(i.q_id);
			if (n && n.q_client_reward) {
				var a = StringUtil.JsonParse(n.q_client_reward);
				App.data.zoneCenter.guanQiaCenter.expPerHour = a[1].num, App.data.zoneCenter.guanQiaCenter.moneyPerHour = a[0].num,
					this.time_txt.textFlow = HtmlUtil.getHtmlStr("<font color='#33c12c'>" + StringUtil.formatNum(a[1].num, !0, !1) +
						"</font>/小时"), this.time_txt2.textFlow = HtmlUtil.getHtmlStr("<font color='#33c12c'>" + StringUtil.formatNum(a[
						0].num, !0, !1) + "</font>/小时")
			}
			e == EnumZoneType.SHABAK ? this.visible = !1 : this.visible = e == EnumZoneType.AUTO_FIGHT_ZONE || e ==
				EnumZoneType.GUAN_KA_ZONE || e == EnumZoneType.MAIN_CITY_OLD || e == EnumZoneType.MAIN_CITY, e == EnumZoneType.GUAN_KA_ZONE &&
				App.global.characterData.level >= 30 ? this.guankagroup.visible = !0 : this.guankagroup.visible = !1
		}
	}, e.prototype.changePageData = function(t) {
		var e = "",
			i = "",
			n = "",
			a = 0;
		t && t.rankInfoVec && (a = t.rankInfoVec.length > 3 ? 3 : t.rankInfoVec.length);
		for (var o = 0; a > o; o++) {
			var r = t.rankInfoVec[o],
				s = Number(StringUtil.JsonParse(r.expandMap).rankData);
			e += r.name + "<br>", i += s + "<br>", n += 50 * s + "<br>"
		}
		this.rolename.textFlow = HtmlUtil.getHtmlStr(e), this.guankanum.textFlow = HtmlUtil.getHtmlStr(i), this.yuanbaotext
			.textFlow = HtmlUtil.getHtmlStr(n)
	}, e.prototype.updateVipLvl = function(t) {
		this.imgVip.source = "main_VIP_" + t + "_png"
	}, e.prototype.resize = function() {
		this.y = Config.isAllShow() ? MainParams.Down : 0, this._ActivityTipView && (this._ActivityTipView.x = Config.SCREEN_WIDTH -
			280, this._ActivityTipView.y = this.height + 420 >> 1)
	}, e
}(ViewBase);
__reflect(MainTopView.prototype, "MainTopView");
var MonsterRefreshGo = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e.addEvents(), e
	}
	return __extends(e, t), e.prototype.addEvents = function() {}, e.prototype.dispose = function() {}, e.prototype.init =
		function() {}, e
}(eui.Group);
__reflect(MonsterRefreshGo.prototype, "MonsterRefreshGo");
var OpenFuncGuideView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ShowKunEgg = function() {
			null != e.url && "" != e.url && e.onOpenFuncGuide(61, e.url, 0, 150, !1)
		}, e._funcid = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.addEvent()
	}, e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(ItemEvent.ADD, this.onAddItem, this), App.dispatcher.addEventListener(EventType.OPEN_FUNCTION_GUIDE,
			this.onOpenFuncGuide, this), App.dispatcher.addEventListener(EnumEvent.EVENT_STORY_FINISH, this.ShowKunEgg, this)
	}, e.prototype.onAddItem = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++)
			if (i = t[a], i.itemId == EnumItemId.KUNEGG) {
				var o = ResPathUtil.getMenuEffect("warpet", "egg" + i.bean.q_id);
				this.url = o
			}
	}, e.prototype.onOpenFuncGuide = function(t, e, i, n, a) {
		void 0 === e && (e = ""), void 0 === i && (i = 0), void 0 === n && (n = 0), void 0 === a && (a = !0), this._funcid =
			t;
		var o = App.stage;
		a && (null == this._mask && (this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics.beginFill(
					0, .85), this._mask.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this._mask.graphics.endFill(),
				this._mask.touchEnabled = !0, o.addChild(this._mask)), this._mask.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this)), this._targetEft = EffectUtils.showCEffect(this, o, e, (Config.SCREEN_WIDTH >> 1) + i, (
				Config.SCREEN_WIDTH >> 1) + n, this._targetEft), this._targetEft.scaleY = this._targetEft.scaleX = 1.6, App.timer
			.doTimeOnce(this, 1e3, this.onEnd)
	}, e.prototype.onClick = function() {
		this.onEnd()
	}, e.prototype.onEnd = function() {
		if (this._mask && this._mask.parent && (this._mask.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this), App.timer.clearTimer(this.onEnd, this), this._mask.parent.removeChild(this._mask), this._mask = null),
			this._funcid > 0) {
			if (!App.global.funcOpen.isFunctionOpen(this._funcid)) return;
			if (null == this.url || "" == this.url) return;
			var t = App.config.q_functionContainer.getDataBean(this._funcid).q_enter_button;
			if (t > 0) {
				var e = App.global.enterBtn.getButton(t),
					i = e.x + e.parentX,
					n = e.y + e.parentY;
				TweenLite.to(this._targetEft, .5, {
					x: i + 40,
					y: n,
					scaleX: .5,
					scaleY: .5,
					onComplete: this.removeItem,
					onCompleteScope: this
				});
				var a = "点击孵化魔宠";
				e && Guide.getGuide().show(a, Guide.RIGHT, i - 210, n + 47, App.layer.guideLayer)
			} else this.removeItem()
		}
	}, e.prototype.removeItem = function() {
		this._targetEft && (this._targetEft.dispose(), this._targetEft = null)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(OpenFuncGuideView.prototype, "OpenFuncGuideView");
var TargetItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		e._first = -1, e._fly = !1, e.euiSkinName = "TargetSkin", e._name = UIMaker.getCImage(e.groupItem, e, null, 125, 9,
			!0), e._icon = UIMaker.getCImage(e.groupItem, e, null, 3, -2, !0);
		var i = App.config.q_artifact_showContainer.list;
		return i && i.length > 0 && (e._first = i[0].q_guanka_id), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), !this._fly && -1 != this._first && e < this._first && (this._fly = !0), this.updateState(
			e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._icon && (TweenMax.killTweensOf(this._icon), this._icon.clear()), this._small &&
			(TweenMax.killTweensOf(this._small), this._small.stop(), this._small.clear())
	}, e.prototype.updateState = function(t) {
		this._id = t;
		var e = App.data.zoneCenter.targetCenter.getBean(t);
		if (e && 1 == e.q_show) {
			this._fly && (this._fly = !1, this._first = -1, this.showFlyEffect()), this._json = e.q_panel_ID, this._name.url =
				ResPathUtil.getResImage(e.q_shenqi_name, "target"), "" != e.q_jiemian_texiao ? (this._small = EffectUtils.showCEffect(
						this, this.groupItem, ResPathUtil.getMenuEffect("artifact", e.q_jiemian_texiao), 70, 60, this._small), this._small
					.scaleX = .4, this._small.scaleY = .4, this._small.visible = !0, this._icon && (this._icon.visible = !1),
					TweenMax.killTweensOf(this._small), this._small.y = 68, TweenMax.to(this._small, .7, {
						y: this._small.y - 20,
						repeat: -1,
						yoyo: !0,
						ease: Linear.easeOut
					})) : (this._icon.visible = !0, this._small && (this._small.visible = !1), this._icon.url = ResPathUtil.getResImage(
					e.q_shenqi_pos, "target"), TweenMax.killTweensOf(this._icon), this._icon.y = -2, TweenMax.to(this._icon, .7, {
					y: this._icon.y - 20,
					repeat: -1,
					yoyo: !0,
					ease: Linear.easeOut
				}));
			var i = App.data.zoneCenter.guanQiaCenter.id,
				n = GameUtil.getZoneBean(i);
			if (n) {
				var a = Number(n.q_duplicate_name) - 1,
					o = App.data.getArtifactDataCenter().getTargetBean(a);
				if (o) {
					var r = o.q_desc;
					this.num_txt.textFlow = HtmlUtil.getHtmlStr("再过" + HtmlUtil.formatColor(r - a + "", 3533365) + "关")
				}
			}
			null == this.parent && this.parentContainer && this.parentContainer.addChild(this), this.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTouch, this)
		} else this._small && TweenMax.killTweensOf(this._small), this._icon && TweenMax.killTweensOf(this._icon), this.parent &&
			this.parent.removeChild(this)
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(108, this._id)
	}, e.prototype.showFlyEffect = function() {
		this.groupItem.visible = !1, this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("main",
			"target"), 320, 500, this._effect), TweenLite.to(this._effect.view, .6, {
			delay: 2,
			x: 50,
			y: 180,
			scaleX: .2,
			scaleY: .2,
			ease: Linear.easeOut,
			onComplete: this.onOver,
			onCompleteScope: this
		})
	}, e.prototype.onOver = function() {
		this.groupItem.visible = !0, this._effect && (this._effect.dispose(), this._effect = null)
	}, e.prototype.dispose = function() {
		this._small && (this._small.dispose(), this._small = null), this._effect && (this._effect.dispose(), this._effect =
			null), this._name && (this._name.dispose(), this._name = null), this._icon && (this._icon.dispose(), this._icon =
			null)
	}, e
}(ViewBase);
__reflect(TargetItem.prototype, "TargetItem");
var TargetView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ShowArtfactProgress = function(t, e) {
			for (var i = 0, n = 1; n <= e.length; n++) t > e[n - 1].q_desc && i++;
			var a = i / e.length;
			return a
		}, e.euiSkinName = "TargetViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._icon = UIMaker.getCImage(this, this, null, 173, 233)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.btn);
		var i = e,
			n = App.data.zoneCenter.targetCenter.getBean(i);
		if (null != n) {
			"" != n.q_jiemian_texiao ? (this._small = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("artifact",
					n.q_jiemian_texiao), 320, 400, this._small), this._small.visible = !0, this._icon.visible = !1, TweenMax.killTweensOf(
					this._small), this._small.y = 400, TweenMax.to(this._small, .7, {
					y: this._small.y - 20,
					repeat: -1,
					yoyo: !0,
					ease: Linear.easeOut
				})) : (this._icon.visible = !0, this._small && (this._small.visible = !1), this._icon.url = ResPathUtil.getResImage(
					n.q_jiemian_pos, "target"), TweenMax.killTweensOf(this._icon), this._icon.y = -2, TweenMax.to(this._icon, .7, {
					y: this._icon.y - 20,
					repeat: -1,
					yoyo: !0,
					ease: Linear.easeOut
				})), this._icon.url = ResPathUtil.getResImage(n.q_jiemian_pos, "target"), TweenMax.killTweensOf(this._icon), this
				._icon.y = 233, TweenMax.to(this._icon, .7, {
					y: this._icon.y - 20,
					repeat: -1,
					yoyo: !0,
					ease: Linear.easeOut
				}), this.desc_txt0.textFlow = HtmlUtil.getHtmlStr(n.q_des), this.desc_txt1.textFlow = HtmlUtil.getHtmlStr(n.q_des2);
			var a = App.data.zoneCenter.guanQiaCenter.id,
				o = GameUtil.getZoneBean(a);
			if (o) {
				var r = Number(o.q_duplicate_name) - 1,
					s = App.data.getArtifactDataCenter().getTargetBean(r),
					h = App.data.getArtifactDataCenter().getTargetBeanArr(r + 1);
				if (s) {
					var l = (s.q_desc1, s.q_desc),
						p = StringUtil.JsonParse(s.q_num)[0].id,
						c = App.config.q_itemContainer.getDataBean(p);
					if (c && (this.get_txt.textFlow = HtmlUtil.getHtmlStr("再战" + HtmlUtil.formatColor(l - r + "", 3533365) + "关获得" +
							HtmlUtil.formatColor(c.q_name, 3533365))), h) {
						var _ = this.ShowArtfactProgress(r + 1, h.reverse());
						this.num_txt.text = Math.floor(100 * _) + "%", this.bar.width = 402 * _
					} else this.num_txt.text = "0%", this.bar.width = 0
				}
			}
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._icon && (this._icon.clear(), TweenMax.killTweensOf(this._icon))
	}, e.prototype.onTouch = function(t) {
		if (App.data.zoneCenter.guanQiaCenter.goToBoss) {
			var e = GameUtil.getZoneBean(App.data.zoneCenter.guanQiaCenter.id);
			if (e) {
				if (PanelOpenManager.openBagFullAlert()) return;
				ZoneCommandSender.sendC2S_ZoneFinishMessage(), App.global.zone.showEnterEffect(), App.panel.removePanel(108), App
					.panel.removePanel(118)
			}
		} else Notice.showBottomMessage("进度未满，请继续杀怪")
	}, e.prototype.dispose = function() {
		this._icon && this._icon.dispose(), this._icon = null, this._small && this._small.dispose(), this._small = null, t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TargetView.prototype, "TargetView");
var WanFaRemindEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.touchEnabled = !1, e.touchChildren = !1, e._effect = EffectUtils.showCEffect(e, e, ResPathUtil.getMenuEffect(
				"main", "remind"), 100, 9, e._effect), e._txt = UIMaker.getTextField(e, e, -10, 0, 200, 18, 11639929, 16), e._txt.textAlign =
			egret.HorizontalAlign.CENTER, e
	}
	return __extends(e, t), e.prototype.play = function(t) {
		void 0 === t && (t = ""), "" != t ? (this._effect.play(), this._effect.visible = !0, this._txt.text = t, this.x = -
			180, this.move()) : this.clear()
	}, e.prototype.clearTween = function() {
		var t;
		t = this instanceof e ? this : this.target, t.x = -180, TweenLite.killTweensOf(t)
	}, e.prototype.move = function() {
		var t;
		t = this instanceof e ? this : this.target, t && (TweenLite.killTweensOf(t), t.x >= -180 ? (t.x = -180, TweenLite.to(
			t, .5, {
				x: -230,
				ease: Linear.easeIn,
				onComplete: t.move
			})) : t.x <= -230 && (t.x = -230, TweenLite.to(t, .5, {
			x: -180,
			ease: Linear.easeIn,
			onComplete: t.move
		})))
	}, e.prototype.clear = function() {
		App.data.boss.resetRemindBoss(), this._effect.stop(), this._effect.visible = !1, this._txt.text = "", this.clearTween()
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(WanFaRemindEffect.prototype, "WanFaRemindEffect");
var BuyItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), e._view.addChild(e.grid), e.grid.x =
			235, e.grid.y = 105, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("BuyItemSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		if (void 0 === e && (e = null), t.prototype.show.call(this, e), this._shopType = e.shopType, this._panelId = e.panelId,
			this._bean = e.data, null != this._bean) {
			var i = GameUtil.getItemConfigData(this._bean.q_itemModelId);
			if (null != i) {
				this._view.name_txt.text = i.q_name.split("_")[0], this._view.name_txt.textColor = GameUtil.getItemNameColor(this
					._bean.q_itemModelId), this._view.yuanbao_img.source = GameUtil.getMoneyIcon(this._bean.q_currency_type);
				var n = new ItemData;
				n.itemId = this._bean.q_itemModelId, n.isbind = 1 == this._bean.q_bind, n.islock = 1 == this._bean.q_isLockItem,
					n.count = this._bean.q_num, 6 == this._shopType ? (this._view.buy_btn.label = "确认购买", this._shenMiShopIndex =
						Number(e.shenMiShopIndex), this._info = App.data.shenmiShopCenter.getShopItemInfo(this._shenMiShopIndex), this._value =
						1) : (this._isAutoUse = 1 != e.shopType && 1 == this._bean.q_quickPurchaseUse, i.q_id == EnumItemId.SKILL_EXP &&
						(this._isAutoUse = !1), this._view.buy_btn.label = this._isAutoUse ? "购买并使用" : "确认购买", 11 == this._shopType ?
						this._info = App.data.guildCenter.getShopItem(this._bean.q_id) : this._info = App.data.mallCenter.getShopItemInfo(
							this._bean.q_id), this._info && this._bean.q_times_limit_type > 0 && this._info.remainNum < 1 ? this._value =
						0 : this._value = 1, this._txt = this._value + "", this.update(), this._dispatcher.addEventListener(egret.TouchEvent
							.TOUCH_TAP, this.onClick, this, this._view.sub_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
							this.onClick, this, this._view.add_btn), this._dispatcher.addEventListener(egret.Event.CHANGE, this.update,
							this, this._view.txt_bg)), this.grid.isShowDesc = !1, this.grid.isShowCount = !1, this.grid.setData(n), this._dispatcher
					.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.cancel_btn), this._dispatcher.addEventListener(
						egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.buy_btn)
			}
		}
	}, e.prototype.update = function() {
		this._value = Number(this._view.txt_bg.text), this._value > 999 && (this._view.txt_bg.text = "999", this._value =
				999), this._value < 1 && (this._view.txt_bg.text = "0", this._value = 0), this._view.sub_btn.touchEnabled = this._value >=
			1, null == this._bean.q_times_price || 0 == this._bean.q_times_price.length ? this._view.allPrice_txt.text = this._value *
			this._bean.q_price + "" : this._view.allPrice_txt.text = App.data.mallCenter.getPriceByIndex(this._value + this._info
				.dynamicShopBuyTimes, this._bean.q_times_price) - App.data.mallCenter.getPriceByIndex(this._info.dynamicShopBuyTimes,
				this._bean.q_times_price) + ""
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.sub_btn:
				this._value > 1 && (this._value--, this._view.txt_bg.text = this._value + "", this.update());
				break;
			case this._view.add_btn:
				(0 == this._bean.q_times_limit_type || this._value < this._info.remainNum) && (App.data.currencyDataCenter.getMoney(
					this._bean.q_currency_type) >= (this._value + 1) * this._bean.q_price ? (this._value++, this._view.txt_bg.text =
					this._value + "", this.update()) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">" +
					EnumMoney.getName(this._bean.q_currency_type) + "不足以购买更多的商品了</font>"));
				break;
			case this._view.buy_btn:
				if (null != this._bean && App.data.currencyDataCenter.isMoneyEnough(Number(this._view.allPrice_txt.text), this._bean
						.q_currency_type, !1)) {
					var e = !1;
					if (this._isAutoUse && 1 == this._bean.q_quickPurchaseUse) {
						var i = GameUtil.getItemConfigData(this._bean.q_itemModelId);
						if (i && 8 == i.q_type)
							for (var n = App.data.quickPurchaseShopCenter.getQuickPurchaseShopItemList(5), a = 0; a < n.length; a++)
								if (n[a].q_itemModelId == this._bean.q_itemModelId) {
									e = !0;
									break
								}
					}
					e || this.sendBuyMessage()
				}
				break;
			case this._view.cancel_btn:
				this.onClose()
		}
	}, e.prototype.sendBuyMessage = function() {
		-999 == this._shopType && (this._shopType = 1), App.global.itemBuy.buy(this._bean, this._value, this._isAutoUse,
			this._panelId, Number(this._view.allPrice_txt.text), this._shopType, this._shenMiShopIndex) && this.onClose()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 510
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.grid = null, this._bean = null, this._info = null, this._txt = null, this._str =
			null, this._value = null, this._view.dispose(), this._view = null
	}, e
}(BasePanel);
__reflect(BuyItemView.prototype, "BuyItemView");
var MallItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isDispose = !1, e.skinName = "MallItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtn, this, this.buy_btn), this.createGrid(),
			this.dataChanged()
	}, e.prototype.createGrid = function() {
		if (null == this._grid) {
			this._grid = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			var t = new egret.Rectangle(0, 0, 76, 76);
			this._grid.x = 23, this._grid.y = 16, this._grid.setIconSize(t, t), this._grid.setBgVisible(!0), this.addChild(
				this._grid)
		}
	}, e.prototype.clear = function() {
		this._grid && this._grid.dispose(), this._grid = null
	}, e.prototype.dataChanged = function() {
		this.createGrid(), this._shopType = MallPanel.CURRENT_SHOP_TYPE, 1 == this._shopType, this.buynum_txt.visible = !1;
		var t = this.data;
		if (null == t ? (this._info = null, this._bean = null) : 1 == this._shopType ? this._info = App.data.mallCenter.getShopItemInfo(
				t.sellId) : 6 == this._shopType ? this._info = App.data.shenmiShopCenter.getShopItemInfo(t.shenMiShopIndex) : 5 ==
			this._shopType ? this._info = t : 11 == this._shopType && (this._info = t), null != this._info) {
			this._bean = GameUtil.getShopItemConfigData(this._info.sellId);
			var e = GameUtil.getItemConfigData(this._bean.q_itemModelId);
			if (null != e) {
				this.visible = !0, this.name_txt.text = e.q_name.split("_")[0], this.name_txt.textColor = GameUtil.getItemNameColor(
						this._bean.q_itemModelId), this.money_img.source = GameUtil.getMoneyIcon(this._bean.q_currency_type), null !=
					this._bean.q_slae_tips && this._bean.q_slae_tips.length > 0 ? (this.flag.source = "mall_flag" + this._bean.q_slae_tips +
						"_png", this.flag.visible = !0) : (this.flag.source = "", this.flag.visible = !1), this.addChild(this.flag),
					this.updatePrice(this._info), this._bean.q_buy_time > 0 && (this.buynum_txt.visible = !0, this._info.remainNum >
						0 ? this.buynum_txt.textColor = 3533365 : this.buynum_txt.textColor = 15938355, this.buynum_txt.text = "每日限购:" +
						this._info.remainNum + "/" + this._bean.q_buy_time);
				var i = new ItemData;
				i.itemId = this._bean.q_itemModelId, i.isbind = 1 == this._bean.q_bind, i.islock = 1 == this._bean.q_isLockItem,
					i.count = this._bean.q_num, this._grid.isShowDesc = !1, this._grid.setData(i), 6 == this._shopType && 1 == e.q_type &&
					App.data.wearEquipCenter.isBetterAllRole(i) ? this.arrowup_img.visible = !0 : this.arrowup_img.visible = !1
			}
		}
	}, e.prototype.onBtn = function(t) {
		switch (this._shopType) {
			case 6:
				App.global.itemBuy.buy(this._bean, 1, !1, 0, 0, 6, this._info.shenMiShopIndex);
				break;
			case 1:
			case 5:
			case 11:
				if (null != this._bean)
					if (1 == this._shopType) {
						var e = 1 == this._bean.q_page ? 1 : -999;
						PanelOpenManager.openBuyPanel(this._bean, e, 3, 0, !1)
					} else 5 == this._shopType ? PanelOpenManager.openBuyPanel(this._bean, 5, 69, 0, !1) : 11 == this._shopType &&
						PanelOpenManager.openBuyPanel(this._bean, 11, 110, 0, !1)
		}
	}, e.prototype.updatePrice = function(t) {
		if (this._info = t, null != this._info)
			if (1 == this._shopType || 8 == this._shopType) {
				if (null == this._bean.q_times_price || 0 == this._bean.q_times_price.length) this.price_txt.text = this._bean.q_price +
					"";
				else {
					var e = this._info.dynamicShopBuyTimes + 1;
					this.price_txt.text = App.data.mallCenter.getPriceByItem(e, this._bean.q_times_price) + ""
				}
				this.buy_btn.filters = [], this.buy_btn.enabled = !0
			} else 6 == this._shopType ? (this._bean.q_currency_type == EnumMoney.YUAN_BAO ? this.price_txt.text = "" + this._bean
					.q_price : this.price_txt.text = StringUtil.formatMoney(this._bean.q_price) + "", 0 == this._info.shenMiShopBuyStatus ?
					this.buy_btn.filters = [] : this.buy_btn.filters = FilterUtil.FILTER_GRAY, this.buy_btn.enabled = 0 == this._info
					.shenMiShopBuyStatus) : 5 == this._shopType ? this.price_txt.text = StringUtil.formatMoney(this._bean.q_price) +
				"" : 11 == this._shopType && (this.price_txt.text = StringUtil.formatMoney(this._bean.q_price) + "")
	}, e
}(ItemRenderer);
__reflect(MallItemView.prototype, "MallItemView");
var MallPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentTab = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MallViewSkin");
		var t = this._view.con;
		this.addChild(this._view), this._tabBar = new TabBar([this._view.tab1, this._view.tab2]), this._mallListPanel = new VScrollPanel(
				t.width, t.height, MallItemView, 5), t.addChild(this._mallListPanel), this._moneyBar = new MoneyBar, this._moneyBar
			.moveTo(181, 60, this), this._moneyBar.setMoneyLocationX(-75, 85), this._moneyBar.showBg(!1), this._tabBar.setTabBtnCallBack(
				this._view.tab2, new FunctionVO(this.functionOpen, this))
	}, e.prototype.refreshCailiao = function() {
		var t = GameUtil.getItemConfigData(EnumItemId.SHUA_XIN_LING);
		if (t) {
			var e = App.data.bagItemDataCenter.getItemCount(t.q_id),
				i = "";
			i = e > 0 ? "(<font color='#2bb12a'>" + e + "</font>/<font color='#b19c79'>1</font>)" : "(<font color='#f33333'>" +
				e + "</font>/<font color='#b19c79'>1</font>)", this._view.cailiaoTF.textFlow = HtmlUtil.getHtmlStr(i);
			var n = App.data.mallCenter.getItemShopBean(t.q_id);
			n && (this._view.goldTF.text = n.q_price + "")
		}
	}, e.prototype.show = function(e) {
		ShopCommandSender.sendRequestShopListMessage(1), this._view.getText.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(
			"极品预览"));
		var i = 0;
		e && e.selectedIndex && (i = e.selectedIndex), this._moneyBar.show(), t.prototype.show.call(this), this.addEvent(),
			this._tabBar.selectedIndex = i, this.refreshCailiao()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(TabBar.SELECTED_INDEX_CHANGE, this.selectedIndexChange, this, this._tabBar), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.updateInfo, this, this._view.btn_free), this._dispatcher
			.addEventListener(ItemEvent.UPDATE_SHOP_ITEM, this.selectedIndexChange, this), this._dispatcher.addEventListener(
				ItemEvent.UPDATE_SHENMI_SHOP, this.updateShenmiShop, this), this._dispatcher.addEventListener(ItemEvent.CHANGE,
				this.itemChange, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getTextClick, this,
				this._view.getText)
	}, e.prototype.getTextClick = function(t) {
		App.panel.openPanel(106)
	}, e.prototype.itemChange = function() {
		this.refreshCailiao()
	}, e.prototype.selectedIndexChange = function(t) {
		this._mallListPanel && (this._mallListPanel.stopAnimation(), this._mallListPanel.viewport && (this._mallListPanel.viewport
			.scrollV = 0)), this.currentTab = this._tabBar.selectedIndex, this.refreshCailiao()
	}, Object.defineProperty(e.prototype, "currentTab", {
		set: function(t) {
			this._currentTab = t, e.CURRENT_SHOP_TYPE = 0 == this._currentTab ? 6 : 1, 0 == this._currentTab ? (this._view.btnGroup
				.visible = !0, this._view.shemmigroup.visible = !0, this._view.con.y = 216, this._mallListPanel.height = 558,
				App.data.bagItemDataCenter.getItemCount(EnumItemId.SHUA_XIN_LING) > 0 ? (this._view.yaoshi.visible = !0, this._view
					.yuanbao.visible = !1) : (this._view.yaoshi.visible = !1, this._view.yuanbao.visible = !0), App.data.shenmiShopCenter
				.getShop() ? this.updateShenmiShop() : ShopCommandSender.sendRequestShopListMessage(6)) : (this._view.btnGroup
				.visible = !1, this._view.shemmigroup.visible = !1, this._view.con.y = 94, this._mallListPanel.height = 680,
				this._mallListPanel.dataProvider = this.getCurrentTabMallitems())
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.updateShenmiInfo = function() {
		var t = App.data.shenmiShopCenter.shenMiRemainRefreshTimeS - ServerTime.getServerTime();
		this.updateShenmiTime(t), App.timer.clearTimer(this.onTimer, this), this._view.xiaohaodesc.visible = !0, App.data.bagItemDataCenter
			.getItemCount(EnumItemId.SHUA_XIN_LING) > 0 ? (this._view.yaoshi.visible = !0, this._view.yuanbao.visible = !1) :
			(this._view.yaoshi.visible = !1, this._view.yuanbao.visible = !0), t > 0 ? (this._view.timetextgroup.visible = !0,
				this._view.btn_free.label = "刷新", App.timer.serverTimeEnd(this, this.onTimer, App.data.shenmiShopCenter.shenMiRemainRefreshTimeS),
				UIMaker.showPoint(this._view.tab1, this, !1)) : (this._view.timetextgroup.visible = !1, this._view.btn_free.label =
				"免费刷新", UIMaker.showPoint(this._view.tab1, this, !0), this._view.yaoshi.visible = !1, this._view.yuanbao.visible = !
				1, this._view.xiaohaodesc.visible = !1)
	}, e.prototype.onTimer = function(t) {
		this.updateShenmiTime(t.spuleTime)
	}, e.prototype.updateShenmiTime = function(t) {
		var e = 0 >= t ? "" : "<font color='#35ea35'>" + StringUtil.convertTime(t) + "</font>";
		this._view.timeTF.textFlow = HtmlUtil.getHtmlStr(e)
	}, e.prototype.updateInfo = function(t) {
		0 == this._currentTab && this.sendShenMiShopRefreshMessage(1)
	}, e.prototype.updateShenmiShop = function() {
		0 == this._currentTab && (this.updateShenmiInfo(), this._mallListPanel.dataProvider = this.getCurrentTabMallitems(),
			this.refreshCailiao())
	}, e.prototype.getCurrentTabMallitems = function() {
		var t;
		return t = 0 == this._currentTab ? App.data.shenmiShopCenter.getShop() : App.data.mallCenter.getShop(this._currentTab),
			t && (t = t.concat()), t
	}, e.prototype.sendShenMiShopRefreshMessage = function(t) {
		void 0 === t && (t = 0), ShopCommandSender.sendShenMiShopRefreshMessage()
	}, e.prototype.functionOpen = function() {
		return App.global.funcOpen.isFunctionOpen(42, "神秘商城", !0)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), UIMaker.showPoint(this._view.tab1, this, !1), this._moneyBar.hide(), this._tabBar.clear(),
			this._mallListPanel.removeAll(), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.dispose = function() {
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._tabBar.clear(), this._tabBar = null,
			this._mallListPanel.dispose(), this._mallListPanel = null, this._currentTab = -1, this._view.dispose(), this._view =
			null, t.prototype.dispose.call(this)
	}, e.CURRENT_SHOP_TYPE = 0, e
}(BasePanel);
__reflect(MallPanel.prototype, "MallPanel");
var MallYulanPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._window.setHeight(400), this._window.setTitle(
			"极品道具预览"), this._btnClose = this._window.close_btn, this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
			4, 38, 46), this._gridLayer.getController().layerGapY += 25, this._gridLayer.initLayers([GridLayout.BG,
			GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.useScroller(500, 350), this._gridLayer.moveTo(60, 105, this._window.viewContainer)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = ItemUtil.getRewardDataList(GameUtil.getGlobalConfigData(260).q_string_value);
		this._gridLayer.dataProvider = i
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer.clear()
	}, e.prototype.dispose = function() {
		this._gridLayer.dispose(), this._gridLayer = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 400
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(MallYulanPanel.prototype, "MallYulanPanel");
var GameMapModule = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.initialize(), e
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.acceptCommand = new MapAcceptCommandCoprocessor(this), this.sendCommand = new MapSendCommandCoprocessor(this),
			this.notification = new MapNotificationCoprocessor(this), this.secne = App.layer.sceneLayer, this.mapAvatarModel =
			new MapAvatarModel(this), this.mapMouseModel = new MapMouseModel_PC(this), this.mapSceneModel = new h5_engine.MapSceneModel,
			this.mapLoader = new MapLoaderModel, this.mapMoveModel = new MapMoveModel(this), this.mapFightModel = new MapFightModel(
				this), this.mapEffectModel = new MapDynmaicEffectModel(this), this.mapSkillModel = new MapSkillOperationModel(
				this), this.mapItemModel = new MapItemModel(this), this.mapLoader.setBackground(this.secne.backgound), this.mapQuickSelect =
			new MapQuickSelectModel(this), this.mapDummyModel = new MapDummyRoleModel(this)
	}, e.prototype.clear = function() {
		var t = this;
		t.mapAvatarModel.clear(), t.mapSceneModel.clear(), t.mapMouseModel.clear(), t.mapMoveModel.clear(), t.mapEffectModel
			.clear(), t.mapFightModel.clear(), t.mapItemModel.clear(), t.mapSkillModel.clear(), t.notification.clear(), t.mapDummyModel
			.clear(), t.secne.clear()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(GameMapModule.prototype, "GameMapModule");
var MapAvatarModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i.isMyCharacter = function(t) {
			var e = App.thing.create(HashMap, i, !0),
				n = App.global.characterData.personId;
			return t.foEach(function(t, i) {
				var a;
				egret.is(i, "MapPlayerRoleData") ? a = i.personId : egret.is(i, "MapPlayerPartnerRoleData") ? a = i.ownerId :
					egret.is(i, "MapPetRoleData") && (a = i.ownerId), a != n && e.put(t, i)
			}, i), e
		}, i._hideData = new MapRoleShowHideData, i._crtVisRoleNum = 0;
		var n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		var t = this;
		t._playerHash = new HashMap, t._playerVisHash = new HashMap, t._petHash = new HashMap, t._petVisHash = new HashMap,
			t._partnerHash = new HashMap, t._partnerVisHash = new HashMap, t._monsterHash = new HashMap, t._monsterVisHash =
			new HashMap, t._npcHash = new HashMap, t._nodeBlockHash = new HashObject, t._nodeRoleHash = new HashObject, t._deadHash =
			new HashMap
	}, Object.defineProperty(e.prototype, "partnerHash", {
		get: function() {
			return this._partnerHash
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "playerHash", {
		get: function() {
			return this._playerHash
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "petHash", {
		get: function() {
			return this._petHash
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getOwenAtkRole = function(t) {
		var e = this,
			i = e.getPlayer(t);
		if (!i || i.isDispose || i.getIsDead())
			for (var n = e._partnerHash.values, a = n.length, o = 0; a > o; o++) {
				var r = n[o];
				if (r instanceof MapPlayerPartnerRoleData && r.ownerId == t) {
					i = r;
					break
				}
			}
		return i
	}, e.prototype.checkIsCharcter = function(t) {
		return null == App.global.characterData ? !1 : t == App.global.characterData.personId
	}, e.prototype.getRoleData = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = i.getPlayerOrCharacterData(t, e);
		return n || (n = i.getMonster(t, e)), n || (n = i.getPet(t, e)), n || (n = i.getNpc(t)), n || (n = i.getPartner(t,
			e)), n
	}, e.prototype.getFightRoleData = function(t, e) {
		return void 0 === e && (e = !1), this.getRoleData(t, e)
	}, e.prototype.getPlayerOrCharacterData = function(t, e) {
		void 0 === e && (e = !1);
		var i = this;
		return i.checkIsCharcter(t) ? App.global.characterData : i.getPlayer(t, e)
	}, e.prototype.getPlayer = function(t, e) {
		void 0 === e && (e = !1);
		var i = e ? this._playerVisHash.get(t) : this._playerHash.get(t);
		return i
	}, e.prototype.delPlayer = function(t) {
		var e = this,
			i = e.getPlayer(t);
		e.deleteRole(i, e._playerHash, e._playerVisHash, !0)
	}, e.prototype.getMonsterByModelId = function(t) {
		for (var e = this._monsterHash.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			if (a.monsterModelId == t) return a
		}
		return null
	}, e.prototype.getMonster = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = e ? i._monsterVisHash.get(t) : i._monsterHash.get(t);
		return n
	}, e.prototype.delMonster = function(t, e) {
		void 0 === e && (e = !0);
		var i = this,
			n = i.getMonster(t);
		n && i.deleteRole(n, i._monsterHash, i._monsterVisHash, e)
	}, e.prototype.getNpcByModelId = function(t) {
		for (var e = this._npcHash.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			if (a.npcModelId == t) return a
		}
		return null
	}, e.prototype.getNpc = function(t) {
		return this._npcHash.get(t)
	}, e.prototype.delNpc = function(t) {
		var e = this,
			i = e.getNpc(t);
		if (i) {
			e._npcHash.del(t);
			var n = i.npcModelBean;
			1 == n.q_walkable && (e._mapModule.mapLoader.mapData.getNode(n.q_x, n.q_y).walkAble = !0), i.dispose()
		}
	}, e.prototype.clickNpc = function(t) {
		var e = this.getNpcByModelId(t);
		e && App.dispatcher.dispatchEvent(EventType.SELECT_NPC, e)
	}, e.prototype.getPetOrPartner = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = i.getPet(t);
		return n ? n : i.getPartner(t)
	}, e.prototype.getPartner = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = e ? i._partnerVisHash.get(t) : i._partnerHash.get(t);
		return n
	}, e.prototype.delPartner = function(t, e) {
		void 0 === e && (e = !0);
		var i = this,
			n = i.getPartner(t);
		n && n instanceof CharcterPartnerRoleData && (e = !1), i.deleteRole(n, i._partnerHash, i._partnerVisHash, e)
	}, e.prototype.getPet = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = e ? i._petVisHash.get(t) : i._petHash.get(t);
		return n
	}, e.prototype.delPet = function(t, e) {
		void 0 === e && (e = !0);
		var i = this,
			n = i.getPet(t);
		n && i.deleteRole(n, i._petHash, i._petVisHash, e)
	}, e.prototype.deleteRole = function(t, e, i, n) {
		void 0 === n && (n = !0);
		var a = this;
		if (t && a._mapModule.mapLoader.mapData) {
			var o = a._mapModule.mapLoader.mapData.getNode(t.mapNode_x, t.mapNode_y);
			o && (a.deleteBlockNodeInHash(o, t), a.deleteMonsterNodeInHash(o, t)), e.del(t.personId), i.del(t.personId), n &&
				t.dispose()
		}
	}, e.prototype.createPet = function(t) {
		var e = this;
		if ((!App.global.characterData || t.showgroup == App.global.characterData.showGroup || 0 == t.showgroup) && null !=
			e._mapModule.mapLoader.mapData) {
			var i = t.petId.toString(),
				n = LongUtil.toNumber(t.index);
			if (n > 0) e.createPartner(t, n);
			else {
				var a = e.checkCreateAndPut(t.petId.toString(), MapPetRoleData, t, e.delPet, e._petHash, e._petVisHash);
				e.makePlayer(a, AvatarActionType.ACTION_TYPE_STAND, t.dir), e.onChangeEnemyHpBarStyle(a.personId, a)
			}
			App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CREATE, i)
		}
	}, e.prototype.createPartner = function(t, e) {
		var i, n = this,
			a = t.ownerId.toString();
		a == App.global.characterData.personId ? (i = n.checkCreateAndPut(t.petId.toString(), App.global.roles.makeRoleInfoByIndex(
			e), t, n.delPartner, n._partnerHash, n._partnerVisHash), i.isJumping = !1, i.getIsDead() && (i.roleView.alpha =
			1, i.setIsDead(!1))) : (i = n.checkCreateAndPut(t.petId.toString(), MapPlayerPartnerRoleData, t, n.delPartner, n._partnerHash,
			n._partnerVisHash), n.onChangeEnemyHpBarStyle(i.personId, i)), n.makePlayer(i, AvatarActionType.ACTION_TYPE_STAND,
			t.dir)
	}, e.prototype.createMonster = function(t) {
		var e = this;
		if ((!App.global.characterData || t.showgroup == App.global.characterData.showGroup || 0 == t.showgroup) && null !=
			e._mapModule.mapLoader.mapData) {
			var i = e.checkCreateAndPut(t.monsterId.toString(), MapMonsterRoleData, t, e.delMonster, e._monsterHash, e._monsterVisHash);
			e.makePlayer(i, AvatarActionType.ACTION_TYPE_STAND, i.faceDir), i.changeNation(), App.dispatcher.dispatchEvent(
				PlayerAttributeEvent.ROLE_CREATE, i.personId), App.data.getWangZheZBCenter().createAreanMonster(i.personId)
		}
	}, e.prototype.createNpc = function(t) {
		var e = this;
		if ((!App.global.characterData || t.showgroup == App.global.characterData.showGroup || 0 == t.showgroup) && null !=
			e._mapModule.mapLoader.mapData) {
			var i = e.checkCreateAndPut(t.npcId.toString(), MapNpcRoleData, t, e.delNpc, e._npcHash, null);
			i.changeNation(), e.makePlayer(i, AvatarActionType.ACTION_TYPE_STAND, i.faceDir);
			var n = i.npcModelBean;
			if (1 == n.q_walkable) {
				var a = e._mapModule.mapLoader.mapData.getNodeByXY(i.serverMap_x, i.serverMap_y);
				a ? a.walkAble = !1 : GameLog.logError("npc格子位置错误：" + i.npcModelId + "_" + i.serverMap_x + "_" + i.serverMap_y)
			}
		}
	}, e.prototype.createPlayer = function(t) {
		var e = this;
		if ((!App.global.characterData || t.showgroup == App.global.characterData.showGroup || 0 == t.showgroup) && null !=
			e._mapModule.mapLoader.mapData) {
			var i = e.checkCreateAndPut(t.personId.toString(), MapPlayerRoleData, t, e.delPlayer, e._playerHash, e._playerVisHash);
			e.makePlayer(i, AvatarActionType.ACTION_TYPE_STAND, i.faceDir), i.changeNation(), e.onChangeEnemyHpBarStyle(i.personId,
				i), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CREATE, i.personId)
		}
	}, e.prototype.checkCreateAndPut = function(t, e, i, n, a, o) {
		void 0 === o && (o = null), FunctionApply.doExecute(n, this, [t]);
		var r = e instanceof CharcterPartnerRoleData ? e : new e;
		return r.roleView.makeShadow(), r.initRoldData(i), a.put(r.personId, r), r
	}, e.prototype.checkNpcTaskMoveNode = function() {
		var t = this,
			e = 1e3;
		App.config.q_globalContainer.getDataBean(168) && (e = App.config.q_globalContainer.getDataBean(168).q_int_value);
		var i = 0;
		if (App.config.q_globalContainer.getDataBean(169) && (i = App.config.q_globalContainer.getDataBean(169).q_int_value),
			App.global.characterData.getLevel() < e)
			for (var n = App.global.characterData.mapId, a = App.config.q_npcContainer.list, o = a.length, r = 0; o > r; r++) {
				var s = a[r];
				if (s.q_map == n) {
					var h = s.q_x,
						l = s.q_y;
					if (s.q_px > 0 && s.q_py > 0) {
						var p = h5_engine.MapVO.getNodeByPixelXY(s.q_px, s.q_py);
						h = p.x, l = p.y
					}
					for (var c = i, _ = h - c; h + c > _; _++)
						for (var d = l - c; l + c > d; d++)
							if (t._mapModule.mapLoader.mapData) {
								var u = t._mapModule.mapLoader.mapData.getNode(_, d);
								u && (u.isTaskNode = !0)
							}
				}
			}
	}, e.prototype.checkIsNodeWalkAble = function(t, e, i, n, a) {
		var o = this;
		if (null != o._mapModule.mapLoader.mapData) {
			var r = o._mapModule.mapLoader.mapData.getNode(e, i),
				s = o._mapModule.mapLoader.mapData.getNode(n, a);
			if (o._mapModule.mapLoader.mapData && (s && o.deleteBlockNodeInHash(s, t), r)) switch (Object(t).constructor) {
				case MapPetRoleData:
					0 == r.isSafe && 0 == o._mapModule.mapLoader.q_map_player_cross_pet && o.putBlockNodeInHash(r, t);
					break;
				case MapPlayerRoleData:
					0 == r.isSafe && 0 == o._mapModule.mapLoader.q_map_player_cross_player && 0 == t.getIsDead() && o.putBlockNodeInHash(
						r, t);
					break;
				case MapPlayerPartnerRoleData:
					0 == r.isSafe && 0 == o._mapModule.mapLoader.q_map_player_cross_player && 0 == t.getIsDead() && o.putBlockNodeInHash(
						r, t);
					break;
				case CharacterRoleData:
				case CharcterPartnerRoleData:
					0 == t.getIsDead() && o.putBlockNodeInHash(r, t);
					break;
				case MapMonsterRoleData:
					0 == r.isSafe && 0 == o._mapModule.mapLoader.isCanMapPlayer && o.putBlockNodeInHash(r, t)
			}
			if (s && o.deleteMonsterNodeInHash(s, t), r) switch (Object(t).constructor) {
				case MapMonsterRoleData:
					o.putMonsterNodeInHash(r, t)
			}
		}
	}, e.prototype.deleteMonsterNodeInHash = function(t, e) {
		var i = this;
		if (i._nodeRoleHash.has(t.hashCount)) {
			var n = i._nodeRoleHash.get(t.hashCount);
			n.del(e), n.length <= 0 && (i._nodeRoleHash.del(t.hashCount), HashMap.putMap(n))
		}
	}, e.prototype.putMonsterNodeInHash = function(t, e) {
		var i, n = this;
		n._nodeRoleHash.has(t.hashCount) ? (i = n._nodeRoleHash.get(t.hashCount), i.put(e, e)) : (i = HashMap.getMap(), i.put(
			e, e), n._nodeRoleHash.put(t.hashCount, i))
	}, e.prototype.deleteBlockNodeInHash = function(t, e) {
		var i = this;
		if (i._nodeBlockHash.has(t.hashCount)) {
			var n = i._nodeBlockHash.get(t.hashCount);
			n.del(e), n.length <= 0 && (t.roleBlock = !0, i._nodeBlockHash.del(t.hashCount), HashMap.putMap(n))
		}
	}, e.prototype.putBlockNodeInHash = function(t, e) {
		var i, n = this;
		n._nodeBlockHash.has(t.hashCount) ? (i = n._nodeBlockHash.get(t.hashCount), 0 == i.has(e) && i.put(e, e)) : (i =
			HashMap.getMap(), i.put(e, e), n._nodeBlockHash.put(t.hashCount, i), t.roleBlock = !1)
	}, e.prototype.getNodeRoleCount = function(t) {
		var e = this;
		if (t && e._nodeRoleHash.has(t.hashCount)) {
			var i = e._nodeRoleHash.get(t.hashCount);
			if (i) return i.length
		}
		return 0
	}, e.prototype.checkIsInVisibleArea = function(t) {
		var e = this,
			i = LookVisibleScreenAreaUtils.isInVisiBleArea(t.serverMap_x, t.serverMap_y);
		switch (Object(t).constructor) {
			case MapPlayerRoleData:
				e.changeRoleDataHash(i, t, e._playerVisHash);
				break;
			case MapPetRoleData:
				e.changeRoleDataHash(i, t, e._petVisHash);
				break;
			case MapMonsterRoleData:
				e.changeRoleDataHash(i, t, e._monsterVisHash);
				break;
			case MapPlayerPartnerRoleData:
				e.changeRoleDataHash(i, t, e._partnerVisHash);
				break;
			case CharcterPartnerRoleData:
				e.changeRoleDataHash(i, t, e._partnerVisHash)
		}
		return i
	}, e.prototype.changeRoleDataHash = function(t, e, i) {
		t ? i.put(e.personId, e) : i.del(e.personId)
	}, e.prototype.addRoleToScene = function(t) {
		var e = this;
		if (t.roleView.roleHeadLayout.addParent(e._mapModule.secne.headLayer), t instanceof MapPlayerRoleData) {
			if (t.roleView.addParent(e._mapModule.secne.avatarLayer), e._hideData.hide_allPlayer) return;
			if (e._hideData.hide_myGuildPlayer && t.guildId == App.global.characterData.guildId) return;
			t.roleView.shadow.setContainer(e._mapModule.secne.shadowLayer)
		} else if (t instanceof MapMonsterRoleData) {
			if (e._hideData.hide_commonMonster && ByteUtils.hasKey(t.monsterType, 2)) return;
			t.roleView.addParent(e._mapModule.secne.avatarLayer), t.roleView.shadow.setContainer(e._mapModule.secne.shadowLayer)
		} else if (t instanceof MapPetRoleData) {
			if (e._hideData.hide_allPet) return void t.roleView.nameBar.show();
			t.roleView.addParent(e._mapModule.secne.avatarLayer), t.roleView.shadow.setContainer(e._mapModule.secne.shadowLayer)
		} else t.roleView.addParent(e._mapModule.secne.avatarLayer), t.roleView.shadow.setContainer(e._mapModule.secne.shadowLayer)
	}, e.prototype.removeRoleToScene = function(t) {
		t.roleView.removeFromParent(), t.roleView.shadow.removeContainer(), t.roleView.roleHeadLayout.removeFromParent()
	}, e.prototype.resetAllIsInVisibleArea = function() {
		var t = this;
		t._petHash.foEach(t.roleInVisibleArea, t), t._partnerHash.foEach(t.roleInVisibleArea, t), t._playerHash.foEach(t.roleInVisibleArea,
			t), t._monsterHash.foEach(t.roleInVisibleArea, t), t._npcHash.foEach(t.roleInVisibleArea, t)
	}, e.prototype.roleInVisibleArea = function(t, e) {
		e.resetIsInVisiableArea()
	}, e.prototype.HideAvatar = function(t) {
		var e = this;
		t.hide_allPlayer ? (this.isMyCharacter(e._playerHash).foEach(e.removeRoleAvatar, e), this.isMyCharacter(e._partnerHash)
			.foEach(e.removeRoleAvatar, e), this.isMyCharacter(e._petHash).foEach(e.removeRoleAvatar, e)) : (this.isMyCharacter(
				e._playerHash).foEach(e.showRoleAvatar, e), this.isMyCharacter(e._partnerHash).foEach(e.showRoleAvatar, e), this
			.isMyCharacter(e._petHash).foEach(e.showRoleAvatar, e))
	}, e.prototype.updateShowOrHideDress = function(t, e) {
		var i = this;
		i._playerHash.foEach(function(i, n) {
			n.surfaceManager.hideSurface(t, e)
		}, i)
	}, Object.defineProperty(e.prototype, "hideData", {
		get: function() {
			return this._hideData
		},
		set: function(t) {
			var e = this;
			if (e._hideData != t) {
				if (e._hideData.hide_allPet != t.hide_allPet && (t.hide_allPet ? e._petVisHash.foEach(e.removeNoMouseRoleAvatar,
						e) : e._petVisHash.foEach(e.showNoMouseRoleAvatar, e)), e._hideData.hide_allPlayer != t.hide_allPlayer && (t.hide_allPlayer ?
						e._playerVisHash.foEach(e.removeRoleAvatar, e) : 1 == t.hide_myGuildPlayer ? e._playerHash.foEach(function(t,
							i) {
							i.guildId != App.global.characterData.guildId && e.showRoleAvatar(i.personId, i)
						}, e) : e._playerVisHash.foEach(e.showRoleAvatar, e)), e._hideData.hide_myGuildPlayer != t.hide_myGuildPlayer &&
					(e._playerHash.foEach(function(i, n) {
						n.guildId == App.global.characterData.guildId && (t.hide_myGuildPlayer ? e.removeRoleAvatar(n.personId, n) :
							e.showRoleAvatar(n.personId, n))
					}, e), e._partnerHash.foEach(function(i, n) {
						n.guildId == App.global.characterData.guildId && (t.hide_myGuildPlayer ? e.removeRoleAvatar(n.personId, n) :
							e.showRoleAvatar(n.personId, n))
					}, e)), e._hideData.hide_commonMonster != t.hide_commonMonster && e._monsterHash.foEach(function(i, n) {
						ByteUtils.hasKey(n.monsterType, 2) && (t.hide_commonMonster ? e.removeNoMouseRoleAvatar(n.personId, n) : e.showNoMouseRoleAvatar(
							n.personId, n))
					}, e), e._hideData.hide_playerTitles != t.hide_playerTitles && (e._playerHash.foEach(function(e, i) {
						i.surfaceManager.showHideTitle(t.hide_playerTitles)
					}, e), App.global.characterData.surfaceManager.showHideTitle(t.hide_playerTitles)), e._hideData.hide_playerWing !=
					t.hide_playerWing) {
					var i = t.hide_playerWing ? !1 : !0;
					e._playerHash.foEach(function(t, e) {
						e.roleView.changePartVisible(AvatarPartType.WING, i)
					}, e), e._partnerHash.foEach(function(t, e) {
						e.roleView.changePartVisible(AvatarPartType.WING, i)
					}, e), App.global.characterData.roleView.changePartVisible(AvatarPartType.WING, i)
				}
				e._hideData = t
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.checkAvatarShowHide = function(t) {
		var e = this;
		if (t != App.global.characterData) {
			if (e._hideData.hide_allPet && t instanceof MapPetRoleData) return void e.removeNoMouseRoleAvatar(t.personId, t);
			if (t instanceof MapPlayerRoleData) {
				if (e._hideData.hide_playerWing && t.roleView.changePartVisible(AvatarPartType.WING, !1), e._hideData.hide_allPlayer) {
					if (e.removeRoleAvatar(t.personId, t), !e._hideData.hide_myGuildPlayer && t.guildId == App.global.characterData.guildId)
						return void e.showRoleAvatar(t.personId, t)
				} else e._hideData.hide_myGuildPlayer && t.guildId == App.global.characterData.guildId && e.removeRoleAvatar(t.personId,
					t);
				e._hideData.hide_playerTitles && (t.roleView.showTitleEffect(""), t.surfaceManager.showHideTitle(e._hideData.hide_playerTitles))
			}
			if (e._hideData.hide_commonMonster && t instanceof MapMonsterRoleData && ByteUtils.hasKey(t.monsterType, 2)) return void e
				.removeNoMouseRoleAvatar(t.personId, t)
		}
	}, e.prototype.showNoMouseRoleAvatar = function(t, e) {
		var i = this;
		e.isInVisableArea && (e instanceof MapPetRoleData && 0 == e.showName && h5_engine.SceneRole.lastSelectRole != e.roleView &&
			e.roleView.nameBar.hide(), e.roleView.addParent(i._mapModule.secne.avatarLayer), e.roleView.shadow.setContainer(i
				._mapModule.secne.shadowLayer))
	}, e.prototype.removeNoMouseRoleAvatar = function(t, e) {
		e instanceof MapPetRoleData && e.isInVisableArea && e.roleView.nameBar.show(), e.roleView.removeFromParent(), e.roleView
			.shadow.removeContainer()
	}, e.prototype.showRoleAvatar = function(t, e) {
		e.roleView.addAvatar(), e.roleView.shadow.setContainer(this._mapModule.secne.shadowLayer)
	}, e.prototype.removeRoleAvatar = function(t, e) {
		e.roleView.removeAvatar(), e.roleView.shadow.removeContainer()
	}, e.prototype.makePlayer = function(t, e, i) {
		void 0 === e && (e = AvatarActionType.ACTION_TYPE_STAND), void 0 === i && (i = h5_engine.SceneType.BOTTOM);
		var n = this;
		n.checkAvatarShowHide(t), n._mapModule.mapLoader.mapData && n.setRoleNodeAplha(t, n._mapModule.mapLoader.mapData.getNodeByXY(
				t.serverMap_x, t.serverMap_y)), t instanceof MapFightRoleData && t.getIsDead() ? t.changeDirAction(
				AvatarActionType.ACTION_TYPE_DIE, i, !1, !0, -1) : t.changeDirAction(e, i), t.pixel_x = t.serverMap_x, t.pixel_y =
			t.serverMap_y
	}, e.prototype.getMonsterShortestDistance = function(t, e, i, n, a, o) {
		void 0 === n && (n = 0), void 0 === a && (a = null), void 0 === o && (o = !0);
		for (var r = this, s = [], h = [], l = App.global.characterData, p = r._monsterHash.values, c = p.length, _ = App.data
				.getWangZheZBCenter().destMosnterHash, d = 0; c > d; d++) {
			var u = p[d];
			if (_) GameLog.log("优先攻击特殊的人物属性的怪物"), _[u.personId] && (GameLog.log("填入优先攻击的附近的玩家"), s.push(u), h.push(u));
			else if ((ByteUtils.hasKey(u.monsterType, 2) || ByteUtils.hasKey(u.monsterType, 4) || ByteUtils.hasKey(u.monsterType,
					8)) && (null == u.monsterModelBean && GameLog.log("怪物的模型数据没了"), 0 == u.getIsDead() && u.hp > 0 && 0 == u.isClientDead &&
					u.monsterModelBean && l.getLevel() >= u.monsterModelBean.q_attack_minlevel)) {
				if (r._mapModule.mapQuickSelect.isSameGroup(u, l)) continue;
				var g = h5_engine.MapVO.getDistanceBy2Point(t, e, u.serverMap_x, u.serverMap_y),
					f = !0;
				if (n > 0 && n != u.monsterModelId ? f = !1 : a && a.get(u.personId) > 1 && (f = !1), u.dtc = g, f) {
					if (u.dtc <= 1) return u;
					i >= g ? s.push(u) : o && h.push(u)
				}
			}
		}
		var m;
		return 1 == s.length ? m = s[0] : s.length > 1 ? (ArrayUtil.sortOnArr(s, ["dtc"], [ArrayUtil.NUMERIC]), m = s[0]) :
			o && (ArrayUtil.sortOnArr(h, ["dtc"], [ArrayUtil.NUMERIC]), m = h[0]), m
	}, e.prototype.setRoleNodeAplha = function(t, e, i, n) {
		void 0 === e && (e = null), void 0 === i && (i = 0), void 0 === n && (n = 0);
		var a = this;
		null == e && a._mapModule.mapLoader.mapData && (e = a._mapModule.mapLoader.mapData.getNode(i, n)), e && (t.roleView
			.alpha = e.isMask ? .6 : 1)
	}, e.prototype.onChangeEnemyHpBarStyle = function(t, e) {
		var i = App.global.characterData;
		if (!(e instanceof CharcterPartnerRoleData)) {
			var n = !1,
				a = e instanceof MapPlayerRoleData,
				o = a ? AvatarHpMpBar.STYLE_2 : AvatarHpMpBar.STYLE_4,
				r = AvatarHpMpBar.STYLE_3;
			n ? i.guildId != e.guildId ? (e.roleView.hpBar.changeHpBarStyle(o), a && (e.changeGildNameColor(16711680, 16711680),
				e.enemyFriendName = "<font color=0xFF0000></font>")) : (e.roleView.hpBar.changeHpBarStyle(r), a && (e.changeGildNameColor(
					0, EnumPKState.PKSWORD_WHITE), e.enemyFriendName = e.getTeamId() == i.getTeamId() ?
				"<font color=0x00FF00>[队]</font>" : "")) : this._mapModule.mapQuickSelect.checkIsEnemy(t, i) ? (e.roleView.hpBar
				.changeHpBarStyle(o), a && (e.changeGildNameColor(16711680, 16711680), e.enemyFriendName =
					"<font color=0xFF0000></font>")) : (e.roleView.hpBar.changeHpBarStyle(r), a && (e.changeGildNameColor(0,
					EnumPKState.PKSWORD_WHITE), e.enemyFriendName = e.getTeamId() == i.getTeamId() ?
				"<font color=0x00FF00>[队]</font>" : ""))
		}
	}, Object.defineProperty(e.prototype, "crtVisRoleNum", {
		get: function() {
			return this._crtVisRoleNum
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.createCharacter = function(t) {
		App.global.characterData = t, this.makePlayer(t, AvatarActionType.ACTION_TYPE_STAND, t.faceDir)
	}, e.prototype.changeDebugMode = function() {
		var t = this;
		t.debugChangeRole(t._playerHash), t.debugChangeRole(t._monsterHash), t.debugChangeRole(t._petHash), t.debugChangeRole(
				t._partnerHash), t.debugChangeRole(t._npcHash), App.global.characterData.name = App.global.characterData.name,
			App.global.characterData.roleView.changeGreenPointState()
	}, e.prototype.debugChangeRole = function(t) {
		for (var e = t.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a.name = a.name, a.roleView.changeGreenPointState()
		}
	}, e.prototype.disposeHash = function(t) {
		for (var e = t.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a.dispose()
		}
	}, e.prototype.disposePartnerHash = function(t) {
		for (var e = t.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a instanceof MapPlayerPartnerRoleData && a.dispose()
		}
	}, e.prototype.deadRole = function(t) {
		var e = this;
		TweenLite.to(t.roleView, .7, {
			delay: .8,
			alpha: 0,
			onComplete: e.roleDeadDipose,
			onCompleteParams: [t],
			onCompleteScope: e
		}), e._deadHash.put(t, t)
	}, e.prototype.roleDeadDipose = function(t) {
		var e = this;
		0 == t.isDispose && t instanceof CharcterPartnerRoleData == 0 && t.dispose(), e._deadHash.del(t)
	}, e.prototype.disposeDeadHash = function(t) {
		for (var e = t.values, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			TweenLite.killTweensOf(a.roleView), a.dispose()
		}
	}, e.prototype.clear = function() {
		var t = this;
		if (t.disposeHash(t._playerHash), t.disposeHash(t._monsterHash), t.disposeHash(t._petHash), t.disposePartnerHash(t._partnerHash),
			t.disposeHash(t._npcHash), t.disposeDeadHash(t._deadHash), App.global.characterData)
			for (var e = App.global.roles.roleList, i = 0; i < e.length; i++) e[i].clear();
		t._playerHash.clear(), t._playerVisHash.clear(), t._petHash.clear(), t._petVisHash.clear(), t._partnerHash.clear(),
			t._partnerVisHash.clear(), t._monsterHash.clear(), t._monsterVisHash.clear(), t._npcHash.clear(), t._nodeBlockHash
			.clear(), t._nodeRoleHash.clear(), t._deadHash.clear()
	}, e
}(Dispose);
__reflect(MapAvatarModel.prototype, "MapAvatarModel");
var MapDummyRoleModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._mapModule = e, i.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this._roleHash = new HashObject
	}, e.prototype.createDummyByVirtual = function(t, e, i, n, a, o, r) {
		void 0 === o && (o = null), void 0 === r && (r = !1);
		var s = new RoleCrossDressData,
			h = App.config.q_monsterContainer.getDataBean(e);
		s.name = "等级" + h.q_lvl + "  " + h.q_name, s.modelBodyResID = h.q_featureid, s.displayName = 0, s.featrueType = 1,
			s.sex = h.q_sex;
		var l = this.makeDummyRoleData(i, n, AvatarActionType.ACTION_TYPE_STAND, -1 == a ? Math.floor(8 * Math.random()) :
			a);
		return l.personId = t, l.crossDressing(s), o && (r && (o.callBack = new FunctionVO(function() {
			l.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, 1)
		}, this)), l.actionList.setNext(o)), this.addRole(t, l), l
	}, e.prototype.createDummy = function(t) {
		var e = new RoleCrossDressData;
		e.sex = t.sex, e.name = t.playerName, t.bodyResStr && t.bodyResStr.length > 0 ? e.modelBodyResID = t.bodyResStr : e
			.body = parseInt(t.bodyId), e.weapon = parseInt(t.weaponId), e.wing = t.raywing, e.isChengzhu = Boolean(t.countryKing);
		var i = this.makeDummyRoleData(t.mapX, t.mapY, t.actionType, t.dir);
		i.paramData = t, i.personId = t.playerId.toString(), i.crossDressing(e), this.addRole(i.personId, i)
	}, e.prototype.makeDummyRoleData = function(t, e, i, n) {
		var a = new MapDummyRoleData;
		return a.roleView.makeShadow(), a.roleView.roleHeadLayout.addParent(this._mapModule.secne.headLayer), a.roleView.addParent(
			this._mapModule.secne.avatarLayer), a.roleView.shadow.setContainer(this._mapModule.secne.shadowLayer), a.changeDirAction(
			i, n), a.pixel_x = t, a.pixel_y = e, a
	}, e.prototype.addRole = function(t, e) {
		this.deleteRole(t), this._roleHash.put(t, e)
	}, e.prototype.getRole = function(t) {
		return this._roleHash.get(t)
	}, e.prototype.deleteRole = function(t) {
		var e = this.getRole(t);
		e && (e.dispose(), this._roleHash.del(t))
	}, e.prototype.clear = function() {
		this._roleHash.length > 0 && (this._roleHash.forInValExcFucName("dispose"), this._roleHash.clear())
	}, e
}(Dispose);
__reflect(MapDummyRoleModel.prototype, "MapDummyRoleModel");
var MapDynmaicEffectModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i._mapEffectDict = new HashMap, i._transportDict = new HashObject;
		var n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		var t = this;
		t._serverDynmaicEffectHash = new HashObject, t._clientActiveEffectPostionDict = new HashObject, t._clientActiveEffectDict =
			new HashObject, t._clientActiveEffectMapDict = new HashObject
	}, e.prototype.createServerEffect = function(t) {
		var e = this,
			i = t.effectId.toString(),
			n = t.effectModelId,
			a = t.x,
			o = t.y,
			r = t.type,
			s = (t.play, App.config.q_dynmaic_effectContainer.getDataBean(n));
		if (2 == r) {
			var h = ResPathUtil.getMenuEffect(s.q_res_path, s.q_res_id);
			if (1 == s.q_fix) {
				var l = e.creatEffect(h, s.q_pixel_x_client, s.q_pixel_y_client);
				e._serverDynmaicEffectHash.put(i, l)
			} else l = e.creatEffect(h, a, o), e._serverDynmaicEffectHash.put(i, l)
		}
	}, e.prototype.creatEffect = function(t, e, i) {
		var n = this,
			a = App.thing.create(MapGroundEffect, "MapDynmaicEffectModel", !0);
		if (a.url = t, a.addParent(n._mapModule.secne.sceneEffect), a.setTo(e, i), a.play(), n._mapModule.mapLoader.mapData) {
			var o = n._mapModule.mapLoader.mapData.getNodeByXY(e, i);
			o && o.isMask ? a.alpha = .5 : a.alpha = 1
		}
		return a
	}, e.prototype.deleteServerEffect = function(t) {
		var e = this,
			i = e._serverDynmaicEffectHash.get(t);
		i && (i.dispose(), e._serverDynmaicEffectHash.del(t))
	}, e.prototype.updateMapEffect = function() {
		this.updateActiveEffect()
	}, e.prototype.addActiveEffect = function(t) {
		var e = this;
		if (App.config.q_specailConfigContainer.hasDataBean(t)) {
			var i = App.config.q_specailConfigContainer.getDataBean(t).q_show_effects;
			if (i)
				for (var n = StringUtil.JsonParse(i), a = 0; a < n.length; a++) {
					var o = n[a],
						r = App.config.q_dynmaic_effectContainer.getDataBean(o),
						s = r.q_mapid,
						h = r.q_pixel_x_client,
						l = r.q_pixel_y_client,
						p = new egret.Point(h, l),
						c = e._clientActiveEffectMapDict.get(s);
					null == c && (c = new HashObject, e._clientActiveEffectMapDict.put(s, c)), c.put(o, o), e._clientActiveEffectPostionDict
						.put(o, p)
				}
			e.updateActiveEffect()
		}
	}, e.prototype.removeActiveEffect = function(t) {
		var e = this;
		if (App.config.q_specailConfigContainer.hasDataBean(t)) {
			var i = App.config.q_specailConfigContainer.getDataBean(t).q_show_effects;
			if (i)
				for (var n = StringUtil.JsonParse(i), a = 0; a < n.length; a++) {
					var o = n[a],
						r = App.config.q_dynmaic_effectContainer.getDataBean(o),
						s = r.q_mapid,
						h = e._clientActiveEffectMapDict.get(s);
					h && h.del(o), e._clientActiveEffectPostionDict.del(o);
					var l = e._clientActiveEffectDict.get(o);
					l && (l.dispose(), e._clientActiveEffectDict.del(o))
				}
		}
	}, e.prototype.updateActiveEffect = function() {
		var t, e = this;
		App.global.characterData && (t = e._clientActiveEffectMapDict.get(App.global.characterData.mapId)), t && t.foEach(
			function(t, i) {
				var n = e._clientActiveEffectPostionDict.get(t);
				if (e._mapModule.mapSceneModel.screen.contains(n.x, n.y)) {
					var a = e._clientActiveEffectDict.get(t);
					if (!a) {
						var o = App.config.q_dynmaic_effectContainer.getDataBean(t),
							r = ResPathUtil.getMenuEffect(o.q_res_path, o.q_res_id);
						a = e._mapModule.mapEffectModel.creatEffect(r, n.x, n.y), e._clientActiveEffectDict.put(t, a)
					}
				} else a = e._clientActiveEffectDict.get(t), a && (a.dispose(), e._clientActiveEffectDict.del(t))
			}, e)
	}, e.prototype.updateScreenMapEffect = function() {
		var t = this,
			e = t._mapModule.mapLoader.mapData.mapEffectList;
		if (e)
			for (var i = e.length, n = 0; i > n; n++) {
				var a, o = e[n];
				t._mapModule.mapSceneModel.screen.contains(o.sx, o.sy) ? (a = t._mapEffectDict.get(o), a || (a = t._mapModule.mapEffectModel
					.creatEffect(ResPathUtil.getMapEffect(o.name), o.sx, o.sy), t._mapEffectDict.put(o, a))) : (a = t._mapEffectDict
					.get(o), a && (a.dispose(), t._mapEffectDict.del(o)))
			}
	}, e.prototype.changeTransferState = function(t, e) {}, e.prototype.updateScreenTransport = function() {
		var t = this,
			e = t.getCrtMapTransform();
		e.foEach(t.checkScreenTransport, t)
	}, e.prototype.checkScreenTransport = function(t, e) {
		var i, n = this,
			a = e.q_tran_icon;
		if (a)
			if (n._mapModule.mapSceneModel.screen.contains(e.centerX, e.centerY)) {
				if (i = n._transportDict.get(t), !i) {
					var o = ResPathUtil.getMenuEffect("chuansong", a);
					i = n._mapModule.mapEffectModel.creatEffect(o, e.centerX, e.centerY), n._transportDict.put(t, i)
				}
			} else i = n._transportDict.get(t), i && (i.dispose(), n._transportDict.del(t))
	}, e.prototype.getCrtMapTransform = function() {
		var t = this;
		if (null == t._crtMapTransports) {
			t._crtMapTransports = new HashObject;
			for (var e = App.global.characterData.mapId, i = App.config.q_transferContainer.list, n = i.length, a = 0; n > a; a++) {
				var o = i[a];
				if (o.q_tran_from_map == e) {
					var r = MapRoadSearch.getTransPoint(o.q_tran_from_range),
						s = r.range,
						h = {};
					h.q_tran_icon = o.q_tran_icon, h.q_tran_id = o.q_tran_id;
					var l = h5_engine.MapVO.getCenterPoint(r.x, r.y);
					h.centerX = l.x, h.centerY = l.y, h.range = s, t._crtMapTransports.put(o.q_tran_id, h)
				}
			}
		}
		return t._crtMapTransports
	}, e.prototype.clearDispose = function(t, e) {
		e.dispose()
	}, e.prototype.clear = function() {
		var t = this;
		t._serverDynmaicEffectHash.forInValExcFucName("dispose"), t._serverDynmaicEffectHash.dispose(), t._serverDynmaicEffectHash =
			new HashObject, t._clientActiveEffectDict.forInValExcFucName("dispose"), t._clientActiveEffectDict = new HashObject,
			t._transportDict.foEach(t.clearDispose, t), t._transportDict = new HashObject, t._mapEffectDict.foEach(t.clearDispose,
				t), t._mapEffectDict = new HashMap, t._crtMapTransports = null
	}, e
}(Dispose);
__reflect(MapDynmaicEffectModel.prototype, "MapDynmaicEffectModel");
var MapFightModel = function(t) {
	function e(e) {
		var i = t.call(this) || this,
			n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		var t = this;
		t._groundMagicHash = new HashObject, t._skillExpressionHash = new HashObject;
		var e = t._skillExpressionHash;
		e.put(4007, new SkillExpression(BossQuanpingSkillProcessor)), e.put(9001, new SkillExpression(
				Boss8DandaoFlyAniProcessor)), e.put(9002, new SkillExpression(BossLineFireAniProcessor)), e.put(9003, new SkillExpression(
				BossLine8FireAniProcessor)), e.put(9004, new SkillExpression(BossRangSpreadAniProcessor)), e.put(9005, new SkillExpression(
				BossRangRationSpreadAniProcessor)), e.put(9102, new SkillExpression(MountsSkillSkyJianAniProcessor)), e.put(
				111112, new SkillExpression(AreaSingleAniProcessor)), e.put(111113, new SkillExpression(FiveArowAniProcressor)),
			e.put(-1, new SkillExpression(HejiSkillAniProcessor)), e.put(-2, new SkillExpression(TanSheSkillAniProcessor)), e.put(
				-3, new SkillExpression(MeleeSkillAniPorcessor)), e.put(-4, new SkillExpression(LongRangeSkillAniProcessor))
	}, e.prototype.resetAllIsInVisibleArea = function() {
		var t = this;
		t._groundMagicHash.foEach(t.checkEft, t)
	}, e.prototype.checkEft = function(t, e) {
		this.checkEffectVisible(e)
	}, e.prototype.checkEffectVisible = function(t) {
		var e = LookVisibleScreenAreaUtils.isInVisiBleArea(t.x, t.y);
		e ? (t.play(), t.addParent(this._mapModule.secne.groundMagic)) : (t.stop(), t.removeParent())
	}, e.prototype.addGroundMagic = function(t, e, i, n, a, o, r, s) {
		var h, l = this;
		l._groundMagicHash.has(t) && (h = l._groundMagicHash.get(t), l._groundMagicHash.del(t), h.dispose());
		var p = GameUtil.getSkillConfigData(e, i);
		(1 != p.q_series_effect_is_only || 0 == o && 0 == r) && (h = App.thing.create(MapGroundEffect, "MapFightModel", !0),
			h.url = ResPathUtil.getSkillEffectUrl(p.q_File_client, p.q_series_effect), h.setTo(n, a), l.checkEffectVisible(h),
			l._groundMagicHash.put(t, h))
	}, e.prototype.removeGorundMagic = function(t) {
		var e = this;
		if (e._groundMagicHash.has(t)) {
			var i = e._groundMagicHash.get(t);
			e._groundMagicHash.del(t), i.dispose()
		}
	}, e.prototype.getAniProcessor = function(t, e) {
		void 0 === e && (e = 1);
		var i = this,
			n = GameUtil.getSkillConfigData(t, e);
		if (null == n) return null;
		var a = n.q_expression;
		return 0 == a && (a = -4, n.q_skillID == EnumSkillID.HEJI_DAOSHI ? a = -1 : 36 == n.q_area_shape ? a = -2 : (1 == n
			.q_showtype || 2 == n.q_showtype) && (a = -3)), i.makeSkillPorcess(a)
	}, e.prototype.makeSkillPorcess = function(t) {
		var e = this._skillExpressionHash.get(t),
			i = e.getProcessor();
		return i
	}, e.prototype.playerShowBloodWord = function(t, e, i, n, a) {
		var o = this;
		o._mapModule.mapAvatarModel.crtVisRoleNum > 20 && "0" != n && i != App.global.mapModule.mapMouseModel.controlRoleData &&
			n != App.global.mapModule.mapMouseModel.controlRoleData.personId || App.data.zoneCenter.type == EnumZoneType.AUTO_FIGHT_ZONE &&
			i == App.global.characterData && (-1 == t || ByteUtils.hasKey(t, 2) || ByteUtils.hasKey(t, 4) || 0 == t) && 1 >= e ||
			o.showBloodWord(t, e, i, n, a)
	}, e.prototype.showBloodWord = function(t, e, i, n, a) {
		if (!((0 == t || ByteUtils.hasKey(t, 4)) && i instanceof MapPetRoleData && i.isZhanshen) && i.roleView.getFightNumberCount() <
			20) {
			var o = App.thing.create(FightResultNumber, "MapFightModel", !0);
			o.init(this._mapModule, t, e, i, n), i.roleView.delayShowBloodWord(o)
		}
	}, e.prototype.showFightResult = function(t) {
		for (var e = this, i = t.sourceId.toString(), n = t.fightRetList.length, a = 0, o = 0; n > o; o++) {
			for (var r = t.fightRetList[o], s = r.fightActionId.toString(), h = 0; h < r.attackRetList.length; h++) {
				var l = r.attackRetList[h],
					p = l.fighterId.toString(),
					c = e._mapModule.mapAvatarModel.getFightRoleData(p);
				if (c) {
					var _ = l.damagehp + l.backdamage;
					if (a = _ + a, c.setCrtHp(LongUtil.toNumber(l.curhp), !1), c.setCrtMp(l.curmp, !1), c.setCrtNg(l.curinsidepower,
							!1), r.skillId != GameUtil.getSkillConfigDataById(App.data.characterCenter.hejiEquipCenter.getTzSkillId()).q_skillID &&
						e.playerShowBloodWord(l.fightResult, _, c, i, s), c.refreshCurrentHp(), c.refreshCurrentMp(), c.refreshCurrentNg(),
						e._mapModule.mapAvatarModel.checkIsCharcter(p)) e._mapModule.mapAvatarModel.getFightRoleData(i) && (e._mapModule
						.mapAvatarModel.getFightRoleData(i).fightWeightValue += _ / 10 + 1, App.global.characterData.addAttacker(i));
					else {
						var d = e._mapModule.mapAvatarModel.getPet(p),
							u = e._mapModule.mapAvatarModel.getPartner(p);
						(d && d.ownerId == App.global.characterData.personId || u && u instanceof CharcterPartnerRoleData) && App.global
							.characterData.addAttacker(i)
					}
				}
			}
			a > 0 && App.global.roles.getRoleInfoById(i) && App.dispatcher.dispatchEvent(EventType.HEJI_FIGHTNUM, r, a)
		}
	}, e.prototype.clear = function() {
		var t = this,
			e = t._groundMagicHash.$_getValueMap();
		for (var i in e) e[i].dispose();
		t._groundMagicHash.clear()
	}, e.prototype.dispose = function() {
		var e = this;
		e.clear(), e._mapModule = null, t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(MapFightModel.prototype, "MapFightModel");
var SkillExpression = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.list = [], i._useHash = new HashObject, i._useCount = 0, i._creCount = 0, i.cls = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "useCount", {
		get: function() {
			return this._useCount
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getProcessor = function() {
		if (this._useCount > 100) return null;
		var t;
		return this.list.length > 0 ? t = this.list.pop() : (t = new this.cls, this._creCount++, t.putPoolback = new FunctionVO(
			this.putInPool, this, t)), this._useCount++, t.useTimer = egret.getTimer(), this._useHash.put(t.hashCode, t), t
	}, e.prototype.putInPool = function(t) {
		this._useCount--, this._useHash.del(t.hashCode), this.list.length < 100 && this.list.push(t)
	}, e
}(egret.HashObject);
__reflect(SkillExpression.prototype, "SkillExpression");
var MapItemModel = function(t) {
	function e(e) {
		var i = t.call(this) || this,
			n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.initShopItemHash = function() {
		if (null == e.shopItemDict) {
			e.shopItemDict = new HashObject;
			for (var t = App.config.q_shopContainer.list, i = t.length, n = 0; i > n; n++) e.shopItemDict.put(t[n].q_itemModelId,
				t[n])
		}
	}, e.itemTakeUpSort = function(t, e) {
		if (t.takeUpSort > e.takeUpSort) return -1;
		if (t.takeUpSort == e.takeUpSort)
			if (1 == t.showtype && 1 == e.showtype) {
				var i = App.config.q_itemContainer.getDataBean(t.itemBaseid),
					n = App.config.q_itemContainer.getDataBean(e.itemBaseid);
				if (i.q_zhuanshen > n.q_zhuanshen) return -1;
				if (i.q_zhuanshen == n.q_zhuanshen) {
					if (i.q_level > n.q_level) return -1;
					if (i.q_level == n.q_level && t.dtc < e.dtc) return -1
				}
			} else if (t.dtc < e.dtc) return -1;
		return 1
	}, e.setItmTakeUpSort = function(t) {
		e.initShopItemHash(), t.takeUpSort = 0
	}, e.prototype.initialize = function() {
		var t = this;
		t._dropItemHash = new HashObject, t._gridHash = new HashObject;
		for (var e = [], i = 0; 15 > i; i++) e.push(App.thing.create(MapDropItem, "MapItemModel", !0));
		for (var i = 0; 15 > i; i++) e[i].dispose()
	}, e.prototype.getKey = function(t, e) {
		return (t / h5_engine.MapConfig.MAP_NODE_WIDTH >> 0) + "_" + (e / h5_engine.MapConfig.MAP_NODE_HEIGHT >> 0)
	}, e.prototype.checkDropItemInNodeAndTake = function(t, e) {
		var i, n = this,
			a = n.getKey(t, e);
		if (n._gridHash.has(a)) {
			var o = n._gridHash.get(a);
			o.length > 0 && (i = o.foEach(function(t, e) {
				return e.mouseDown(), !0
			}, n))
		}
		return i ? !0 : !1
	}, e.prototype.checkCanDropItem = function(t, e, i) {
		var n = this,
			a = n.getKey(e, i),
			o = n._gridHash.has(a);
		if (n._dropItemHash.length > 0 && GameLog.log("检查捡取当前格子上是否有物品: " + a + ", 是否有物品:" + o + ",人物坐标: SEVER[" + t.serverMap_x +
				"_" + t.serverMap_y + "], MOVE[" + t.move_to_x + "_" + t.move_to_y + "]"), o) {
			var r = !1,
				s = n._gridHash.get(a);
			GameLog.log("检查捡取物品: " + a, "物品的数量: " + s.length), t.isFightAiRuning ? s.foEach(function(e, i) {
				(t.ai.itemIsCanTakeUp(i) || t.ai.isInTakeDropItemList(i)) && (n.isYuanbao(i) && (r = !0), GameLog.log(
					"开始拾取物品-A:", i.itemOnlyId), n._mapModule.sendCommand.takeUpItem(i, t))
			}, n) : s.foEach(function(e, i) {
				return n.isYuanbao(i) && (r = !0), GameLog.log("开始拾取物品-B:", i.itemOnlyId), n._mapModule.sendCommand.takeUpItem(
					i, t), !0
			}, n), r && App.dispatcher.dispatchEvent(EventType.SHOW_YUANBAO_EFFECT)
		}
		return o
	}, e.prototype.isYuanbao = function(t) {
		return t.itemBaseid == EnumMoney.YUAN_BAO
	}, e.prototype.dropItemIsInTheGrid = function(t, e, i) {
		var n = this;
		if (n.dropItemHash.has(i)) {
			var a = n.getKey(t, e);
			if (n._gridHash.has(a)) {
				var o = n._gridHash.get(a);
				return o.has(i)
			}
		}
		return !1
	}, e.prototype.resetAllIsInVisibleArea = function() {
		this._dropItemHash.forInValExcFucName("checkItemVisible")
	}, e.prototype.addDropItem = function(t) {
		var e = this;
		if (t && t.length > 0) {
			var i = 1 == t.length ? !0 : !1,
				n = App.data.zoneCenter.getMyZoneData(),
				a = 1 == n.bean.q_drop_get_mode ? !0 : !1,
				o = !1;
			n && a && (i = !0, o = !0, n.type != EnumZoneType.AUTO_FIGHT_ZONE && (App.global.mapModule.mapMouseModel.controlRoleData
				.ai.isRuning = !1));
			for (var r = t.length, s = 0; r > s; s++) e.createDropItem(t[s], i), o && s == r - 1 && App.timer.doTimeOnce(e,
				600, e.fly);
			App.timer.doTimeOnce(this, 1500, this.resetState)
		}
	}, e.prototype.resetState = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			n.ai.isRuning = !0
		}
	}, e.prototype.fly = function() {
		var t, e = this,
			i = e._dropItemHash.length,
			n = e._dropItemHash.getValueArray(),
			a = App.global.mapModule.mapMouseModel.controlRoleData,
			o = 0,
			r = 0;
		if (a.getIsDead()) {
			for (var s = App.global.roles.roleList, h = 0; h < s.length; h++)
				if (s[h] && !s[h].getIsDead()) {
					var o = s[h].serverMap_x - 16,
						r = s[h].serverMap_y - s[h].modelHeight / 2;
					break
				}
		} else o = a.serverMap_x - 16, r = a.serverMap_y - a.modelHeight / 2;
		for (var l, p = !1, c = [], h = 0; i > h; h++) {
			t = n[h], t.itemBaseid == EnumMoney.YUAN_BAO && (p = !0);
			var _ = App.thing.create(CImage, this, !0);
			l = t.getIcon().localToGlobal(), _.x = l.x, _.y = l.y, t.getUrl() && (_.url = t.getUrl()), c.push(_), t.removeParent()
		}
		App.global.operate.flyToBag(c, this, !1, e._mapModule.secne.fixedView), App.timer.doTimeOnce(e, 500, e.auto), p &&
			App.dispatcher.dispatchEvent(EventType.SHOW_YUANBAO_EFFECT)
	}, e.prototype.auto = function() {
		var t = this;
		App.timer.clearTimer(t.resetState, t);
		for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			a.ai.isRuning = !0
		}
		i = t._dropItemHash.length;
		for (var o = t._dropItemHash.getValueArray(), r = 0; i > r; r++) t.deleteDropItem(o[r].itemOnlyId)
	}, e.prototype.createDropItem = function(t, e) {
		void 0 === e && (e = !1);
		var i = this,
			n = LongUtil.toString(t.dropGoodsId),
			a = t.itemModelId,
			o = t.x,
			r = t.y;
		if (0 == i._dropItemHash.has(n)) {
			var s = App.thing.create(MapDropItem, "MapItemModel", !0);
			s.settingInfo(i._mapModule, a, n, t), s.setTo(o, r), s.addParent(i._mapModule.secne.itemLayer, i._mapModule.secne.itemTextLayer,
				i._mapModule.secne.avatarLayer), s.dropJump(e), i._dropItemHash.put(n, s);
			var h = i.getKey(o, r);
			0 == i._gridHash.has(h) && i._gridHash.put(h, new HashObject);
			var l = i._gridHash.get(h);
			l.put(n, s)
		}
	}, e.prototype.deleteDropItem = function(t) {
		var e = this;
		if (e._dropItemHash.has(t)) {
			GameLog.log("删除掉落物品成功， 物品:" + t);
			var i = e._dropItemHash.get(t),
				n = e.getKey(i.x, i.y);
			i.dispose(), e._dropItemHash.del(t), App.global.characterData.isFightAiRuning && e._mapModule.mapMouseModel.controlRoleData
				.ai.deleteDropItem(i);
			var a = e._gridHash.get(n);
			a && (a.del(t), 0 == a.length && e._gridHash.del(n)), App.dispatcher.dispatchEvent(EventType.DROP_ITEM, e._dropItemHash)
		}
	}, e.prototype.getDropItem = function(t) {
		return this._dropItemHash.get(t)
	}, e.prototype.getOneDropItem = function() {
		var t = this;
		if (t._dropItemHash && t._dropItemHash.length > 0) {
			var i = ServerTime.serverTime / 1e3,
				n = App.global.characterData.personId,
				a = App.global.characterData.move_to_x,
				o = App.global.characterData.move_to_y,
				r = [];
			return t._dropItemHash.foEach(function(t, s) {
				(s.ownerId == n || "0" == s.ownerId || i >= s.dropTime + 65) && (e.setItmTakeUpSort(s), s.dtc = h5_engine.MapVO
					.getDistanceBy2Point(s.x, s.y, a, o), r.push(s))
			}, t), r.length > 1 && r.sort(e.itemTakeUpSort), r[0]
		}
		return null
	}, Object.defineProperty(e.prototype, "dropItemHash", {
		get: function() {
			return this._dropItemHash
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.changeDebugMode = function() {
		this._dropItemHash.forInValExcFucName("changeName")
	}, e.prototype.clear = function() {
		this._dropItemHash.forInValExcFucName("dispose"), this.initialize()
	}, e
}(Dispose);
__reflect(MapItemModel.prototype, "MapItemModel");
var MapLoaderModel = function(t) {
	function e() {
		var e = t.call(this) || this;
		e._mapid = 0, e._mapResId = 0, e._isShowBackgrid = !1, e._mapClipHash = null, e._mapOldClipHash = null;
		var i = e;
		return App.keyBoard.addKeyHandler(Keyboard.NUMPAD_1, new FunctionVO(i.onShowGrid2, i)), e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "isCanMapPlayer", {
		get: function() {
			return 0 == this._mapBean.q_map_safe && 0 == this._mapBean.q_map_monster
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "q_map_player_cross_player", {
		get: function() {
			return 0 == this._mapBean.q_map_safe && 0 == this._mapBean.q_map_player_cross_player
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "q_map_player_cross_pet", {
		get: function() {
			return 0 == this._mapBean.q_map_safe && 0 == this._mapBean.q_map_pet
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "isSafeMap", {
		get: function() {
			return this._mapBean.q_map_safe > 0 ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setBackground = function(t) {
		this._background = t
	}, Object.defineProperty(e.prototype, "mapResId", {
		get: function() {
			return this._mapResId
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onLoadError = function(t, e, i) {
		var n = new Date,
			a = n.getTime() - e.getTime();
		WebParams.sendWebLog(LogType.CHANGE_MAP_LOAD_USE_TIME, "切地图加载错误:" + t + ", 用时" + a);
		var o = "";
		App.global.characterData && (o = App.global.characterData.name), WebParams.setLoadLog(!0, o, "切地图加载错误:, url: " + t,
			"开始时间：", WebParams.getDateTime(e), "结束时间：", WebParams.getDateTime(n), "用时: ", a, "毫秒")
	}, e.prototype.changeMap = function(t, e) {
		var i = this;
		i._mapid = t, i._mapBean = App.config.q_mapContainer.getDataBean(t);
		var n = i._mapBean.q_mapresid;
		if (n != i._mapResId) {
			i._mapOldClipHash = i._mapClipHash, i.clear(), i._callBack = e, i._mapResId = n;
			var a = ResPathUtil.getMapDataMp(n);
			i._mpBytesNetLoader = i.createNetLoader(NetResourceType.MAP_BINARY, new FunctionVO(i.onMapDataHandler, i, n, new Date,
				a), new FunctionVO(i.onLoadError, i, a, new Date)), i._mpBytesNetLoader.url = a;
			var o = "";
			App.global.characterData && (o = App.global.characterData.name), WebParams.setLoadLog(!1, o, "开始加载地图配置资源" + a)
		} else {
			if (i._mapData) {
				var r = i._mapData.mapEffectList;
				i._mapData.dispose()
			}
			i._mapData = (new h5_engine.MapdataTranfrom).convertMapVO(i._mapDataObject), i._mapData.mapEffectList = r, e.exec(),
				i.playMusic()
		}
	}, e.prototype.onMapDataHandler = function(t, e, i) {
		var n = this;
		if (n._mpBytesNetLoader) var a = n._mpBytesNetLoader.content;
		if (t == n._mapResId && a) {
			n._mapDataObject = StringUtil.JsonParse(a), n._mapData && n._mapData.dispose();
			var o = new Date,
				r = o.getTime() - e.getTime();
			WebParams.sendWebLog(LogType.CHANGE_MAP_LOAD_USE_TIME, "地图数据加载耗时:" + r);
			var s = "";
			App.global.characterData && (s = App.global.characterData.name), WebParams.setLoadLog(!0, s, "地图数据加载完成:, url: " +
					i, "大小:", a.length, "开始时间：", WebParams.getDateTime(e), "结束时间：", WebParams.getDateTime(o), "用时: ", r, "毫秒"), n._mapData =
				(new h5_engine.MapdataTranfrom).convertMapVO(n._mapDataObject);
			var h = ResPathUtil.getMapDataPreview(t);
			n._makerBmpNetLoader = n.createNetLoader(NetResourceType.MAP_RADAR, new FunctionVO(n.onPerviewHandler, n, t, new Date,
				h), new FunctionVO(n.onLoadError, n, h, new Date)), n._makerBmpNetLoader.url = h, WebParams.setLoadLog(!1, s,
				"开始加载地图马赛克缩略图资源" + h)
		}
	}, e.prototype.onPerviewHandler = function(t, e, i) {
		var n = this;
		if (t == n._mapResId) {
			if (n._makerBmpNetLoader) var a = n._makerBmpNetLoader.content;
			n._background && a && (n._background.setMarkBmd(a, n.mapData.mapWidth, n.mapData.mapHeight), n._backgroundBmd = a)
		}
		var o = "";
		App.global.characterData && (o = App.global.characterData.name);
		var r = new Date,
			s = r.getTime() - e.getTime();
		WebParams.sendWebLog(LogType.CHANGE_MAP_LOAD_USE_TIME, "地图缩略图加载耗时:" + s);
		var o = "";
		App.global.characterData && (o = App.global.characterData.name), WebParams.setLoadLog(!0, o, "地图马赛克缩略图加载完成:, url: " +
				i, "开始时间：", WebParams.getDateTime(e), "结束时间：", WebParams.getDateTime(r), "用时: ", s, "毫秒"), n.clearOldClips(), n._callBack
			.exec();
		var h = ResPathUtil.getMapDataEffectConfig(t);
		n._effectBytesNetLoader = n.createNetLoader(NetResourceType.MAP_BINARY, new FunctionVO(n.onMapEffectDataHandler, n,
			t, new Date, h), new FunctionVO(n.onLoadError, n, h, new Date)), n._effectBytesNetLoader.url = h, App.timer.doTimeOnce(
			n, 3e3, n.playMusic), WebParams.setLoadLog(!1, o, "开始加载地图装饰特效配置资源" + h)
	}, e.prototype.onMapEffectDataHandler = function(t, e, i) {
		var n = this;
		if (n._effectBytesNetLoader) var a = n._effectBytesNetLoader.content;
		if (t == n._mapResId && a) {
			var o = new Date,
				r = o.getTime() - e.getTime();
			WebParams.sendWebLog(LogType.CHANGE_MAP_LOAD_USE_TIME, "地图缩略图加载耗时:" + r);
			var s = "";
			App.global.characterData && (s = App.global.characterData.name), WebParams.setLoadLog(!0, s, "地图装饰特效加载完成:, url: " +
				i, "大小:", a.length, "开始时间：", WebParams.getDateTime(e), "结束时间：", WebParams.getDateTime(o), "用时: ", r, "毫秒");
			try {
				var h = StringUtil.JsonParse(a);
				n._mapData.mapEffectList = h.effects
			} catch (l) {}
		}
	}, e.prototype.createNetLoader = function(t, e, i) {
		var n = new h5_engine.NetLoader;
		return n.netHandler.addCompleteHandler(this, e), n.netHandler.addErrorHandler(this, i), n.resType = t, n
	}, e.prototype.playMusic = function() {
		var t = this._mapBean.q_music;
		App.sound.playBgm(t)
	}, e.prototype.onShowGrid2 = function() {
		var t = this;
		t.mapData && (t._isShowBackgrid = !t._isShowBackgrid, t._isShowBackgrid ? t._background.drawNodes(t.mapData) : t._background
			.clearNodes())
	}, Object.defineProperty(e.prototype, "mapData", {
		get: function() {
			return this._mapData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.loadClips = function(t) {
		var e = this;
		if (null != t && !e._mapOldClipHash)
			for (var i = t.length / 2 >> 0, n = t.length - i, a = 0; i >= a; a++) {
				var o = t[n - a];
				o && (e.loadMapClip(o), egret.Point.release(o)), o != t[n + a] && (o = t[n + a], o && (e.loadMapClip(o), egret.Point
					.release(o)))
			}
	}, e.prototype.loadMapClip = function(t) {
		var e = this,
			i = e._mapClipHash,
			n = e._mapData.tileArray;
		if (n[t.y] && n[t.y][t.x]) {
			var a = n[t.y][t.x];
			if (!i[a]) {
				var o = ResPathUtil.getMapTileClip(e._mapResId, a),
					r = t.x * h5_engine.MapConfig.MAP_CLIP_IMAGE_WIDTH,
					s = t.y * h5_engine.MapConfig.MAP_CLIP_IMAGE_HEIGHT,
					h = App.thing.create(MapClipImage, "MapLoaderModel", !0);
				h.x = r, h.y = s, h.url = o, e._background.setMapClip(r, s, h), i[a] = h
			}
		}
	}, e.prototype.clearClips = function(t, e) {
		var i = this,
			n = t - h5_engine.MapConfig.MAP_CLIP_IMAGE_WIDTH,
			a = t + h5_engine.MapConfig.MAP_SCREEN_WIDTH + h5_engine.MapConfig.MAP_CLIP_IMAGE_WIDTH,
			o = e - h5_engine.MapConfig.MAP_CLIP_IMAGE_HEIGHT,
			r = e + h5_engine.MapConfig.MAP_SCREEN_HEIGHT + h5_engine.MapConfig.MAP_CLIP_IMAGE_HEIGHT,
			s = i._mapClipHash;
		for (var h in s) {
			var l = s[h];
			(l.x < n || l.x > a || l.y < o || l.y > r) && (i._background.deleteMapClip(l), l.dispose(), delete s[h])
		}
	}, e.prototype.clearOldClips = function() {
		var t = this;
		if (t._mapOldClipHash) {
			var e = t._mapOldClipHash;
			for (var i in e) {
				var n = e[i];
				t._background.deleteMapClip(n), n.dispose()
			}
			t._mapOldClipHash = null
		}
	}, e.prototype.clear = function() {
		var t = this;
		t._mpBytesNetLoader && (t._mpBytesNetLoader.dispose(), t._mpBytesNetLoader = null), t._makerBmpNetLoader && (t._makerBmpNetLoader
				.dispose(), t._makerBmpNetLoader = null, t._background.setMarkBmd(null, 0, 0)), t._effectBytesNetLoader && (t._effectBytesNetLoader
				.dispose(), t._effectBytesNetLoader = null), t._mapDataObject = null, t._mapData && t._mapData.dispose(), t._mapData =
			null, t._callBack = null, t._mapClipHash = {}
	}, e
}(Dispose);
__reflect(MapLoaderModel.prototype, "MapLoaderModel");
var RoleListView = function(t) {
	function e(e) {
		void 0 === e && (e = !0);
		var i = t.call(this) || this;
		return i._self = !0, i._self = e, i.initView(), i.initData(), i
	}
	return __extends(e, t), e.prototype.initView = function() {
		this.touchEnabled = !0, this._gridGroup = new eui.Group, this.bg = new eui.Image, this.bg.x = -81, this.bg.y = -4,
			this.addChild(this.bg), this.addChild(this._gridGroup), this._self && (App.dispatcher.addEventListener(EventType.CHARACTER_ROLE_CREATE,
				this.onRoleChange, this), App.dispatcher.addEventListener(EventType.ROLE_LIST_CHANGE, this.onRoleChange, this))
	}, e.prototype.initData = function() {
		this.bg.source = "common1_icon_156_png", this._gridHash = new HashObject;
		for (var t, e = 1, i = 0; 3 > i; i++) t = new RoleGrid, t.x = 104 * i, t.y = -2, t.roleIndex = e, this._gridHash.put(
			e, t), this._gridGroup.addChild(t), e++;
		this._gridGroup.x = -10, this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSelect, this), this._self && App.dispatcher
			.addEventListener(EventType.SHOW_REDPOINT, this.showPoint, this)
	}, e.prototype.showPoint = function(t) {
		if (this.functionid == t)
			for (var e, i = 1; 3 >= i; i++) e = this._gridHash.get(i), e && e.roleData ? e.state = App.global.redPoint.getRoleListShowPoint(
				i, this.functionid) : e && (2 == i ? e.state = App.global.characterData.vipLevel >= 2 || App.global.characterData
				.level >= 80 ? !0 : !1 : e.state = App.global.characterData.vipLevel >= 4 || App.global.characterData.zhuanSheng >=
				4 ? !0 : !1)
	}, e.prototype.onSelect = function(t) {
		egret.is(t.target, "RoleGrid") && this.changeSelect(t.target)
	}, e.prototype.onRoleChange = function(t) {
		void 0 === t && (t = -1);
		var e = this._gridHash.get(t);
		e && (e.roleIndex = t), this.showPoint(this.functionid)
	}, Object.defineProperty(e.prototype, "selectIndex", {
		set: function(t) {
			var e = this._gridHash.get(t);
			e && this.changeSelect(e)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getRoleData = function() {
		return this._lastSelectedGrid ? this._lastSelectedGrid.roleData : App.global.characterData
	}, e.prototype.changeSelect = function(t) {
		this._lastSelectedGrid != t && (t.roleData ? (t.selected = !0, this._lastSelectedGrid && (this._lastSelectedGrid.selected = !
				1), this._lastSelectedGrid = t, this._self && (App.global.characterData.selectindex = t.roleIndex, this.dispatchEvent(
				new GameEvent(e.ROLE_SELECT, t.roleData)), App.dispatcher.dispatchEvent(e.ROLE_SELECT2, t.roleData))) : this._self &&
			PanelOpenManager.openPanel(20))
	}, e.prototype.reset = function() {
		this._lastSelectedGrid && (this._lastSelectedGrid.selected = !1), this._lastSelectedGrid = void 0
	}, e.prototype.destroy = function() {
		App.dispatcher.removeEventListener(EventType.CHARACTER_ROLE_CREATE, this.onRoleChange, this), App.dispatcher.removeEventListener(
			EventType.ROLE_LIST_CHANGE, this.onRoleChange, this), this._lastSelectedGrid = void 0, this._gridHash.forInValExcFucName(
			"destroy")
	}, e.ROLE_SELECT = "role_select", e.ROLE_SELECT2 = "role_select2", e
}(eui.Group);
__reflect(RoleListView.prototype, "RoleListView");
var MapMoveModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i._acw2cwObj = {
			aFuc: new FunctionVO(i.neighborDirectACW, i),
			bFuc: new FunctionVO(i.neighborDirectCW, i)
		}, i._cw2acwFucObj = {
			aFuc: new FunctionVO(i.neighborDirectCW, i),
			bFuc: new FunctionVO(i.neighborDirectACW, i)
		};
		var n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		var t = this;
		t._mapSearchManager = new MapRoadSearch;
		var e = App.config.q_transferContainer.list;
		t._mapSearchManager.setMapData(e)
	}, Object.defineProperty(e.prototype, "mapSearchManager", {
		get: function() {
			return this._mapSearchManager
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.searchRoadToMap = function(t, e, i, n) {
		var a = this;
		if (0 == t.isCanMove) return a._mapSearchManager;
		a._mapSearchManager.clear(), a._mapSearchManager.setStartPoint(t.mapId.toString(), egret.Point.create(t.move_to_x,
			t.move_to_y)), a._mapSearchManager.setEndPoint(e.toString(), egret.Point.create(i, n));
		var o = a._mapSearchManager.startSearch();
		return o ? a.checkJumpSearch() : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">没有路径能直接去往此地图</font>"), a._mapSearchManager
	}, e.prototype.checkJumpSearch = function() {
		var t = this;
		if (1 == t._mapSearchManager.isJumpMap && App.global.enterMapIng) {
			var e = t._mapSearchManager.getNextPoint();
			if (e) {
				var i = t._mapSearchManager.params,
					n = t._mapSearchManager.isLastPoint();
				if (i && n) egret.is(i, "TaskConditionData") && App.dispatcher.dispatchEvent(TaskEvent.TASK_CLICK, i);
				else {
					var a = e.p;
					if (-1 != a.x && -1 != a.y) {
						var o = a.x * h5_engine.MapConfig.MAP_NODE_WIDTH,
							r = a.y * h5_engine.MapConfig.MAP_NODE_HEIGHT,
							s = SearchToPointVO.getVO();
						n && (o = a.x, r = a.y, s.finishHandler = new FunctionVO(t._mapSearchManager.clear, t._mapSearchManager)), s.search(
							App.global.characterData, o, r, "checkJumpSearch")
					}
				}
			}
		}
	}, e.prototype.moveToPoint = function(t, e, i, n, a) {
		var o = this;
		if (o.mapSearchManager.clear(), null == t || null == o._mapModule.mapLoader.mapData) return !1;
		if (t.changeAutoSearchRoad(!1), t.searchToPointVo = null, t.isJumping) return !1;
		if (e == t.pixel_x && i == t.pixel_y) return GameLog.log("roleData, pixel 相同"), !1;
		if (e == t.move_to_x && i == t.move_to_y) return GameLog.log("roleData.move_to  相同"), !1;
		if (0 == t.isCanMove) return GameLog.log("roleData.isCanMove: ", t.isCanMove), !1;
		var r = App.global.mapModule.mapLoader.mapData.getNodeByXY(t.move_to_x, t.move_to_y),
			s = h5_engine.SceneType.getDretion(t.move_to_x, t.move_to_y, e, i),
			h = 1,
			l = o.getEndNodeStepObj(r, s, h);
		if (l.end && l.step > 0) return o.startMove(r, t, l, s, "moveToPoint - getEndNodeStepObj");
		var p = o.getNodeByDir(r, t.faceDir, 1),
			c = o.getDirFuns(e, i, r, p),
			_ = c.aFuc.exec(t, r, s, h);
		return _ ? _ : c.bFuc.exec(t, r, s, h)
	}, e.prototype.getDirFuns = function(t, e, i, n) {
		var a = this;
		if (i && n) {
			var o = MathUnit.getPointDirInLine(t, e, i.pixelPoint.x, i.pixelPoint.y, n.pixelPoint.x, n.pixelPoint.y);
			if (-1 == o) return a._acw2cwObj
		}
		return a._cw2acwFucObj
	}, e.prototype.startMove = function(t, e, i, n, a) {
		var o = i.end,
			r = i.step;
		if (o && r > 0) {
			var s = this.makeMoveAction(n, r, o);
			return e.actionList.setNext(s), !0
		}
		return !1
	}, e.prototype.getEndNodeStepObj = function(t, e, i) {
		for (var n, a, o = 0, r = this; i > o;) {
			if (o++, a = r.getNodeByDir(t, e, o), null == a) {
				o--;
				break
			}
			if (!a.walkAble || !a.roleBlock) {
				o--;
				break
			}
			n = a
		}
		return {
			end: n,
			step: o
		}
	}, e.prototype.checkMonsterCountByRangeLimit = function(t, e) {
		var i = this;
		if (null == i._mapModule.mapLoader.mapData || null == t) return null;
		for (var n, a = 0, o = 1; e >= o; o++)
			for (var r = -o; o >= r; r++)
				for (var s = -o; o >= s; s++) n = i._mapModule.mapLoader.mapData.getNode(t.x + r, t.y - s), a += i._mapModule.mapAvatarModel
					.getNodeRoleCount(n);
		return a
	}, e.prototype.getAroundEmptyInTheNodeByRangeLimit = function(t, e) {
		var i = this;
		if (null == i._mapModule.mapLoader.mapData || null == t) return null;
		for (var n, a, o = 1; e >= o; o++)
			for (var r = -o; o >= r; r++)
				for (var s = -o; o >= s; s++)
					if (a = i._mapModule.mapLoader.mapData.getNode(t.x + r, t.y - s), a && a.walkAble && a.roleBlock) return a.pixelPoint
						.clone();
		return n
	}, e.prototype.checkAroundEmptyInTheNode = function(t, e) {
		void 0 === e && (e = 1);
		for (var i = this, n = 0; 7 >= n; n++) {
			var a = n,
				o = i.getNodeByDir(t, a, e);
			if (o && o.walkAble && o.roleBlock) return !0
		}
		return !1
	}, e.prototype.getAroundNodeInTheNode = function(t, e, i, n) {
		var a = this,
			o = a.getNodeByDir(t, e, i);
		if (!o.walkAble || !o.roleBlock) {
			o = null;
			for (var r = [], s = 1; 7 >= s; s++) {
				var h = e + s,
					l = h > 7 ? 0 : h;
				if (o = a.getNodeByDir(t, l, i), o && o.walkAble && o.roleBlock) {
					if (1 == i) return o;
					r.push(o)
				}
			}
			for (var p = Number.MAX_VALUE, c = r.length, _ = a._mapModule.mapLoader.mapData.getNodeByXY(n.move_to_x, n.move_to_y),
					d = 0; c > d; d++) {
				var u = r[d];
				a._mapModule.mapLoader.mapData.startNode = _, a._mapModule.mapLoader.mapData.endNode = u;
				var g = h5_engine.Astart.findPath(a._mapModule.mapLoader.mapData);
				g && g.length < p && (o = u)
			}
		}
		return o
	}, e.prototype.getNodeByDir = function(t, e, i) {
		void 0 === i && (i = 1);
		var n = this;
		if (!t) return null;
		var a;
		switch (e) {
			case h5_engine.SceneType.TOP:
				a = n._mapModule.mapLoader.mapData.getNode(t.x, t.y - i);
				break;
			case h5_engine.SceneType.RIGHTTOP:
				a = n._mapModule.mapLoader.mapData.getNode(t.x + i, t.y - i);
				break;
			case h5_engine.SceneType.RIGHT:
				a = n._mapModule.mapLoader.mapData.getNode(t.x + i, t.y);
				break;
			case h5_engine.SceneType.RIGHTBOTTOM:
				a = n._mapModule.mapLoader.mapData.getNode(t.x + i, t.y + i);
				break;
			case h5_engine.SceneType.BOTTOM:
				a = n._mapModule.mapLoader.mapData.getNode(t.x, t.y + i);
				break;
			case h5_engine.SceneType.LEFTBOTTOM:
				a = n._mapModule.mapLoader.mapData.getNode(t.x - i, t.y + i);
				break;
			case h5_engine.SceneType.LEFT:
				a = n._mapModule.mapLoader.mapData.getNode(t.x - i, t.y);
				break;
			case h5_engine.SceneType.LEFTTOP:
				a = n._mapModule.mapLoader.mapData.getNode(t.x - i, t.y - i)
		}
		return a
	}, e.prototype.neighborDirectCW = function(t, e, i, n, a) {
		void 0 === a && (a = 2);
		for (var o = this, r = 0; a > r; r++) {
			var s = i + 1;
			i = s > 7 ? 0 : s;
			var h = o.getEndNodeStepObj(e, i, n);
			if (h.end && h.step > 0) return o.startMove(e, t, h, i, "moveToPoint - neighborDirectACW")
		}
		return !1
	}, e.prototype.neighborDirectACW = function(t, e, i, n, a) {
		void 0 === a && (a = 2);
		for (var o = this, r = 0; a > r; r++) {
			var s = i - 1;
			i = 0 > s ? 7 : s;
			var h = o.getEndNodeStepObj(e, i, n);
			if (h.end && h.step > 0) return o.startMove(e, t, h, i, "moveToPoint - neighborDirectACW")
		}
		return !1
	}, e.prototype.searchRoadByAstar = function(t) {
		var e = this;
		if (null == t.roleData && GameLog.log(1), t.roleData.searchToPointVo = t, t.searchCount++, t.checkSearchMax())
			return null;
		if (t.roleData && t.roleData && (t.roleData.getIsDead() || t.roleData.isJumping)) return null;
		if (null == e._mapModule.mapLoader.mapData) return null;
		if (0 == t.roleData.isCanMove) return null;
		var i = e._mapModule.mapLoader.mapData.getNodeByXY(t.px, t.py),
			n = e._mapModule.mapLoader.mapData.getNodeByXY(t.roleData.move_to_x, t.roleData.move_to_y);
		if (null == i) return null;
		if (t.px == t.roleData.pixel_x && t.py == t.roleData.pixel_y) return null;
		if (null == n || 0 == n.walkAble) return null;
		if (0 == e.checkAroundEmptyInTheNode(n)) return null;
		var a = t.shift;
		if (null == i || 0 == i.walkAble || 0 == i.roleBlock) {
			if (!t.isNearestPoint) return null;
			for (var o = 0, r = 0; i && (0 == i.walkAble || 0 == i.roleBlock) && i != n;) o = n.x > i.x ? 1 : n.x < i.x ? -1 :
				0, r = n.y > i.y ? 1 : n.y < i.y ? -1 : 0, i = e._mapModule.mapLoader.mapData.getNode(i.x + o, i.y + r), a--
		}
		if (n == i) return null;
		e._mapModule.mapLoader.mapData.startNode = n, e._mapModule.mapLoader.mapData.endNode = i;
		var s = h5_engine.Astart.findPath(e._mapModule.mapLoader.mapData);
		if (s) {
			for (s.reverse(); a > 0;) s.pop(), a--;
			var h = e.getStepActions(s);
			if (h && h.length > 0) {
				var l = h.length;
				if (null != t.stepHandler)
					for (var p = 0; l > p; p++) h[p].callBack = t.stepHandler;
				null != t.finishHandler && (h[l - 1].callBack = t.finishHandler)
			}
		}
		return h
	}, e.prototype.getStepActions = function(t) {
		var e = this;
		if (t) {
			var i = new Array;
			if (t.length > 1)
				for (var n = t.length, a = 0; n > a;) {
					var o = 1,
						r = t[a + 1];
					if (null == r) break;
					i.push(e.makeMoveAction(-1, 1, r)), a += o
				}
		}
		return i
	}, e.prototype.getTurnStepNode = function(t) {
		var e = this;
		if (t) {
			var i = new Array;
			if (1 == t.length) i.push(e.makeMoveAction(-1, 1, t[0]));
			else if (t.length > 1)
				for (var n = t.length, a = 0; n > a;) {
					var o = 1,
						r = t[a],
						s = t[a + 1],
						h = t[a + 2];
					if (null == s) break;
					var l = h5_engine.SceneType.getDretion(r.x, r.y, s.x, s.y);
					if (!h) {
						i.push(e.makeMoveAction(-1, 1, s));
						break
					}
					var p = h5_engine.SceneType.getDretion(s.x, s.y, h.x, h.y);
					l == p ? (i.push(e.makeMoveAction(-1, 2, h)), o = 2) : i.push(e.makeMoveAction(-1, 1, s)), a += o
				}
		}
		return i
	}, e.prototype.makeMoveAction = function(t, e, i) {
		var n = MoveAction.getOne("getTurnStepNode");
		return n.faceDirection = t, n.endNode = i, n.step = e, n
	}, e.prototype.addMapClickEffect = function(t, e) {
		EffectUtils.showOnceEffect("MapMoveModel - addMapClickEffect", this._mapModule.secne.groundMagic, ResPathUtil.getMenuEffect(
			"dianji", "dianji"), t, e)
	}, e.prototype.addMapFootPrintEffect = function(t, e, i) {
		EffectUtils.showOnceEffect("MapMoveModel - addMapFootPrintEffect", this._mapModule.secne.groundMagic, t, e, i)
	}, e.prototype.flyTo = function(t, e, i, n, a) {
		if (t && e && i) {
			var o = new JumpAction(this._mapModule),
				r = this._mapModule.mapEffectModel.creatEffect(ResPathUtil.getMapEffect("jindouyun.json"), t.pixelPoint.x, t.pixelPoint
					.y);
			return o.initJumpFlyData(t, e, i, r), o.reason = n, o.moveToNode = a, o
		}
		return null
	}, e.prototype.flyOutOrInTo = function(t, e, i, n, a) {
		if (t && e) {
			var o = new JumpOutOrInAction(this._mapModule),
				r = this._mapModule.mapEffectModel.creatEffect(ResPathUtil.getMapEffect("jindouyun.json"), t.x, t.y);
			return o.initJumpFlyData(t, e, r, a), o.reason = i, o.endHandler = n, App.global.characterData.pixel_x = t.x, App.global
				.characterData.pixel_y = t.y, o
		}
		return null
	}, e.prototype.jumpTo = function(t, e, i) {
		if (void 0 === e && (e = 0), void 0 === i && (i = null), t) {
			var n = new JumpAction(this._mapModule);
			return n.initJumpData(t), n.reason = e, n.moveToNode = i, n
		}
		return null
	}, e.prototype.clear = function() {}, e
}(Dispose);
__reflect(MapMoveModel.prototype, "MapMoveModel");
var MapQuickSelectModel = function() {
	function t(t) {
		this._mapModule = t
	}
	return t.prototype.isSameGroup = function(t, e) {
		return null == t || null == e ? !0 : 0 == (t.group & e.group) ? !1 : t.group == e.group
	}, t.prototype.checkIsEnemy = function(t, e) {
		var i = this,
			n = i._mapModule.mapAvatarModel.getFightRoleData(t);
		if (n) {
			if (n instanceof MapMonsterRoleData) return !i.isSameGroup(n, e);
			var a;
			if (n instanceof MapPetRoleData) a = i._mapModule.mapAvatarModel.getPlayerOrCharacterData(n.ownerId);
			else if (n instanceof MapPlayerPartnerRoleData) a = i._mapModule.mapAvatarModel.getPlayerOrCharacterData(n.ownerId);
			else {
				if (n instanceof CharcterPartnerRoleData) return !1;
				a = n
			}
			var o = !1;
			switch (e.pkState) {
				case EnumPKState.PKMODEL_PEACEMODE:
					o = !1;
					break;
				case EnumPKState.PKMODEL_TEAMMODE:
					o = a ? Boolean(a.getTeamId() != e.getTeamId()) : Boolean(n.getTeamId() != e.getTeamId());
					break;
				case EnumPKState.PKMODEL_GUILDMODE:
					o = a ? Boolean(a.guildId != e.guildId) : Boolean(n.guildId != e.guildId);
					break;
				case EnumPKState.PKMODEL_GOODANDEVILMODE:
					!a || a.pkswordState != EnumPKState.PKSWORD_GREY && a.pkswordState != EnumPKState.PKSWORD_RED || (o = !0);
					break;
				case EnumPKState.PKMODEL_ALLTHEMODE:
					o = !0;
					break;
				case EnumPKState.PKMODEL_COUNTRY:
					o = a ? Boolean(a.nation != e.nation) : Boolean(n.nation != e.nation);
					break;
				case EnumPKState.PKMODEL_GROUP:
					o = a ? !i.isSameGroup(e, a) : !i.isSameGroup(e, n);
					break;
				case EnumPKState.PKMODEL_SELECT:
					o = !0
			}
			return o
		}
		return !1
	}, t
}();
__reflect(MapQuickSelectModel.prototype, "MapQuickSelectModel");
var MapMouseModel_Mobile = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		return i._checkMouseLastTime = 0, i
	}
	return __extends(e, t), e.prototype.addMapMouseListen = function() {
		0 == this._isCanUseMouse && (this._isCanUseMouse = !0, this._rocker || (this._rocker = new VirtualRocker_v1, this._rocker
			.start(this._mapModule.secne), App.dispatcher.addEventListener(VirtualRockerEvent.MOVE, this.rockerMoveHandler,
				this)))
	}, e.prototype.removeMapMouseListen = function() {
		this._isCanUseMouse = !1
	}, e.prototype.onMapLeftMouseDown = function(e) {
		t.prototype.onMapLeftMouseDown.call(this, e), this._touchStagePoint.setTo(e.stageX, e.stageY), App.global.characterData &&
			App.global.characterData.isGather && App.global.characterData.setGatherState(!1)
	}, e.prototype.onMapLeftMouseUp = function(e) {
		var i = this;
		if (0 != this._isCanUseMouse && null != this._mapModule.mapLoader.mapData && this._touchStagePoint.x == e.stageX &&
			this._touchStagePoint.y == e.stageY && (this._touchStagePoint.x != e.stageX || this._touchStagePoint.y != e.stageY ||
				!this._rocker.getIsMove())) {
			var n = !1;
			if (i.onCheckMouseTargetUnit(e.stageX, e.stageY), App.global.mouseUnit && App.global.mouseUnit != i._controlRoleData
				.roleView && (App.global.mouseUnit.mouseDown(), n = !0), 0 == n)
				if (0 == App.keyBoard.isKeyDown(Keyboard.SHIFT)) {
					var a = e.stageX + i._mapModule.mapSceneModel.screen.x,
						o = e.stageY + i._mapModule.mapSceneModel.screen.y;
					i._mouseScenePoint.setTo(a, o);
					var r = i._mapModule.mapLoader.mapData.getNodeByXY(a, o);
					if (r) {
						var s = r.pixelPoint;
						0 == i._mapModule.mapItemModel.checkDropItemInNodeAndTake(s.x, s.y) && i.onAstartMapClick(s.x, s.y)
					}
				} else i._controlRoleData.operation.onShiftClickMap();
			t.prototype.onMapLeftMouseUp.call(this, e)
		}
	}, e.prototype.onAstartMapClick = function(t, e) {
		var i = SearchToPointVO.getVO();
		i.search(this._controlRoleData, t, e, "MapMouseModel_Mobile") && this._controlRoleData.ai.reset(), this.checkMouseEffect(
			0)
	}, e.prototype.rockerMoveHandler = function(t) {
		void 0 === t && (t = !1);
		var e = this,
			i = egret.getTimer(),
			n = i - e._checkMouseLastTime,
			a = !1;
		if ((n >= MapMouseModel.MAP_CLICK_GAP_TIME || t) && (this._checkMouseLastTime = i, e._isCanUseMouse && e._rocker)) {
			var o = e._rocker.getDir();
			if (-1 != o) {
				var r = e._rocker.getAngle(),
					s = 2 * h5_engine.MapConfig.MAP_NODE_WIDTH,
					h = e._controlRoleData.move_to_x + s * Math.cos(r),
					l = e._controlRoleData.move_to_y + s * Math.sin(r);
				e._mouseScenePoint.setTo(h, l), a = e._mapModule.mapMoveModel.moveToPoint(e._controlRoleData, e._mouseScenePoint.x,
					e._mouseScenePoint.y, e._isLeftMouseDown, e._isRightMouseDown), a && e._controlRoleData.ai.reset(), this.checkMouseEffect(
					0)
			}
		}
		return a
	}, e.prototype.onCheckMouseTargetUnit = function(t, e) {
		var i = this;
		if (i._mapModule.mapLoader.mapData) {
			var n = t + i._mapModule.mapSceneModel.screen.x,
				a = e + i._mapModule.mapSceneModel.screen.y,
				o = i._mapModule.mapLoader.mapData.getNodeByXY(n, a);
			App.global.mouseCrtNode = o;
			var r, s = i._mapModule.secne.avatarLayer.$hitTest(t, e);
			if (s && (r = s.father), App.global.mouseUnit != r) {
				if (null != App.global.mouseUnit) {
					var h = App.global.mouseUnit;
					App.global.mouseUnit = null, h.mouseOut()
				}
				App.global.mouseUnit = r, null != App.global.mouseUnit && App.global.mouseUnit.mouseOver()
			}
		}
	}, e.prototype.checkMouseDownMap = function(t) {
		void 0 === t && (t = !1);
		var e = this;
		return e._isCanUseMouse ? (e._controlRoleData.operation.clearAuto(), this.rockerMoveHandler(!0)) : (GameLog.log(
			"onMapClick - _isCanUseMouse", e._isCanUseMouse), this.isMouseDown)
	}, e
}(MapMouseModel);
__reflect(MapMouseModel_Mobile.prototype, "MapMouseModel_Mobile");
var MapMouseModel_PC = function(t) {
	function e(e) {
		var i = t.call(this, e) || this;
		return i._onMouseDoubleDownDelay = 0, i._checkMouseLastTime = 0, i
	}
	return __extends(e, t), e.prototype.onStageResize = function() {
		t.prototype.onStageResize.call(this), this._isCanUseMouse && this._mapModule.secne.addEventListener(egret.TouchEvent
			.TOUCH_BEGIN, this.onMapLeftMouseDown, this)
	}, e.prototype.addMapMouseListen = function() {
		var t = this;
		0 == t._isCanUseMouse && (t._isCanUseMouse = !0, App.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE, t.onToucheStagePoint,
			t), Config.isMobile ? App.timer.doTimeLoop(t, 30, t.onCheckMouseTarget_mobile) : (App.timer.doTimeLoop(t, 30, t.onCheckMouseTarget_pc),
			mouse.setMouseMoveEnabled(!0), App.stage.addEventListener(mouse.MouseEvent.MOUSE_MOVE, t.onToucheStagePoint, t)))
	}, e.prototype.removeMapMouseListen = function() {
		var t = this;
		t._isCanUseMouse = !1, App.stage.removeEventListener(egret.TouchEvent.TOUCH_MOVE, t.onToucheStagePoint, t), App.timer
			.clearTimer(t.checkMouseDownMap, t), Config.isMobile ? App.timer.clearTimer(t.onCheckMouseTarget_mobile, t) : App.timer
			.clearTimer(t.onCheckMouseTarget_pc, t)
	}, e.prototype.onToucheStagePoint = function(t) {
		var e = this;
		Config.isMobile ? e.isMouseDown && e._touchStagePoint.setTo(t.stageX, t.stageY) : e._touchStagePoint.setTo(t.stageX,
			t.stageY)
	}, e.prototype.onMapLeftMouseDown = function(t) {
		var e = this;
		if (GameLog.log("_isCanUseMouse: ", e._isCanUseMouse), e._isLeftMouseDown = !0, 0 != e._isCanUseMouse && null != e._mapModule
			.mapLoader.mapData) {
			App.global.characterData && App.global.characterData.isGather && App.global.characterData.setGatherState(!1);
			var i = egret.getTimer();
			if (i - e._onMouseDoubleDownDelay < 300);
			else e._onMouseDoubleDownDelay = i;
			e._touchStagePoint.setTo(t.stageX, t.stageY);
			var n = !1;
			if (e.onCheckMouseTarget_pc(), App.global.mouseUnit && App.global.mouseUnit != e._controlRoleData.roleView && (App
					.global.mouseUnit.mouseDown(), n = !0), 0 == n)
				if (0 == App.keyBoard.isKeyDown(Keyboard.SHIFT)) {
					var a = e._mapModule.mapLoader.mapData.getNodeByXY(e._mouseScenePoint.x, e._mouseScenePoint.y);
					if (a) {
						var o = a.pixelPoint;
						0 == e._mapModule.mapItemModel.checkDropItemInNodeAndTake(o.x, o.y) && e.onMapClick()
					}
				} else e._controlRoleData.operation.onShiftClickMap()
		}
	}, e.prototype.checkMouseDownMap = function(t) {
		void 0 === t && (t = !1);
		var e = this;
		if (e.isMouseDown) {
			if (App.keyBoard.isKeyDown(Keyboard.SHIFT) && e._isLeftMouseDown) {
				var i = e._controlRoleData.operation.onShiftClickMap();
				return App.timer.doTimeLoop(e, MapMouseModel.MAP_CLICK_GAP_TIME, e.checkMouseDownMap), i
			}
			if (t) return e.onMapClick();
			var n = egret.getTimer(),
				a = n - e._checkMouseLastTime;
			if (a >= MapMouseModel.MAP_CLICK_GAP_TIME) return e._checkMouseLastTime = n, e.onMapClick();
			GameLog.log("鼠标的触发间隔时间未到" + a), e.checkMouseDownMap()
		} else App.timer.clearTimer(e.checkMouseDownMap, e);
		return e.isMouseDown
	}, e.prototype.onMapClick = function() {
		var t = this;
		if (t._isCanUseMouse) {
			t._controlRoleData.operation.clearAuto();
			var e = t._mapModule.mapMoveModel.moveToPoint(t._controlRoleData, t._mouseScenePoint.x, t._mouseScenePoint.y, t._isLeftMouseDown,
				t._isRightMouseDown);
			e ? (App.timer.clearTimer(t.checkMouseDownMap, t), t._controlRoleData.ai.reset()) : App.timer.doTimeLoop(t,
				MapMouseModel.MAP_CLICK_GAP_TIME, t.checkMouseDownMap)
		} else GameLog.log("onMapClick - _isCanUseMouse", t._isCanUseMouse);
		return e
	}, e.prototype.onCheckMouseTarget_mobile = function() {
		var t = this;
		if (t.isMouseDown) {
			var e = t._touchStagePoint.x + t._mapModule.mapSceneModel.screen.x,
				i = t._touchStagePoint.y + t._mapModule.mapSceneModel.screen.y;
			t._mouseScenePoint.setTo(e, i)
		}
		this.checkMouseEffect()
	}, e.prototype.onCheckMouseTarget_pc = function() {
		var t = this,
			e = t._touchStagePoint.x + t._mapModule.mapSceneModel.screen.x,
			i = t._touchStagePoint.y + t._mapModule.mapSceneModel.screen.y;
		if (t._mouseScenePoint.setTo(e, i), t._mapModule.mapLoader.mapData) {
			var n = t._mapModule.mapLoader.mapData.getNodeByXY(e, i);
			App.global.mouseCrtNode = n;
			var a, o = t._mapModule.secne.avatarLayer.$hitTest(t._touchStagePoint.x, t._touchStagePoint.y);
			if (o && (a = o.father), App.global.mouseUnit != a) {
				if (null != App.global.mouseUnit) {
					var r = App.global.mouseUnit;
					App.global.mouseUnit = null, r.mouseOut()
				}
				App.global.mouseUnit = a, null != App.global.mouseUnit && App.global.mouseUnit.mouseOver()
			}
			this.checkMouseEffect(120)
		}
	}, e
}(MapMouseModel);
__reflect(MapMouseModel_PC.prototype, "MapMouseModel_PC");
var MapAcceptCommandCoprocessor = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.StoryZoneHandler = function(t) {
			10001 == t.mapId ? (App.layer.mainLayer.visible = !1, App.layer.moduleLayer.visible = !1) : (App.layer.mainLayer.visible = !
				0, App.layer.moduleLayer.visible = !0)
		}, i._initPreLoad = !1, i._mapModule = e, i
	}
	return __extends(e, t), e.prototype.initialize = function() {
			var t = this;
			t.register(5210, t.onS2C_PlayerAttributeChangeMessageHandler), t.register(5133, t.onS2C_MyPlayerInfoMessageHandler),
				t.register(5024, t.onS2C_EnterMapMessageHandler), t.register(5069, t.onS2C_ChangePKStateMessageHandler), t.register(
					5218, t.onS2C_ChangeMapMessageHandler), t.register(5299, t.onS2C_BackCityPosChangeMessageHandler), t.register(5e3,
					t.onS2C_EffectChangeMessageHandler), t.register(5086, t.onS2C_ShowGroupChangedMessageHandler), t.register(5135, t
					.onS2C_PickupItemMessageHandler), t.register(5278, t.onS2C_RoundObjectsMessageHandler), t.register(5092, t.onS2C_RoundPlayerMessageHandler),
				t.register(5279, t.onS2C_RoundPlayerDisappearMessageHandler), t.register(5297, t.onS2C_RoundMonsterMessageHandler),
				t.register(5035, t.onS2C_RoundGoodsMessageHandler), t.register(5007, t.onS2C_RoundNpcMessageHandler), t.register(
					5187, t.onS2C_RoundNpcDisappearMessageHandler), t.register(5228, t.onS2C_RoundMonsterDisappearMessageHandler), t.register(
					5244, t.onS2C_RoundGoodsDisappearMessageHandler), t.register(5209, t.onS2C_RoundMagicMessageHandler), t.register(
					5258, t.onS2C_RoundMagicDisappearMessageHandler), t.register(5286, t.onS2C_RoundPetMessageHandler), t.register(
					5315, t.onS2C_RoundPetDisappearMessageHandler), t.register(5137, t.onS2C_RoundEffectMessageHandler), t.register(
					5222, t.onS2C_RoundEffectDisappearMessageHandler), t.register(5204, t.onS2C_RoundPlayerNameChangeMessageHandler),
				t.register(5203, t.onS2C_FightBroadcastMessageHandler), t.register(5142, t.onS2C_FighterStateEndMessageHandler), t
				.register(5070, t.onS2C_ChangePositionMessageHandler), t.register(5089, t.onS2C_DisplacementPositionMessageHandler),
				t.register(5200, t.onS2C_AttackResultMessageHandler), t.register(5235, t.onS2C_FightFailedMessageHandler), t.register(
					5272, t.onS2C_NextActionIdMessageHandler), t.register(5190, t.onS2C_PkSwordChangeMessageHandler), t.register(5625,
					t.onS2C_ChangePositionByFlyMessage), t.register(5197, t.onS2C_MonsterSayBroadcastHandler), t.register(5003, t.onS2C_MonsterRunPositionsMessageHandler),
				t.register(5211, t.onS2C_MonsterStopMessageHandler), t.register(5057, t.onS2C_MonsterHpChangeBroadcastMessageHandler),
				t.register(5213, t.onS2C_MonsterMaxHpChangeBroadcastMessageHandler), t.register(5217, t.onS2C_MonsterDieBroadcastMessageHandler),
				t.register(5323, t.onS2C_MonsterReviveBroadcastMessageHandler), t.register(5361, t.onS2C_AutoStartStateMessageHandler),
				t.register(5071, t.onS2C_EquipChangeMessageHandler), t.register(5266, t.onS2C_PlayerAvatarMessageHandler), t.register(
					5050, t.onS2C_PlayerDieMessageHandler), t.register(5470, t.onS2C_MainPlayerDieMessageHandler), t.register(5194, t
					.onS2C_PlayerExpChangeMessageHandler), t.register(5087, t.onS2C_PlayerHpChangeMessageHandler), t.register(5324, t
					.onS2C_PlayerLevelUpMessageHandler), t.register(5045, t.onS2C_PlayerMaxHpChangeMessageHandler), t.register(5043,
					t.onS2C_PlayerMpChangeMessageHandler), t.register(5332, t.onS2C_PlayerMaxMpChangeMessageHandler), t.register(5017,
					t.onS2C_PlayerPrisonStateMessageHandler), t.register(5051, t.onS2C_ReviveSuccessMessageHandler), t.register(5313,
					t.onS2C_PlayerStopMessageHandler), t.register(5372, t.onS2C_RunPositionsMessageHandler), t.register(5328, t.onS2C_SetPositionHandler),
				t.register(5364, t.onS2C_CampGroupChangedMessageHandler), t.register(5121, t.onS2C_InsidePowerValChangeMessageHandler),
				t.register(5031, t.onS2C_MyInsidePowerMessageHandler), t.register(5314, t.onS2C_PlayerStateChangeMessageHandler),
				t.register(5063, t.onS2C_MyTencentInfoMessageHandler), t.register(5448, t.onS2C_ShowSerfaceBroadCastMessageHandler),
				t.register(5445, t.onS2C_HideSerfaceBroadCastMessageHandler), t.register(5447, t.onS2C_RemorveSerfaceMessageHandler),
				t.register(5443, t.onS2C_MySurfaceListMessageHandler), t.register(5444, t.onS2C_ChangeSurfaceMessageHandler), t.register(
					5446, t.onS2C_AddSurfaceMessageHandler), t.register(5524, t.onS2C_PlayerFollowerAbilityChangeMessageHandler), t.register(
					5052, t.onS2C_PetDieBroadcastMessageHandler), t.register(5186, t.onS2C_PetTranMoveMessageHandler), t.register(
					5208, t.onS2C_PetRunPositionsMessageHandler), t.register(5212, t.onS2C_PetStopMessageHandler), t.register(5040, t
					.onS2C_PetAttributeChangeMessageHandler), t.register(5090, t.onS2C_PetInfoChangeMessageHandler), t.register(5129,
					t.onS2C_PetDieMessageHandler), t.register(5123, t.onS2C_PetAddMessageHandler), t.register(5150, t.onS2C_S2C_PetRemorveMessage),
				t.register(5174, t.onS2C_PetListMessageHandler), t.register(5362, t.onS2C_AddBuffMessageHandler), t.register(5226,
					t.onS2C_BuffsMessageHandler), t.register(5246, t.onS2C_BuffInfoMessageHandler), t.register(5147, t.onS2C_ChangeBuffMessageHandler),
				t.register(5293, t.onS2C_RemoveBuffMessageHandler), t.register(5305, t.onS2C_TakeUpSuccessMessageHandler), t.register(
					5338, t.onS2C_BossOwnerChangedMessageHandler), t.register(5188, t.onS2C_StartGatherMessageHandler), t.register(
					5310, t.onS2C_StopGatherMessageHandler)
		}, e.prototype.onS2C_StartGatherMessageHandler = function(t) {
			var e = LongUtil.toString(t.personId),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && (i.setGatherState(!0), i instanceof CharacterRoleData && (App.global.characterData.setGatherState(!0), App.dispatcher
				.dispatchEvent(EventType.Gathering, !0, t.costtime)))
		}, e.prototype.onS2C_StopGatherMessageHandler = function(t) {
			var e = LongUtil.toString(t.personId),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && (i.setGatherState(!1), i instanceof CharacterRoleData && (App.global.characterData.setGatherState(!1), App.dispatcher
				.dispatchEvent(EventType.Gathering, !1, -1)))
		}, e.prototype.onS2C_ChangePKStateMessageHandler = function(t) {
			t.personId.toString() == App.global.characterData.personId && (App.global.characterData.pkState = t.pkState)
		}, e.prototype.onS2C_FightBroadcastMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getFightRoleData(i);
			if (null != n && !n.getIsDead() && !n.isDispose) {
				var a = e._mapModule.mapAvatarModel.getPet(i);
				(null != App.global.roles.getRoleInfoById(i) || a && a.ownerId == App.global.characterData.personId) && App.dispatcher
					.dispatchEvent(EventType.SKILL_BITMAP, t.skillModelId, t.skillLv), egret.is(n, "CharacterRoleData") || egret.is(n,
						"CharcterPartnerRoleData");
				var o = e._mapModule.mapFightModel.getAniProcessor(t.skillModelId, t.skillLv);
				if (o) {
					o.fightActionId = t.fightActionId.toString(), o.personId = i, o.damageHp = t.drophp, o.damageMp = t.dropmp, o.curhp =
						LongUtil.toNumber(t.curhp), o.curmp = t.curmp, o.fightDirection = t.fightDirection, o.skillid = t.skillModelId,
						o.fightTarget = t.fightTarget.toString(), o.skillLevel = t.skillLv, o.skillToX = t.x, o.skillToY = t.y, o.fightTargetCurHpList =
						t.fightTargetCurHpList, o.mapModule = e._mapModule;
					for (var r = t.fightTargetList.length, s = !1, h = 0; r > h; h++) {
						var l = t.fightTargetList[h].toString();
						o.targetPersonList.push(l), o.fightTarget == l && (s = !0)
					}
					s || "0" == o.fightTarget || o.targetPersonList.push(o.fightTarget), o.attackRole = e._mapModule.mapAvatarModel.getFightRoleData(
						o.personId), o.attackRole && (o.attackRole.setCrtHp(LongUtil.toNumber(t.curhp), !1), o.attackRole.setCrtMp(t.curmp,
						!1), o.attackRole.setCrtNg(t.curinsidepower, !1)), o.targetRole = e._mapModule.mapAvatarModel.getFightRoleData(
						o.fightTarget), o.fightTarget && "0" != o.fightTarget && (n.lastAttackRoleId = o.fightTarget);
					var p = e._mapModule.mapAvatarModel.getPartner(i);
					if (e._mapModule.mapAvatarModel.checkIsCharcter(i) || p && p instanceof CharcterPartnerRoleData) {
						var c = p ? p : App.global.characterData;
						0 == t.order || t.order == App.global.characterData.changePositionOrder;
						var _ = c.actionList.crtAction;
						null == _ ? o.init() : c.setSkillAniProMap(o), o.skillid == EnumSkillID.YE_MAN_CHONG_ZHUANG && WebParams.sendWebLog(
							LogType.TYPE_USE_SKILL, "收到使用的技能包: " + o.skillid)
					} else {
						var d = e._mapModule.mapAvatarModel.getFightRoleData(i);
						if (d) {
							-1 != t.curx && -1 != t.cury ? (d.serverMap_x != t.curx || d.serverMap_x != t.cury) && d.stopAndMoveTo(
									"onS2C_FightBroadcastMessageHandler-" + d.name, t.curx, t.cury) : d.move_to_x != d.serverMap_x && d.move_to_y !=
								d.serverMap_y && d.actionList.length > 0 && d.stopAndMoveTo("onS2C_FightBroadcastMessageHandler-noChar", d.serverMap_x,
									d.serverMap_y);
							var u = App.global.characterData;
							if (d.isInVisableArea) {
								var g = GameUtil.getSkillConfigData(o.skillid, o.skillLevel);
								g.q_attack_id > 0 ? (_ = o.skillid == EnumSkillID.DA_DAO_KAN_REN ? new DaDaoFightAction : App.thing.create(
										FightAction, "MapAcceptCommandCoprocessor", !0), _.setCreateFrom("onS2C_FightBroadcastMessageHandler"), _.fightDirection =
									o.fightDirection, _.targetPersonId = o.fightTarget, _.skillid = o.skillid, _.skillLevel = o.skillLevel, e._mapModule
									.mapAvatarModel.hideData.hide_skillEffect && o.targetPersonList && -1 == o.targetPersonList.indexOf(u.personId) ?
									o.dispose() : d.setSkillAniProMap(o), d.actionList.length > 1 && d.stopAndMoveTo(
										"onS2C_FightBroadcastMessageHandler-noChar", d.serverMap_x, d.serverMap_y), d.actionList.pushAction(_)) : (
									_ = d.actionList.crtAction, null == _ ? o.init() : d.setSkillAniProMap(o))
							} else {
								if (e._mapModule.mapAvatarModel.hideData.hide_skillEffect && o.targetPersonList && -1 == o.targetPersonList.indexOf(
										u.personId)) return void o.dispose();
								o.init()
							}
						} else o.dispose()
					}
				}
			}
		}, e.prototype.onS2C_ChangePositionMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getRoleData(i);
			if (n)
				if (e._mapModule.mapAvatarModel.checkIsCharcter(n.personId)) {
					switch (t.reason) {
						case 1221:
						case 216:
						case 1203:
						case 217:
						case 1220:
						case 210:
							n.stopAndMoveTo("onS2C_ChangePositionMessageHandler-" + t.reason, t.position.px, t.position.py), App.global.characterData
								.changePositionOrder = t.order;
							break;
						case 21:
							var a = App.global.characterData.searchToPointVo;
							n.stopAndMoveTo("onS2C_ChangePositionMessageHandler-" + t.reason, t.position.px, t.position.py), App.global.characterData
								.changePositionOrder = t.order, a && "onMoveToMapPostion" == a.type ? App.global.characterData.resetSearchNewRoadToPoint(
									"onMoveToMapPostion", a) : App.global.characterData.isFightAiRuning && (App.global.characterData.ai.reset(),
									App.global.characterData.ai.onCharacterActionListEmpty(App.global.characterData));
							break;
						case 1222:
							"战斗技能释放改变位置坐标-onS2C_ChangePositionMessage, x: " + t.position.px + ", x: " + t.position.py;
							(0 == t.order || t.order == App.global.characterData.changePositionOrder) && n.stopAndMoveTo(
								"onS2C_ChangePositionMessageHandler-" + t.reason, t.position.px, t.position.py, !1);
							break;
						case 1300:
							App.global.characterData.changePositionOrder = t.order, n.stopAndMoveTo(
								"onS2C_ChangePositionMessageHandler-default-" + t.reason, t.position.px, t.position.py);
							break;
						default:
							App.global.characterData.changePositionOrder = t.order, n.stopAndMoveTo(
								"onS2C_ChangePositionMessageHandler-default-" + t.reason, t.position.px, t.position.py)
					}
					App.dispatcher.dispatchEvent(EventType.CHARACTER_UPDATE_POSITION, t.position.px, t.position.py)
				} else(n.serverMap_x != t.position.px || n.serverMap_x != t.position.py) && n.stopAndMoveTo(
						"onS2C_ChangePositionMessageHandler-noChar", t.position.px, t.position.py), n instanceof MapMonsterRoleData && n
					.showEffect("MapAcceptCommandCoprocessor - onS2C_ChangePositionMessageHandler", ResPathUtil.getSkillEffectUrl(
						2014, "2014_tx1"))
		}, e.prototype.onS2C_DisplacementPositionMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getRoleData(i);
			if (n) {
				n.setMapPos(t.position.px, t.position.py), e._mapModule.mapAvatarModel.checkIsCharcter(i) && (e._mapModule.mapMouseModel
					.removeMapMouseListen(), App.global.characterData.isCanMove = !1, App.global.characterData.isCanUseSkill = !1,
					App.global.characterData.changePositionOrder = t.order);
				var a = e._mapModule.mapLoader.mapData.getNodeByXY(t.position.px, t.position.py);
				switch (t.movetype) {
					case 1:
						n.actionList.clear(), n.actionList.setNext(new MirSavageCollisionAction(t.persondir, a, n, t.movetype));
						break;
					case 2:
						n.actionList.clear(), n.actionList.setNext(new MirSavageCollisionAction(t.persondir, a));
						break;
					case 3:
						n.actionList.clear(), n.actionList.setNext(new MirSavageCollisionAction(t.persondir, a))
				}
			}
		}, e.prototype.onS2C_FighterStateEndMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString();
			t.fighterState.toString();
			if (e._mapModule.mapAvatarModel.checkIsCharcter(i)) {
				e._mapModule.mapMouseModel.addMapMouseListen();
				var n = App.global.characterData;
				0 == n.bufferManager.hasBufferCancelMoveAndSkill() && (n.isCanMove = !0, n.isCanUseSkill = !0), 0 == e._mapModule.mapMouseModel
					.isMouseDown && n.searchToPointVo && 0 == n.isFightAiRuning ? n.resetSearchNewRoadToPoint("onMoveToMapPostion") :
					n.actionList.crtAction || 0 != n.actionList.length || 0 == e._mapModule.mapMouseModel.checkMouseDownMap(!0) && n.operation
					.keyBoardShiftHandler("onS2C_FighterStateEndMessageHandler")
			}
		}, e.prototype.onS2C_ChangePositionByFlyMessage = function(t) {
			var e = this._mapModule,
				i = t.personId.toString(),
				n = e.mapAvatarModel.getFightRoleData(i);
			if (null != n && null != e.mapLoader.mapData) {
				if (App.config.q_map_jumpContainer.hasDataBean(t.reason)) var a = App.config.q_map_jumpContainer.getDataBean(t.reason);
				var o = e.mapAvatarModel.checkIsCharcter(i);
				if (o) {
					var r;
					if (r = n.actionList.length > 0 ? n.actionList.getActionByIndex(n.actionList.length - 1) : n.actionList.crtAction,
						r && r.endNode != e.mapLoader.mapData.getNodeByXY(n.serverMap_x, n.serverMap_y)) var s = r.endNode
				}
				for (var h, l = new Array;;) {
					if (a && a.q_jump_config) {
						var p, c = JSON.parse(a.q_jump_config),
							_ = e.mapLoader.mapData.getNode(c.x1, c.y1),
							d = e.mapLoader.mapData.getNode(c.x2, c.y2);
						a.q_jump_combo_id > 0 ? (c = JSON.parse(a.q_jump_targetxy), p = e.mapLoader.mapData.getNode(c.x, c.y)) : p = e.mapLoader
							.mapData.getNodeByXY(t.position.px, t.position.py), _ && d && p && (h = e.mapMoveModel.flyTo(_, d, p, t.reason,
								s))
					} else !a || 1 != a.q_jump_type && 2 != a.q_jump_type && 3 != a.q_jump_type ? (a && a.q_jump_combo_id > 0 ? (c =
						JSON.parse(a.q_jump_targetxy), p = e.mapLoader.mapData.getNode(c.x, c.y)) : p = e.mapLoader.mapData.getNodeByXY(
						t.position.px, t.position.py), p && (h = e.mapMoveModel.jumpTo(p, t.reason, s))) : (a.q_jump_combo_id > 0 ? (c =
						JSON.parse(a.q_jump_targetxy), p = e.mapLoader.mapData.getNode(c.x, c.y)) : p = e.mapLoader.mapData.getNodeByXY(
						t.position.px, t.position.py), h = new ChargeAction(e, p, t.reason, a.q_jump_type, s));
					if (a && (h.setEffectURL(a.q_jump_effect), h.setBean(a)), h.setIsJumpCombo(l.length > 0), l.push(h), !(a && a.q_jump_combo_id >
							0 && a.q_jump_combo_id != a.q_jump_id)) break;
					if (l.length >= 6) break;
					a = App.config.q_map_jumpContainer.getDataBean(a.q_jump_combo_id)
				}
				l.length > 0 ? (o && e.mapMouseModel.removeMapMouseListen(), n.actionList.clear(), n.actionList.resetActionList(l),
					n instanceof CharacterRoleData && (n.isJumping = !0)) : GameLog.logInfo(
					"onS2C_ChangePositionByFlyMessage--跳跃的坐标点不存在于地图")
			}
		}, e.prototype.onS2C_NextActionIdMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = t.fightType;
			this._mapModule.mapAvatarModel.checkIsCharcter(e) && (App.global.roles.getRoleDataByJob(EnumRole.ZHAN_SHI).soldierNextSkillid =
				i), ServerTime.setServerTime(LongUtil.toNumber(t.time1))
		}, e.prototype.onS2C_FightFailedMessageHandler = function(t) {
			t.fightActionId.toString(), t.personId.toString(), t.fightDirection, t.fightType, t.fightTarget.toString();
			ServerTime.setServerTime(LongUtil.toNumber(t.time1))
		}, e.prototype.onS2C_PkSwordChangeMessageHandler = function(t) {
			var e = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(t.personId.toString());
			e && (e.pksword = t.currentPkSword)
		}, e.prototype.onS2C_AttackResultMessageHandler = function(t) {
			this._mapModule.mapFightModel.showFightResult(t)
		}, e.prototype.onS2C_ChangeBuffMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			if (i) {
				var n = t.buff.buffId.toString();
				i.bufferManager.hasBuffer(n) && i.bufferManager.getBuffer(n).initBufferInfoData(t.buff)
			}
		}, e.prototype.onS2C_RemoveBuffMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && i.bufferManager.deleteBuffer(t.buffId.toString())
		}, e.prototype.onS2C_AddBuffMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && i.bufferManager.createBuffer(t.buff.buffId.toString(), t.buff)
		}, e.prototype.onS2C_BuffsMessageHandler = function(t) {
			var e = App.global.characterData,
				i = t.buff.length;
			App.dispatcher.dispatchEvent(PlayerBufferEvent.CLEAR_ALL_BUFF, e.personId);
			for (var n = 0; i > n; n++) {
				var a = t.buff[n],
					o = a.buffId.toString();
				e.bufferManager.createBuffer(o, a)
			}
		}, e.prototype.onS2C_BuffInfoMessageHandler = function(t) {
			var e = App.global.characterData;
			if (e) {
				var i = e.bufferManager.getBuffer(t.buffId.toString());
				i && (i.set_remain(t.remain), i.set_value(LongUtil.toNumber(t.value)))
			}
		}, e.prototype.onS2C_BossOwnerChangedMessageHandler = function(t) {
			var e = this._mapModule.mapAvatarModel.getMonster(t.monsterId.toString());
			e && e.setBossOwner(t.ownerId.toString(), t.ownerName), App.dispatcher.dispatchEvent(EventType.BOSS_OWNER_CHANGE, t)
		}, e.prototype.onS2C_TakeUpSuccessMessageHandler = function(t) {
			var e = t.itemId.toString(),
				i = this._mapModule.mapItemModel.getDropItem(e).itemBaseid,
				n = App.config.q_itemContainer.getDataBean(i),
				a = ItemUtil.getItemNameColor(i, !0);
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">获得<font color = '" + a + "'>" + n.q_name +
				"</font> x" + t.num + "</font>")
		}, e.prototype.onS2C_HideSerfaceBroadCastMessageHandler = function(t) {
			var e = t.playerId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i || (i = this._mapModule.mapAvatarModel.getPartner(e)), i && i.surfaceManager.hideSerface(t.surfaceInfo.surfaceId)
		}, e.prototype.onS2C_RemorveSerfaceMessageHandler = function(t) {
			var e = t.playerId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i || (i = this._mapModule.mapAvatarModel.getPartner(e)), i && i.surfaceManager.deleteSerface(t.surfaceId)
		}, e.prototype.onS2C_MySurfaceListMessageHandler = function(t) {
			var e, i, n, a, o, r, s, h, l, p = t.playerSurfaceList,
				c = p.length;
			for (n = 0; c > n; n++)
				if (e = p[n], e && (l = null, o = e.index, h = App.global.roles.getRoleInfoByIndex(o))) {
					for (r = e.surfaceDetailList, r.reverse(), s = r.length, a = 0; s > a; a++)
						if (i = r[a], i && (h.surfaceManager.addSerface(i.surfaceId, i), !l)) {
							var _ = App.config.q_surfaceContainer.getDataBean(i.surfaceId);
							_ && 6 == _.q_type && (l = i)
						} h.hideSurfaceType = e.hideSurfaceType, l ? h.surfaceManager.bindMountId = StringUtil.JsonParse(l.detailMap).mountSurfaceId :
						h.surfaceManager.bindMountId = 0
				}
		}, e.prototype.onS2C_ChangeSurfaceMessageHandler = function(t) {
			var e = t.surfaceDetailInfo,
				i = e.detailMap,
				n = StringUtil.JsonParse(i).mountSurfaceId,
				a = t.index,
				o = App.config.q_surfaceContainer.getDataBean(e.surfaceId),
				r = App.global.roles.getRoleInfoByIndex(a);
			r && (r.surfaceManager.changeSurfaceData(e.surfaceId, e), o && 6 == o.q_type && (r.surfaceManager.bindMountId = n))
		}, e.prototype.onS2C_AddSurfaceMessageHandler = function(t) {
			var e = App.global.roles.getRoleInfoByIndex(t.index);
			e && (e.surfaceManager.addSerface(t.surfaceDetailInfo.surfaceId, t.surfaceDetailInfo), 0 == t.surfaceDetailInfo.show &&
				App.timer.doTimeOnce(this, 50, this.delayChange, [e, t.surfaceDetailInfo.surfaceId]))
		}, e.prototype.delayChange = function(t, e) {
			var i = App.config.q_surfaceContainer.getDataBean(e);
			if (i) {
				var n = t.surfaceManager.getShowSerfaceIdBySerfaceType(i.q_type);
				if (n) {
					var a = t.surfaceManager.getSerface(n);
					a && t.surfaceManager.changeSurfaceData(n, a.curData)
				}
			}
		}, e.prototype.onS2C_ShowSerfaceBroadCastMessageHandler = function(t) {
			var e = this,
				i = t.playerId.toString(),
				n = e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i);
			n || (n = e._mapModule.mapAvatarModel.getPartner(i)), n && (n.surfaceManager.addSerface(t.surfaceInfo.surfaceId, t.surfaceInfo),
				n.surfaceManager.showSerface(t.surfaceInfo.surfaceId))
		}, e.prototype.onS2C_MyTencentInfoMessageHandler = function(t) {
			var e = t.playerId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && (i.pfVipType = t.pfVipInfo.vipType, i.pfVipYear = t.pfVipInfo.yearVip, i.pfViphigh = t.pfVipInfo.highVip, i.pfVipLvl =
				t.pfVipInfo.vipLvl)
		}, e.prototype.onS2C_PlayerStateChangeMessageHandler = function(t) {
			App.global.characterData && (App.global.characterData.state = t.state)
		}, e.prototype.onS2C_MyInsidePowerMessageHandler = function(t) {
			App.global && App.global.characterData && App.global.roles.getRoleInfoByIndex(t.index) && App.global.roles.getRoleInfoByIndex(
				t.index).setNg(t.insidePowerInfo.val, t.insidePowerInfo.maxVal)
		}, e.prototype.onS2C_InsidePowerValChangeMessageHandler = function(t) {
			var e = t.playerId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && i.setNg(t.val, t.maxVal)
		}, e.prototype.onS2C_CampGroupChangedMessageHandler = function(t) {
			var e = t.playerid.toString(),
				i = this._mapModule.mapAvatarModel.getFightRoleData(e);
			i && (i.group = t.group)
		}, e.prototype.onS2C_SetPositionHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && i.stopAndMoveTo("onS2C_SetPositionHandler-" + i.name, t.position.px, t.position.py)
		}, e.prototype.onS2C_RunPositionsMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = t.position;
			if (e._mapModule.mapAvatarModel.checkIsCharcter(i)) {
				var a = t.moveId;
				if (App.global.characterData && (App.global.characterData.setMapPos(n.px, n.py), -1 == a)) {
					var o = e.makeServerMoveAction("onS2C_RunPositionsMessageHandler-char", t.positions, t.position, t.startPosition);
					o.needSend = !1, App.global.characterData.actionList.setNext(o)
				}
			} else {
				var r = e._mapModule.mapAvatarModel.getRoleData(i);
				if (r && 0 == r.isDispose) {
					r.actionList.length > 1 && r.stopAndMoveTo("onS2C_RunPositionsMessageHandler" + r.name, r.serverMap_x, r.serverMap_y);
					var s = e._mapModule.mapAvatarModel.getFightRoleData(i);
					if (s && s.getIsDead()) return;
					var h = e.makeServerMoveAction("onS2C_RunPositionsMessageHandler", t.positions, t.position, t.startPosition);
					if (t.startPosition && (t.startPosition.px != r.serverMap_x || t.startPosition.py != r.serverMap_y)) {
						var l = r.actionList.crtAction;
						if (l && 2 == l.step && l.centerNode && t.startPosition.px == l.centerNode.pixelPoint.x && t.startPosition.py ==
							l.centerNode.pixelPoint.y) return r.setMapPos(t.position.px, t.position.py), r.actionList.clear(), void r.actionList
							.setNext(h)
					}
					r.setMapPos(t.position.px, t.position.py), r.actionList.pushAction(h)
				}
			}
		}, e.prototype.onS2C_PlayerStopMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getRoleData(i);
			if (n) {
				var a = App.global.characterData;
				if (e._mapModule.mapAvatarModel.checkIsCharcter(i), a.isJumping) return;
				var o = a.searchToPointVo;
				if (n.stopAndMoveTo("onS2C_PlayerStopMessageHandler" + n.name, t.position.px, t.position.py), e._mapModule.mapAvatarModel
					.checkIsCharcter(i) && 0 == e._mapModule.mapMouseModel.checkMouseDownMap() && o) {
					var r = !1,
						s = t.moveId;
					switch (s) {
						case -10921:
						case -10922:
						case -10918:
						case -10920:
							r = !0
					}
					0 == r && (a.searchToPointVo = o, (o.px != a.serverMap_x || o.py != a.serverMap_y) && a.resetSearchNewRoadToPoint(
						"onMoveToMapPostion", o))
				}
			}
		}, e.prototype.onS2C_PlayerMaxMpChangeMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && i.setMp(t.currentMp, t.maxMp)
		}, e.prototype.onS2C_PlayerMpChangeMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && i.setCrtMp(t.currentMp)
		}, e.prototype.onS2C_PlayerMaxHpChangeMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && i.setHp(t.currentHp, t.maxHp)
		}, e.prototype.onS2C_PlayerHpChangeMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i);
			if (n) {
				var a = t.currentHp - n.hp;
				n.setCrtHp(t.currentHp), a > 0 && (2 == t.reason ? e._mapModule.mapFightModel.showBloodWord(-1, a, n, "0", "") : n ==
					App.global.characterData && n.roleView.visible && e._mapModule.mapFightModel.showBloodWord(-1, a, n, "0", ""))
			}
		}, e.prototype.onS2C_PlayerExpChangeMessageHandler = function(t) {
			if (App.global.characterData) {
				var e = App.global.characterData,
					i = LongUtil.toNumber(t.currentExp),
					n = LongUtil.toNumber(t.extraExp),
					a = i - e.exp;
				e.exp = i, App.dispatcher.dispatchEvent(PlayerAttributeEvent.EXP, t.currentExp, t.reason), App.dispatcher.dispatchEvent(
					PlayerAttributeEvent.EXP_CHANGE_VALUE, a - n, n, t.reason), a > 0 && this._mapModule.mapFightModel.showBloodWord(
					-2, a, e, "0", "")
			}
		}, e.prototype.onS2C_PlayerLevelUpMessageHandler = function(t) {
			var e = t.personId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && (App.global.characterData.prelevel = App.global.characterData.level, i.setLevel(t.currentLevel))
		}, e.prototype.onS2C_ReviveSuccessMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i);
			n && (n.roleView.playEndFrameHandler = null, n.setIsDead(!1)), e._mapModule.mapAvatarModel.checkIsCharcter(i) && (
				App.timer.clearTimer(e.openRevivePanel, e), App.panel.removePanel(49), e._mapModule.mapMouseModel.setControlPlayer(
					App.global.characterData), e._mapModule.secne.filters = [], e._mapModule.mapMouseModel.addMapMouseListen(),
				GameLog.logInfo("人物复活，恢复鼠标事件", "onS2C_ReviveSuccessMessageHandler"))
		}, e.prototype.onS2C_MainPlayerDieMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i);
			n && !n.getIsDead() && (e._mapModule.mapAvatarModel.checkIsCharcter(i) ? (e._mapModule.mapMoveModel.mapSearchManager
				.clear(), e._mapModule.mapMouseModel.removeMapMouseListen(), n.stopAndMoveTo(
					"onS2C_MainPlayerDieMessageHandler-" + n.name, n.pixel_x, n.pixel_y), n.setIsDead(!0), n.closeFightAi()) : (n.stopAndMoveTo(
				"onS2C_MainPlayerDieMessageHandler-" + n.name, n.pixel_x, n.pixel_y), n.setIsDead(!0)))
		}, e.prototype.onS2C_PlayerDieMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i);
			if (e._mapModule.mapAvatarModel.checkIsCharcter(i)) {
				0 == n.getIsDead() && (n.stopAndMoveTo("onS2C_PlayerDieMessageHandler-" + n.name, t.position.px, t.position.py), n
						.setIsDead(!0), n.closeFightAi()), e._mapModule.mapMoveModel.mapSearchManager.clear(), e._mapModule.mapMouseModel
					.removeMapMouseListen(), GameLog.logInfo("人物死亡，onS2C_PlayerDieMessageHandler, removeMapMouseListen");
				var a = App.config.q_mapContainer.getDataBean(App.global.characterData.mapId);
				4 == a.q_revive_type && (e._mapModule.mapLoader.clearClips(e._mapModule.mapSceneModel.screen.x, e._mapModule.mapSceneModel
					.screen.y), e._mapModule.secne.filters = FilterUtil.FILTER_GRAY, App.timer.doTimeOnce(e, 600, e.openRevivePanel,
					[{
						cmd: t
					}])), App.dispatcher.dispatchEvent(PlayerAttributeEvent.MY_ROLE_DEAD_ALL)
			} else n && 0 == n.getIsDead() && (n.stopAndMoveTo("onS2C_PlayerDieMessageHandler-" + n.name, t.position.px, t.position
				.py), n.setIsDead(!0), App.dispatcher.dispatchEvent(PlayerAttributeEvent.OTHER_ROLE_DEAD_ALL, n.personId))
		}, e.prototype.openRevivePanel = function(t) {
			App.panel.openPanel(49, t)
		}, e.prototype.onS2C_PlayerAvatarMessageHandler = function(t) {
			t.playerid.toString()
		}, e.prototype.onS2C_EquipChangeMessageHandler = function(t) {
			var e = this,
				i = t.personId.toString(),
				n = t.pos,
				a = t.weaponId,
				o = (t.weaponStrengNum, e._mapModule.mapAvatarModel.getPlayerOrCharacterData(i));
			if (o || (o = e._mapModule.mapAvatarModel.getPartner(i)), o) switch (n) {
				case 0:
					o.weapon = a;
					break;
				case 1:
					o.armor = a;
					break;
				case 7:
			}
		}, e.prototype.onS2C_PlayerPrisonStateMessageHandler = function(t) {
			App.global.characterData && (App.global.characterData.pksword = t.pkSword)
		}, e.prototype.onS2C_AutoStartStateMessageHandler = function(t) {
			for (var e = 1 == t.result ? !0 : !1, i = App.global.roles.roleList, n = i.length, a = 0; n > a; a++) {
				var o = i[a];
				o.isFightAiRuning = e
			}
			ServerTime.setServerTime(LongUtil.toNumber(t.time1))
		}, e.prototype.onS2C_PetAddMessageHandler = function(t) {
			var e = t.pet;
			App.global.characterData.petHash.put(e.petId.toString(), e)
		}, e.prototype.onS2C_S2C_PetRemorveMessage = function(t) {
			var e = t.petId.toString();
			App.global.characterData.petHash.del(e)
		}, e.prototype.onS2C_PetDieMessageHandler = function(t) {
			if (t.pet) {
				var e = t.pet.petId.toString();
				App.global.characterData.petHash.del(e)
			}
		}, e.prototype.onS2C_PetListMessageHandler = function(t) {
			var e = t.pets;
			if (e)
				for (var i = 0; i < e.length; i++) {
					var n = t.pets[i];
					App.global.characterData.petHash.put(n.petId.toString(), n);
					var a = this._mapModule.mapAvatarModel.getPetOrPartner(n.petId.toString());
					a && (a.setHp(n.hp, n.maxHp), a.setMp(n.mp, n.maxMp))
				}
		}, e.prototype.onS2C_PlayerFollowerAbilityChangeMessageHandler = function(t) {
			var e = App.global.roles.getRoleInfoByIndex(t.index);
			e && e.changeAttribute(t.abilityInfo)
		}, e.prototype.onS2C_PetAttributeChangeMessageHandler = function(t) {
			var e = t.petId.toString(),
				i = this._mapModule.mapAvatarModel.getPetOrPartner(e);
			if (i) switch (t.attributeChange.type) {
				case 2:
					i.maxHp = t.attributeChange.value;
					break;
				case 3:
					i.maxMp = t.attributeChange.value;
					break;
				case 19:
					if (t.attributeChange.value > i.hp) {
						var n = t.attributeChange.value - i.hp;
						1218 == t.reason && this._mapModule.mapFightModel.showBloodWord(-1, n, i, "0", "")
					}
					i.setCrtHp(t.attributeChange.value, !0);
					break;
				case 20:
					i.setCrtMp(t.attributeChange.value, !0);
					break;
				case 21:
					i.moveSpeed = t.attributeChange.value;
					break;
				case 22:
					i.setLevel(t.attributeChange.value);
					break;
				case 52:
					i instanceof MapPetRoleData && (i.petModelLvl = t.attributeChange.value)
			}
		}, e.prototype.onS2C_PetInfoChangeMessageHandler = function(t) {
			var e = t.pet.petId.toString(),
				i = this._mapModule.mapAvatarModel.getPetOrPartner(e);
			i && i.initRoldData(t.pet)
		}, e.prototype.onS2C_PetStopMessageHandler = function(t) {
			var e = t.petId.toString(),
				i = this._mapModule.mapAvatarModel.getPetOrPartner(e);
			i && i.stopAndMoveTo("onS2C_PetStopMessageHandler", t.position.px, t.position.py)
		}, e.prototype.onS2C_PetRunPositionsMessageHandler = function(t) {
			var e = t.petId.toString(),
				i = this._mapModule.mapAvatarModel.getPetOrPartner(e);
			if (null != i && !i.getIsDead()) {
				t.position;
				if (i && 0 == i.isDispose)
					if (i instanceof CharcterPartnerRoleData) i.setMapPos(t.position.px, t.position.py);
					else {
						i.actionList.length > 3 && i.stopAndMoveTo("onS2C_PetRunPositionsMessageHandler", i.serverMap_x, i.serverMap_y),
							i.setMapPos(t.position.px, t.position.py);
						var n = this.makeServerMoveAction("onS2C_PetRunPositionsMessageHandler", t.positions, t.position, t.oldPosition);
						i.isInVisableArea ? i.actionList.pushAction(n) : i.progressMove(t.position.px, t.position.py)
					}
			}
		}, e.prototype.onS2C_PetDieBroadcastMessageHandler = function(t) {
			var e = this,
				i = t.petId.toString(),
				n = e._mapModule.mapAvatarModel.getPetOrPartner(i);
			n && (e._mapModule.mapAvatarModel.delPet(i, !1), e._mapModule.mapAvatarModel.delPartner(i, !1), n.setIsDead(!0), n instanceof CharcterPartnerRoleData ==
				0 && e._mapModule.mapAvatarModel.deadRole(n))
		}, e.prototype.onS2C_PetTranMoveMessageHandler = function(t) {
			var e = t.petId.toString(),
				i = this._mapModule.mapAvatarModel.getPetOrPartner(e);
			i && i.stopAndMoveTo("onS2C_PetTranMoveMessageHandler-", t.position.px, t.position.py)
		}, e.prototype.onS2C_MonsterReviveBroadcastMessageHandler = function(t) {
			this._mapModule.mapAvatarModel.createMonster(t.monster)
		}, e.prototype.onS2C_MonsterDieBroadcastMessageHandler = function(t) {
			var e = this,
				i = t.monsterId.toString(),
				n = e._mapModule.mapAvatarModel.getMonster(i);
			if (n)
				if (9 == t.die)
					if (n.getIsDead()) e._mapModule.mapAvatarModel.delMonster(i);
					else {
						e._mapModule.mapAvatarModel.delMonster(i, !1), n.setIsDead(!0), n.dieType = t.dieType, e._mapModule.mapAvatarModel
							.deadRole(n);
						var a = e._mapModule.mapAvatarModel.getRoleData(t.killer.toString());
						if (a instanceof CharacterRoleData && App.dispatcher.dispatchEvent(EventType.MYPLAYER_KILL_MONSTER, n), 0 == n.monsterOriginalModelBean
							.q_dead_fly && Math.random() <= 1e-4 * n.monsterOriginalModelBean.q_dead_fly_rate) {
							var o = this._mapModule.mapAvatarModel.getFightRoleData(t.killer.toString());
							o && n.actionList.setNext(new BeHitFlyAction(o))
						}
					}
			else n.setIsDead(!0)
		}, e.prototype.onS2C_MonsterStopMessageHandler = function(t) {
			var e = t.monsterId.toString(),
				i = this._mapModule.mapAvatarModel.getMonster(e);
			i && i.stopAndMoveTo("onS2C_MonsterStopMessageHandler", t.position.px, t.position.py)
		}, e.prototype.onS2C_MonsterHpChangeBroadcastMessageHandler = function(t) {
			var e = t.monsterId.toString(),
				i = this._mapModule.mapAvatarModel.getMonster(e);
			i && i.setCrtHp(LongUtil.toNumber(t.currentHp))
		}, e.prototype.onS2C_MonsterMaxHpChangeBroadcastMessageHandler = function(t) {
			var e = t.monsterId.toString(),
				i = this._mapModule.mapAvatarModel.getMonster(e);
			i && i.setHp(t.currentHp, t.maxHp)
		}, e.prototype.onS2C_MonsterRunPositionsMessageHandler = function(t) {
			var e = this,
				i = t.monsterId.toString(),
				n = e._mapModule.mapAvatarModel.getMonster(i);
			if (null != n && !n.getIsDead()) {
				n.actionList.length > 3 && n.stopAndMoveTo("onS2C_MonsterRunPositionsMessageHandler", n.serverMap_x, n.serverMap_y),
					n.setMapPos(t.position.px, t.position.py);
				t.position;
				n.isInVisableArea ? n.actionList.pushAction(e.makeServerMoveAction("onS2C_MonsterRunPositionsMessageHandler", t.positions,
					t.position, t.oldPosition)) : n.progressMove(t.position.px, t.position.py)
			}
		}, e.prototype.onS2C_MonsterSayBroadcastHandler = function(t) {
			var e = t.monsterId.toString(),
				i = this._mapModule.mapAvatarModel.getRoleData(e);
			i && i.roleView.showChatBubble(t.saycontent)
		}, e.prototype.onS2C_PickupItemMessageHandler = function(t) {
			var e = t.playerid.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			if (i) {
				var n = t.headItemInfo;
				if (1 == t.type)
					for (var a = 0; a < n.length; a++);
				else if (3 == t.type || 4 == t.type) {
					var o = !1;
					o = e == App.global.characterData.personId ? 4 == t.type ? !1 : !0 : !1;
					for (var r = 0; r < n.length; r++);
				} else
					for (var s = 0; s < n.length; s++);
			}
		}, e.prototype.onS2C_ShowGroupChangedMessageHandler = function(t) {
			App.global.characterData && (App.global.characterData.showGroup = t.showgroup)
		}, e.prototype.onS2C_EffectChangeMessageHandler = function(t) {}, e.prototype.onS2C_BackCityPosChangeMessageHandler =
		function(t) {
			App.global.characterData.backcitymapid = t.backcitymapid, App.global.characterData.backcityx = t.backcityx, App.global
				.characterData.backcityy = t.backcityy
		}, e.prototype.onS2C_RoundObjectsMessageHandler = function(t) {
			var e = this,
				i = t.player,
				n = t.playerIds,
				a = t.monster,
				o = t.monstersIds,
				r = t.npcs,
				s = t.npcid,
				h = t.pets,
				l = t.petIds,
				p = t.Effect,
				c = t.effectid,
				_ = t.Magic,
				d = t.magicid,
				u = t.goods,
				g = t.goodsIds;
			if (e.forInFunc(n, e._mapModule.mapAvatarModel.delPlayer, e._mapModule.mapAvatarModel), e.forInFunc(i, e._mapModule
					.mapAvatarModel.createPlayer, e._mapModule.mapAvatarModel), e.forInFunc(o, e._mapModule.mapAvatarModel.delMonster,
					e._mapModule.mapAvatarModel), e.forInFunc(a, e._mapModule.mapAvatarModel.createMonster, e._mapModule.mapAvatarModel),
				e.forInFunc(s, e._mapModule.mapAvatarModel.delNpc, e._mapModule.mapAvatarModel), e.forInFunc(r, e._mapModule.mapAvatarModel
					.createNpc, e._mapModule.mapAvatarModel), e.forInFunc(d, e._mapModule.mapFightModel.removeGorundMagic, e._mapModule
					.mapFightModel), _)
				for (var f = 0; f < _.length; f++) {
					var m = _[f];
					e._mapModule.mapFightModel.addGroundMagic(m.magicid.toString(), m.skillModelId, m.skillLv, m.x, m.y, m.calx, m.caly,
						m)
				}
			if (e.forInFunc(l, e._mapModule.mapAvatarModel.delPet, e._mapModule.mapAvatarModel), e.forInFunc(l, e._mapModule.mapAvatarModel
					.delPartner, e._mapModule.mapAvatarModel), e.forInFunc(h, e._mapModule.mapAvatarModel.createPet, e._mapModule.mapAvatarModel),
				e.forInFunc(g, e._mapModule.mapItemModel.deleteDropItem, e._mapModule.mapItemModel), e._mapModule.mapItemModel.addDropItem(
					u), e.forInFunc(c, e._mapModule.mapEffectModel.deleteServerEffect, e._mapModule.mapEffectModel), e.forInFunc(p, e
					._mapModule.mapEffectModel.createServerEffect, e._mapModule.mapEffectModel), -1 != App.global.characterData.transferType
			) switch (App.global.characterData.transferType) {
				case 1:
					var v = e._mapModule.mapAvatarModel.getNpcByModelId(App.global.characterData.transferID);
					v && (v.roleView.mouseDown(), App.global.characterData.clearTransferInfo());
					break;
				case 2:
					App.global.characterData.clearTransferInfo();
					break;
				default:
					App.global.characterData.clearTransferInfo()
			}
		}, e.prototype.onS2C_RoundMagicDisappearMessageHandler = function(t) {
			var e = this;
			e.forInFunc(t.magicid, e._mapModule.mapFightModel.removeGorundMagic, e._mapModule.mapFightModel)
		}, e.prototype.onS2C_RoundMagicMessageHandler = function(t) {
			var e = t.magic;
			this._mapModule.mapFightModel.addGroundMagic(e.magicid.toString(), e.skillModelId, e.skillLv, e.x, e.y, e.calx, e.caly,
				e)
		}, e.prototype.onS2C_RoundEffectDisappearMessageHandler = function(t) {
			for (var e = t.effectid.length, i = 0; e > i; i++) this._mapModule.mapEffectModel.deleteServerEffect(t.effectid[i].toString())
		}, e.prototype.onS2C_RoundEffectMessageHandler = function(t) {
			this._mapModule.mapEffectModel.createServerEffect(t.Effect)
		}, e.prototype.onS2C_RoundPlayerNameChangeMessageHandler = function(t) {
			var e = t.playerId.toString(),
				i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(e);
			i && (i.name = t.playerName)
		}, e.prototype.onS2C_RoundPlayerMessageHandler = function(t) {
			null != App.global.characterData && this._mapModule.mapAvatarModel.createPlayer(t.player)
		}, e.prototype.onS2C_RoundPlayerDisappearMessageHandler = function(t) {
			if (null != App.global.characterData) {
				var e = this;
				e.forInFunc(t.playerIds, e._mapModule.mapAvatarModel.delPlayer, e._mapModule.mapAvatarModel)
			}
		}, e.prototype.onS2C_RoundMonsterMessageHandler = function(t) {
			null != App.global.characterData && this._mapModule.mapAvatarModel.createMonster(t.monster)
		}, e.prototype.onS2C_RoundMonsterDisappearMessageHandler = function(t) {
			var e = this;
			if (0 == Config.isRelease)
				for (var i = t.monstersIds, n = 0; n < i.length; n++) {
					var a = i[n].toString();
					e._mapModule.mapAvatarModel.getMonster(a)
				}
			e.forInFunc(t.monstersIds, e._mapModule.mapAvatarModel.delMonster, e._mapModule.mapAvatarModel)
		}, e.prototype.onS2C_RoundGoodsDisappearMessageHandler = function(t) {
			var e = this;
			e.forInFunc(t.goodsIds, e._mapModule.mapItemModel.deleteDropItem, e._mapModule.mapItemModel)
		}, e.prototype.onS2C_RoundGoodsMessageHandler = function(t) {
			var e = this;
			e._mapModule.mapItemModel.addDropItem(t.goods), App.dispatcher.dispatchEvent(EventType.ROUND_GOODS, t.goods)
		}, e.prototype.onS2C_RoundPetDisappearMessageHandler = function(t) {
			var e = this;
			null != App.global.characterData && (e.forInFunc(t.petIds, e._mapModule.mapAvatarModel.delPet, e._mapModule.mapAvatarModel),
				e.forInFunc(t.petIds, e._mapModule.mapAvatarModel.delPartner, e._mapModule.mapAvatarModel))
		}, e.prototype.onS2C_RoundPetMessageHandler = function(t) {
			null != App.global.characterData && this._mapModule.mapAvatarModel.createPet(t.pet)
		}, e.prototype.onS2C_RoundNpcDisappearMessageHandler = function(t) {
			if (null != App.global.characterData) {
				var e = this;
				e.forInFunc(t.npcids, e._mapModule.mapAvatarModel.delNpc, e._mapModule.mapAvatarModel)
			}
		}, e.prototype.onS2C_RoundNpcMessageHandler = function(t) {
			null != App.global.characterData && this._mapModule.mapAvatarModel.createNpc(t.npc)
		}, e.prototype.onS2C_ChangeMapMessageHandler = function(t) {
			var e = this;
			if (e._mapModule.clear(), this.StoryZoneHandler(t), App.global.characterData.closeFightAi(), App.global.mapModule.mapMouseModel
				.controlRoleData && App.global.mapModule.mapMouseModel.controlRoleData.ai) {
				for (var i = App.global.roles.roleList, n = i.length, a = 0; n > a; a++) {
					var o = i[a];
					o.ai.isRuning = !0
				}
				App.dispatcher.dispatchEvent(EventType.OPEN_AUTO_FIGHT)
			}
			e._mapModule.mapMouseModel.removeMapMouseListen(), e._mapModule.notification.onEnterInMap(t.mapId, new FunctionVO(e
					._mapModule.sendCommand.sendLoadFinishForChangeMapMessage, e._mapModule.sendCommand)), App.global.characterData.mapId =
				t.mapId;
			var r = App.global.characterData;
			t.position && r.setMapPos(t.position.px, t.position.py), r.changePositionOrder = t.order, (r.serverMap_x != t.position
				.px || r.serverMap_y != t.position.py) && r.showEffect(
				"MapAcceptCommandCoprocessor - onS2C_ChangeMapMessageHandler", ResPathUtil.getSkillEffectUrl(2014, "2014_tx1"))
		}, e.prototype.onS2C_EnterMapMessageHandler = function(t) {
			h5_engine.NetResourceManager.instance.clear();
			var e = this;
			App.data.zoneCenter.clearPlayerList(), App.data.zoneCenter.clearBossPlayerList();
			var i = App.global.characterData;
			if (i && i && e._mapModule.mapLoader.mapData && t.version != e._mapModule.mapLoader.mapData.version) {
				var n = "地图前后端不匹配， mapid: " + i.mapId + ", mapResId: " + e._mapModule.mapLoader.mapResId + "， 地图名: " + e._mapModule
					.mapLoader.mapData.name + Alert.show(n);
				GameLog.logError(n)
			}
			if (i) {
				if (App.global.mapModule.mapMouseModel.controlRoleData && App.global.mapModule.mapMouseModel.controlRoleData.ai) {
					for (var a = App.global.roles.roleList, o = a.length, r = 0; o > r; r++) {
						var s = a[r];
						s.ai.isRuning = !0
					}
					App.dispatcher.dispatchEvent(EventType.OPEN_AUTO_FIGHT)
				}
				i.line = t.line, i.setMapPos(t.pos.px, t.pos.py), i.isJumping = !1, i.stopAndMoveTo("onS2C_EnterMapMessageHandler",
						t.pos.px, t.pos.py), i.changePositionOrder = t.order, i.closeFightAi(), i.isCanMove = !0, e._mapModule.mapMouseModel
					.onMapChangeHandler(), e._mapModule.mapAvatarModel.checkNpcTaskMoveNode()
			}
			App.dispatcher.dispatchEvent(EventType.CHANGE_MAP_FINISH), App.dispatcher.dispatchEvent(EventType.DELETE_LOGIN_MODULE),
				this.clearJump(), this.checkShowMap(), e.onEnterMapHandler()
		}, e.prototype.clearJump = function() {
			for (var t = App.global.roles.roleList, e = 0; e < t.length; e++) {
				var i = t[e];
				if (i) {
					var n = void 0;
					i.actionList.crtAction instanceof JumpAction && (n = i.actionList.crtAction, n.end("enterMap")), i.pixel_z = 0
				}
			}
		}, e.prototype.checkShowMap = function() {
			var t = this,
				e = App.panel.getPanelNum();
			0 >= e && t._mapModule.secne.showMap()
		}, e.prototype.onEnterMapHandler = function() {
			if (App.global.characterData && (App.global.enterMapIng = !0), this._mapModule.mapMoveModel.checkJumpSearch(), App.global
				.characterData && 0 != App.global.characterData.lastMapId) {
				var t = App.config.q_mapContainer.getDataBean(App.global.characterData.lastMapId);
				if (t.q_is_judge_auto_battle) {
					var e = App.config.q_mapContainer.getDataBean(App.global.characterData.mapId);
					e.q_is_auto_battle && App.global.characterData.openFightAi()
				}
			}
		}, e.prototype.onS2C_MyPlayerInfoMessageHandler = function(t) {
			var e = this;
			e._mapModule.clear(), App.global.characterData.initCharacterData(t), App.dispatcher.dispatchEvent(EventType.CHARACTER_ROLE_CREATE),
				0 == e._initPreLoad && (e._initPreLoad = !0, e._mapModule.mapSkillModel.initialize(), App.preLoader.loadHejiSkill(
					App.global.characterData.job))
		}, e.prototype.onS2C_PlayerAttributeChangeMessageHandler = function(t) {
			var e = this,
				i = App.global.characterData;
			null == i && (i = new CharacterRoleData(e._mapModule), e._mapModule.mapAvatarModel.createCharacter(i)), i.changeAttribute(
				t.abilityinfo, t.attributeChangeReason)
		}, e.prototype.makeServerMoveAction = function(t, e, i, n) {
			void 0 === n && (n = null);
			var a = this;
			if (a._mapModule.mapLoader.mapData) {
				var o = MoveAction.getOne(t);
				o.postionBytes = e, n && (o.serverNode = a._mapModule.mapLoader.mapData.getNodeByXY(n.px, n.py)), o.endNode = a._mapModule
					.mapLoader.mapData.getNodeByXY(i.px, i.py)
			}
			return o
		}, e.prototype.forInFunc = function(t, e, i) {
			if (t)
				for (var n = t.length, a = 0; n > a; a++) {
					var o = t[a];
					o.hasOwnProperty("high") && o.hasOwnProperty("low") && (o = LongUtil.toString(o)), FunctionApply.doExecute(e, i,
						[o])
				}
		}, e
}(BaseConnectionRegister);
__reflect(MapAcceptCommandCoprocessor.prototype, "MapAcceptCommandCoprocessor");
var MapNotificationCoprocessor = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i.NearbyNotice = function() {
			i._meetImg || (i._meetImg = UIMaker.getImage(App.layer.mainLayer, i, ResPathUtil.getImgPath("meet_rival", "main"),
				Config.SCREEN_WIDTH - 210 >> 1, Config.SCREEN_HEIGHT - 600 >> 1), App.timer.doTimeOnce(i, 4e3, function() {
				TweenLite.to(i._meetImg, 1.5, {
					alpha: 0,
					onComplete: i.CleanMeetNotice,
					onCompleteScope: i
				})
			}))
		}, i.CleanMeetNotice = function() {
			App.layer.mainLayer.removeChild(i._meetImg), TweenLite.killTweensOf(i._meetImg), i._meetImg = null
		}, i.smoothHint = [], i.cleanNotice = function() {
			i.smoothHint.length > 0 && i.smoothHint.map(function(t) {
				-1 != App.layer.mainLayer.$children.indexOf(t) && App.layer.mainLayer.removeChild(t), "close" == t.name && t.removeEventListener(
					egret.TouchEvent.TOUCH_TAP, i.cleanNotice, i)
			}), i.smoothHint = null, i.smoothHint = []
		};
		var n = i;
		return n._mapModule = e, n.initialize(), i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		var t = this,
			e = App.dispatcher.addEventListener.bind(App.dispatcher);
		e(EventType.ENTER_MAP_INIT, t.onEnterInMap, t), e(EventType.OPEN_AUTO_FIGHT, t.onOpenAutoFight, t), e(EventType.CLOSE_AUTO_FIGHT,
			t.onCloseAutoFight, t), e(EventType.OPEN_OR_CLOSE_AUTO_FIGHT, t.onOpenOrCloseAutoFight, t), e(EventType.TAKE_UP_DROP_ITEM,
			t.onTakeUpDropItem, t), e(EventType.DROP_MAP_ITEM, t.onDropMapItemsHandler, t), e(EventType.CHARACTER_MOVE_TO_POSITION,
			t.onMoveToMapPostion, t), e(EventType.SETTING_AUTO_FIGHT_CONFIG, t.onSettingAutoFightConfig, t), e(EventType.DEBUG_MODE_CHANGE,
			t.onDebugModeChange, t), e(EventType.CHANGE_CASTLEGUILDID, t.onChangeCastleGuildIdHandler, t), e(EventType.CHANGE_CASTLEGUILDID,
			t.onChangeCastleGuild, t), e(EventType.MAP_NPC_TASK_CLICK, t.onMapNpcTaskClickHandler, t), e(EventType.MAP_ROLE_SEARCH_CLICK,
			t.onMapRoleSearchClickHandler, t), e(EventType.MAP_DUMMY_ROLE_CLICK, t.onMapDummyRoleClickHandler, t), e(
			EventType.RESET_ALL_IS_IN_VISIBLE_AREA, t.onResetAllIsInVisibleArea, t), e(EventType.AUTO_BOSS_KILL, t.onAutoBossKill,
			t), e(EventType.CHANGE_NO_GUAJI_SEARCH_MONSTER, t.onChangeIsSearchMonster, t), e(EventType.PINGBIAll, t.onPingbiAll,
			t), e(PlayerAttributeEvent.ADD_ATTACKER, t.onAddAttacker, t), e(PlayerAttributeEvent.REMOVE_ATTACKER, t.onRemoveAttacker,
			t), e(PlayerAttributeEvent.CHANGE_PKSTATE, t.onChangePkSatet, t), e(PlayerAttributeEvent.ROLE_DEAD, t.onCharacterDead,
			t), e(TaskEvent.TASK_CLICK, t.onTaskClickHandler, t), e(TaskEvent.TASK_TRANSFER, t.onTaskTransferHandler, t), e(
			TaskEvent.UPDATETASKTRACK, t.onUpdateTaskTrack, t), e(TaskEvent.TASK_FINISH, t.onTaskFinish, t), e(CastleWarEvent
			.WAR_STATE, t.onWarStateChange, t), e(TeamEvent.RADAR_REMOVEMEMBER, t.onTeamRemoveMemberHandler, t), e(TeamEvent.RADAR_ADDMEMBER,
			t.onTeamAddMemberHandler, t), e(TeamEvent.CHARACTER_TEAM_CHANGE, t.onCharacterTeamChangeHandler, t), e(EnumEvent.EVENT_NEARB_NOTICE,
			t.NearbyNotice, t)
	}, e.prototype.onPingbiAll = function() {
		var t = App.data.autoRobotCenter.pingbiBol,
			e = "精细",
			i = new MapRoleShowHideData;
		switch (t) {
			case 1:
				e = "流畅", i.hide_allPet = !0, i.hide_playerWing = !0, i.hide_playerTitles = !0, i.hide_skillEffect = !0, i.hide_commonMonster = !
					0, 0 == this.smoothHint.length && (this.noticeCenter(), App.timer.doTimeLoop(this, 3e4, this.noticeCenter));
				break;
			case 0:
				this.smoothHint.length > 0 && (this.cleanNotice(), App.timer.clearTimer(this.noticeCenter, this), this.smoothHint =
					null, this.smoothHint = [])
		}
		this._mapModule.mapAvatarModel.hideData = i, Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">已切换至" + e + "模式</font>")
	}, e.prototype.noticeCenter = function() {
		if (1 == App.data.autoRobotCenter.pingbiBol) {
			var t = UIMaker.getImage(App.layer.mainLayer, this, ResPathUtil.getImgPath("model_hint", "main"), Config.SCREEN_WIDTH -
					431 >> 1, Config.SCREEN_HEIGHT - 600 >> 1),
				e = UIMaker.getImage(App.layer.mainLayer, this, ResPathUtil.getImgPath("hint_close", "main"), Config.SCREEN_WIDTH +
					380 >> 1, Config.SCREEN_HEIGHT - 608 >> 1);
			e.name = "close", e.touchEnabled = !0, e.addEventListener(egret.TouchEvent.TOUCH_TAP, this.cleanNotice, this),
				this.smoothHint.push(t), this.smoothHint.push(e), App.timer.doTimeOnce(this, 5e3, this.cleanNotice)
		}
	}, e.prototype.onChangeIsSearchMonster = function(t) {
		App.global.characterData && (App.global.characterData.isNoSearchMonster = t)
	}, e.prototype.onMapDummyRoleClickHandler = function(t) {
		var e = this,
			i = App.global.characterData;
		if (!i.getIsDead()) {
			var n = e._mapModule.mapDummyModel.getRole(t);
			if (n) {
				var a = h5_engine.MapVO.getDistanceBy2Point(i.move_to_x, i.move_to_y, n.pixel_x, n.pixel_y);
				if (a > 2) {
					var o = SearchToPointVO.getVO();
					o.finishHandler = new FunctionVO(function() {
							n = e._mapModule.mapDummyModel.getRole(t), n && App.dispatcher.dispatchEvent(EventType.SELECT_DUMMY_ROLE, t)
						}, e), o.shift = 1, i.changeAutoSearchRoad(!0), o.search(i, n.pixel_x, n.pixel_y, "onMapDummyRoleClickHandler"),
						i.ai.reset()
				} else App.dispatcher.dispatchEvent(EventType.SELECT_DUMMY_ROLE, t)
			}
		}
	}, e.prototype.onCharacterDead = function(t) {
		var e = this,
			i = e._mapModule.mapMouseModel.controlRoleData;
		i && i.personId == t && e._mapModule.mapMouseModel.changeControPlayer()
	}, e.prototype.onCharacterTeamChangeHandler = function(t) {
		0 == t && this.onChangeCastleGuild()
	}, e.prototype.onTeamAddMemberHandler = function(t) {
		var e = this,
			i = t.playerId.toString(),
			n = e._mapModule.mapAvatarModel.getPlayer(i);
		n && (n.setTeamId(App.global.characterData.getTeamId()), e._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle(n.personId,
			n));
		for (var a = e._mapModule.mapAvatarModel.petHash, o = a.values, r = o.length, s = 0; r > s; s++) {
			var h = o[s];
			h.ownerId == i && (h.setTeamId(App.global.characterData.getTeamId()), e._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle(
				h.personId, h))
		}
	}, e.prototype.onTeamRemoveMemberHandler = function(t) {
		var e = this,
			i = e._mapModule.mapAvatarModel.getPlayer(t);
		i && (i.setTeamId("0"), e._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle(i.personId, i));
		for (var n = e._mapModule.mapAvatarModel.petHash, a = n.values, o = a.length, r = 0; o > r; r++) {
			var s = a[r];
			s.ownerId == t && (s.setTeamId("0"), e._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle(s.personId, s))
		}
	}, e.prototype.onNearbyChatResponseHandler = function(t, e) {
		var i = this._mapModule.mapAvatarModel.getPlayerOrCharacterData(t);
		i && i.roleView.showChatBubble(i.name + "： " + e)
	}, e.prototype.onWarStateChange = function(t, e) {
		var i = this._mapModule.mapAvatarModel.getNpcByModelId(70);
		i && i.setName(i.name)
	}, e.prototype.onTaskFinish = function(t) {
		if (t && t.taskFinishID > 0) {
			var e = this._mapModule.mapAvatarModel.getNpcByModelId(t.taskFinishID);
			e && e.roleView.addStateEffect(3)
		}
	}, e.prototype.onUpdateTaskTrack = function(t) {
		void 0 === t && (t = null);
		var e = [];
		if (e && e.length > 0)
			for (var i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				if (1 == a.taskType && a.taskFinishID > 0 && 2 == a.taskState) {
					var o = this._mapModule.mapAvatarModel.getNpcByModelId(a.taskFinishID);
					o && o.roleView.addStateEffect(a.taskState)
				}
			}
	}, e.prototype.onTaskTransferHandler = function(t, e, i) {
		void 0 === e && (e = ""), void 0 === i && (i = 0);
		var n = App.global.characterData;
		n.clearTransferInfo(), n.closeFightAi(), n.operation.clearAuto(), this._mapModule.mapMoveModel.mapSearchManager.clear(),
			n.getIsDead() || n.actionList.clear()
	}, e.prototype.onTaskClickHandler = function(t, e, i) {
		void 0 === e && (e = !1), void 0 === i && (i = !0);
		var n = App.global.characterData;
		if (null != n && !n.getIsDead() && (n.operation.clearAuto(), n.isFightAiRuning || 0 == e)) {
			var a = new AIFightParma;
			return a.checkDropCallBack = new FunctionVO(this.onTaskClickHandler, this, t, !0), void n.ai.checkAutoSearchItem(a)
		}
	}, e.prototype.onChangePkSatet = function(t, e) {
		void 0 === t && (t = 0), this.onChangeCastleGuild(), App.global.mouseUnit && App.global.mouseUnit.mouseOver()
	}, e.prototype.onAddAttacker = function(t) {
		var e = this._mapModule.mapAvatarModel.getPlayer(t);
		e && (e.attackerName = "<font color='#FF0000'>[敌]</font>")
	}, e.prototype.onRemoveAttacker = function(t) {
		var e = this._mapModule.mapAvatarModel.getPlayer(t);
		e && (e.attackerName = "<font color='#FF0000'></font>")
	}, e.prototype.onAutoBossKill = function(t, e, i, n) {
		var a = App.global.mapModule.mapMouseModel.controlRoleData;
		if (!a.getIsDead()) {
			a.operation.clearAuto();
			var o = h5_engine.MapVO.getCenterPoint(i, n),
				r = new FunctionVO(this.searchBossOver, this, t, e, i, n);
			if (e == a.mapId)
				if (a.move_to_x != o.x || a.move_to_y != o.y) {
					var s = SearchToPointVO.getVO();
					s.finishHandler = r, a.changeAutoSearchRoad(!0), 0 == s.search(a, o.x, o.y, "onMoveToMapPostion") && a.resetSearchNewRoadToPoint(
						"onAutoBossKill"), a.ai.reset()
				} else r.exec()
		}
	}, e.prototype.searchBossOver = function(t, e, i, n) {
		var a = this,
			o = a._mapModule.mapAvatarModel.getMonsterByModelId(t),
			r = new FunctionVO(a.searchBossOver, a, t, e, i, n);
		o ? App.dispatcher.dispatchEvent(EventType.OPEN_AUTO_FIGHT, t, r) : a.onDropMapItemsHandler(r)
	}, e.prototype.onResetAllIsInVisibleArea = function() {
		var t = this;
		t._mapModule.mapAvatarModel.resetAllIsInVisibleArea(), t._mapModule.mapFightModel.resetAllIsInVisibleArea(), t._mapModule
			.mapItemModel.resetAllIsInVisibleArea()
	}, e.prototype.onMapRoleSearchClickHandler = function(t, e) {
		var i = this,
			n = App.global.mapModule.mapMouseModel.controlRoleData;
		if (!n.getIsDead()) {
			n.operation.clearAuto();
			var a = i._mapModule.mapAvatarModel.getPlayer(t),
				o = h5_engine.MapVO.getDistanceBy2Point(n.move_to_x, n.move_to_y, a.serverMap_x, a.serverMap_y);
			if (o > 2) {
				var r = SearchToPointVO.getVO();
				r.finishHandler = new FunctionVO(function() {
					null != e && e.exec(t)
				}, i), r.shift = 1, r.search(n, a.serverMap_x, a.serverMap_y, "onMapRoleSearchClickHandler"), n.ai.reset()
			} else null != e && e.exec(t)
		}
	}, e.prototype.onMapNpcTaskClickHandler = function(t) {
		var e = this,
			i = App.global.mapModule.mapMouseModel.controlRoleData;
		if (!i.getIsDead()) {
			i.operation.clearAuto();
			var n = e._mapModule.mapAvatarModel.getNpc(t),
				a = (e._mapModule.mapLoader.mapData.getNodeByXY(n.serverMap_x, n.serverMap_y), h5_engine.MapVO.getDistanceBy2Point(
					i.move_to_x, i.move_to_y, n.serverMap_x, n.serverMap_y));
			if (a > n.npcModelBean.q_Interactive) {
				var o = SearchToPointVO.getVO();
				o.finishHandler = new FunctionVO(function() {
					n = e._mapModule.mapAvatarModel.getNpc(t), n && App.dispatcher.dispatchEvent(EventType.SELECT_NPC, n)
				}, e), o.shift = 1, o.search(i, n.serverMap_x, n.serverMap_y, "onMapNpcTaskClickHandler"), i.ai.reset()
			} else {
				var r = void 0;
				r = GameUtil.getNpcConfigData(n.npcModelId), r && App.global.operate.operateJson(r.q_operate), App.dispatcher.dispatchEvent(
					EventType.SELECT_NPC, n)
			}
		}
	}, e.prototype.onChangeCastleGuild = function() {
		var t = this;
		t._mapModule.mapAvatarModel.playerHash.foEach(t._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle, t._mapModule.mapAvatarModel),
			t._mapModule.mapAvatarModel.petHash.foEach(t._mapModule.mapAvatarModel.onChangeEnemyHpBarStyle, t._mapModule.mapAvatarModel)
	}, e.prototype.onChangeCastleGuildIdHandler = function(t) {
		void 0 === t && (t = 0);
		var e = this;
		App.global.characterData && App.global.characterData.changeGuildName();
		var i = (e._mapModule.mapAvatarModel.getNpcByModelId(70), e._mapModule.mapAvatarModel.playerHash);
		i.forInValueExcetureFunctionName("changeGuildName")
	}, e.prototype.onDebugModeChange = function() {
		var t = this._mapModule;
		t.mapItemModel.changeDebugMode(), t.mapAvatarModel.changeDebugMode()
	}, e.prototype.onMoveToMapPostion = function(t, e, i, n) {
		var a = App.global.mapModule.mapMouseModel.controlRoleData;
		if (!a.getIsDead()) {
			n && n.map(function(t) {
				t.exec()
			}), a.operation.clearAuto();
			var o = h5_engine.MapVO.getCenterPoint(e, i);
			if (t == a.mapId)
				if (a.move_to_x == o.x && a.move_to_y == o.y || -1 == e && -1 == i);
				else {
					var r = SearchToPointVO.getVO();
					r.finishHandler = new FunctionVO(function() {
						a.changeAutoSearchRoad(!1)
					}, this), a.changeAutoSearchRoad(!0), r.search(a, o.x, o.y, "onMoveToMapPostion"), a.ai.reset()
				}
			else this._mapModule.mapMoveModel.searchRoadToMap(a, t, o.x, o.y)
		}
	}, e.prototype.onTakeUpDropItem = function(t, e) {
		var i = this,
			n = App.global.mapModule.mapMouseModel.controlRoleData;
		if (n.operation.clearAuto(), n.pixel_x == t && n.pixel_y == e) i._mapModule.mapItemModel.checkCanDropItem(n, t, e);
		else {
			var a = SearchToPointVO.getVO();
			a.finishHandler = new FunctionVO(function() {
				n.changeAutoSearchRoad(!1)
			}, i), n.changeAutoSearchRoad(!0), a.search(n, t, e, "onTakeUpDropItem"), n.ai.reset()
		}
	}, e.prototype.onDropMapItemsHandler = function(t) {
		var e = new AIFightParma;
		e.checkDropCallBack = t, App.global.characterData.ai.checkAutoSearchItem(e)
	}, e.prototype.onSettingAutoFightConfig = function(t) {
		App.global.characterData.autoSettingData = t
	}, e.prototype.onOpenOrCloseAutoFight = function() {
		var t = App.global.characterData;
		t.isFightAiRuning ? t.closeFightAi() : t.openFightAi()
	}, e.prototype.onCloseAutoFight = function() {
		var t = App.global.characterData;
		t.isFightAiRuning && t.closeFightAi()
	}, e.prototype.onOpenAutoFight = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = null);
		var i = new AIFightParma;
		i.targetMonsterModelID = t, i.targetMonsterKillFuc = e, App.global.characterData.openFightAi(i)
	}, e.prototype.onEnterInMap = function(t, e) {
		void 0 === e && (e = null);
		var i = this;
		if (1 == Platfrom_HDHD.is_client && 0 == DownLoadPanel.hasOpened) {
			var n = App.data.activityCenter.getData(DownLoadPanel.ACT1);
			n.receivedTimes <= 0 && App.timer.doTimeOnce(this, 6e4, this.openDownload)
		}
		10001 == t && App.timer.clearTimer(this, this.openDownload), null == e && (e = new FunctionVO(i.onEneterHandler, i));
		var a = App.config.q_mapContainer.getDataBean(t);
		a ? (App.global.characterData && (App.global.enterMapIng = !1, App.global.characterData.clear()), i._mapModule.mapLoader
			.changeMap(t, e)) : GameLog.logError("ID为:" + t + "的地图配置不存在")
	}, e.prototype.onEneterHandler = function() {
		this._mapModule.sendCommand.sendLoadMapFinishMessage(), Config.socket.lockMessageReslove = !1
	}, e.prototype.openDownload = function() {
		0 == DownLoadPanel.hasOpened && (PanelOpenManager.openPanel(40003), DownLoadPanel.hasOpened = !0)
	}, e.prototype.clear = function() {}, e
}(Dispose);
__reflect(MapNotificationCoprocessor.prototype, "MapNotificationCoprocessor");
var MapSendCommandCoprocessor = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._mapModule = e, i
	}
	return __extends(e, t), e.prototype.sendLoadMapFinishMessage = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0);
		var i = this.createCmd(16142);
		i.width = Config.SCREEN_WIDTH, i.height = Config.SCREEN_HEIGHT, this.sendCommand(i)
	}, e.prototype.sendLoadFinishForChangeMapMessage = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0);
		var i = this.createCmd(16165);
		i.width = Config.SCREEN_WIDTH, i.height = Config.SCREEN_HEIGHT, this.sendCommand(i)
	}, e.prototype.sendCharcterRunMessage = function(t, e, i, n, a, o, r, s, h, l) {
		var p = {};
		p.px = s << 0, p.py = h << 0;
		var c = {};
		c.px = n << 0, c.py = a << 0;
		var _ = new Array,
			d = 0;
		d = o << 5, d = r | d, _.push(d);
		var u = this.createCmd(16121);
		if (u.mapId = i, u.moveId = e, u.startPosition = p, u.position = c, u.positions = _, u.cur = ServerTime.getSystemTime(),
			u.createTime = LongUtil.fromNumber(0), u.passing = ServerTime.getFlashTime(), u.playerId = LongUtil.fromString(l),
			u.playerParentId = LongUtil.fromString(App.global.characterData.personId), this.sendCommand(u), GameLog.isTraceLog
		) {
			var g = App.global.mapModule.mapAvatarModel.getRoleData(l);
			if (g) {
				var f = App.global.mapModule.mapLoader.mapData.getNodeByXY(g.pixel_x, g.pixel_y),
					m = App.global.mapModule.mapLoader.mapData.getNodeByXY(g.serverMap_x, g.serverMap_y),
					v = App.global.mapModule.mapLoader.mapData.getNodeByXY(n, a),
					y = App.global.mapModule.mapLoader.mapData.getNodeByXY(g.move_to_x, g.move_to_y);
				if (f && m && v && y) {
					var E = "客户端移动发包, playerid:" + l + ",from:" + t + ", step: " + r + ", dir:" + o + " , pixel[" + f.x + "," + f.y +
						"|" + g.pixel_x + "," + g.pixel_y + "], Server_XY[" + m.x + "," + m.y + "|" + g.serverMap_x + "," + g.serverMap_y +
						"], 移动到：[" + v.x + "," + v.y + "|" + n + "," + a + "], 客户端记录的moveTo:[" + y.x + "," + y.y + "|" + g.move_to_x +
						"," + g.move_to_y + "]";
					GameLog.logDebug(E)
				}
			}
		}
	}, e.prototype.sendAttackPersonMessage = function(t, e, i, n, a, o, r, s, h, l) {
		void 0 === l && (l = 0), t.stopTime = 0;
		var p = this._mapModule.mapAvatarModel.getMonster(n);
		if (p && ByteUtils.hasKey(p.monsterType, 2) && t instanceof CharacterRoleData) {
			var c = App.data.skillCenter.getSkill(e),
				_ = c ? c.level : 1,
				d = GameUtil.getSkillConfigData(e, _),
				u = t.dcmax;
			d && (u = u * (1 + d.q_hurt_correct_factor / 1e4) + d.q_ignore_defence), p.clientHp = p.clientHp - u
		}
		var g = this.createCmd(16055);
		g.fightType = e, g.fightDirection = i, g.fightTarget = "0" == n ? LongUtil.fromNumber(0) : LongUtil.fromString(n),
			g.x = a >> 0, g.y = o >> 0, g.targetType = 0, g.passing = ServerTime.getFlashTime(), g.cur = ServerTime.getSystemTime(),
			g.curplayerX = r, g.curplayerY = s, g.otherFightType = h, g.auto = l, g.playerId = LongUtil.fromString(t.personId),
			g.playerParentId = LongUtil.fromString(App.global.characterData.personId), this.sendCommand(g)
	}, e.prototype.takeUpItem = function(t, e) {
		if (e.stopTime = 0, null != t) {
			var i = t.info;
			if (null != i)
				if ("0" == t.ownerId || "" == t.ownerId || t.ownerId == e.personId || e instanceof CharcterPartnerRoleData && e.ownerId ==
					t.ownerId) {
					var n = GameUtil.getItemConfigData(i.itemModelId);
					3 == n.q_type ? App.sound.playSound(EnumSoundId.MONEY_PICKUP, 100) : App.sound.playSound(EnumSoundId.ITEM_PICKUP,
						100);
					var a = this.createCmd(16196);
					a.itemId = i.dropGoodsId, this.sendCommand(a), App.timer.doFrameOnce(App.global.mapModule.mapItemModel, 1, App.global
						.mapModule.mapItemModel.deleteDropItem, [t.itemOnlyId]), GameLog.log("拾取人物ID:", e.personId, "拾取物品：", t.getName(),
						t.x, t.y, "人物数据:", e.move_to_x, e.move_to_y, "人物服务器坐标:", e.serverMap_x, e.serverMap_y);
					var o = this._mapModule.mapItemModel.getDropItem(LongUtil.toString(i.dropGoodsId)).itemBaseid,
						r = App.config.q_itemContainer.getDataBean(o),
						s = ItemUtil.getItemNameColor(o, !0);
					Notice.showBottomMessage("获得<font color = '" + s + "'>" + r.q_name + "</font> x" + i.num, Notice.BG_COLOR)
				} else GameLog.log("物品:", t.itemOnlyId, "物品归属ID：", t.ownerId, "不属于你， 不能拾取")
		}
	}, e.prototype.sendAutoFightState = function(t) {
		if (t) {
			var e = this.createCmd(16161);
			e.passing = ServerTime.getFlashTime(), e.cur = ServerTime.getSystemTime(), this.sendCommand(e)
		} else {
			var i = this.createCmd(16071);
			i.passing = ServerTime.getFlashTime(), i.cur = ServerTime.getSystemTime(), this.sendCommand(i)
		}
	}, e.prototype.sendFinishFlying = function(t, e) {
		if (0 == t.actionList.length) {
			var i = this.createCmd(16557);
			i.personId = LongUtil.fromString(t.personId), i.reason = e, this.sendCommand(i), GameLog.log("sendFinishFlying:",
				t.personId), t.isJumping = !1
		}
	}, e
}(BaseConnectionSender);
__reflect(MapSendCommandCoprocessor.prototype, "MapSendCommandCoprocessor");
var ScrollerType1 = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._VRoll = !1, e._HRoll = !1, e._dispatcher = new DispatcherRegister, e._dispatcher.addEventListener(egret.Event
			.ADDED_TO_STAGE, e.addedToStage, e, e), e
	}
	return __extends(e, t), e.prototype.addedToStage = function() {
		this.initState(), this.addEvents()
	}, e.prototype.initState = function() {
		this.bgVBar && (this.bgVBar.visible = !1), this.bgHBar && (this.bgHBar.visible = !1)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(eui.UIEvent.CHANGE_START, this.changeHandler, this, this), this._dispatcher.addEventListener(
			eui.UIEvent.CHANGE_END, this.changeHandler, this, this)
	}, e.prototype.changeHandler = function(t) {
		var e = t.currentTarget;
		switch (t.type) {
			case eui.UIEvent.CHANGE_START:
				this._VRoll = e.verticalScrollBar.visible, this._HRoll = e.horizontalScrollBar.visible;
				break;
			case eui.UIEvent.CHANGE_END:
				this._VRoll = !1, this._HRoll = !1
		}
		this.invalidateState()
	}, Object.defineProperty(e.prototype, "currentState", {
		get: function() {
			return this.enabled ? this._VRoll && this._HRoll ? "vhroll" : this._VRoll ? "vroll" : this._HRoll ? "hroll" :
				"stop" : "disabled"
		},
		enumerable: !0,
		configurable: !0
	}), e
}(eui.Scroller);
__reflect(ScrollerType1.prototype, "ScrollerType1");
var VScrollPanel = function(t) {
	function e(e, i, n, a, o, r) {
		void 0 === r && (r = 1);
		var s = t.call(this) || this;
		return s._gap = 0, s._type = 1, s.configUI(o), s.width = e ? e : 0, s.height = i ? i : 0, s.itemRender = n ? n :
			void 0, s._type = r, s.gap = a ? a : 0, s
	}
	return __extends(e, t), e.prototype.configUI = function(t) {
		this.skinName = "ScrollerSkin", t ? this.viewport = t : (this._list = new ListView, this.viewport = this._list)
	}, Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			this._dataProvider ? this._dataProvider.replaceAll(t) : (this._dataProvider = new eui.ArrayCollection(t), this._list
				.dataProvider = this._dataProvider, this._list && (2 == this._type ? (this.scrollPolicyH = eui.ScrollPolicy.ON,
					this.scrollPolicyV = eui.ScrollPolicy.OFF, this._verLay2 || (this._verLay2 = new eui.HorizontalLayout), this
					._verLay2.gap = this.gap, this._list.layout = this._verLay2) : (this._verLay1 || (this._verLay1 = new eui.VerticalLayout),
					this._verLay1.gap = this.gap, this._list.layout = this._verLay1)))
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getDataProvider = function() {
		return this._dataProvider
	}, e.prototype.move = function(t, e, i) {
		this.x = t, this.y = e, i && i.addChild(this)
	}, Object.defineProperty(e.prototype, "gap", {
		get: function() {
			return this._gap
		},
		set: function(t) {
			this._list && this.gap != t && (this._gap = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.removeAll = function() {
		if (this.stopAnimation(), this.list)
			for (var t = this.list.numChildren, e = void 0, i = 0; t > i; i++) e = this.list.getChildAt(i), e && e.clear();
		this._dataProvider && this._dataProvider.removeAll()
	}, e.prototype.dispose = function() {
		this.stopAnimation(), this.removeAll(), this._itemRender = null, this._dataProvider = null, this.viewport = null,
			this._list = null
	}, Object.defineProperty(e.prototype, "itemRender", {
		get: function() {
			return this._itemRender
		},
		set: function(t) {
			t && (this._itemRender = t, this._list.itemRenderer = this._itemRender)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "list", {
		get: function() {
			return this._list
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectedIndex", {
		set: function(t) {
			this._list.selectedIndex = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.selectClick = function(t, e, i) {
		void 0 === i && (i = !0), this.selectedIndex = t, this.scrollPolicyH == eui.ScrollPolicy.ON ? 1 == i ? this._list.scrollH =
			this.width / e * t + this.gap * (t + 1) : this._list.scrollH = this.width / e * t + this.gap * (t + 1) : this.scrollPolicyV ==
			eui.ScrollPolicy.ON && (1 == i ? this._list.scrollV += this.height / e * t + this.gap * (t + 1) : this._list.scrollV -=
				this.height / e * t + this.gap * (t + 1))
	}, e.prototype.selectClick2 = function(t) {
		if (this.selectedIndex = t, null != this._list && 0 != this._list.numChildren) {
			var e = this.list.getChildAt(0).width,
				i = e * t + this.gap * t + this.gap / 2;
			this._list.scrollH = i
		}
	}, e
}(eui.Scroller);
__reflect(VScrollPanel.prototype, "VScrollPanel");
var ListView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.rendererAdded = function(e, i, n) {
		t.prototype.rendererAdded.call(this, e, i, n)
	}, e.prototype.rendererRemoved = function(e, i, n) {
		t.prototype.rendererRemoved.call(this, e, i, n), this.renderCls && e.clear()
	}, Object.defineProperty(e.prototype, "itemRenderer", {
		get: function() {
			return egret.superGetter(e, this, "itemRenderer")
		},
		set: function(t) {
			this.renderCls = t, egret.superSetter(e, this, "itemRenderer", t)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(eui.List);
__reflect(ListView.prototype, "ListView");
var RoleDataActionList = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.setData = function(t) {
		this._roleData = t, this.isRuning = !0
	}, e.prototype.startCrtAction = function(e) {
		e.setRoleData(this._roleData), t.prototype.startCrtAction.call(this, e)
	}, e.prototype.actionListEmpty = function() {
		this.isRuning && App.dispatcher.dispatchEvent(EventType.CHARACTER_ACTION_LIST_EMPTY, this._roleData)
	}, e.prototype.putPoolClear = function() {
		t.prototype.putPoolClear.call(this), this._roleData = null
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._roleData = null
	}, e
}(h5_engine.ActionList);
__reflect(RoleDataActionList.prototype, "RoleDataActionList");
var SearchNewRoadAction = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._passTime = 0, i._type = "", i._type = e, i
	}
	return __extends(e, t), e.prototype.start = function() {
		if (t.prototype.start.call(this), this._stateFucName = "start", null == App.global.mapModule.mapLoader.mapData)
			return void this.end("SearchNewRoadAction-_mapModule.mapLoader.mapData == null");
		var e = App.global.characterData.searchToPointVo;
		return null == e || e.px == this._roleData.serverMap_x && e.py == this._roleData.serverMap_y ? void this.end(
			"start_end") : void 0
	}, e.prototype.addvanceTime = function(t) {
		this._passTime += t;
		var e = App.global.characterData.searchToPointVo;
		e ? this._passTime >= 500 && (this.resetSearchNewRoadToPoint(), App.global.characterData.searchToPointVo, this.end(
			"addvanceTime-starSearch")) : this.end("addvanceTime-SearchToPointVO is Null")
	}, e.prototype.resetSearchNewRoadToPoint = function() {
		var t = App.global.characterData.searchToPointVo;
		if (t && null == t.roleData) return void(App.global.characterData.searchToPointVo = null);
		if (t && 0 == App.global.mapModule.mapMouseModel.checkMouseDownMap())
			if (t.px != this._roleData.serverMap_x || t.py != this._roleData.serverMap_y) {
				t.type = this._type;
				var e = App.global.mapModule.mapMoveModel.searchRoadByAstar(t);
				if (e && e.length > 0) App.global.characterData.actionList.resetActionList(e);
				else {
					var i = App.global.mapModule.mapLoader.mapData.getNode(this._roleData.mapNode_x, this._roleData.mapNode_y),
						n = "";
					i && App.global.mapModule.mapMoveModel.checkAroundEmptyInTheNode(i, 1) && (n = "你被包围了");
					this._type + ", 重新寻路路径寻找失败, " + n;
					this._roleData.isFightAiRuning ? this._roleData.ai.changeSearchNode() : 0 == t.checkSearchMax() && App.global.characterData
						.resetSearchNewRoadToPoint("resetSearchNewRoadToPoint", t)
				}
			} else null != t.finishHandler && t.finishHandler.exec()
	}, e.prototype.end = function(e) {
		t.prototype.end.call(this, e)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(RoleAction);
__reflect(SearchNewRoadAction.prototype, "SearchNewRoadAction");
var BeHitFlyAction = function(t) {
	function e(e, i, n) {
		void 0 === e && (e = null), void 0 === i && (i = 0), void 0 === n && (n = 0);
		var a = t.call(this) || this;
		return a._maxHeight = -1, a._v = -1, a._isRuning = !1, a._lastTime = 0, a._passtime = 0, a._g = 0, a._dir = 1, a._maxCount =
			0, a._num = 0, a._tx = i, a._ty = n, a._killer = e, a
	}
	return __extends(e, t), e.prototype.start = function() {
		if (t.prototype.start.call(this), this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_DIE, -1, !1), this._killer) {
			var e = MathUnit.atan2Angle(this._roleData.pixel_x, this._roleData.pixel_y, this._killer.pixel_x, this._killer.pixel_y),
				i = 160 + 160 * Math.random();
			this._tx = this._roleData.pixel_x + Math.cos(e) * i, this._ty = this._roleData.pixel_y + Math.sin(e) * i
		}
		this._moveToPoint = new egret.Point(this._roleData.pixel_x, this._roleData.pixel_y), TweenLite.to(this._moveToPoint,
			.4, {
				x: this._tx,
				y: this._ty,
				onComplete: this.onCompete,
				onUpdate: this.onUpdate,
				ease: Linear.easeOut,
				onCompleteScope: this,
				onUpdateScope: this
			}), this._lastTime = 0, this._passtime = 0;
		var n = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, this._tx, this._ty);
		this._maxCount = Math.ceil(n / 150), this._maxHeight = 40 * Math.ceil(n / 120), this._v = 4 * Math.ceil(n / 150),
			this._num = 0, this._dir = 1, this._isRuning = !0
	}, e.prototype.onUpdate = function() {
		this._moveToPoint && this._roleData && this._roleData.progressMove(this._moveToPoint.x, this._moveToPoint.y)
	}, e.prototype.onCompete = function() {
		this._roleData && (this._roleData.pixel_z = 0), this.end("移动超时强制结束这个行为动作")
	}, e.prototype.addvanceTime = function(t) {
		0 != this._isRuning && (this._passtime += t, this._g > this._maxHeight ? this._dir = -1 : this._g < 0 && (this._maxHeight =
				2 * this._maxHeight / 3, this._v = 2 * this._v / 3, this._dir = 1, this._num++), this._g += this._v * this._dir,
			this._roleData.pixel_z = this._g, this._num >= this._maxCount && (this._isRuning = !1))
	}, e.prototype.clear = function() {
		this._isRuning = !1
	}, e.prototype.dispose = function() {
		this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), this._moveToPoint = null, this._killer = null, this
			.clear(), t.prototype.dispose.call(this)
	}, e
}(RoleAction);
__reflect(BeHitFlyAction.prototype, "BeHitFlyAction");
var DaDaoFightAction = function(t) {
	function e(e) {
		return void 0 === e && (e = null), t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		var t = App.global.mapModule,
			e = this,
			i = t.mapAvatarModel.getFightRoleData(e.targetPersonId);
		if (i) {
			var n = t.mapLoader.mapData.getNodeByXY(i.pixel_x, i.pixel_y);
			if (n) {
				var a = t.mapMoveModel.getNodeByDir(n, h5_engine.SceneType.getOppositeDir(e.fightDirection));
				a && e._roleData.progressMove(this._roleData.serverMap_x, e._roleData.serverMap_y)
			}
			e.startFight()
		} else e.startFight()
	}, e.prototype.startFight = function() {
		t.prototype.start.call(this)
	}, e.prototype.putInPool = function() {}, e.prototype.end = function(e) {
		this._roleData.progressMove(this._roleData.serverMap_x, this._roleData.serverMap_y), t.prototype.end.call(this, e)
	}, e
}(FightAction);
__reflect(DaDaoFightAction.prototype, "DaDaoFightAction");
var VScrollPanelMoveOne = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.itemNum = 0, e.curItemCount = 0, e.delayScroll = 250, e.isHScroller = !0, e.bScrolling = !1, e
	}
	return __extends(e, t), e.prototype.setCallback = function(t, e) {
		this._startFunc = t, this._endFunc = e
	}, e.prototype.childrenCreated = function() {
		this.throwSpeed = 0, this.bounces = !0, this._dispatch = new DispatcherRegister, this._dispatch.addEventListener(
			eui.UIEvent.CHANGE_START, this.onChangeStartHandler, this, this), this._dispatch.addEventListener(eui.UIEvent.CHANGE_END,
			this.onChangeEndHandler, this, this)
	}, e.prototype.dataPushEnd = function(t) {
		this.validateNow();
		var e = this.viewport.contentWidth - this.viewport.width;
		e > 0 ? (this.isHScroller = !0, this.itemSize = this.viewport.width, this.itemNum = this.viewport.contentWidth /
			this.viewport.width) : (this.isHScroller = !1, this.itemSize = this.viewport.height, this.itemNum = this.viewport
			.contentHeight / this.viewport.height), this.curItemCount = t, this.viewport.scrollH = this.curItemCount * this.itemSize
	}, e.prototype.start = function() {
		this.touchEnabled = !0, this.touchChildren = !0
	}, e.prototype.stop = function() {
		this.touchEnabled = !1, this.touchChildren = !1
	}, e.prototype.onChangeStartHandler = function() {
		console.log("ItemScroller >> change start"), this.isHScroller ? this.touchStartPos = this.viewport.scrollH : this.touchStartPos =
			this.viewport.scrollV, this._startFunc && this._startFunc.exec()
	}, e.prototype.onChangeEndHandler = function() {
		if (console.log("ItemScroller >> change end"), -1 != this.touchStartPos) {
			var t;
			t = this.isHScroller ? this.viewport.scrollH - this.touchStartPos : this.viewport.scrollV - this.touchStartPos, t >
				0 ? this.scrollToNext() : 0 > t && this.scrollToLast(), this.touchStartPos = -1, this._endFunc && this._endFunc.exec()
		}
	}, e.prototype.scrollToNext = function() {
		if (!this.bScrolling) {
			var t = this.curItemCount;
			t < this.itemNum - 1 && t++, this.scrollToItem(t)
		}
	}, e.prototype.scrollToLast = function() {
		if (!this.bScrolling) {
			var t = this.curItemCount;
			t > 0 && t--, this.scrollToItem(t)
		}
	}, e.prototype.scrollToItem = function(t) {
		this.bScrolling || t >= 0 && t < this.itemNum && (this.bScrolling = !0, this.disableTouch(), this.curItemCount = t,
			egret.Tween.removeTweens(this.viewport), this.isHScroller ? egret.Tween.get(this.viewport).to({
				scrollH: t * this.itemSize,
				ease: egret.Ease.quadOut
			}, this.delayScroll) : egret.Tween.get(this.viewport).to({
				scrollV: t * this.itemSize,
				ease: egret.Ease.quadOut
			}, this.delayScroll), egret.Tween.get(this.viewport).wait(this.delayScroll).call(this.scrollComplete, this))
	}, e.prototype.scrollComplete = function() {
		this.bScrolling = !1, this.enableTouch(), App.dispatcher.dispatchEvent(e.EVENT_SCROLL_COMPLETE, this.curItemCount)
	}, e.prototype.enableTouch = function() {
		this.touchEnabled = !0, this.touchChildren = !0
	}, e.prototype.disableTouch = function() {
		this.touchChildren = !1, this.touchEnabled = !1
	}, e.prototype.dispose = function() {
		this._dispatch && (this._dispatch.dispose(), this._dispatch = null), egret.Tween.removeTweens(this.viewport)
	}, e.EVENT_SCROLL_COMPLETE = "EVENT_SCROLL_COMPLETE", e
}(eui.Scroller);
__reflect(VScrollPanelMoveOne.prototype, "VScrollPanelMoveOne");
var FightShadowBitmap = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.getRoleView = function() {
		return e.pool.getObject()
	}, e.makeFightShadow = function(t, i) {
		if (i || (i = App.global.mapModule.secne.avatarLayer), t && i) {
			var n = t.roleView.cavatar.getCAvavtarPatr(AvatarPartType.BODY);
			if (n && n.animator) {
				var a = n.animator.getImage(n.currentIndex);
				if (a) {
					var o = t.roleView.cavatar.scaleX,
						r = e.getRoleView();
					r.texture = a.texture, r.x = t.pixel_x + a.offsetX * o, r.y = t.pixel_y + a.offsetY - .5 * t.pixel_z, r.scaleX =
						o, r.start(), i.addChild(r)
				}
			}
		}
	}, e.prototype.start = function() {
		this.alpha = .8, App.timer.doTimeLoop(this, 50, this.onTimeHandler)
	}, e.prototype.onTimeHandler = function() {
		this.alpha -= .1, this.alpha <= .2 && this.dispose()
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.onTimeHandler, this), this.parent && this.parent.removeChild(this), this.texture = null,
			this.alpha = 1, e.pool.push(this)
	}, e.pool = new ObjectPool(e), e
}(egret.Bitmap);
__reflect(FightShadowBitmap.prototype, "FightShadowBitmap");
var MirSavageCollisionAction = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = null), void 0 === a && (a = 0);
		var o = t.call(this) || this;
		return o.from = "MirSavageCollisionAction", o.endNode = i, o.faceDirection = e, o._player = n, o._moveType = a, o
	}
	return __extends(e, t), e.prototype.start = function() {
		var e = this,
			i = e._roleData;
		if (t.prototype.start.call(this), i) {
			if (1 == e._moveType) {
				var n = e.endNode.pixelPoint,
					a = 0;
				a = n.x == i.pixel_x && n.y == i.pixel_y ? i.faceDir : h5_engine.SceneType.getDretion(i.pixel_x, i.pixel_y, n.x,
					n.y);
				for (var o = App.thing.create(CPlayOnceEffect, "FightAction", !0), r = h5_engine.SceneType.getFiveDir(o, a), s =
						GameUtil.getSkillConfigData(EnumSkillID.YE_MAN_CHONG_ZHUANG, 1), h = ResPathUtil.parseSkillEffect(s.q_File_client,
							s.q_use_effect, r), l = h.length, p = 0; l > p; p++) {
					var c = h[p];
					c && i.showEffect("FightAction", c, 0, 0, o)
				}
			}
			i.changeDirAction(AvatarActionType.ACTION_TYPE_RUN, e.faceDirection)
		}
	}, e.prototype.move = function(t, e) {
		var i = this,
			n = i._roleData;
		i._sx = n.pixel_x, i._sy = n.pixel_y, i._moveToPoint = egret.Point.create(n.pixel_x, n.pixel_y), n.move_to_x = t, n
			.move_to_y = e, n.startMove(i._moveToPoint.x, i._moveToPoint.y);
		var a = MathUnit.distance_Map(t, e, i._moveToPoint.x, i._moveToPoint.y) / 600;
		i._moveNeedTime = Math.ceil(1e3 * a * 1.2), a > 0 ? TweenLite.to(i._moveToPoint, a, {
			x: t,
			y: e,
			onComplete: i.onCompete,
			onCompleteScope: i,
			onUpdate: i.onUpdate,
			onUpdateScope: i,
			ease: Linear.easeInOut
		}) : i.end("MirSavageCollisionAction - move, time < 0")
	}, e.prototype.end = function(e) {
		var i = this,
			n = i._roleData;
		n && n instanceof MapPlayerRoleData && (n.operation && n.operation.keyBoardShiftHandler("MirSavageCollisionAction"),
			n.ai && n.ai instanceof AI_PVE_Processor && (n.ai.reset(), n.ai.onCharacterActionListEmpty(n))), t.prototype.end.call(
			this, e)
	}, e.prototype.changeServerDir = function(t) {}, e.prototype.putInPool = function() {}, e
}(MoveAction);
__reflect(MirSavageCollisionAction.prototype, "MirSavageCollisionAction");
var MirSoldierFightAction = function(t) {
	function e(e) {
		return void 0 === e && (e = null), t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.start = function() {
		t.prototype.start.call(this)
	}, Object.defineProperty(e.prototype, "skillid", {
		get: function() {
			var t = this._skillid;
			if ((this._skillid == EnumSkillID.PU_TONG_ZHAN_SHI || this._skillid == EnumSkillID.CI_SHA_JIAN_FA || this._skillid ==
					EnumSkillID.BAN_YUE_DAO_FA) && this._roleData) {
				var e = this._roleData.soldierNextSkillid;
				e > 0 && e != EnumSkillID.PU_TONG_ZHAN_SHI && e != EnumSkillID.CI_SHA_JIAN_FA && e != EnumSkillID.BAN_YUE_DAO_FA &&
					(t = e)
			}
			return t
		},
		set: function(t) {
			this._skillid = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "skillLevel", {
		get: function() {
			var t = App.data.skillCenter.getSkill(this.skillid);
			return t ? t.level : 0
		},
		set: function(t) {
			this._skillLevel = t
		},
		enumerable: !0,
		configurable: !0
	}), e
}(FightAction);
__reflect(MirSoldierFightAction.prototype, "MirSoldierFightAction");
var BirthAction = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._tx = 0, i._ty = 0, i._maxHeight = -1, i._v = -1, i._g = 0, i._dir = 1, i._jumStartRunTime = 0, i._isIn = !
			1, i._mapModule = e, i
	}
	return __extends(e, t), e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("JumpAction-_mapModule.mapLoader.mapData == null") : void this.jumpStart()
	}, e.prototype.setEffectURL = function(t) {
		this._effectURL = t
	}, e.prototype.setBean = function(t) {
		this._bean = t
	}, e.prototype.setIsJumpCombo = function(t) {
		this._isJumpCombo = t
	}, e.prototype.initJumpFlyData = function(t, e, i, n) {
		this.startNode = t, this.endNode = e, this._isIn = n, this._flyEffect = i, this._flyEffect && (this._flyEffect.visible = !
			1)
	}, e.prototype.jumpStart = function() {
		this._passtime = 0, this._roleData.isDispose || (this._tx = this.endNode.x, this._ty = this.endNode.y, this._stateFucName =
			"jumpStart", this._faceDirection = h5_engine.SceneType.getDretion(this.startNode.x, this.startNode.y, this.endNode
				.x, this.endNode.y), this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_START, this._faceDirection,
				!1, !0), this._roleData.roleView.playEndFrameHandler = new FunctionVO(this.jumpMove, this), this._roleData.pixel_x =
			this.startNode.x, this._roleData.pixel_y = this.startNode.y, this._jumStartRunTime = 320, this._flyEffect && (
				this._flyEffect.x = this.startNode.x, this._flyEffect.y = this.startNode.y))
	}, e.prototype.jumpMove = function() {
		if (this._stateFucName = "jumpMove", this._passtime = 0, this._roleData && !this._roleData.isDispose) {
			var t, e = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, this._tx, this._ty);
			this._dir = 1, this._roleData.roleView.playEndFrameHandler = null, this._jumStartRunTime = 0, t = e / 130 * .13, t =
				t > 4 ? 4 : t, this._maxHeight = 40 * Math.ceil(e / 130), this._v = 2 * this._maxHeight / (1e3 * t), this._roleData
				.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_MOVE0, this._faceDirection), this._flyEffect.visible = !0,
				this._moveToPoint = new egret.Point(this._roleData.pixel_x, this._roleData.pixel_y), this._roleData.move_to_x =
				this._tx, this._roleData.move_to_y = this._ty, TweenLite.to(this._moveToPoint, t, {
					x: this._tx,
					y: this._ty,
					onComplete: this.onCompete,
					onCompleteScope: this,
					onUpdate: this.onUpdate,
					onUpdateScope: this,
					ease: Linear.easeInOut
				})
		}
	}, e.prototype.jumpEnd = function() {
		this._stateFucName = "jumpEnd", this._roleData.isDispose || (-1 == this.reason && (this._roleData.roleView.visible = !
				0, this._roleData.roleView.roleHeadLayout.visible = !0, this._flyEffect && (this._flyEffect.dispose(), this._flyEffect =
					null)), this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_END, this._faceDirection, !1), this._flyEffect &&
			(this._flyEffect.visible = !1), this._isIn ? this.end("JumpAction-end") : this.end("JumpAction-end"))
	}, e.prototype.onUpdate = function() {
		this._roleData == App.global.characterData && (App.global.characterData.stopTime = 0), this._moveToPoint && (this._roleData
			.pixel_x = this._moveToPoint.x, this._roleData.pixel_y = this._moveToPoint.y, this._flyEffect && (this._flyEffect
				.x = this._moveToPoint.x, this._flyEffect.y = this._moveToPoint.y))
	}, e.prototype.onCompete = function() {
		"jumpMove" == this._stateFucName && (this._stateFucName = "onCompete", this._roleData.pixel_z = 0, this.jumpEnd())
	}, e.prototype.syncEndPosition = function() {
		this._moveToPoint ? (TweenLite.killTweensOf(this._moveToPoint), this._roleData.endMove(this._tx, this._ty)) : this._roleData
			.endMove(this._roleData.pixel_x, this._roleData.pixel_y), App.global.characterData.stopTime = 0
	}, e.prototype.end = function(e) {
		this._stateFucName = "end", this._roleData && this.syncEndPosition(), null != this.endHandler && this.endHandler.exec(),
			t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(t) {
		if (this._jumStartRunTime > 0 && (this._jumStartRunTime -= t, this._jumStartRunTime <= 0 && this.jumpMove()),
			"jumpMove" == this._stateFucName) {
			this._g > this._maxHeight ? this._dir = -1 : this._g < 0 && (this._maxHeight = 2 * this._maxHeight / 3, this._v =
				2 * this._v / 3, this._dir = 1), this._g += this._v * t * this._dir;
			var e;
			e = this._g > App.stage.stageHeight - 150 ? App.stage.stageHeight - 150 : this._g, this._roleData.pixel_z = e
		}
	}, e.prototype.dispose = function() {
		this._jumStartRunTime = 0, this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), this._isStart && 0 ==
			this._isEnd && this._roleData == App.global.characterData && this._roleData.roleView.settingEndRun(), t.prototype.dispose
			.call(this), this._flyEffect && (this._flyEffect.dispose(), this._flyEffect = null), this._moveToPoint = null,
			this._mapModule = null, this.endHandler = null
	}, e
}(RoleAction);
__reflect(BirthAction.prototype, "BirthAction", ["IJumpAction", "IDispose"]);
var ChargeAction = function(t) {
	function e(e, i, n, a, o, r, s) {
		void 0 === r && (r = 0), void 0 === s && (s = !1);
		var h = t.call(this) || this;
		return h._waterDelayTime = 80, h._mapModule = e, h._endNode = i, h._reason = n, h._actionType = a, h._moveToNode = o,
			h._moveSpeed = r, h._needShowWaterEffect = s, h
	}
	return __extends(e, t), e.prototype.setBean = function(t) {
		this._bean = t
	}, e.prototype.setIsJumpCombo = function(t) {
		this._isJumpCombo = t
	}, e.prototype.setEffectURL = function(t) {
		this._effectURL = t
	}, e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("ChargeAction-_mapModule.mapLoader.mapData == null") : void this.chargeStart()
	}, e.prototype.playWater = function() {
		if (this._moveToPoint && this._needShowWaterEffect) {
			var t = 99,
				e = App.thing.create(CPlayOnceEffect, "ChargeAction", !0);
			e.url = ResPathUtil.getMenuEffect("dianji", "water"), e.play(), e.setTo(this._moveToPoint.x + t * Math.sin(Math.PI /
				4 * this._roleData.faceDir), this._moveToPoint.y - t * Math.cos(Math.PI / 4 * this._roleData.faceDir)), e.addParent(
				this._mapModule.secne.groundMagic)
		}
	}, e.prototype.chargeStart = function() {
		if (!this._roleData.isDispose) {
			this._shadowTime = 0, this._stateFucName = "chargeStart";
			var t = this._endNode.pixelPoint.x,
				e = this._endNode.pixelPoint.y,
				i = h5_engine.SceneType.getDretion(this._roleData.pixel_x, this._roleData.pixel_y, t, e);
			this._roleData.changeDirAction(1 == this._actionType ? AvatarActionType.ACTION_TYPE_CHARGE : AvatarActionType.ACTION_TYPE_RUN,
				i, !1, !0), this._effectURL && this._roleData instanceof MapPlayerRoleData;
			var n = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, t, e);
			this._moveSpeed > 0 ? this._time = n / this._moveSpeed : this._time = n / (1 == this._actionType ? 1200 : 2 ==
				this._actionType ? 800 : this._roleData.moveSpeed), this._moveToPoint = new egret.Point(this._roleData.pixel_x,
				this._roleData.pixel_y), this._roleData.move_to_x = t, this._roleData.move_to_y = e, TweenLite.to(this._moveToPoint,
				this._time, {
					x: t,
					y: e,
					onComplete: this.onCompete,
					onCompleteScope: this,
					onUpdate: this.onUpdate,
					onUpdateScope: this,
					ease: Linear.easeInOut
				}), this._time *= 1e3
		}
	}, e.prototype.onUpdate = function() {
		this._roleData == App.global.characterData && (App.global.characterData.stopTime = 0), this._moveToPoint && (this._roleData
			.progressMove(this._moveToPoint.x, this._moveToPoint.y), this._roleData.setMapPos(this._moveToPoint.x, this._moveToPoint
				.y))
	}, e.prototype.onCompete = function() {
		this._stateFucName = "onCompete", this._roleData.isDispose || (this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND,
			-1, !1), App.global.mapModule.mapAvatarModel.setRoleNodeAplha(this._roleData, this._endNode), this.end(
			"ChargeAction-end"))
	}, e.prototype.end = function(e) {
		if (this._moveToPoint ? (TweenLite.killTweensOf(this._moveToPoint), this._roleData.endMove(this._endNode.pixelPoint
				.x, this._endNode.pixelPoint.y), this._roleData.setMapPos(this._endNode.pixelPoint.x, this._endNode.pixelPoint.y)) :
			(this._roleData.endMove(this._roleData.pixel_x, this._roleData.pixel_y), this._roleData.setMapPos(this._roleData.pixel_x,
				this._roleData.pixel_y)), App.global.characterData.stopTime = 0, this._roleData instanceof CharacterRoleData) {
			var i = !1;
			null != this._bean && 0 != this._bean.q_jump_combo_id || 0 == this._reason || (i = !0, this._roleData == App.global
					.mapModule.mapMouseModel.controlRoleData && this._mapModule.mapMouseModel.addMapMouseListen(), App.global.mapModule
					.sendCommand.sendFinishFlying(this._roleData, this._reason)), this._moveToNode && i && this._roleData.searchToPointVo &&
				(this._roleData.searchToPointVo.px = this._moveToNode.pixelPoint.x, this._roleData.searchToPointVo.py = this._moveToNode
					.pixelPoint.y, this._isJumpCombo || this._roleData.searchToPointVo.search())
		}
		t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(e) {
		t.prototype.addvanceTime.call(this, e), this._shadowTime += e, this._shadowTime >= 75 && (this._shadowTime = 0,
				FightShadowBitmap.makeFightShadow(this._roleData)), this._time -= e, this._waterDelayTime += e, this._waterDelayTime >
			280 && this._time > 120 && (this._waterDelayTime = 0, this.playWater())
	}, e.prototype.dispose = function() {
		this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), t.prototype.dispose.call(this), this._isStart && 0 ==
			this._isEnd && this._roleData == App.global.characterData && this._roleData.roleView.settingEndRun(30), t.prototype
			.dispose.call(this), this._endNode = null, this._mapModule = null, this._moveToPoint = null, this._moveToNode =
			null
	}, e
}(RoleAction);
__reflect(ChargeAction.prototype, "ChargeAction", ["IJumpAction", "IDispose"]);
var ChargeAction2 = function(t) {
	function e(e, i, n, a, o) {
		var r = t.call(this) || this;
		return r._mapModule = e, r._endNode = i, r._reason = n, r._actionType = a, r._moveToNode = o, r
	}
	return __extends(e, t), e.prototype.setIsJumpCombo = function(t) {
		this._isJumpCombo = t
	}, e.prototype.setEffectURL = function(t) {
		this._effectURL = t
	}, e.prototype.setBean = function(t) {}, e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("ChargeAction-_mapModule.mapLoader.mapData == null") : void this.chargeStart()
	}, e.prototype.chargeStart = function() {
		if (!this._roleData.isDispose) {
			this._time = 0, this._stateFucName = "chargeStart";
			var t = h5_engine.SceneType.getDretion(this._roleData.pixel_x, this._roleData.pixel_y, this._endNode.pixelPoint.x,
				this._endNode.pixelPoint.y);
			this._roleData.changeDirAction(1 == this._actionType ? AvatarActionType.ACTION_TYPE_CHARGE : AvatarActionType.ACTION_TYPE_RUN,
				t, !1, !0), this._effectURL && this._roleData instanceof MapPlayerRoleData;
			var e = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, this._endNode.pixelPoint.x, this._endNode
					.pixelPoint.y),
				i = e / (1 == this._actionType ? 1200 : 2 == this._actionType ? 800 : this._roleData.moveSpeed);
			this._moveToPoint = new egret.Point(this._roleData.pixel_x, this._roleData.pixel_y), TweenLite.to(this._moveToPoint,
				i, {
					x: this._endNode.pixelPoint.x,
					y: this._endNode.pixelPoint.y,
					onComplete: this.onCompete,
					onCompleteScope: this,
					onUpdate: this.onUpdate,
					onUpdateScope: this,
					ease: Linear.easeInOut
				})
		}
	}, e.prototype.onUpdate = function() {
		this._moveToPoint && (this._roleData.progressMove(this._moveToPoint.x, this._moveToPoint.y), this._roleData.setMapPos(
			this._moveToPoint.x, this._moveToPoint.y))
	}, e.prototype.onCompete = function() {
		this._stateFucName = "onCompete", this._roleData.isDispose || (this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND,
			-1, !1), App.global.mapModule.mapAvatarModel.setRoleNodeAplha(this._roleData, this._endNode), this.end(
			"ChargeAction-end"))
	}, e.prototype.end = function(e) {
		this._effectURL && this._roleData instanceof MapPlayerRoleData, this._moveToPoint ? (TweenLite.killTweensOf(this._moveToPoint),
			this._roleData.endMove(this._endNode.pixelPoint.x, this._endNode.pixelPoint.y), this._roleData.setMapPos(this._endNode
				.pixelPoint.x, this._endNode.pixelPoint.y)) : (this._roleData.endMove(this._roleData.pixel_x, this._roleData.pixel_y),
			this._roleData.setMapPos(this._roleData.pixel_x, this._roleData.pixel_y)), t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(e) {
		t.prototype.addvanceTime.call(this, e), this._time += e, this._time >= 75 && (this._time = 0, FightShadowBitmap.makeFightShadow(
			this._roleData))
	}, e.prototype.dispose = function() {
		this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), this._isStart && 0 == this._isEnd && this._roleData &&
			this._roleData.roleView && this._roleData.roleView.settingEndRun(), t.prototype.dispose.call(this), this._endNode =
			null, this._mapModule = null, this._moveToPoint = null, this._moveToNode = null
	}, e
}(RoleAction);
__reflect(ChargeAction2.prototype, "ChargeAction2", ["IJumpAction", "IDispose"]);
var FightTeleportAction = function(t) {
	function e(e, i, n) {
		var a = t.call(this) || this;
		return a._mapModule = e, a.endNode = i, a._skillid = n, a
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "endNode", {
		get: function() {
			return this._endNode
		},
		set: function(t) {
			if (this._endNode = t, this._endNode) {
				var e = this._endNode.pixelPoint;
				this._tx = e.x, this._ty = e.y
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("FightTeleportAction-_mapModule.mapLoader.mapData == null") : null == this._endNode ? void this.end(
				"FightTeleportAction-No Target Node") : (App.global.characterData == this._roleData && (App.global.characterData.isCanMove = !
					1, App.global.characterData.isCanUseSkill = !1), App.timer.doTimeOnce(this, 200, this.move, [this._tx, this._ty]),
				void this.playEffect())
	}, e.prototype.playEffect = function() {
		var t = GameUtil.getSkillConfigData(this._skillid, 1),
			e = (t.q_attack_id, App.thing.create(CPlayOnceEffect, "FightTeleportAction", !0));
		App.timer.doTimeOnce(this, 2e3, this.showRoleVisible), e.url = ResPathUtil.getSkillEffectUrl(t.q_File_client, t.q_use_effect),
			e.setTo(this._tx, this._ty), e.addParent(this._mapModule.secne.groundMagic), e.play()
	}, e.prototype.showRoleVisible = function() {
		this._roleData && 0 == this._roleData.isDispose && 0 == this._roleData.roleView.visible && (App.global.characterData ==
			this._roleData && (App.global.characterData.isCanMove = !0, App.global.characterData.isCanUseSkill = !0), App.timer
			.clearTimer(this.showRoleVisible, this), this._roleData.roleView.visible = !0, this._roleData.roleView.playEndFrameHandler =
			new FunctionVO(this.endAction, this), this._roleData.changeDirAction(this._fightActionId, this._roleData.faceDir,
				!1, !0, 2))
	}, e.prototype.move = function(t, e) {
		this._roleData && 0 == this._roleData.isDispose ? (this._roleData.roleView.visible = !1, this._roleData.progressMove(
			t, e), this._roleData.setMapPos(t, e), this._roleData == App.global.characterData && (App.global.characterData.stopTime =
			0)) : this.dispose()
	}, e.prototype.endAction = function() {
		this._roleData && 0 == this._roleData.isDispose && (this._roleData.roleView.playEndFrameHandler = null, this._roleData
			.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, -1, !0, !0)), this.end("FightTeleportAction-Fight End")
	}, e.prototype.end = function(e) {
		this._stateFucName = "end", this._roleData == App.global.characterData && (GameLog.logInfo(
				"FightTeleportAction-end", this._roleData.name, this._tx, this._ty), App.global.characterData.stopTime = 0), t.prototype
			.end.call(this, e)
	}, e.prototype.dispose = function() {
		this._roleData && 0 == this._roleData.isDispose && 0 == this._roleData.roleView.visible && (this._roleData.roleView
				.visible = !0), App.timer.clearTimer(this.move, this), this._endNode = null, this._mapModule = null, t.prototype.dispose
			.call(this)
	}, e
}(RoleAction);
__reflect(FightTeleportAction.prototype, "FightTeleportAction");
var JumpAction = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._tx = 0, i._ty = 0, i._maxHeight = -1, i._v = -1, i._g = 0, i._dir = 1, i._jumStartRunTime = 0, i._mapModule =
			e, i
	}
	return __extends(e, t), e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("JumpAction-this._mapModule.mapLoader.mapData == null") : void this.jumpStart()
	}, e.prototype.setBean = function(t) {
		this._bean = t
	}, e.prototype.initJumpData = function(t) {
		this.endNode = t
	}, e.prototype.setEffectURL = function(t) {
		this._effectURL = t
	}, e.prototype.setIsJumpCombo = function(t) {
		this._isJumpCombo = t
	}, e.prototype.initJumpFlyData = function(t, e, i, n) {
		this.endNode = t, this._secondeNode = e, this._lastNode = i, this._flyEffect = n
	}, Object.defineProperty(e.prototype, "endNode", {
		get: function() {
			return this._endNode
		},
		set: function(t) {
			if (this._endNode = t, this._endNode) {
				var e = this._endNode.pixelPoint;
				this._tx = e.x, this._ty = e.y
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "moveToNode", {
		get: function() {
			return this._moveToNode
		},
		set: function(t) {
			this._moveToNode = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.jumpStart = function() {
		this._passtime = 0, this._roleData.isDispose || (this._stateFucName = "jumpStart", this._faceDirection = h5_engine.SceneType
			.getDretion(this._roleData.pixel_x, this._roleData.pixel_y, this._tx, this._ty), this._roleData.changeDirAction(
				AvatarActionType.ACTION_TYPE_JUMP_START, this._faceDirection, !1, !0), this._roleData.roleView.playEndFrameHandler =
			new FunctionVO(this.jumpMove, this), this._jumStartRunTime = 320)
	}, e.prototype.jumpMove = function() {
		if (this._stateFucName = "jumpMove", this._passtime = 0, this._roleData && !this._roleData.isDispose) {
			var t, e = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, this._tx, this._ty);
			if (this._dir = 1, this._roleData.roleView.playEndFrameHandler = null, this._jumStartRunTime = 0, -1 == this.reason)
				t = e / 1200, this._v = 0, this._roleData.roleView.visible = !1, this._roleData.roleView.roleHeadLayout.visible = !
				1, this._flyEffect.x = this._roleData.serverMap_x, this._flyEffect.y = this._roleData.serverMap_y, this._flyEffect
				.url = ResPathUtil.getMapEffect("jindouyun.json"), this._flyEffect.play(), this._flyEffect.addParent(this._mapModule
					.secne.sceneEffect), this._flyEffect.degrees = MathUnit.atan2Angle(this._tx, this._ty, this._roleData.pixel_x,
					this._roleData.pixel_y) / Math.PI * 180, this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, this
					._faceDirection);
			else {
				t = e / 130 * .13, t = t > 4 ? 4 : t, this._maxHeight = 40 * Math.ceil(e / 130), this._v = 2 * this._maxHeight /
					(1e3 * t);
				var i = "ACTION_TYPE_JUMP_MOVE0";
				this._roleData.changeDirAction(AvatarActionType[i], this._faceDirection)
			}
			this._moveToPoint = new egret.Point(this._roleData.pixel_x, this._roleData.pixel_y), this._roleData.move_to_x =
				this._tx, this._roleData.move_to_y = this._ty, TweenLite.to(this._moveToPoint, t, {
					x: this._tx,
					y: this._ty,
					onComplete: this.onCompete,
					onCompleteScope: this,
					onUpdate: this.onUpdate,
					onUpdateScope: this,
					ease: Linear.easeInOut
				})
		}
	}, e.prototype.jumpEnd = function() {
		this._stateFucName = "jumpEnd", this._roleData.isDispose || (-1 == this.reason && (this._roleData.roleView.visible = !
			0, this._roleData.roleView.roleHeadLayout.visible = !0, this._flyEffect && (this._flyEffect.dispose(), this._flyEffect =
				null)), this._secondeNode ? (this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_END, this._faceDirection,
			!1), this.syncEndPosition(), this.fly()) : ((null == this._bean || 0 == this._bean.q_jump_combo_id) && this._roleData
			.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_END, this._faceDirection, !1), this.end("JumpAction-end")))
	}, e.prototype.fly = function() {
		this._stateFucName = "fly", this.endNode = this._secondeNode, this._secondeNode = null;
		var t = this._roleData.pixel_x,
			e = this._roleData.pixel_y,
			i = h5_engine.SceneType.getDretion(t, e, this._tx, this._ty);
		this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_STAND, i);
		var n = MathUnit.distancePoint2Point(t, e, this._tx, this._ty),
			a = n / 300;
		this._moveToPoint ? this._moveToPoint.setTo(t, e) : this._moveToPoint = new egret.Point(t, e), this._roleData.move_to_x =
			this._tx, this._roleData.move_to_y = this._ty, TweenLite.to(this._moveToPoint, a, {
				x: this._tx,
				y: this._ty,
				onComplete: this.onCompete,
				onCompleteScope: this,
				onUpdate: this.onUpdate,
				onUpdateScope: this,
				ease: Linear.easeInOut
			})
	}, e.prototype.onUpdate = function() {
		this._roleData == App.global.characterData && (App.global.characterData.stopTime = 0), this._moveToPoint && (this._roleData
			.progressMove(this._moveToPoint.x, this._moveToPoint.y), this._roleData.setMapPos(this._moveToPoint.x, this._moveToPoint
				.y), "fly" != this._stateFucName && -1 != this.reason || !this._flyEffect || (this._flyEffect.x = this._moveToPoint
				.x, this._flyEffect.y = this._moveToPoint.y))
	}, e.prototype.onCompete = function() {
		"jumpMove" == this._stateFucName ? (this._stateFucName = "onCompete", this._roleData.pixel_z = 0, App.global.mapModule
				.mapAvatarModel.setRoleNodeAplha(this._roleData, this._endNode), this.jumpEnd()) : "fly" == this._stateFucName &&
			(this._stateFucName = "onCompete", this.syncEndPosition(), this._lastNode && (this.endNode = this._lastNode, this._lastNode =
				null, App.global.mapModule.mapAvatarModel.setRoleNodeAplha(this._roleData, this._endNode), this.jumpStart()))
	}, e.prototype.syncEndPosition = function() {
		this._moveToPoint ? (TweenLite.killTweensOf(this._moveToPoint), this._roleData.endMove(this._moveToPoint.x, this._moveToPoint
				.y), this._roleData.setMapPos(this._tx, this._ty)) : (this._roleData.endMove(this._roleData.pixel_x, this._roleData
				.pixel_y), this._roleData.setMapPos(this._roleData.pixel_x, this._roleData.pixel_y)), App.global.characterData.stopTime =
			0
	}, e.prototype.end = function(e) {
		if (this._stateFucName = "end", this._roleData && (this.syncEndPosition(), this._roleData instanceof CharacterRoleData)) {
			var i = !1;
			GameLog.logInfo("JumpAction-end", this._roleData.name, this._tx, this._ty), null != this._bean && 0 != this._bean.q_jump_combo_id ||
				0 == this.reason || (i = !0, this._roleData == App.global.mapModule.mapMouseModel.controlRoleData && this._mapModule
					.mapMouseModel.addMapMouseListen(), this._roleData.isJumping = !1, this._roleData.actionList.clearList(), App.global
					.mapModule.sendCommand.sendFinishFlying(this._roleData, this.reason), this._roleData.changeDirAction(
						AvatarActionType.ACTION_TYPE_STAND, -1, !1)), this._moveToNode && i && this._roleData.searchToPointVo && (this._roleData
					.searchToPointVo.px = this._moveToNode.pixelPoint.x, this._roleData.searchToPointVo.py = this._moveToNode.pixelPoint
					.y, this._isJumpCombo || this._roleData.searchToPointVo.search())
		}
		t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(t) {
		if (this._jumStartRunTime > 0 && (this._jumStartRunTime -= t, this._jumStartRunTime <= 0 && this.jumpMove()),
			"jumpMove" == this._stateFucName) {
			-1 != this.reason && (this._passtime += t, this._passtime > 60 && (FightShadowBitmap.makeFightShadow(this._roleData),
				this._passtime = 0)), this._g > this._maxHeight ? this._dir = -1 : this._g < 0 && (this._maxHeight = 2 * this._maxHeight /
				3, this._v = 2 * this._v / 3, this._dir = 1), this._g += this._v * t * this._dir;
			var e;
			e = this._g > App.stage.stageHeight - 150 ? App.stage.stageHeight - 150 : this._g, this._roleData.pixel_z = e
		}
	}, e.prototype.dispose = function() {
		this._jumStartRunTime = 0, this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), this._isStart && 0 ==
			this._isEnd && this._roleData == App.global.characterData && this._roleData.roleView.settingEndRun(30), t.prototype
			.dispose.call(this), this._flyEffect && (this._flyEffect.dispose(), this._flyEffect = null), this._endNode = null,
			this._moveToNode = null, this._moveToPoint = null, this._secondeNode = null, this._lastNode = null, this._mapModule =
			null
	}, e
}(RoleAction);
__reflect(JumpAction.prototype, "JumpAction", ["IJumpAction", "IDispose"]);
var JumpOutOrInAction = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._tx = 0, i._ty = 0, i._maxHeight = -1, i._v = -1, i._g = 0, i._dir = 1, i._jumStartRunTime = 0, i._isIn = !
			1, i._mapModule = e, i
	}
	return __extends(e, t), e.prototype.start = function() {
		return t.prototype.start.call(this), this._stateFucName = "start", null == this._mapModule.mapLoader.mapData ? void this
			.end("JumpAction-_mapModule.mapLoader.mapData == null") : void this.jumpStart()
	}, e.prototype.setBean = function(t) {
		this._bean = t
	}, e.prototype.setEffectURL = function(t) {
		this._effectURL = t
	}, e.prototype.setIsJumpCombo = function(t) {
		this._isJumpCombo = t
	}, e.prototype.initJumpFlyData = function(t, e, i, n) {
		this.startNode = t, this.endNode = e, this._isIn = n, this._flyEffect = i, this._flyEffect && (this._flyEffect.visible = !
			1)
	}, e.prototype.jumpStart = function() {
		this._passtime = 0, this._roleData.isDispose || (this._tx = this.endNode.x, this._ty = this.endNode.y, this._stateFucName =
			"jumpStart", this._faceDirection = h5_engine.SceneType.getDretion(this.startNode.x, this.startNode.y, this.endNode
				.x, this.endNode.y), this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_START, this._faceDirection,
				!1, !0), this._roleData.roleView.playEndFrameHandler = new FunctionVO(this.jumpMove, this), this._roleData.pixel_x =
			this.startNode.x, this._roleData.pixel_y = this.startNode.y, this._jumStartRunTime = 320, this._flyEffect && (
				this._flyEffect.x = this.startNode.x, this._flyEffect.y = this.startNode.y))
	}, e.prototype.jumpMove = function() {
		if (this._stateFucName = "jumpMove", this._passtime = 0, this._roleData && !this._roleData.isDispose) {
			var t, e = MathUnit.distance_Map(this._roleData.pixel_x, this._roleData.pixel_y, this._tx, this._ty);
			this._dir = 1, this._roleData.roleView.playEndFrameHandler = null, this._jumStartRunTime = 0, t = e / 130 * .13, t =
				t > 4 ? 4 : t, this._maxHeight = 40 * Math.ceil(e / 130), this._v = 2 * this._maxHeight / (1e3 * t), this._roleData
				.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_MOVE0, this._faceDirection), this._flyEffect.visible = !0,
				this._moveToPoint = new egret.Point(this._roleData.pixel_x, this._roleData.pixel_y), this._roleData.move_to_x =
				this._tx, this._roleData.move_to_y = this._ty, TweenLite.to(this._moveToPoint, t, {
					x: this._tx,
					y: this._ty,
					onComplete: this.onCompete,
					onCompleteScope: this,
					onUpdate: this.onUpdate,
					onUpdateScope: this,
					ease: Linear.easeInOut
				})
		}
	}, e.prototype.jumpEnd = function() {
		this._stateFucName = "jumpEnd", this._roleData.isDispose || (-1 == this.reason && (this._roleData.roleView.visible = !
				0, this._roleData.roleView.roleHeadLayout.visible = !0, this._flyEffect && (this._flyEffect.dispose(), this._flyEffect =
					null)), this._roleData.changeDirAction(AvatarActionType.ACTION_TYPE_JUMP_END, this._faceDirection, !1), this._flyEffect &&
			(this._flyEffect.visible = !1), this._isIn ? App.timer.doTimeOnce(this, 1500, this.end, ["JumpAction-end"]) :
			this.end("JumpAction-end"))
	}, e.prototype.onUpdate = function() {
		this._roleData == App.global.characterData && (App.global.characterData.stopTime = 0), this._moveToPoint && (this._roleData
			.pixel_x = this._moveToPoint.x, this._roleData.pixel_y = this._moveToPoint.y, this._flyEffect && (this._flyEffect
				.x = this._moveToPoint.x, this._flyEffect.y = this._moveToPoint.y))
	}, e.prototype.onCompete = function() {
		"jumpMove" == this._stateFucName && (this._stateFucName = "onCompete", this._roleData.pixel_z = 0, this.jumpEnd())
	}, e.prototype.syncEndPosition = function() {
		this._moveToPoint ? (TweenLite.killTweensOf(this._moveToPoint), this._roleData.endMove(this._tx, this._ty)) : this._roleData
			.endMove(this._roleData.pixel_x, this._roleData.pixel_y), App.global.characterData.stopTime = 0
	}, e.prototype.end = function(e) {
		this._stateFucName = "end", this._roleData && (this.syncEndPosition(), this._roleData == App.global.characterData &&
				GameLog.logInfo("JumpAction-end", this._roleData.name, this._tx, this._ty)), null != this.endHandler && this.endHandler
			.exec(), t.prototype.end.call(this, e)
	}, e.prototype.addvanceTime = function(t) {
		if (this._jumStartRunTime > 0 && (this._jumStartRunTime -= t, this._jumStartRunTime <= 0 && this.jumpMove()),
			"jumpMove" == this._stateFucName) {
			this._g > this._maxHeight ? this._dir = -1 : this._g < 0 && (this._maxHeight = 2 * this._maxHeight / 3, this._v =
				2 * this._v / 3, this._dir = 1), this._g += this._v * t * this._dir;
			var e;
			e = this._g > App.stage.stageHeight - 150 ? App.stage.stageHeight - 150 : this._g, this._roleData.pixel_z = e
		}
	}, e.prototype.dispose = function() {
		this._jumStartRunTime = 0, this._moveToPoint && TweenLite.killTweensOf(this._moveToPoint), this._isStart && 0 ==
			this._isEnd && this._roleData == App.global.characterData && this._roleData.roleView.settingEndRun(30), t.prototype
			.dispose.call(this), this._flyEffect && (this._flyEffect.dispose(), this._flyEffect = null), this._moveToPoint =
			null, this._mapModule = null, this.endHandler = null
	}, e
}(RoleAction);
__reflect(JumpOutOrInAction.prototype, "JumpOutOrInAction", ["IJumpAction", "IDispose"]);
var SelectPopLayer = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._callBack = e, i.touchEnabled = !0, i.drawModalBg(), i.init(), i
	}
	return __extends(e, t), e.prototype.drawModalBg = function() {
		this.graphics.beginFill(0, .2), this.graphics.drawRect(0, 0, Config.SCREEN_HEIGHT, Config.SCREEN_HEIGHT), this.graphics
			.endFill()
	}, e.prototype.init = function() {
		this._dispatcher = new DispatcherRegister, this._vScroller = new VScrollPanel(500, 700), this._vScroller.list.itemRendererSkinName =
			"SelectType1ItemRendererSkin", this._vScroller.x = Config.SCREEN_WIDTH - this._vScroller.width >> 1, this._vScroller
			.y = Config.SCREEN_HEIGHT - this._vScroller.height >> 1, this.addChild(this._vScroller)
	}, e.prototype.onClick = function(t) {
		t.target == this && this.hide()
	}, Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			this.clear(), this._vScroller.dataProvider = t, this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP,
				this.onChange, this, this._vScroller.list), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
				.onClick, this, this)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		this._dispatcher.removeAllListeners()
	}, e.prototype.onChange = function(t) {
		this._callBack && (this._callBack.param = [this._vScroller.list.selectedIndex, this._vScroller.list.selectedItem],
			this._callBack.exec())
	}, Object.defineProperty(e.prototype, "vScroller", {
		get: function() {
			return this._vScroller
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		App.layer.popLayer.contains(this) && App.layer.popLayer.removeChild(this), this._vScroller.removeAll()
	}, e.prototype.show = function() {
		App.layer.popLayer.contains(this) || App.layer.popLayer.addChild(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.clear(), this._vScroller = void 0, this._dispatcher = void 0, this._callBack =
			void 0
	}, e
}(h5_engine.GSprite);
__reflect(SelectPopLayer.prototype, "SelectPopLayer");
var AI_PVE_PARNTER = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.checkHasDropItem = function(e) {
		return void 0 === e && (e = !1), this._mapModule.mapMouseModel.controlRoleData != this._roleData ? !1 : t.prototype
			.checkHasDropItem.call(this, e)
	}, e.prototype.moveToStartPoint = function() {
		var t = this._mapModule.mapMouseModel.controlRoleData;
		if (null == t || t == this._roleData) return !1;
		if (this.logFight("AI_PVE_PARNTER-moveToStartPoint"), this._roleData.AIRoleState == EnumAIRobotState.ROLE_WAIT || t
			.AIRoleState == EnumAIRobotState.ROLE_RESET || t.AIRoleState == EnumAIRobotState.ROLE_RAND_MOVE) {
			this.logFight(
				"this._roleData.AIRoleState == EnumAIRobotState.ROLE_WAIT || charData.AIRoleState == EnumAIRobotState.ROLE_RESET || charData.AIRoleState == EnumAIRobotState.ROLE_RAND_MOVE"
			);
			var e = !1,
				i = t.move_to_x,
				n = t.move_to_y,
				a = 0,
				o = h5_engine.MapVO.getDistanceBy2Point(this._roleData.move_to_x, this._roleData.move_to_y, i, n);
			if (t.AIRoleState == EnumAIRobotState.ROLE_PICK_ITEM && App.global.mapModule.mapLoader.mapData) {
				var r = App.global.mapModule.mapLoader.mapData.getNodeByXY(i, n),
					s = App.global.mapModule.mapMoveModel.getNodeByDir(r, h5_engine.SceneType.getOppositeDir(t.faceDir), 1);
				i = s.pixelPoint.x, n = s.pixelPoint.y, e = !0
			} else o > 3 && (e = !0, a = 2 * Math.random() >> 0);
			if (e && this.moveToPostion(i, n, null, null, a)) return this._roleData.AIRoleState = EnumAIRobotState.ROLE_MOVE,
				!0
		}
		return !1
	}, e.prototype.randMove = function() {
		this._mapModule.mapMouseModel.controlRoleData == this._roleData ? t.prototype.randMove.call(this) : this._roleData.AIRoleState =
			EnumAIRobotState.ROLE_WAIT
	}, e
}(AI_PVE_Processor);
__reflect(AI_PVE_PARNTER.prototype, "AI_PVE_PARNTER");
var SelectType1 = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.touchEnabled = !0, this.touchChildren = !1, this._dispatcher = new DispatcherRegister, this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_BEGIN, this.onClick, this, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END,
			this.onClick, this, this)
	}, e.prototype.onClick = function(t) {
		switch (t.type) {
			case egret.TouchEvent.TOUCH_BEGIN:
				this.btnDisplay.currentState = "down";
				break;
			case egret.TouchEvent.TOUCH_END:
				this.btnDisplay.currentState = "up", this.popSelectDataContainer()
		}
	}, e.prototype.popSelectDataContainer = function() {
		this.checkSelectDataContainer(), this._selectPopLayer.show()
	}, Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			this._dataSource = t, this.checkSelectDataContainer(), this._selectPopLayer.dataProvider = t, this.setDefaultValue()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.checkSelectDataContainer = function() {
		this._selectPopLayer || (this._selectPopLayer = new SelectPopLayer(new FunctionVO(this.itemRender, this)))
	}, e.prototype.itemRender = function(t, i) {
		this.textDisplay.text = i, this.selectedIndex = this._selectPopLayer.vScroller.list.selectedIndex, this._selectPopLayer
			.hide(), this.dispatchEvent(new GameEvent(e.SELECTED_CHANGE, t, i))
	}, Object.defineProperty(e.prototype, "defaultValue", {
		set: function(t) {
			this._defaultValue = t, this.setDefaultValue()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "defaultIndex", {
		set: function(t) {
			this._index = t, this.setDefaultValue()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectedIndex", {
		get: function() {
			return this._selectindex
		},
		set: function(t) {
			this._selectindex = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setDefaultValue = function() {
		this.checkSelectDataContainer(), this._index && this._index >= 0 ? (this.textDisplay.text = this._dataSource &&
			this._dataSource.length > 0 ? this._dataSource[this._index] : "", this._selectPopLayer.vScroller.list.selectedIndex =
			this._index) : this._defaultValue ? (this.textDisplay.text = this._defaultValue, this._selectPopLayer.vScroller.list
			.selectedItem = this._defaultValue) : (this.textDisplay.text = this._dataSource && this._dataSource.length > 0 ?
			this._dataSource[0] : "", this._selectPopLayer.vScroller.list.selectedIndex = 0)
	}, e.SELECTED_CHANGE = "selected_change", e
}(eui.TextInput);
__reflect(SelectType1.prototype, "SelectType1");
var AIFactory = function() {
	function t() {}
	return t.createAi = function(t, e, i) {
		void 0 === i && (i = null);
		var n;
		switch (e) {
			case EnumAiType.auxiliary:
				n = App.thing.create(AI_Auxiliary, "AIFactory", !0);
				break;
			case EnumAiType.FIGHT_PVE:
				n = App.thing.create(AI_PVE_Processor, "AIFactory", !0);
				break;
			case EnumAiType.PARNTER_PVE:
				n = App.thing.create(AI_PVE_PARNTER, "AIFactory", !0)
		}
		n.setParma(i), n.setRoleData(t);
		var a = t.ai;
		a && (n.isRuning = a.isRuning, a.end()), t.ai = n, n.start()
	}, t
}();
__reflect(AIFactory.prototype, "AIFactory");
var EnumAiType;
! function(t) {
	t[t["default"] = 0] = "default", t[t.auxiliary = 1] = "auxiliary", t[t.FIGHT_PVE = 2] = "FIGHT_PVE", t[t.PARNTER_PVE =
		3] = "PARNTER_PVE"
}(EnumAiType || (EnumAiType = {}));
var AIFightParma = function() {
	function t() {
		this.targetMonsterModelID = 0
	}
	return t
}();
__reflect(AIFightParma.prototype, "AIFightParma");
var StarLayout = function(t) {
	function e(e, i) {
		void 0 === e && (e = 10), void 0 === i && (i = 10);
		var n = t.call(this) || this;
		return n.starWidth = 56, n.starHeight = 53, n.bgWidth = 42, n.bgHeight = 39, n.num = -1, n.max = e, n.gap = i, n.init(),
			n
	}
	return __extends(e, t), e.prototype.init = function() {
		this.stars = [], this.bgs = [];
		for (var t, e, i = this.max, n = 0; i > n; n++) t = UIMaker.getImage(this, this, "common1_star_an_png", 7 + n * (
			this.bgWidth + this.gap), 7), e = UIMaker.getImage(this, this, "common1_star_light_png", n * (this.bgWidth + this
			.gap), 0), this.bgs.push(t), this.stars.push(e)
	}, e.prototype.setValue = function(t) {
		t = Math.min(this.max, Math.max(0, t));
		for (var e = this.max, i = 0; e > i; i++) this.stars[i].visible = t > i; - 1 != this.num && 0 != t && EffectUtils.showOnceEffect(
				this, this, ResPathUtil.getMenuEffect("panel", "star"), this.stars[t - 1].x + 28, this.stars[t - 1].y + 29), this
			.num != t && (this.num = t)
	}, e.prototype.clear = function() {
		this.num = -1
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return (this.starWidth + this.gap) * this.max - this.gap
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		if (this.stars) {
			for (var t = 0; t < this.max; t++) UIMaker.putToPool(this.bgs[t]), UIMaker.putToPool(this.stars[t]);
			this.stars = null, this.bgs = null
		}
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(StarLayout.prototype, "StarLayout");
var EnumAIRobotState = function() {
	function t() {}
	return t.ROLE_WAIT = "role_wait", t.ROLE_MOVE = "role_move", t.ROLE_RAND_MOVE = "role_rand_move", t.ROLE_PICK_ITEM =
		"role_pick_item", t.ROLE_FIGHT = "role_fight", t.ROLE_FIGHT_MOVE = "role_fight_move", t.ROLE_CALL_BABY =
		"role_call_baby", t.ROLE_USEBUFFER = "role_usebuffer", t.ROLE_RESET = "role_reset", t
}();
__reflect(EnumAIRobotState.prototype, "EnumAIRobotState");
var MapSkillOperationModel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._mapModule = e, i
	}
	return __extends(e, t), e.prototype.initialize = function() {
		App.dispatcher.addEventListener(EventType.MOUSE_DOWN_ROLE, this.onSelectRole, this), App.dispatcher.addEventListener(
			EventType.USER_SKILL, this.useSkill, this), App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_DEAD, this.onRoleDisposeOrDead,
			this), App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_DISPOSE, this.onRoleDisposeOrDead, this)
	}, e.prototype.useSkill = function(t, e, i, n, a, o) {
		void 0 === i && (i = 1), void 0 === n && (n = !1), void 0 === a && (a = !1), void 0 === o && (o = 0);
		for (var r = App.global.roles.roleList, s = r.length, h = 0; s > h; h++) {
			var l = r[h];
			l && 0 == l.getIsDead() && l.operation && l.operation.onUserSkill(t, e, i, n, a)
		}
	}, e.prototype.onRoleDisposeOrDead = function(t) {
		for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
			var a = e[n];
			if (a)
				if (a.personId == t) a.operation.lastSelectRole = null, a.operation.lastAttackRole = null, a.operation.lastAttackRoleID =
					"";
				else if (a.operation.lastSelectRoleID == t && (a.operation.lastSelectRole = null), a.operation.lastAttackRoleID ==
				t) {
				var o = a.operationData.lastAttackRole;
				if (a.operation.lastAttackRole = null, a.operation.lastAttackRoleID = "", o) {
					var r = void 0;
					o instanceof MapPlayerPartnerRoleData ? r = o.ownerId : o instanceof MapPlayerRoleData && (r = o.personId);
					var s = this._mapModule.mapAvatarModel.getOwenAtkRole(r);
					s && 0 == s.getIsDead() && 0 == s.isDispose && s.hp > 0 && this.onSelectRole(s)
				}
			}
		}
	}, e.prototype.changeOperation = function(t) {
		var e = new RoleCombatOperation;
		e.setRoleData(t, this._mapModule), t.operation = e
	}, e.prototype.onSelectRole = function(t) {
		if (this._mapModule.mapQuickSelect.checkIsEnemy(t.personId, App.global.characterData))
			for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				a.operation.autoSelect = !1, a.operation.lastSelectRole = t
			}
	}, e.prototype.clear = function() {}, e.prototype.dispose = function() {
		this.clear()
	}, e
}(Dispose);
__reflect(MapSkillOperationModel.prototype, "MapSkillOperationModel");
var OperationData = function() {
	function t() {
		this.lastAttackRoleID = "", this.lastSelectRole = null, this.lastSelectRoleID = "", this.isClearTrack = !1, this.lastUseSkill = -
			1, this.skillPasstime = 0, this.clearDelayUseSkill = !1, this.lastAttackTime = 0, this.autoSelect = !1, this._lastAttackRole =
			null
	}
	return t.prototype.clearAtkRolePosi = function() {
		this._lastAttackRolePostion && (egret.Point.release(this._lastAttackRolePostion), this._lastAttackRolePostion =
			null)
	}, t.prototype.getAtkRolePosi = function() {
		return this._lastAttackRolePostion
	}, t.prototype.setAtkRolePosi = function(t, e) {
		this._lastAttackRolePostion ? this._lastAttackRolePostion.setTo(t, e) : this._lastAttackRolePostion = egret.Point.create(
			t, e)
	}, Object.defineProperty(t.prototype, "lastAttackRole", {
		get: function() {
			return this._lastAttackRole
		},
		set: function(t) {
			this._lastAttackRole != t && (this._lastAttackRole = t, App.dispatcher.dispatchEvent(EventType.LAST_ATTACK_ROLE_CHANGE,
				t))
		},
		enumerable: !0,
		configurable: !0
	}), t.SKILL_PASS_INTERVAL = 0, t
}();
__reflect(OperationData.prototype, "OperationData");
var RoleCombatOperation = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.userMouseNextSkill = 0, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "autoSelect", {
		get: function() {
			return this._operationData.autoSelect
		},
		set: function(t) {
			this._operationData.autoSelect = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setRoleData = function(t, e) {
		var i = this;
		i._mapModule = e, i._roleData = t, i._operationData = t.operationData, i._operationData.lastUseSkill = EnumSkillID.getPuTongGongji(
			t)
	}, Object.defineProperty(e.prototype, "lastSelectRoleID", {
		get: function() {
			return this._operationData.lastSelectRoleID
		},
		set: function(t) {
			var e = this,
				i = e._operationData;
			if (t != i.lastSelectRoleID && (i.lastSelectRoleID = t, i.lastSelectRoleID)) {
				var n = e._mapModule.mapAvatarModel.getFightRoleData(t);
				n && (n.roleView.addSelectEffect(), i.lastSelectRole = n)
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastSelectRole", {
		get: function() {
			return this._operationData.lastSelectRole
		},
		set: function(t) {
			var e = this._operationData;
			t != e.lastSelectRole ? (e.lastSelectRole && e.lastSelectRole.roleView && e.lastSelectRole.roleView.removeSelectEffect(),
				t && (e.lastSelectRoleID = t.personId), e.lastSelectRole = t) : e.lastAttackRole == t && (e.lastAttackTime =
				egret.getTimer()), e.lastSelectRole && e.lastSelectRole.roleView && e.lastSelectRole.roleView.addSelectEffect()
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastAttackRole", {
		get: function() {
			return this._operationData.lastAttackRole
		},
		set: function(t) {
			var e = this._operationData;
			t != e.lastAttackRole && (e.lastAttackRole = t, e.lastAttackRole && (e.lastAttackRoleID = e.lastAttackRole.personId,
				this.lastSelectRole = t)), e.lastAttackRole && (e.lastAttackTime = egret.getTimer())
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastAttackRoleTime", {
		get: function() {
			return this._operationData.lastAttackTime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "lastAttackRoleID", {
		get: function() {
			return this._operationData.lastAttackRoleID
		},
		set: function(t) {
			var e = this,
				i = e._operationData;
			if (t != i.lastAttackRoleID && (i.lastAttackRoleID = t, i.lastAttackRoleID)) {
				var n = e._mapModule.mapAvatarModel.getFightRoleData(t);
				n && (e.lastSelectRole = n, e.lastAttackRole = n)
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearSelectRole = function() {
		var t = this;
		t.lastAttackRole = null, t.lastAttackRoleID = "", t.lastSelectRole = null, t.lastSelectRoleID = ""
	}, e.prototype.getTargetIsLive = function(t) {
		return !t || t.getIsDead() || t.isDispose || t.isClientDead || t.hp <= 0 ? !1 : !0
	}, e.prototype.keyBoardShiftHandler = function(t) {
		var e = this;
		if (App.keyBoard.isKeyDown(Keyboard.SHIFT)) {
			var i = e.lastSelectRole;
			if (i) return e.onSelectRole(i), !0
		}
		return !1
	}, e.prototype.onShiftClickMap = function(t, e) {
		void 0 === t && (t = -1), void 0 === e && (e = -1);
		var i = this,
			n = i._roleData;
		if (-1 == t && (t = EnumSkillID.getPuTongGongji(n)), -1 == e && (e = i.getSkillData(t).level), i.clearAuto(), i.clearSelectRole(),
			n.searchToPointVo = null, i.checkSkillPasstime()) return !1;
		if (App.data.CDCenter.isInCD(CDType.SKILL, t)) return !1;
		if (0 == i.checkSkillCondition(t, e, !1)) return !1;
		var a = GameUtil.getSkillConfigData(t, e),
			o = i.getCharDirFromMousePoint(),
			r = i.getCharCrtNode();
		if (r) {
			var s = i._mapModule.mapMoveModel.getNodeByDir(r, o, 1).pixelPoint;
			if (i.checkSkillPostion(a, t, e, s.x, s.y, "0", !1)) return n.actionList.setNext(i.makeAttackAction(t, e, s.x, s.y,
				"0", o)), !0
		}
		return !1
	}, e.prototype.getSkillData = function(t) {
		return App.data.skillCenter.getSkill(t)
	}, e.prototype.getSkillSupleTime = function(t) {
		var e = this.getSkillPasstime(),
			i = 0;
		App.data.CDCenter.isInCD(CDType.SKILL, t) && (i = App.data.CDCenter.getSkillCDLeftTime(t));
		var n = e > i ? e : i;
		return n
	}, e.prototype.getSkillPasstime = function() {
		return OperationData.SKILL_PASS_INTERVAL * this._roleData.atkSpeed - (egret.getTimer() - this._operationData.skillPasstime)
	}, e.prototype.checkSkillPasstime = function() {
		return this.getSkillPasstime() >= 5
	}, e.prototype.getCharCrtPosition = function(t) {
		var e = this._roleData;
		return t.setTo(e.move_to_x, e.move_to_y), t
	}, e.prototype.getCharCrtNode = function() {
		var t = this,
			e = t._roleData;
		return t._mapModule.mapLoader.mapData ? t._mapModule.mapLoader.mapData.getNodeByXY(e.move_to_x, e.move_to_y) : null
	}, e.prototype.getCharDirFromMousePoint = function() {
		var t = this,
			e = t._roleData,
			i = t._mapModule.mapMouseModel.mouseScenePoint;
		return h5_engine.SceneType.getDretion(e.move_to_x, e.move_to_y, i.x, i.y)
	}, e.prototype.checkSkillCondition = function(t, e, i) {
		var n = this,
			a = n._roleData;
		return null == n._mapModule.mapLoader.mapData || null == a || a.getIsDead() || 0 == App.global.enterMapIng ? !1 :
			App.data.CDCenter.getSkillCDLeftTime(t) > 0 ? !1 : 0 == a.isCanUseSkill ? !1 : a.isGather && i ? !1 : void 0
	}, e.prototype.onUserSkill = function(t, e, i, n, a) {
		void 0 === i && (i = 1), void 0 === n && (n = !1), void 0 === a && (a = !1);
		var o = this,
			r = o._roleData;
		if (0 == o.checkSkillCondition(e, i, a)) return !1;
		if (r.isJumping) return !1;
		n && (r.searchToPointVo = null), (0 == a || n) && r.getIsInAutoSearchRoad() && r.changeAutoSearchRoad(!1);
		var s = o.getSkillData(e),
			h = s ? s.level : i,
			l = GameUtil.getSkillConfigData(e, h);
		if (null == l) return !1;
		if (0 == l.q_skill_nohandsup && r.job == EnumRole.ZHAN_SHI) return App.data.CDCenter.isInCD(CDType.SKILL, e) ? !1 :
			(o.sendAttackPersonMessage(e, h, "0", 0, 0, r.faceDir, 0), App.data.CDCenter.addSkillCD(e, h, this._roleData), !1);
		var p = r.soldierNextSkillid;
		if (!(e != EnumSkillID.PU_TONG_ZHAN_SHI && e != EnumSkillID.CI_SHA_JIAN_FA && e != EnumSkillID.BAN_YUE_DAO_FA || p !=
				EnumSkillID.LIE_HUO_JIAN_FA && p != EnumSkillID.ZHU_RI_JIAN_FA)) {
			var c = o.getSkillData(p);
			if (l = c ? c.bean : GameUtil.getSkillConfigData(p, 1), null == l) return !1
		}
		t && (o.userMouseNextSkill = e);
		var _ = o.getCrtSeleteRole(l, n);
		if (_ && _ instanceof MapMonsterRoleData && o.getTargetIsLive(_)) {
			var d = _.monsterModelBean.q_attack_minlevel;
			if (d > r.getLevel()) return Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">世界BOSS需" + d +
				"级才可攻击</font>"), !1
		}
		var u, g = egret.Point.create(-1, -1),
			f = -1,
			m = !0,
			v = l.q_use_target;
		if (0 == v) a ? (u = r.personId, g = o.getCharCrtPosition(g), f = r.faceDir) : o.getTargetIsLive(_) ? (u = _.personId,
			g.setTo(_.serverMap_x, _.serverMap_y)) : (u = "0", g.copyFrom(o._mapModule.mapMouseModel.mouseScenePoint));
		else if (1 == v) u = r.personId, g = o.getCharCrtPosition(g), f = r.faceDir;
		else if (2 == v) e == EnumSkillID.ZHI_LIAO_SHU && null == _ && o._operationData.lastSelectRole && o.getTargetIsLive(
			o._operationData.lastSelectRole) && 0 == o._mapModule.mapQuickSelect.checkIsEnemy(o._operationData.lastSelectRole
			.personId, r) ? (u = o._operationData.lastSelectRole.personId, g.setTo(o._operationData.lastSelectRole.serverMap_x,
			o._operationData.lastSelectRole.serverMap_y)) : 0 == o.getTargetIsLive(_) ? (u = r.personId, g = o.getCharCrtPosition(
			g), f = r.faceDir) : e == EnumSkillID.ZHI_LIAO_SHU && o._mapModule.mapQuickSelect.checkIsEnemy(_.personId, r) ? (
			u = r.personId, g = o.getCharCrtPosition(g), f = r.faceDir) : (u = _.personId, g.setTo(_.serverMap_x, _.serverMap_y));
		else if (3 == v) {
			if (u = "0", e == EnumSkillID.YE_MAN_CHONG_ZHUANG && 2 == r.autoSettingData.isRunFollowMouse) var y = r.faceDir;
			else if (e == EnumSkillID.YE_MAN_CHONG_ZHUANG && 0 == r.autoSettingData.isRunFollowMouse) {
				var E = o.getCharCrtPosition(g);
				y = h5_engine.SceneType.getDretion(E.x, E.y, o._operationData.lastSelectRole.serverMap_x, o._operationData.lastSelectRole
					.serverMap_y)
			} else y = o.getCharDirFromMousePoint();
			var C = o._mapModule.mapMoveModel.getNodeByDir(o.getCharCrtNode(), y, 1);
			C && g.copyFrom(C.pixelPoint), f = y
		} else if (4 == v)
			if (_) 0 == o.getTargetIsLive(_) ? m = !1 : (u = _.personId, g.setTo(_.serverMap_x, _.serverMap_y));
			else {
				u = "0", y = o.getCharDirFromMousePoint();
				var C = o._mapModule.mapMoveModel.getNodeByDir(o.getCharCrtNode(), y, 1);
				C && g.copyFrom(C.pixelPoint)
			}
		else 5 == v ? (u = "0", g.copyFrom(o._mapModule.mapMouseModel.mouseScenePoint)) : 6 == v && (o.getTargetIsLive(_) ?
			(u = _.personId, g.setTo(_.serverMap_x, _.serverMap_y)) : (t && Notice.showMousePosMessage("<font color=" +
				Notice.MIDDLE_COLOR_2 + ">没有选中可攻击的目标</font>"), m = !1));
		var b = g.x,
			w = g.y;
		if (egret.Point.release(g), m && o.checkSkillPostion(l, e, h, b, w, u, a)) {
			if (App.data.CDCenter.getSkillCDLeftTime(e) > 0) return !1;
			if (r.isFightAiRuning && n || a);
			else if (o.checkSkillPasstime() && 0 == t) return GameLog.log("技能:", e, "被强制PASS给卡掉了"), !1;
			if (App.data.CDCenter.isInCD(CDType.SKILL, e)) return !1;
			var A = o.makeAttackAction(e, h, b, w, u, f);
			if (a || t) {
				var T = r.actionList.getActionByIndex(0);
				(null == T || T.skillid != e) && (A.isAutoBuffer = a, r.actionList.unshift(A), r.isFightAiRuning && r.ai.reset())
			} else r.actionList.crtAction instanceof MoveAction && (r.actionList.crtAction.callBack = null), r.actionList.setNext(
				A);
			return !0
		}
		return !1
	}, e.prototype.makeAttackAction = function(t, e, i, n, a, o) {
		void 0 === o && (o = -1);
		var r = this,
			s = r.getFightAction();
		return s.startBack = new FunctionVO(r.onSkillActionStart, r, t, e, a, i, n, o), s.targetPersonId = a, s.skillLevel =
			e, s.setTargetPosi(i, n), s.skillid = t, s.fightDirection = o, s
	}, e.prototype.getFightAction = function() {
		var t;
		return this._roleData.job == EnumRole.ZHAN_SHI ? (t = App.thing.create(MirSoldierFightAction, "RoleCombatOperation",
			!0), t.setCreateFrom("RoleCombatOperation")) : (t = App.thing.create(FightAction, "RoleCombatOperation", !0), t.setCreateFrom(
			"RoleCombatOperation")), t
	}, e.prototype.onSkillActionStart = function(t, e, i, n, a, o) {
		var r = this,
			s = r._roleData;
		App.data.CDCenter.addSkillCD(t, e, this._roleData), t == r.userMouseNextSkill && (r.userMouseNextSkill = 0, App.dispatcher
			.dispatchEvent(EventType.SKILL_START, t));
		var h = s.soldierNextSkillid,
			l = 0;
		s.job != EnumRole.ZHAN_SHI || t != EnumSkillID.PU_TONG_ZHAN_SHI && t != EnumSkillID.CI_SHA_JIAN_FA && t !=
			EnumSkillID.BAN_YUE_DAO_FA || (h == EnumSkillID.LIE_HUO_JIAN_FA || h == EnumSkillID.ZHU_RI_JIAN_FA) && (l = h);
		var p = r._mapModule.mapAvatarModel.getFightRoleData(i);
		p && i == r._operationData.lastSelectRoleID && p.roleView.addSelectEffect(), r.sendAttackPersonMessage(t, e, i, n,
			a, o, l) && r._operationData.clearAtkRolePosi(), r._operationData.skillPasstime = egret.getTimer()
	}, e.prototype.sendAttackPersonMessage = function(t, e, i, n, a, o, r) {
		var s = this,
			h = s._roleData;
		if ("0" != i) {
			var l = s._mapModule.mapAvatarModel.getFightRoleData(i);
			l && (n = l.serverMap_x, a = l.serverMap_y)
		}
		i == s._operationData.lastSelectRoleID && (s.lastAttackRole = s.lastSelectRole), h.skillCombo.addComboCD(t, 0);
		var p = s.getCharCrtNode();
		if (p) {
			if (t != EnumSkillID.YE_MAN_CHONG_ZHUANG || -1 == o) var c = h5_engine.SceneType.getDretion(p.pixelPoint.x, p.pixelPoint
				.y, n, a);
			else c = o;
			var _ = p.pixelPoint;
			return s._mapModule.sendCommand.sendAttackPersonMessage(h, t, c, i, n, a, _.x, _.y, r), !0
		}
		return !1
	}, e.prototype.getCrtSeleteRole = function(t, e) {
		var i = this,
			n = i._roleData;
		if (App.global.mouseUnit instanceof h5_engine.MoveRole) {
			var a = App.global.mouseUnit,
				o = a.getRoleData();
			o instanceof MapPetRoleData && (o = null), i._operationData.lastSelectRole && 1 == t.q_skill_boautolocked && i._mapModule
				.mapQuickSelect.checkIsEnemy(i._operationData.lastSelectRole.personId, n) && (o = null)
		}
		return o && e ? 1 == t.q_skill_boautolocked ? (i._mapModule.mapMouseModel.isMouseDown || App.keyBoard.isKeyDown(
				Keyboard.SHIFT)) && i._operationData.lastSelectRole ? o = i._operationData.lastSelectRole : i.getTargetIsLive(o) &&
			o != n && (i.lastSelectRole = o) : null == i._operationData.lastSelectRole && t.q_skillID == EnumSkillID.SHI_DU_SHU &&
			i.getTargetIsLive(o) && o != n && (i.lastSelectRole = o) : n.isFightAiRuning ? o = i._operationData.lastSelectRole :
			(1 == t.q_skill_boautolocked || t.q_skillID == EnumSkillID.SHI_DU_SHU) && (o = i._operationData.lastSelectRole), o
	}, e.prototype.checkSkill = function(t, e, i, n, a, o, r) {
		return void 0 === r && (r = !1), 0 == this.checkSkillCondition(e, i, r) ? !1 : this.checkSkillPostion(t, e, i, n, a,
			o, r)
	}, e.prototype.checkSkillPostion = function(t, e, i, n, a, o, r) {
		if (void 0 === r && (r = !1), 0 >= n || 0 >= a) return !1;
		var s = this,
			h = s._roleData,
			l = egret.Point.create(0, 0),
			p = s.getCharCrtPosition(l);
		egret.Point.release(l);
		var c, _, d = p.x,
			u = p.y,
			g = Math.abs(Math.ceil(d / h5_engine.MapConfig.MAP_NODE_WIDTH) - Math.ceil(n / h5_engine.MapConfig.MAP_NODE_WIDTH)),
			f = Math.abs(Math.ceil(u / h5_engine.MapConfig.MAP_NODE_HEIGHT) - Math.ceil(a / h5_engine.MapConfig.MAP_NODE_HEIGHT)),
			m = g > f ? g : f,
			v = t.q_range_limit,
			y = m - v,
			E = v;
		if (y > 0) {
			s.lastSelectRole ? (c = s.lastSelectRole.serverMap_x, _ = s.lastSelectRole.serverMap_y) : (c = n, _ = a);
			var C;
			t.q_skillID == EnumSkillID.CI_SHA_JIAN_FA && (E = 1), c >>= 0, _ >>= 0;
			var b = s._mapModule.mapLoader.mapData.getNodeByXY(c, _);
			return b && 0 == b.roleBlock && s._mapModule.mapMoveModel.checkAroundEmptyInTheNode(s._mapModule.mapLoader.mapData
				.getNodeByXY(c, _)) && (C = s.getCishaPosition(d, u, c, _, 1), C && (c = C.x, _ = C.y, E -= 1)), s.searchToPointAndAttack(
				c, _, E, t, e, i, n, a, o), !1
		}
		if (0 == m && s._operationData.lastSelectRole) {
			if (o == h.personId) return !0;
			if (h.isFightAiRuning && 1 == h.autoSettingData.rangType) return !0;
			var w = s._operationData.lastSelectRole;
			if (null != w && !ByteUtils.hasKey(w.monsterType, 8) && !ByteUtils.hasKey(w.monsterType, 4)) return !0;
			if (c = s.lastSelectRole.pixel_x, _ = s.lastSelectRole.pixel_y, s._mapModule.mapMoveModel.checkAroundEmptyInTheNode(
					s._mapModule.mapLoader.mapData.getNodeByXY(c, _))) return C = s.getCishaPosition(d, u, c, _, 1, !0), C && (c = C
				.x, _ = C.y, E = 0, s.searchToPointAndAttack(c, _, E, t, e, i, n, a, o)), !1
		} else if (t.q_skillID == EnumSkillID.CI_SHA_JIAN_FA && 2 == m && s._operationData.lastSelectRole && 0 == s.isInCishaPosition(
				g, f)) return c = s.lastSelectRole.pixel_x, _ = s.lastSelectRole.pixel_y, 0 == s._mapModule.mapMoveModel.checkAroundEmptyInTheNode(
			s._mapModule.mapLoader.mapData.getNodeByXY(c, _)) ? (C = s.getCishaPosition(d, u, c, _), C && (c = C.x, _ = C.y,
			E = 0, s.searchToPointAndAttack(c, _, E, t, e, i, n, a, o))) : (C = s.getCishaPosition(d, u, c, _, 1), C && (c =
			C.x, _ = C.y, E = 0, s.searchToPointAndAttack(c, _, E, t, e, i, n, a, o))), !1;
		return !0
	}, e.prototype.isInCishaPosition = function(t, e) {
		return (t + e) % 2 == 0 ? !0 : !1
	}, e.prototype.getCishaPosition = function(t, e, i, n, a, o) {
		void 0 === a && (a = 2), void 0 === o && (o = !1);
		var r = this,
			s = r._roleData;
		if (t == i && n == e && s) var h = s.faceDir;
		else h = o ? h5_engine.SceneType.getDretion(t, e, i, n) : h5_engine.SceneType.getDretion(i, n, t, e);
		var l = r._mapModule.mapMoveModel.getAroundNodeInTheNode(r._mapModule.mapLoader.mapData.getNodeByXY(i, n), h, a, s);
		return l ? l.pixelPoint : null
	}, e.prototype.searchToPointAndAttack = function(t, e, i, n, a, o, r, s, h) {
		var l = this,
			p = l._roleData,
			c = SearchToPointVO.getVO(),
			_ = new FunctionVO(l.onListenerTagrtMove, l, i, n, a, o, r, s, h);
		c.shift = i, c.stepHandler = _, c.finishHandler = _, p.isFightAiRuning && (c.max = 3, c.countMaxFinishHandler = new FunctionVO(
			l.onSearchToPointAndAttackFailHandler, l, c, h));
		var d = c.search(p, t, e, "searchToPointAndAttack");
		return d ? (p.AIRoleState = EnumAIRobotState.ROLE_FIGHT_MOVE, l._operationData.setAtkRolePosi(r, s), l._operationData
			.isClearTrack = !1, !1) : (p.isFightAiRuning && p.ai.chooseNewTarget(h), !1)
	}, e.prototype.onSearchToPointAndAttackFailHandler = function(t, e) {
		var i = this._roleData;
		i.isFightAiRuning && i.ai.chooseNewTarget(e)
	}, e.prototype.onListenerTagrtMove = function(t, e, i, n, a, o, r) {
		var s = this;
		if (0 == s._operationData.isClearTrack && s._operationData.getAtkRolePosi()) {
			var h = s.getCharCrtPosition(egret.Point.create(0, 0)),
				l = h.x,
				p = h.y;
			egret.Point.release(h);
			var c = s._operationData.getAtkRolePosi();
			if (s._operationData.lastSelectRole) {
				var _ = s._operationData.lastSelectRole.serverMap_x,
					d = s._operationData.lastSelectRole.serverMap_y;
				if (c.x != _ || d != c.y) s.checkSkill(e, i, n, _, d, r) && s.settingActionByMoveTarget(i, n, _, d, r);
				else {
					var u = Math.abs(Math.ceil(l / h5_engine.MapConfig.MAP_NODE_WIDTH) - Math.ceil(_ / h5_engine.MapConfig.MAP_NODE_WIDTH)),
						g = Math.abs(Math.ceil(p / h5_engine.MapConfig.MAP_NODE_HEIGHT) - Math.ceil(d / h5_engine.MapConfig.MAP_NODE_HEIGHT)),
						f = u > g ? u : g;
					f <= e.q_range_limit && (i == EnumSkillID.CI_SHA_JIAN_FA && 2 == f ? s.isInCishaPosition(u, g) && s.settingActionByMoveTarget(
						i, n, a, o, r) : s.settingActionByMoveTarget(i, n, a, o, r))
				}
			} else f = h5_engine.MapVO.getDistanceBy2Point(l, p, c.x, c.y), f <= e.q_range_limit && s.settingActionByMoveTarget(
				i, n, a, o, r)
		}
	}, e.prototype.settingActionByMoveTarget = function(t, e, i, n, a) {
		if (!(App.data.CDCenter.getSkillCDLeftTime(t) > 0)) {
			var o = this,
				r = o._roleData,
				s = o.makeAttackAction(t, e, i, n, a, -1);
			r.actionList.crtAction instanceof MoveAction && (r.actionList.crtAction.callBack = null), r.actionList.setNext(s),
				r.searchToPointVo = null
		}
	}, e.prototype.onSelectRole = function(t) {
		this.lastSelectRole = t
	}, e.prototype.clearAuto = function() {
		this._operationData.isClearTrack = !0
	}, e.prototype.clear = function() {
		this._operationData.clearAtkRolePosi(), this.clearSelectRole()
	}, e.prototype.dispose = function() {
		this.clearAuto(), t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(RoleCombatOperation.prototype, "RoleCombatOperation");
var TabBar = function(t) {
	function e(e, i, n) {
		void 0 === i && (i = 2), void 0 === n && (n = "horizontal");
		var a = t.call(this) || this;
		return a._gap = 0, a._selectedIndex = -1, a._width = 640, a._allTabs = e, a._align = n, a._gap = i, a.configUI(), a
	}
	return __extends(e, t), e.prototype.configUI = function() {
		this._allTabDataHash = new HashMap, this._indexTabDic = {};
		for (var t, e, i = this._allTabs.length, n = 0; i > n; n++) t = this._allTabs[n], t.$autoSelected = !1, t.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onTabHandler, this), e = new TabData(n), this._allTabDataHash.put(t, e), this._indexTabDic[
			n] = t;
		this.tabButtonArr = this._allTabs
	}, e.prototype.onTabHandler = function(t) {
		var e = this._allTabDataHash.get(t.currentTarget);
		this.selectedIndex = e.index
	}, Object.defineProperty(e.prototype, "tabButtonArr", {
		get: function() {
			return this._tabButtonArr
		},
		set: function(t) {
			this._currentShowTabs = t ? t : [];
			for (var i, n, a = this._allTabs.length, o = !0, r = -1, s = 0; a > s; s++) i = this._allTabs[s], n = this._allTabDataHash
				.get(i), i.visible = -1 != this._currentShowTabs.indexOf(i), i.visible && o && (n.index < r && (o = !1), r = n.index);
			if (!o) {
				ArrayUtil.sortOnArr(this._currentShowTabs, ["name"], [ArrayUtil.NUMERIC]);
				for (var h = this._currentShowTabs.length, l = 0; h > l; l++) i = this._currentShowTabs[l], i.x = this._align ==
					e.HORIZENTAL ? l * (i.width + this._gap) : 0, i.y = this._align == e.VERTICAL ? l * (i.height + this._gap) : 0
			}
			if (this._selectedIndex >= 0) {
				var p = this._indexTabDic[this._selectedIndex];
				if (p && -1 == this._currentShowTabs.indexOf(p) && this._currentShowTabs.length > 0) {
					var c = this._allTabDataHash.get(this._currentShowTabs[0]);
					this.selectedIndex = c.index
				}
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "tabActButtonArr", {
		set: function(t) {
			this._currentShowTabs = t ? t : [];
			for (var i, n, a = this._allTabs.length, o = !0, r = -1, s = 0; a > s; s++) i = this._allTabs[s], n = this._allTabDataHash
				.get(i), i.visible = -1 != this._currentShowTabs.indexOf(i), i.visible && o && (n.index > r && (o = !1), r = n.index);
			if (!o) {
				ArrayUtil.sortOnArr(this._currentShowTabs, ["name"], [ArrayUtil.NUMERIC]);
				for (var h = this._currentShowTabs.length, l = 96 * h - 6, p = 0; h > p; p++) {
					i = this._currentShowTabs[p];
					var c = this._width - l >> 1;
					i.x = this._align == e.HORIZENTAL ? c - 5 + 96 * p : 0, i.y = this._align == e.VERTICAL ? p * (i.height + this
						._gap) : 0
				}
			}
			if (this._selectedIndex >= 0) {
				var _ = this._indexTabDic[this._selectedIndex];
				if (_ && -1 == this._currentShowTabs.indexOf(_) && this._currentShowTabs.length > 0) {
					var d = this._allTabDataHash.get(this._currentShowTabs[0]);
					this.selectedIndex = d.index
				}
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addTabBtnShow = function(t) {
		var e = this.tabButtonArr.indexOf(t); - 1 == e && (this._currentShowTabs.push(t), this.tabButtonArr = this._currentShowTabs)
	}, e.prototype.removeTabBtnShow = function(t) {
		var e = this.tabButtonArr.indexOf(t); - 1 != e && (this._currentShowTabs.splice(e, 1), this.tabButtonArr = this._currentShowTabs)
	}, Object.defineProperty(e.prototype, "selectedIndex", {
		get: function() {
			return this._selectedIndex
		},
		set: function(t) {
			if (t != this._selectedIndex) {
				var i;
				if (-1 == t) i = this._indexTabDic[this._selectedIndex], i && (i.selected = !1);
				else {
					if (i = this._indexTabDic[t]) {
						var n = this._allTabDataHash.get(i);
						if (n && n.tabDispatch && !n.tabDispatch.exec()) return
					}
					var a = this._indexTabDic[this._selectedIndex];
					a && (a.selected = !1), i = this._indexTabDic[t], i ? i.selected = !0 : GameLog.logError("参数索引位置有误！")
				}
				this._selectedIndex = t, this._selectedIndex >= 0 && this.dispatchEvent(new egret.Event(e.SELECTED_INDEX_CHANGE))
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTabBtnData = function(t, e) {
		var i = this._allTabDataHash.get(t);
		i && (i.data = e)
	}, e.prototype.setTabBtnCallBack = function(t, e) {
		var i = this._allTabDataHash.get(t);
		i && (i.tabDispatch = e)
	}, e.prototype.setRedSign = function(t, e, i) {
		var n = egret.is(t, "eui.ToggleButton") ? t : this._indexTabDic[Number(t)],
			a = this._allTabDataHash.get(n);
		a && a.sign == e || (a.sign = e, UIMaker.showPoint(n, this, e))
	}, Object.defineProperty(e.prototype, "allTabButtonArr", {
		get: function() {
			return this._allTabs
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectItem", {
		get: function() {
			if (this._selectedIndex >= 0) {
				var t = this._indexTabDic[this._selectedIndex],
					e = this._allTabDataHash.get(t);
				return e.data
			}
			return null
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectTabBtn", {
		get: function() {
			return this._selectedIndex >= 0 ? this._indexTabDic[this._selectedIndex] : null
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "datas", {
		get: function() {
			for (var t, e = this._currentShowTabs.length, i = [], n = 0; e > n; n++) t = this._allTabDataHash.get(this._currentShowTabs[
				n]), i.push(t.data);
			return i
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		if (null != this._indexTabDic)
			for (var t in this._indexTabDic) {
				var e = this._indexTabDic[Number(t)];
				if (e) {
					UIMaker.showPoint(e, this, !1);
					var i = this._allTabDataHash.get(e);
					i && (i.sign = !1)
				}
			}
	}, e.SELECTED_INDEX_CHANGE = "selected_index_change", e.HORIZENTAL = "horizontal", e.VERTICAL = "vertical", e
}(egret.EventDispatcher);
__reflect(TabBar.prototype, "TabBar");
var DummyRole = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this);
		var e = this;
		e.cavatar.aniDirType = 1, e.hpBar.isShowNgBar = !1
	}, e.prototype.mouseDown = function() {
		var e = this;
		t.prototype.mouseDown.call(this), e.addSelectEffect(), App.dispatcher.dispatchEvent(EventType.MAP_DUMMY_ROLE_CLICK,
			e._roleData.personId)
	}, e.prototype.getAvatarPartDepthList = function(t) {
		var e = this;
		return AvatarActionType.getPlayerDepth(t, e._roleData.action, e.avatar.currentFrame)
	}, Object.defineProperty(e.prototype, "guildNameBar", {
		get: function() {
			var t = this;
			if (0 == t.roleHeadLayout.hashConetnt(AvatarHeadType.GUILD_NAME)) {
				var e = new h5_engine.AvatarHeadTextName;
				t.roleHeadLayout.addContent(AvatarHeadType.GUILD_NAME, AvatarHeadType.getIndex(AvatarHeadType.GUILD_NAME), e),
					e.show()
			}
			return t.roleHeadLayout.getContent(AvatarHeadType.GUILD_NAME)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		var t = this;
		t.resetAndClear(), App.thing.putIn(t)
	}, e
}(h5_engine.MoveRole);
__reflect(DummyRole.prototype, "DummyRole");
var Monster = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this);
		var e = this;
		e.cavatar.aniDirType = 1, e.hpBar.hide(), e.hpBar.changeHpBarStyle(AvatarHpMpBar.STYLE_4), e.hpBar.mustShowHpText = !
			0, e.hpBar.isShowNgBar = !1, e.hideName()
	}, e.prototype.changeDirAction = function(e, i, n, a, o) {
		void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), void 0 === o && (o = 0);
		var r = this._roleData;
		e == AvatarActionType.ACTION_TYPE_WALK && (e = AvatarActionType.ACTION_TYPE_RUN), 4096 == r.monsterType || 0 != r.monsterModelBean
			.q_sex && r.monsterModelBean.q_monster_job == EnumRole.ZHAN_SHI || (i = h5_engine.SceneType.getMonsterDir(i)), 0 ==
			r.monsterModelBean.q_canmove && r.monsterModelBean.q_born_dir > 0 && (i = r.monsterModelBean.q_born_dir), this.cavatar
			.speed = 1, t.prototype.changeDirAction.call(this, e, i, n, a, o)
	}, e.prototype.getAvatarPartDepthList = function(t) {
		var e = this;
		return e._roleData.monsterModelBean.q_sex > 0 ? AvatarActionType.getPlayerDepth(t, e._roleData.action, e.avatar.currentFrame) :
			null
	}, e.prototype.mouseOver = function() {
		var e = this,
			i = e._roleData;
		0 == i.getIsDead() && (t.prototype.mouseOver.call(this), 0 == i.showHp && e.hpBar.show(), 0 == i.showName && e.showName())
	}, e.prototype.mouseOut = function() {
		var e = this,
			i = e._roleData;
		0 == i.getIsDead() && (t.prototype.mouseOut.call(this), 0 == e.roleHeadLayout.hashConetnt(AvatarHeadType.BOSS_TOP_NAME) &&
			(0 == i.showHp && h5_engine.SceneRole.lastSelectRole != e && e.hpBar.hide(), 0 == i.showName && h5_engine.SceneRole
				.lastSelectRole != e && e.hideName()))
	}, e.prototype.mouseDown = function() {
		t.prototype.mouseDown.call(this), App.dispatcher.dispatchEvent(EventType.MOUSE_DOWN_ROLE, this._roleData)
	}, e.prototype.addSelectEffect = function(e) {
		void 0 === e && (e = null);
		var i = this,
			n = App.global.mapModule.mapQuickSelect.checkIsEnemy(i._roleData.personId, App.global.characterData),
			a = i._roleData;
		n ? a && (ByteUtils.hasKey(a.monsterType, 8) ? t.prototype.addSelectEffect.call(this, ResPathUtil.getMenuEffect(
				"guangquan", "boss")) : ByteUtils.hasKey(a.monsterType, 4) ? t.prototype.addSelectEffect.call(this, ResPathUtil.getMenuEffect(
				"guangquan", "small")) : t.prototype.addSelectEffect.call(this, ResPathUtil.getMenuEffect("guangquan",
				"selectedbosssmall")), i._footEffect && i._footEffect.removeParent()) : t.prototype.addSelectEffect.call(this,
				ResPathUtil.getMenuEffect("guangquan", "lvse")), App.dispatcher.dispatchEvent(EventType.SELECT_MONSTER, i._roleData),
			i.hpBar.show(), i.showName()
	}, e.prototype.removeSelectEffect = function() {
		var e = this;
		if (e._footEffect && e._footEffect.addParent(App.layer.sceneLayer.footAniLayer), t.prototype.removeSelectEffect.call(
				this), App.dispatcher.dispatchEvent(EventType.UN_SELECT_MONSTER, e._roleData), App.global.mouseUnit != e && 0 ==
			e.isDispose) {
			var i = e._roleData;
			i && 0 == e.roleHeadLayout.hashConetnt(AvatarHeadType.BOSS_TOP_NAME) && (0 == i.showHp && e.hpBar.hide(), 0 == i.showName &&
				e.hideName())
		}
	}, e.prototype.showName = function() {
		this.nameBar.show()
	}, e.prototype.hideName = function() {
		this.nameBar.hide()
	}, e.prototype.addBossTitle = function(t, e) {
		var i = this;
		if (t) {
			var n = i._roleData;
			if (n && ByteUtils.hasKey(n.monsterType, 8)) {
				var a = ResPathUtil.getMenuEffect("guangquan", "boss");
				i.addFootEffect(a)
			}
			if (i.hpBar.changeHpBarStyle(AvatarHpMpBar.STYLE_5), i.hpBar.show(), i.nameBar.show(), 0 == i.roleHeadLayout.hashConetnt(
					AvatarHeadType.BOSS_TOP_NAME)) {
				var o = new h5_engine.AvatarHeadTextName;
				i.roleHeadLayout.addContent(AvatarHeadType.BOSS_TOP_NAME, AvatarHeadType.getIndex(AvatarHeadType.BOSS_TOP_NAME),
					o), o.show(), i.addNameBarSign("png.common_v1.bossSign")
			}
			i.roleHeadLayout.getContent(AvatarHeadType.BOSS_TOP_NAME).setName(e, 16764970, 18, !1)
		} else i.clearBossTitle(), i.clearNameBarSign()
	}, e.prototype.clearBossTitle = function() {
		var t = this;
		t.hpBar.changeHpBarStyle(AvatarHpMpBar.STYLE_4), t.roleHeadLayout.hashConetnt(AvatarHeadType.BOSS_TOP_NAME) && t.roleHeadLayout
			.removeContent(AvatarHeadType.BOSS_TOP_NAME)
	}, e.prototype.showEscortPalyerName = function() {
		var t = this,
			e = t._roleData;
		if (e) {
			if (0 == t.roleHeadLayout.hashConetnt(AvatarHeadType.ESCORT_PLAYERNAME)) {
				var i = new h5_engine.AvatarHeadTextName;
				t.roleHeadLayout.addContent(AvatarHeadType.ESCORT_PLAYERNAME, AvatarHeadType.getIndex(AvatarHeadType.ESCORT_PLAYERNAME),
					i), i.show()
			}
			t.roleHeadLayout.getContent(AvatarHeadType.ESCORT_PLAYERNAME).setName(e.bossOwnerName, 16764970, 18, !0)
		}
	}, e.prototype.resetAndClear = function() {
		var e = this;
		e.roleHeadLayout.hashConetnt(AvatarHeadType.GATHER_SIGN) && e.roleHeadLayout.removeContent(AvatarHeadType.GATHER_SIGN),
			e.roleHeadLayout.hashConetnt(AvatarHeadType.ESCORT_PLAYERNAME) && e.roleHeadLayout.removeContent(AvatarHeadType.ESCORT_PLAYERNAME),
			e.clearBossTitle(), t.prototype.resetAndClear.call(this)
	}, e.prototype.dispose = function() {
		var t = this;
		t.cavatar.aniDirType = 1, t.resetAndClear(), t.hpBar.hide(), t.nameBar.hide(), t.cavatar.scaleX = 1, App.thing.putIn(
			t)
	}, e
}(h5_engine.MoveRole);
__reflect(Monster.prototype, "Monster");
var TabData = function() {
	function t(t) {
		this.index = -1, this.sign = !1, this.index = t
	}
	return t
}();
__reflect(TabData.prototype, "TabData");
var Npc = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._npcState = 0, e._viewPlayTime = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.hpBar.hide()
	}, e.prototype.resizeChildPosition = function() {
		var e = this;
		t.prototype.resizeChildPosition.call(this), e._npcEffect && e._npcEffect.setTo(0, -e._roleData.modelHeight - 40)
	}, e.prototype.mouseOver = function() {
		t.prototype.mouseOver.call(this)
	}, e.prototype.mouseOut = function() {
		t.prototype.mouseOut.call(this)
	}, e.prototype.mouseDown = function() {
		t.prototype.mouseDown.call(this), this.addSelectEffect()
	}, e.prototype.addSelectEffect = function(e) {
		void 0 === e && (e = null);
		var i = this;
		70 == i._roleData.npcModelId ? t.prototype.addSelectEffect.call(this, "null") : t.prototype.addSelectEffect.call(
			this), App.dispatcher.dispatchEvent(EventType.MAP_NPC_TASK_CLICK, i._roleData.personId)
	}, e.prototype.removeSelectEffect = function() {
		t.prototype.removeSelectEffect.call(this), App.dispatcher.dispatchEvent(EventType.UN_SELECT_NPC, this._roleData)
	}, e.prototype.ShowHeadImg = function(t) {
		if (0 == this.roleHeadLayout.hashConetnt(AvatarHeadType.STALL_NAME) && t && "" != t) {
			var e = UIMaker.getCImage(null, this, t),
				i = new h5_engine.AvatarStallImg(e);
			i.x = -42, i.show(), this.roleHeadLayout.addContent(AvatarHeadType.STALL_NAME, AvatarHeadType.getIndex(
				AvatarHeadType.STALL_NAME), i)
		}
	}, Object.defineProperty(e.prototype, "npcTitleName", {
		get: function() {
			var t = this;
			if (0 == t.roleHeadLayout.hashConetnt(AvatarHeadType.NPC_TOP_NAME)) {
				var e = new h5_engine.AvatarHeadTextName;
				t.roleHeadLayout.addContent(AvatarHeadType.NPC_TOP_NAME, AvatarHeadType.getIndex(AvatarHeadType.NPC_TOP_NAME),
					e), e.show()
			}
			return t.roleHeadLayout.getContent(AvatarHeadType.NPC_TOP_NAME)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addStateEffect = function(t) {
		void 0 === t && (t = 0);
		var e = this;
		if (e._npcState != t) {
			if (e._npcState = t, 0 > t || 3 == t) return void(e._npcEffect && (e._npcEffect.dispose(), e._npcEffect = null));
			switch (e._npcEffect || (e._npcEffect = new CEffect, e._npcEffect.setTo(0, -30), e._npcEffect.addParent(e.view)),
				t) {
				case 0:
					break;
				case 1:
					break;
				case 2:
					e._npcEffect.url = ResPathUtil.getMenuEffect("npctask", "wenhao")
			}
			e._npcEffect.play()
		}
	}, e.prototype.resetAndClear = function() {
		var e = this;
		e._npcEffect && (e._npcEffect.dispose(), e._npcEffect = null), e.roleHeadLayout.hashConetnt(AvatarHeadType.NPC_TOP_NAME) &&
			e.roleHeadLayout.removeContent(AvatarHeadType.NPC_TOP_NAME), e.roleHeadLayout.hashConetnt(AvatarHeadType.STALL_NAME) &&
			e.roleHeadLayout.removeContent(AvatarHeadType.STALL_NAME), e._npcState = 0, e._viewPlayTime = 0, t.prototype.resetAndClear
			.call(this), e.hpBar.hide()
	}, e.prototype.dispose = function() {
		var t = this;
		t.resetAndClear(), App.thing.putIn(t)
	}, e
}(h5_engine.MoveRole);
__reflect(Npc.prototype, "Npc");
var Partner = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.changeDirAction = function(e, i, n, a, o) {
		void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), void 0 === o && (o = 0);
		var r = this._roleData;
		r.job != EnumRole.ZHAN_SHI && (i = h5_engine.SceneType.getMonsterDir(i)), t.prototype.changeDirAction.call(this, e,
			i, n, a, o)
	}, e
}(Player);
__reflect(Partner.prototype, "Partner");
var CharacterPartner = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.makeShadow = function() {
		var t = this;
		null == t.shadow && t.setShadow(h5_engine.Shadow.getShadow()), t._roleData ? (t.shadow.x = t._roleData.pixel_x, t.shadow
			.y = t._roleData.pixel_y) : (t.shadow.x = 0, t.shadow.y = 0)
	}, e
}(Character);
__reflect(CharacterPartner.prototype, "CharacterPartner");
var Pet = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this);
		var e = this;
		e.cavatar.aniDirType = 1, e.hpBar.hide(), e.hpBar.isShowNgBar = !1, e.nameBar.hide()
	}, e.prototype.changeDirAction = function(e, i, n, a, o) {
		void 0 === i && (i = -1), void 0 === n && (n = !0), void 0 === a && (a = !1), void 0 === o && (o = 0), e ==
			AvatarActionType.ACTION_TYPE_DIE && (i = h5_engine.SceneType.RIGHTBOTTOM), i = h5_engine.SceneType.getMonsterDir(i),
			this.cavatar.speed = 1, this._roleData.petModelBean && 888 == this._roleData.petModelBean.q_pettype && (i =
				h5_engine.SceneType.RIGHTBOTTOM, e = AvatarActionType.ACTION_TYPE_RUN), t.prototype.changeDirAction.call(this, e,
				i, n, a, o)
	}, e.prototype.getAvatarPartDepthList = function(t) {
		return null
	}, e.prototype.mouseOver = function() {
		var e = this,
			i = e._roleData;
		0 == i.getIsDead() && (t.prototype.mouseOver.call(this), e.hpBar.show(), e.hpBar.showHpText(), e.nameBar.show())
	}, e.prototype.mouseOut = function() {
		var e = this,
			i = e._roleData;
		0 == i.getIsDead() && (t.prototype.mouseOut.call(this), 0 == i.showHp && e.hpBar.hideHpText(), e.checkPetHpBarShow(),
			h5_engine.SceneRole.lastSelectRole != e && (0 == i.showHp && e.hpBar.hide(), 0 == i.showName && e.nameBar.hide())
		)
	}, e.prototype.checkPetHpBarShow = function() {
		var t = this,
			e = t._roleData;
		e && 0 == t.isDispose && App.global.mouseUnit != t && h5_engine.SceneRole.lastSelectRole != t && (0 == e.showHp &&
			t.hpBar.hide(), 0 != e.showName || App.global.mapModule.mapAvatarModel.hideData.hide_allPet || t.nameBar.hide())
	}, e.prototype.mouseDown = function() {
		var e = this;
		e.isMouseEnabled && (t.prototype.mouseDown.call(this), App.dispatcher.dispatchEvent(EventType.MOUSE_DOWN_ROLE, e._roleData))
	}, e.prototype.addSelectEffect = function(e) {
		void 0 === e && (e = null);
		var i = this;
		i.isMouseEnabled && (t.prototype.addSelectEffect.call(this), App.dispatcher.dispatchEvent(EventType.SELECT_PET, i._roleData),
			i.hpBar.show(), i.nameBar.show())
	}, e.prototype.removeSelectEffect = function() {
		var e = this;
		t.prototype.removeSelectEffect.call(this), App.dispatcher.dispatchEvent(EventType.UN_SELECT_PET, e._roleData), e.checkPetHpBarShow()
	}, e.prototype.resetAndClear = function() {
		var e = this;
		e.cavatar.aniDirType = 1, e.cavatar.removePart(AvatarPartType.WEAPON), e.cavatar.removePart(AvatarPartType.HEAD), t
			.prototype.resetAndClear.call(this)
	}, e.prototype.dispose = function() {
		var t = this;
		t.resetAndClear(), t.hpBar.hide(), t.nameBar.hide(), App.thing.putIn(t)
	}, e
}(h5_engine.MoveRole);
__reflect(Pet.prototype, "Pet");
var ArtifactTip = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._width = 500, e._height = 805, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._tipView = UIMaker.createViewBase("ArtifacAllAttrSkin"), this.addChild(this._tipView)
	}, e.prototype.show = function(t) {
		this._tipView.attr_txt0.textFlow = HtmlUtil.getHtmlStr(t.data.toString());
		for (var e = 1; 10 >= e; e++) {
			var i = App.data.getArtifactDataCenter().suitId(e),
				n = App.config.q_artifact_suitContainer.getDataBean(i);
			n ? this._tipView["textdesc" + (e - 1)].textColor = 16315319 : (n = App.data.getArtifactDataCenter().getFristSuitBean(
				e), this._tipView["textdesc" + (e - 1)].textColor = 11639929), this._tipView["textdesc" + (e - 1)].text = n.q_des3
		}
		this.resize()
	}, e.prototype.hide = function() {}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._height
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.resize = function() {
		t.prototype.resize.call(this), this._tipView.x = Config.SCREEN_WIDTH - this.width >> 1, this._tipView.y = Config.SCREEN_HEIGHT -
			this.height >> 1
	}, e
}(TipStyleBase);
__reflect(ArtifactTip.prototype, "ArtifactTip");
var ShadowAvatar = function(t) {
	function e() {
		var e = t.call(this) || this;
		e._z = 0;
		var i = e;
		i.aniDirType = 1;
		var n = [new egret.ColorMatrixFilter([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, .5, 0])];
		i.filters = n;
		var a = -20 / 180 * Math.PI,
			o = i.matrix;
		return o.c = Math.tan(a), o.d = .6, i.matrix = o, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "z", {
		get: function() {
			return this._z
		},
		set: function(t) {
			this._z != t && (this._z = t)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setContainer = function(t) {
		t && t.addChildAt(this, 0)
	}, e.prototype.addvanceTime = function(e) {
		t.prototype.addvanceTime.call(this, e)
	}, e.prototype.getParent = function() {
		return this.parent
	}, e.prototype.removeContainer = function() {
		var t = this;
		t.parent && t.parent.removeChild(this)
	}, Object.defineProperty(e.prototype, "view", {
		get: function() {
			return this
		},
		enumerable: !0,
		configurable: !0
	}), e
}(h5_engine.CAvatar);
__reflect(ShadowAvatar.prototype, "ShadowAvatar", ["IShadow", "IDispose"]);
var AvatarChatBubble = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i._isShow = !1, i._content = "";
		var n = i;
		return n.euiSkinName = "AvatarChatSkin", n._container = e, n.touchEnabled = !1, n.touchChildren = !1, i
	}
	return __extends(e, t), e.prototype.showContent = function(t) {
		var e = this;
		e._content != t && (e._content = t, e.txt.textFlow = HtmlUtil.getHtmlStr(e._content)), e.show()
	}, e.prototype.show = function(t) {
		var e = this;
		0 == e._isShow && (e._isShow = !0, e._container && 0 == e._container.contains(e) && e._container.addChild(e))
	}, e.prototype.hide = function() {
		var t = this;
		t._isShow && (t._isShow = !1, t._container && t._container.contains(t) && t._container.removeChild(t))
	}, e.prototype.clear = function() {
		var t = this;
		t.hide(), t.txt.text = "", t._content = ""
	}, e.prototype.dispose = function() {
		this.clear(), this._container = null, t.prototype.dispose.call(this)
	}, e.prototype.move = function(t, e, i) {
		var n = this;
		n.x = t - n.width / 2, n.y = e - i - n.height - 17
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 165
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 59
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(AvatarChatBubble.prototype, "AvatarChatBubble");
var AvatarHeadImage = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._x = 0, i._y = 0, i._isShow = !1, i._image = e, i._image.netHandler.addCompleteHandler(i, new FunctionVO(i.onImageLoadHandler,
			i)), i
	}
	return __extends(e, t), e.prototype.onImageLoadHandler = function() {
		this.changeParentLayout()
	}, Object.defineProperty(e.prototype, "visible", {
		get: function() {
			return this._image.visible
		},
		set: function(t) {
			this._image.visible = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.isShow = function() {
		return this._isShow
	}, Object.defineProperty(e.prototype, "type", {
		get: function() {
			return this._type
		},
		set: function(t) {
			this._type = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._image.height
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._image.width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "y", {
		get: function() {
			return this._y
		},
		set: function(t) {
			this._y = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "x", {
		get: function() {
			return this._x
		},
		set: function(t) {
			this._x = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.addFather = function(t) {
		this._father != t && (this._father = t)
	}, e.prototype.removeFather = function() {
		this.hide(), this._father = null
	}, e.prototype.setContainer = function(t) {
		var e = this;
		t ? (e._container = t.effectContainer, e._isShow && e.showSign()) : (e._container = null, e._image && e._image.parent &&
			(e._image.parent.removeChild(e._image), e.changeParentLayout()))
	}, e.prototype.showSign = function() {
		var t = this;
		t._container && 0 == t._container.contains(t._image) && (t._container.addChild(t._image), t.changeParentLayout())
	}, e.prototype.show = function() {
		var t = this;
		0 == t._isShow && (t._isShow = !0, t.showSign(), t._father && t._father.posiChange())
	}, e.prototype.hide = function() {
		var t = this;
		t._isShow && (t._isShow = !1, t._image && t._image.parent && (t._image.parent.removeChild(t._image), t.changeParentLayout()))
	}, e.prototype.resetPostion = function() {
		var t = this;
		if (t._isShow) {
			var e = t._image,
				i = t._father.getFatherPoint();
			e && (0 != t._x ? e.x = t._x + i.x : e.x = .5 * -e.width + i.x, e.y = t._y + i.y)
		}
	}, e.prototype.changeParentLayout = function() {
		this._father.change = !0
	}, e.prototype.clear = function() {
		this.hide(), this._image.clear()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.hide(), this._image && (this._image.dispose(), this._image = null), this._container =
			null, this._father = null
	}, e
}(Dispose);
__reflect(AvatarHeadImage.prototype, "AvatarHeadImage", ["IHeadLayout"]);
var AvatarHpMpBar = function(t) {
	function e() {
		var i = t.call(this) || this;
		if (i._type = "", i._isShowBar = !1, i._hWidth = 0, i._crtHpValue = 0, i._maxHpValue = 0, i._isShowNgBar = !0, i._crtNgValue =
			0, i._maxNgValue = 0, i._height = 20, i._isShowHpText = !0, i._mustShowHpText = !1, i._hpBarStyle = 1, i._x = 0, i._y =
			0, i._isVisible = !0, null == e.BACKGROUND_BLACK) {
			var n = RES.getRes("avatarhead_png"),
				a = RES.getRes("avatarhead_config_json"),
				o = TextureUtils.parseSpriteSheet(n, a),
				r = new egret.BitmapFont(n, a);
			e.BACKGROUND_BLACK = o.getTexture("hpbar_bg"), e.ROLE_BAR_BOSS = o.getTexture("role_bar_boss"), e.ROLE_BAR_RED_XI =
				o.getTexture("role_bar_xiaoguai"), e.ROLE_BAR_RED_CU = o.getTexture("role_bar_df_cu"), e.ROLE_BAR_LV_CU = o.getTexture(
					"role_bar_lv_cu"), e.ROLE_BAR_LV_XI = o.getTexture("role_bar_lv_xi"), e.ROLEBAR_BG_CU = o.getTexture(
					"rolebar_bg_cu"), e.ROLEBAR_BG_XI = o.getTexture("rolebar_bg_xi"), e.ROLE_BAR_ZL_YELLOW_XI = o.getTexture(
					"role_bar_zl_yellow_xi"), e.TEXT_BMP_FONT = r
		}
		var s = i,
			h = new h5_engine.GDisplayObjectContainer;
		return s._view = h, s._bg = new h5_engine.GBitmap(e.BACKGROUND_BLACK), h.addChild(s._bg), s._hpBarBackground = new h5_engine
			.GBitmap(e.ROLEBAR_BG_XI), h.addChild(s._hpBarBackground), s._hpBar = new h5_engine.GBitmap(e.ROLE_BAR_LV_XI), h.addChild(
				s._hpBar), s._ngBg = new h5_engine.GBitmap(e.BACKGROUND_BLACK), h.addChild(s._ngBg), s._ngBarBackground = new h5_engine
			.GBitmap(e.ROLEBAR_BG_XI), h.addChild(s._ngBarBackground), s._ngBar = new h5_engine.GBitmap(e.ROLE_BAR_ZL_YELLOW_XI),
			h.addChild(s._ngBar), s.changeHpBarStyle(4), s.changeBarPostion(5), h.touchEnabled = !1, h.touchChildren = !1, i
	}
	return __extends(e, t), e.prototype.changeHpBarStyle = function(t) {
			var i = this;
			if (i._hpBarStyle != t) {
				switch (i._hpBarStyle = t, t == e.STYLE_1 || t == e.STYLE_2 || t == e.STYLE_5 ? (i._hWidth = e.BACKGROUND_WIDTH_CU,
					i._bg.height = 6, i._bg.width = i._hWidth + 3, i._hpBarBackground.width = i._hWidth, i._hpBarBackground.texture =
					e.ROLEBAR_BG_CU, i._hpBarBackground.x = 1.5, i._hpBar.x = 1.5, i._ngBg.height = 5, i._ngBg.width = i._hWidth + 3,
					i._ngBarBackground.width = i._hWidth, i._ngBarBackground.texture = e.ROLEBAR_BG_XI, i._ngBarBackground.x = 1.5,
					i._ngBar.x = 1.5) : (i._hWidth = e.BACKGROUND_WIDTH_XI, i._bg.height = 5, i._bg.width = i._hWidth + 2, i._hpBarBackground
					.width = i._hWidth, i._hpBarBackground.texture = e.ROLEBAR_BG_XI, i._hpBarBackground.x = 1, i._hpBar.x = 1, i._ngBg
					.height = 5, i._ngBg.width = i._hWidth + 2, i._ngBarBackground.width = i._hWidth, i._ngBarBackground.texture = e
					.ROLEBAR_BG_XI, i._ngBarBackground.x = 1, i._ngBar.x = 1), t) {
					case e.STYLE_1:
						i._hpBar.texture = e.ROLE_BAR_LV_CU;
						break;
					case e.STYLE_2:
						i._hpBar.texture = e.ROLE_BAR_RED_CU;
						break;
					case e.STYLE_3:
						i._hpBar.texture = e.ROLE_BAR_LV_XI;
						break;
					case e.STYLE_4:
						i._hpBar.texture = e.ROLE_BAR_RED_XI;
						break;
					case e.STYLE_5:
						i._hpBar.texture = e.ROLE_BAR_BOSS
				}
				i._hpBar.width = i._hWidth, i._ngBar.width = i._hWidth, i.settingHpValue(i._crtHpValue, i._maxHpValue), i._x = .5 *
					-i._bg.width
			}
		}, Object.defineProperty(e.prototype, "isShowNgBar", {
			get: function() {
				return this._isShowNgBar
			},
			set: function(t) {
				var e = this;
				if (e.isShowNgBar != t) {
					e._isShowNgBar = t;
					var i = e._view;
					e._isShowNgBar ? 0 == i.contains(e._ngBg) && (i.addChild(e._ngBg), i.addChild(e._ngBarBackground), i.addChild(e
						._ngBar)) : i.contains(e._ngBg) && (i.removeChild(e._ngBg), i.removeChild(e._ngBarBackground), i.removeChild(
						e._ngBar)), e.changeParentLayout()
				}
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.settingNeiGongValue = function(t, e) {
			var i = this,
				n = t / e * i._hWidth;
			t > e && Config.isRelease && (n = i._hWidth), i._crtNgValue = t, i._maxNgValue = e, i._isShowBar && i._isShowNgBar &&
				(i._ngBar.width = n)
		}, Object.defineProperty(e.prototype, "mustShowHpText", {
			get: function() {
				return this._mustShowHpText
			},
			set: function(t) {
				var e = this;
				e._mustShowHpText != t && (e._mustShowHpText = t, e._mustShowHpText ? e.showHpText() : e.changeHpTextShow())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "crtHpValue", {
			get: function() {
				return this._crtHpValue
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "maxHpValue", {
			get: function() {
				return this._maxHpValue
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.settingHpValue = function(t, e) {
			0 > t && (t = 0);
			var i = this,
				n = t / e * i._hWidth;
			i._crtHpValue = t, i._maxHpValue = e, i._isShowBar && (t > e && Config.isRelease && (n = i._hWidth), i._hpBar.width =
				n, i._mustShowHpText ? i.showHpText() : i.changeHpTextShow())
		}, e.prototype.changeHpTextShow = function() {
			var t = this;
			t._crtHpValue != t._maxHpValue ? t.showHpText() : t.hideHpText()
		}, e.prototype.showHpText = function() {}, e.prototype.hideHpText = function() {}, e.prototype.changeBarPostion =
		function(t) {
			var e = this;
			e._bg.y = t, e._hpBarBackground.y = t + 1, e._hpBar.y = t + 1, e._ngBg.y = e._bg.height + t + 1, e._ngBarBackground
				.y = e._ngBg.y + 1, e._ngBar.y = e._ngBarBackground.y
		}, Object.defineProperty(e.prototype, "type", {
			get: function() {
				return this._type
			},
			set: function(t) {
				this._type = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "visible", {
			get: function() {
				return this._isVisible
			},
			set: function(t) {
				var e = this;
				e._isVisible = t, e._view && (e._view.visible = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return this._height + (this._isShowNgBar ? 5 : 0)
			},
			set: function(t) {
				this._height = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "width", {
			get: function() {
				return this._hWidth
			},
			set: function(t) {},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.resetPostion = function() {
			var t = this;
			if (t._isShowBar) {
				var e = t._father.getFatherPoint();
				t._view.x = e.x + t._x >> 0, t._view.y = e.y + t._y >> 0
			}
		}, e.prototype.addFather = function(t) {
			this._father = t
		}, e.prototype.removeFather = function() {
			var t = this;
			t.hide(), t._father = null
		}, e.prototype.setContainer = function(t) {
			var e = this;
			t ? (e._container = t.hpMpContainer, e._isShowBar && (e._container.addChild(e._view), e.settingHpValue(e._crtHpValue,
				e._maxHpValue), e.settingNeiGongValue(e._crtNgValue, e._maxNgValue))) : (e._container = null, e._view && e._view.parent &&
				e._view.parent.removeChild(e._view))
		}, e.prototype.isShow = function() {
			return this._isShowBar
		}, e.prototype.hide = function() {
			var t = this;
			1 == t._isShowBar && (t._isShowBar = !1, t._view && t._view.parent && t._view.parent.removeChild(t._view))
		}, e.prototype.show = function() {
			var t = this;
			0 == t._isShowBar && (t._isShowBar = !0, t._father && t._father.posiChange(), t._container && 0 == t._container.contains(
				t._view) && t._container.addChild(t._view), t.settingHpValue(t._crtHpValue, t._maxHpValue), t.settingNeiGongValue(
				t._crtNgValue, t._maxNgValue))
		}, e.prototype.changeParentLayout = function() {
			this._father.change = !0
		}, e.prototype.clear = function() {
			this.show()
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this.removeFather()
		}, e.BACKGROUND_WIDTH_XI = 44, e.BACKGROUND_WIDTH_CU = 55, e.STYLE_1 = 1, e.STYLE_2 = 2, e.STYLE_3 = 3, e.STYLE_4 =
		4, e.STYLE_5 = 5, e
}(Dispose);
__reflect(AvatarHpMpBar.prototype, "AvatarHpMpBar", ["IHeadLayout"]);
var ChuanQiTaoZhuangTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("ChuanQiTaoZhuangTipSkin"), this.addChild(this._view), this._grid = GridUtil.getGrid(
				SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.x = 19, this._grid.y = 41, this._grid.isShowTip = !1,
			this._view.group1.addChild(this._grid), this._grid2 = GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid2.x = 19, this._grid2.y = 41, this._grid2.isShowTip = !1, this._view.group2.addChild(this._grid2)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - this._view.width >> 1, this._view.y = Config.SCREEN_HEIGHT -
			this._view.height >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		this._data = t.data;
		var e = App.data.characterCenter.ChuanqiEquipsHash.get(this._data.index),
			i = e.get(this._data.selecttype);
		if (i) {
			var n = i.length;
			if (8 == n) {
				for (var a = 10, o = 0; n > o; o++) i && i[o] && GameUtil.getItemConfigData(i[o].itemid).q_zhuanshen < a && (a =
					GameUtil.getItemConfigData(i[o].itemid).q_zhuanshen);
				this.refresh1(a)
			} else this.refresh()
		} else this.refresh()
	}, e.prototype.refresh1 = function(t) {
		void 0 === t && (t = 1);
		var e = App.config.q_equip_masterContainer.getDataBean(8e5 + 100 * this._data.selecttype + t);
		this._view.name1.text = e.q_suit_name, this._view.leveltext.text = "等级:" + e.q_rank, this._view.tiaojian.text = e.q_equip_icon_male,
			this._view.tiaojian.visible = !1, this._view.jihuo.source = "common1_state2_png";
		var i = App.config.q_skillModelContainer.getDataBean(Number(e.q_suit_skill));
		if (this._view.desc.textFlow = HtmlUtil.getHtmlStr(i.q_tips_desc), this._grid.setData(Number(i.q_skillID)), 10 > t) {
			this._view.group2.visible = !0;
			var n = App.config.q_equip_masterContainer.getDataBean(8e5 + 100 * this._data.selecttype + t + 1);
			this._view.name2.text = n.q_suit_name, this._view.leveltext0.text = "等级:" + n.q_rank, this._view.tiaojian0.text =
				n.q_equip_icon_male, this._view.jihuo0.source = "common1_state1_png";
			var a = App.config.q_skillModelContainer.getDataBean(Number(n.q_suit_skill));
			this._view.desc0.textFlow = HtmlUtil.getHtmlStr(a.q_tips_desc), this._grid2.setData(a.q_skillID)
		} else this._view.group2.visible = !1
	}, e.prototype.refresh = function() {
		var t = App.config.q_equip_masterContainer.getDataBean(8e5 + 100 * this._data.selecttype + 1);
		this._view.group2.visible = !1, this._view.name1.text = t.q_suit_name, this._view.leveltext.text = "等级:" + t.q_rank,
			this._view.tiaojian.text = t.q_equip_icon_male, this._view.tiaojian.visible = !0, this._view.jihuo.source =
			"common1_state1_png";
		var e = App.config.q_skillModelContainer.getDataBean(Number(t.q_suit_skill));
		this._view.desc.textFlow = HtmlUtil.getHtmlStr(e.q_tips_desc), this._grid.setData(Number(e.q_skillID))
	}, e
}(TipStyleBase);
__reflect(ChuanQiTaoZhuangTip.prototype, "ChuanQiTaoZhuangTip");
var EquipTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("TipEquipSkin"), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.setGradeBg(GridUtil.getGridGradeBg(-1)), this._grid.x = 0, this._grid.y = 0, this._view.gridGroup.addChild(
				this._grid), this._grid.isShowTip = !1, this._grid.isShowDesc = !1;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = App.stage.stageWidth - this._view.width >> 1, this._view.y = App.stage
			.stageHeight - this._view.imgScale9Grid.height - 60 >> 1
	}, e.prototype.show = function(t) {
		var e, i = 0;
		TypeUtil.isNumber(t.data) ? i = t.data : (e = t.data, i = e.itemId, this._equipData = t.data), this._view.btnUse.textFlow =
			new Array({
				text: "更换装备",
				style: {
					underline: !0
				}
			});
		var n = App.panel.isShowing(5),
			a = GameUtil.getItemConfigData(i);
		if (a) {
			var o = GameUtil.getItemNameColor(i, !0);
			this._view.lblName.textColor = o, this._view.lblName.text = a.q_name + (Config.isDebug ? "_" + i : ""), this._grid
				.setData(i);
			var r = GameUtil.getEquipConfigData(i);
			if (this.showFigh(r.q_score), this._view.thebg.source = "common1_equipbg" + a.q_default + "_png", r) {
				var s = r.q_kind;
				50 == a.q_type && (s -= 5e3, n = !1), this._view.lblPos.text = EnumEquipType.PART_NAME[s], 0 != a.q_zhuanshen ?
					this._view.lblLvl.text = a.q_zhuanshen + "转" : a.q_default == EnumNumber.red && 1 == a.q_level ? this._view.lblLvl
					.text = "无级别" : this._view.lblLvl.text = a.q_level + "级", this._view.lblFight.text = "评分：" + r.q_score;
				var h = new BaseAttributeDataBean;
				h.convertAndAdd(r.q_add_attribute_client), this._view.lblJob.text = EnumRole.JOB[a.q_job], this._view.txtPro.text =
					h.getStrByBaseAttributeBean(h), n ? (h = new BaseAttributeDataBean, h.convertAndAdd(App.data.forgeCenter.getRoleForgePosAttr(
							App.global.roles.getRoleInfoByIndex(App.global.characterData.selectindex), e.position, 0)), this._view.txtPro0
						.text = h.getStrByBaseAttributeBean(h), h = new BaseAttributeDataBean, h.convertAndAdd(App.data.forgeCenter.getRoleForgePosAttr(
							App.global.roles.getRoleInfoByIndex(App.global.characterData.selectindex), e.position, 2)), this._view.txtPro1
						.text = h.getStrByBaseAttributeBean(h), h = new BaseAttributeDataBean, h.convertAndAdd(App.data.forgeCenter.getRoleForgePosAttr(
							App.global.roles.getRoleInfoByIndex(App.global.characterData.selectindex), e.position, 1)), this._view.txtPro2
						.text = h.getStrByBaseAttributeBean(h), this._view.txtPro3.text = "", this._view.txtPro4.text = "") : (this._view
						.txtPro0.text = "", this._view.txtPro1.text = "", this._view.txtPro2.text = "", this._view.txtPro3.text = "",
						this._view.txtPro4.text = "")
			}
			"" == this._view.txtPro0.text ? this._view.group2.visible = !1 : this._view.group2.visible = !0, "" == this._view.txtPro1
				.text ? this._view.group3.visible = !1 : this._view.group3.visible = !0, "" == this._view.txtPro2.text ? this._view
				.group4.visible = !1 : this._view.group4.visible = !0, "" == this._view.txtPro3.text ? this._view.group5.visible = !
				1 : this._view.group5.visible = !0, this._view.group6.visible = !1
		}
		var l = !1;
		if (this._view.btnUse.visible = this._view.btnDispose.visible = l, n && (this._view.btnUse.visible = n, this._view.btnUse
				.text = "更换装备"), l ? (this._view.btnUse.text = "装备", this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClickUse, this, this._view.btnUse), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickDispose,
				this, this._view.btnDispose)) : (this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickUse,
				this, this._view.btnUse), this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickDispose,
				this, this._view.btnDispose)), n ? this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickchange,
				this, this._view.btnUse) : this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickchange,
				this, this._view.btnUse), this._view.group2.y = this._view.group1.y + this._view.txtPro.y + this._view.txtPro.height +
			20, this._view.group3.y = "" == this._view.txtPro0.text ? this._view.group2.y : this._view.group2.y + this._view.txtPro0
			.y + this._view.txtPro0.height + 20, this._view.group4.y = "" == this._view.txtPro1.text ? this._view.group3.y :
			this._view.group3.y + this._view.txtPro1.y + this._view.txtPro1.height + 20, this._view.group5.y = "" == this._view
			.txtPro2.text ? this._view.group4.y : this._view.group4.y + this._view.txtPro2.y + this._view.txtPro2.height + 20,
			this._view.group6.y = "" == this._view.txtPro3.text ? this._view.group5.y : this._view.group5.y + this._view.txtPro3
			.y + this._view.txtPro3.height + 20, this._view.exchangeGroup.y = 0 == this._view.group6.visible ? this._view.group6
			.y : this._view.group6.y + this._view.txtPro3.y + this._view.txtPro3.height + 20, this._view.exchangeGroup.visible = !
			0, App.data.guildCenter.hasItem(this._equipData.id)) {
			var p = App.config.q_ware_houseContainer.getDataBean(this._equipData.itemId),
				c = StringUtil.JsonParse(p.q_exchange),
				_ = c[0].id,
				d = c[0].num;
			this._view.lb_xh.text = "兑换消耗：" + d;
			var u = App.data.currencyDataCenter.getMoney(_);
			d > u ? this._view.lb_xh.textColor = 16711680 : this._view.lb_xh.textColor = 16748544, this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClickExChange, this, this._view.btnUse0)
		} else this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickExChange, this, this._view.btnUse0),
			this._view.exchangeGroup.y = this._view.group6.y - 80, this._view.exchangeGroup.visible = !1;
		this._view.imgScale9Grid.height = 20 + this._view.exchangeGroup.y + 80 + this._view.txtPro4.y + this._view.txtPro4.height +
			("" == this._view.txtPro4.text ? -36 : 20), this._view.icon2.y = this._view.icon1.y = this._view.imgScale9Grid.height,
			this._view.group10.y = this._view.imgScale9Grid.y + this._view.imgScale9Grid.height + 10, this.resize()
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp.bg.source = "", this
			._fightBmp._effect.visible = !1, this._fightBmp.setValue(e), this._view.groupFight.addChild(this._fightBmp))
	}, e.prototype.hide = function() {
		this._grid.setData(null), this._dispatcher.removeAllListeners()
	}, e.prototype.onClickExChange = function(t) {
		var e = this._equipData.itemId,
			i = App.config.q_ware_houseContainer.getDataBean(e);
		if (void 0 != i && null != i) {
			if (PanelOpenManager.openBagFullAlert()) return void App.tip.hideTip(this);
			var n = StringUtil.JsonParse(i.q_exchange),
				a = n[0].id,
				o = n[0].num,
				r = App.data.currencyDataCenter.getMoney(a);
			o > r ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">帮会积分不足，无法兑换</font>") : (
				GuildCommandSender.sendExchangeMessage(this._equipData.int64Id), App.tip.hideTip(this))
		}
	}, e.prototype.onClickchange = function(t) {
		App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeEquips(GameUtil.getEquipConfigData(this._grid.itemId)
			.q_kind)), App.tip.hideTip(this)
	}, e.prototype.onClickUse = function(t) {
		var e = App.data.wearEquipCenter.isBetter(this._equipData);
		App.global.itemUse.useItemById(this._equipData.id, 1, e), App.tip.hideTip(this)
	}, e.prototype.onClickDispose = function(t) {
		Alert.show("是否分解", "提示", Alert.DEFAULT_BTN_LABEL, this.onEquipDispose, this)
	}, e.prototype.onEquipDispose = function(t) {
		ItemCommandSender.sendEquipHuiShou([this._equipData.int64Id])
	}, e
}(TipStyleBase);
__reflect(EquipTip.prototype, "EquipTip");
var MeleeSkillAniPorcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel),
			i = ResPathUtil.parseSkillEffect(e.q_File_client, e.q_hit_effect),
			n = t.targetPersonRole.$_getValueMap();
		for (var a in n) {
			var o = n[a];
			if (o && 0 == o.isDispose) {
				if ("" != e.q_hit_effect && t.skillid != EnumSkillID.LIE_HUO_JIAN_FA)
					for (var r = i.length, s = 0; r > s; s++) {
						var h = i[s];
						h && o.showEffect("MeleeSkillAniPorcessor - 2", h, 0, .5 * -o.modelHeight)
					}
				t.playBeHitSound(o)
			}
		}
		e.q_hit_sound && App.sound.playSound(e.q_hit_sound), t.dispose()
	}, e
}(RoleSkillAniProcessor);
__reflect(MeleeSkillAniPorcessor.prototype, "MeleeSkillAniPorcessor");
var MoveTargetPoint = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n.modelHeight = 0, n.pixel_x = 0, n.pixel_y = 0, n.pixel_x = e, n.pixel_y = i, n
	}
	return __extends(e, t), e.get = function(t, i) {
		var n = this._pool.length > 0 ? this._pool.pop() : new e;
		return n.pixel_x = t, n.pixel_y = i, n
	}, e.put = function(t) {
		-1 != this._pool.indexOf(t) ? GameLog.log("有重复MoveTargetPoint对象入池") : (t.pixel_x = 0, t.pixel_y = 0, t.modelHeight =
			0, this._pool.push(t))
	}, e._pool = [], e
}(Dispose);
__reflect(MoveTargetPoint.prototype, "MoveTargetPoint", ["IMoveTargetPoint"]);
var TanSheSkillAniProcessor = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentIndex = 0, e
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (e.q_trajectory_effect && e.q_trajectory_speed > 0)
			if (t.targetPersonList.length > 0) t.makeTansheEffect();
			else {
				var i = MoveTargetPoint.get(t.skillToX, t.skillToY);
				t.moveEffect(e, i)
			}
		else t.dispose()
	}, e.prototype.makeTansheEffect = function() {
		var t = this;
		if (!t.targetPersonRole || !t.targetPersonList) return void t.dispose();
		if (t._currentIndex == t.targetPersonList.length) return void t.dispose();
		var e;
		e = 0 == t._currentIndex ? t.attackRole : t.targetPersonRole.get(t.targetPersonList[t._currentIndex - 1]);
		var i = t.targetPersonRole.get(t.targetPersonList[t._currentIndex]);
		if (t._currentIndex++, i && e && 0 == e.isDispose && 0 == i.isDispose) {
			var n = GameUtil.getSkillConfigData(t.skillid, t.skillLevel),
				a = e.pixel_x,
				o = e.pixel_y - .5 * e.modelHeight,
				r = Math.abs(i.pixel_x - a),
				s = 2 * Math.abs(i.pixel_y - .5 * i.modelHeight - o),
				h = Math.sqrt(r * r + s * s) / n.q_trajectory_speed,
				l = ResPathUtil.getSkillEffectUrl(n.q_File_client, n.q_trajectory_effect);
			t.makeFlyEffect(l, a, o, i, h)
		} else t.makeTansheEffect()
	}, e.prototype.onFlyComplete = function(t) {
		var e = this;
		e.hitTarget(t.target), e.targetPersonList.length > 0 ? e._currentIndex == e.targetPersonList.length ? e.dispose() :
			e.makeTansheEffect() : e.dispose()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(LongRangeSkillAniProcessor);
__reflect(TanSheSkillAniProcessor.prototype, "TanSheSkillAniProcessor");
var AreaSingleAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel),
			i = 1.5 * h5_engine.MapConfig.MAP_NODE_WIDTH,
			n = 1.5 * h5_engine.MapConfig.MAP_NODE_HEIGHT,
			a = t.skillToX - i + 2 * Math.random() * i,
			o = t.skillToY - n + 2 * Math.random() * n;
		t.makeEffect(e, MoveTargetPoint.get(a, o)), t.dispose()
	}, e
}(LongRangeSkillAniProcessor);
__reflect(AreaSingleAniProcessor.prototype, "AreaSingleAniProcessor");
var Boss8DandaoFlyAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (e.q_trajectory_effect && e.q_trajectory_speed > 0)
			for (var i = t.attackRole.pixel_x, n = t.attackRole.pixel_y - .5 * t.attackRole.modelHeight, a = e.q_range_limit,
					o = a * h5_engine.MapConfig.MAP_NODE_WIDTH, r = a * h5_engine.MapConfig.MAP_NODE_HEIGHT, s = 0; 8 > s; s++) {
				var h = t.changeDisOffset(s, i, n, o, r),
					l = MathUnit.distance_Map(h.pixel_x, h.pixel_y, i, n) / e.q_trajectory_speed,
					p = "";
				if (0 == e.q_skill_dir) p = ResPathUtil.getSkillEffectUrl(e.q_File_client, e.q_trajectory_effect), t.makeFlyEffect(
					p, i, n, h, l, !1);
				else if (1 == e.q_skill_dir) {
					var c = t.makeFlyEffect(p, i, n, h, l, !1),
						_ = h5_engine.SceneType.getFiveDir(c, s);
					p = ResPathUtil.getSkillEffectUrl(e.q_File_client, e.q_use_effect, _), c.url = p
				} else 2 == e.q_skill_dir && (p = ResPathUtil.getSkillEffectUrl(e.q_File_client, e.q_use_effect, s), t.makeFlyEffect(
					p, i, n, h, l, !1))
			} else t.dispose()
	}, e.prototype.changeDisOffset = function(t, e, i, n, a) {
		var o = MoveTargetPoint.get(e, i);
		switch (t) {
			case h5_engine.SceneType.RIGHT:
				o.pixel_x += n;
				break;
			case h5_engine.SceneType.TOP:
				o.pixel_y += -a;
				break;
			case h5_engine.SceneType.BOTTOM:
				o.pixel_y += a;
				break;
			case h5_engine.SceneType.RIGHTTOP:
				o.pixel_x += n, o.pixel_y += -a;
				break;
			case h5_engine.SceneType.RIGHTBOTTOM:
				o.pixel_x += n, o.pixel_y += a;
				break;
			case h5_engine.SceneType.LEFT:
				o.pixel_x += -n;
				break;
			case h5_engine.SceneType.LEFTBOTTOM:
				o.pixel_x += -n, o.pixel_y += a;
				break;
			case h5_engine.SceneType.LEFTTOP:
				o.pixel_x += -n, o.pixel_y += -a
		}
		return o
	}, e
}(LongRangeSkillAniProcessor);
__reflect(Boss8DandaoFlyAniProcessor.prototype, "Boss8DandaoFlyAniProcessor");
var BossLine8FireAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (e.q_trajectory_effect && e.q_trajectory_speed > 0)
			for (var i = t.attackRole.serverMap_x, n = t.attackRole.serverMap_y, a = e.q_range_limit, o = a * h5_engine.MapConfig
					.MAP_NODE_WIDTH, r = a * h5_engine.MapConfig.MAP_NODE_HEIGHT, s = MathUnit.distance_Map(t.skillToX, t.skillToY,
						i, n) / e.q_trajectory_speed * 1e3, h = Math.abs(Math.ceil(i / h5_engine.MapConfig.MAP_NODE_WIDTH) - Math.ceil(
						(i + o) / h5_engine.MapConfig.MAP_NODE_WIDTH)), l = Math.abs(Math.ceil(n / h5_engine.MapConfig.MAP_NODE_HEIGHT) -
						Math.ceil((n + r) / h5_engine.MapConfig.MAP_NODE_HEIGHT)), p = h > l ? h : l, c = s / p, _ = 0; p > _;) {
				for (var d = 0; 8 > d; d++) {
					var u = t.mapModule.mapLoader.mapData.getNodeByXY(i, n),
						g = t.mapModule.mapMoveModel.getNodeByDir(u, d, _ + 1);
					if (null != g) {
						var f = MoveTargetPoint.get(g.pixelPoint.x, g.pixelPoint.y);
						t.makeEffect(e, f, c * _)
					}
				}
				_++
			}
		t.dispose()
	}, e
}(LongRangeSkillAniProcessor);
__reflect(BossLine8FireAniProcessor.prototype, "BossLine8FireAniProcessor");
var BossLineFireAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (e.q_trajectory_effect && e.q_trajectory_speed > 0)
			for (var i = t.attackRole.serverMap_x, n = t.attackRole.serverMap_y, a = h5_engine.SceneType.getDretion(i, n, t.skillToX,
						t.skillToY), o = MathUnit.distance_Map(t.skillToX, t.skillToY, i, n) / e.q_trajectory_speed * 1e3, r = Math.abs(
						Math.ceil(i / h5_engine.MapConfig.MAP_NODE_WIDTH) - Math.ceil(t.skillToX / h5_engine.MapConfig.MAP_NODE_WIDTH)),
					s = Math.abs(Math.ceil(n / h5_engine.MapConfig.MAP_NODE_HEIGHT) - Math.ceil(t.skillToY / h5_engine.MapConfig.MAP_NODE_HEIGHT)),
					h = r > s ? r : s, l = o / h, p = 0;
				(i != t.skillToX || n != t.skillToY) && h > p;) {
				var c = t.mapModule.mapLoader.mapData.getNodeByXY(i, n),
					_ = t.mapModule.mapMoveModel.getNodeByDir(c, a, 1);
				if (null == _) break;
				var d = MoveTargetPoint.get(_.pixelPoint.x, _.pixelPoint.y);
				t.makeEffect(e, d, l * p), i = _.pixelPoint.x, n = _.pixelPoint.y, p++
			}
		t.dispose()
	}, e
}(LongRangeSkillAniProcessor);
__reflect(BossLineFireAniProcessor.prototype, "BossLineFireAniProcessor");
var BossQuanpingSkillProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel),
			i = 10 * h5_engine.MapConfig.MAP_NODE_WIDTH,
			n = 10 * h5_engine.MapConfig.MAP_NODE_HEIGHT,
			a = 4 * h5_engine.MapConfig.MAP_NODE_WIDTH,
			o = 4 * h5_engine.MapConfig.MAP_NODE_HEIGHT,
			r = {},
			s = t.targetPersonRole.$_getValueMap();
		for (var h in s) {
			var l = s[h];
			if (l) {
				var p = (l.pixel_x / a >> .5) * a,
					c = (l.pixel_y / o >> .5) * o;
				r[p] = c
			}
		}
		for (var _ = t.skillToX - i, d = t.skillToY - n, u = _; u < t.skillToX + i; u += a)
			for (var g = d; g < t.skillToY + n; g += o)
				if (r[u] != g && (u != t.skillToX || t.skillToY != g)) {
					var f = u + Math.random() * a,
						m = g + Math.random() * o;
					t.makeEffect(e, MoveTargetPoint.get(f, m), 500 * Math.random())
				} t.dispose()
	}, e
}(LongRangeSkillAniProcessor);
__reflect(BossQuanpingSkillProcessor.prototype, "BossQuanpingSkillProcessor");
var BossRangRationSpreadAniProcessor = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.PI = 3.1416, e._ballMoveRang = 1e3, e._ballMoveSpeed = .7, e._aSpeed = .003, e._bSpeed = .12, e._passtime =
			0, e._ballList = [], e._px = 0, e._py = 0, e._totalTime = 0, e
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if (e.q_trajectory_effect && e.q_trajectory_speed > 0) {
			t._px = t.attackRole.serverMap_x, t._py = t.attackRole.serverMap_y, t._ballMoveRang = e.q_range_limit * h5_engine.MapConfig
				.MAP_NODE_WIDTH, t._totalTime = t._ballMoveRang / e.q_trajectory_speed * 1e3, t._bSpeed = t._ballMoveRang / t._totalTime *
				100 / 100;
			for (var i = 0; 8 > i; i++) {
				var n = App.thing.create(FlyEffect, "BossRangRationSpreadAniProcessor", !0);
				n.url = ResPathUtil.getSkillEffectUrl(e.q_File_client, e.q_trajectory_effect), n.setTo(t._px, t._py), n.play(), n
					.addParent(t.mapModule.secne.flyEffectLayer);
				var a = {};
				a.eft = n, a.startRadin = i * t.PI / 4, t._ballList.push(a)
			}
			App.timer.doFrameLoop(t, 1, t.run)
		} else t.dispose()
	}, e.prototype.run = function() {
		var t = this;
		t._passtime += App.timer.frametime, t._passtime >= t._totalTime ? t.dispose() : t.updateBalls()
	}, e.prototype.updateBalls = function() {
		for (var t = this, e = t._ballList.length, i = 0; e > i; i++) {
			for (var n = t._ballList[i].startRadin + t._aSpeed * t._passtime; n >= 2 * t.PI;) n -= 2 * t.PI;
			var a = t._bSpeed * t._passtime,
				o = a * Math.sin(n),
				r = a * Math.cos(n);
			t._ballList[i].eft.setTo(t._px + o, t._py + .5 * r)
		}
	}, e.prototype.dispose = function() {
		var e = this;
		App.timer.clearTimer(e.run, e);
		for (var i = 0; i < e._ballList.length; i++) e._ballList[i].eft.dispose();
		e._ballList = null, t.prototype.dispose.call(this)
	}, e
}(RoleSkillAniProcessor);
__reflect(BossRangRationSpreadAniProcessor.prototype, "BossRangRationSpreadAniProcessor");
var BossRangSpreadAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = GameUtil.getSkillConfigData(this.skillid, this.skillLevel);
		if (t.q_trajectory_effect && t.q_trajectory_speed > 0)
			for (var e = this.attackRole.serverMap_x, i = this.attackRole.serverMap_y, n = t.q_range_limit, a = n * h5_engine.MapConfig
					.MAP_NODE_WIDTH, o = n * h5_engine.MapConfig.MAP_NODE_HEIGHT, r = MathUnit.distance_Map(this.skillToX, this.skillToY,
						e, i) / t.q_trajectory_speed * 1e3, s = Math.abs(Math.ceil(e / h5_engine.MapConfig.MAP_NODE_WIDTH) - Math.ceil(
						(e + a) / h5_engine.MapConfig.MAP_NODE_WIDTH)), h = Math.abs(Math.ceil(i / h5_engine.MapConfig.MAP_NODE_HEIGHT) -
						Math.ceil((i + o) / h5_engine.MapConfig.MAP_NODE_HEIGHT)), l = s > h ? s : h, p = r / l, c = 1; l >= c;) {
				for (var _ = -c, d = c, u = -c, g = c, f = _; d >= f; f++)
					for (var m = u; g >= m; m++) f == _ || f == d ? this.makeEffects(t, c * p, e + f * h5_engine.MapConfig.MAP_NODE_WIDTH,
						i + m * h5_engine.MapConfig.MAP_NODE_HEIGHT) : (m == u || m == g) && this.makeEffects(t, c * p, e + f *
						h5_engine.MapConfig.MAP_NODE_WIDTH, i + m * h5_engine.MapConfig.MAP_NODE_HEIGHT);
				c++
			}
		this.dispose()
	}, e.prototype.makeEffects = function(t, e, i, n) {
		var a = this.mapModule.mapLoader.mapData.getNodeByXY(i, n);
		if (null != a) {
			var o = MoveTargetPoint.get(a.pixelPoint.x, a.pixelPoint.y);
			this.makeEffect(t, o, e)
		}
	}, e
}(LongRangeSkillAniProcessor);
__reflect(BossRangSpreadAniProcessor.prototype, "BossRangSpreadAniProcessor");
var FiveArowAniProcressor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		for (var t = this, e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel), i = 1.5 * h5_engine.MapConfig.MAP_NODE_WIDTH,
				n = 1.5 * h5_engine.MapConfig.MAP_NODE_HEIGHT, a = 0; 4 > a; a++) {
			var o = t.skillToX - i + 2 * Math.random() * i,
				r = t.skillToY - n + 2 * Math.random() * n;
			t.makeEffect(e, MoveTargetPoint.get(o, r), 200 * a)
		}
		t.dispose()
	}, e
}(LongRangeSkillAniProcessor);
__reflect(FiveArowAniProcressor.prototype, "FiveArowAniProcressor");
var HejiSkillAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = GameUtil.getSkillConfigData(this.skillid, this.skillLevel);
		if ("" != t.q_trajectory_effect) {
			for (var e = this.skillToX, i = this.skillToY, n = ResPathUtil.parseSkillEffect(t.q_File_client, t.q_trajectory_effect),
					a = n.length, o = 0; a > o; o++) {
				var r = n[o];
				if (r) {
					var s = 45 * this.attackRole.faceDir - 90;
					EffectUtils.showOnceEffect("HejiSkillAniProcessor", this.mapModule.secne.flyEffectLayer, r, e, i - 50, null,
						Config.gameSceneSpeed, 0, s), EffectUtils.showOnceEffect("HejiSkillAniProcessor", this.mapModule.secne.flyEffectLayer,
						r, e, i - 50, null, Config.gameSceneSpeed, 0, -24 + s), EffectUtils.showOnceEffect("HejiSkillAniProcessor",
						this.mapModule.secne.flyEffectLayer, r, e, i - 50, App.thing.create(CPlayOnceEffect, "HejiSkillAniProcessor",
							!0), Config.gameSceneSpeed, 70, -12 + s), EffectUtils.showOnceEffect("HejiSkillAniProcessor", this.mapModule.secne
						.flyEffectLayer, r, e, i - 50, null, Config.gameSceneSpeed, 0, 24 + s), EffectUtils.showOnceEffect(
						"HejiSkillAniProcessor", this.mapModule.secne.flyEffectLayer, r, e, i - 50, App.thing.create(CPlayOnceEffect,
							"HejiSkillAniProcessor", !0), Config.gameSceneSpeed, 70, 12 + s)
				}
			}
			"" != t.q_hit_sound && App.sound.playSound(t.q_hit_sound)
		}
	}, e
}(LongRangeSkillAniProcessor);
__reflect(HejiSkillAniProcessor.prototype, "HejiSkillAniProcessor");
var MountsSkillSkyJianAniProcessor = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.playSkillProgressAnimation = function() {
		var t = this,
			e = GameUtil.getSkillConfigData(t.skillid, t.skillLevel);
		if ("" != e.q_series_effect) {
			for (var i = h5_engine.MapConfig.MAP_NODE_WIDTH * e.q_range_limit, n = h5_engine.MapConfig.MAP_NODE_HEIGHT * e.q_range_limit,
					a = 2 * h5_engine.MapConfig.MAP_NODE_WIDTH, o = 2 * h5_engine.MapConfig.MAP_NODE_HEIGHT, r = {}, s = t.skillToX -
					i, h = t.skillToY - n, l = s; l < t.skillToX + i; l += a)
				for (var p = h; p < t.skillToY + n; p += o)
					if (r[l] != p && (l != t.skillToX || t.skillToY != p)) {
						var c = l + Math.random() * a,
							_ = p + Math.random() * o;
						t.makeMountEffect(e, c, _, 500 * Math.random())
					}
		} else t.dispose()
	}, e.prototype.makeMountEffect = function(t, e, i, n, a) {
		void 0 === n && (n = 0), void 0 === a && (a = !0);
		var o = this,
			r = ResPathUtil.getSkillEffectUrl(t.q_File_client, t.q_series_effect);
		EffectUtils.showOnceEffect("MountsSkillSkyJianAniProcessor", o.mapModule.secne.flyEffectLayer, r, e, i, null, 1, n),
			t.q_hit_sound && a && App.sound.playSound(t.q_hit_sound)
	}, e
}(LongRangeSkillAniProcessor);
__reflect(MountsSkillSkyJianAniProcessor.prototype, "MountsSkillSkyJianAniProcessor");
var FightResultNumber = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.delay = 0, e._result = 0, e._value = 0, e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i, n, a) {
		var o = this;
		o._mapModule = t, o._result = e, o._value = i, o._target = n, o._attackPersonid = a
	}, e.prototype.showBloodWord = function(t) {
		var e = this;
		if (e._overCallBack = t, !e._target) return void e.tweenOver();
		if (null != App.global.roles.getRoleInfoById(e._attackPersonid) || e._target instanceof CharacterRoleData || e._mapModule
			.mapAvatarModel.getPet(e._attackPersonid) && e._mapModule.mapAvatarModel.getPet(e._attackPersonid).ownerId == App.global
			.characterData.personId);
		else if (App.data.zoneCenter.zoneID != App.data.getWangZheZBCenter().areanzoneId && App.data.zoneCenter.zoneID !=
			App.data.guildCenter.fightHzId) return void e.tweenOver();
		var i, n = 0,
			a = "",
			o = -1,
			r = 0,
			s = App.global.roles.getRoleInfoById(e._attackPersonid);
		if (e._value > 0)
			if (-1 == e._result) i = e._target == App.global.characterData ? BitmapNumberType.FIGHT_GREEN_MYSELF :
				BitmapNumberType.FIGHT_GREEN, a = "+" + e._value.toString();
			else if (-2 == e._result) i = BitmapNumberType.ROLE_EXP_NUM, n = BitmapNumberType.MAP_EXP, a = "+" + e._value.toString();
		else if (-25 == e._result) i = BitmapNumberType.FIGHT_JG, n = BitmapNumberType.JUN_GONG, a = "+" + e._value.toString();
		else if (-10 == e._result) i = BitmapNumberType.FIGHT_XW, n = BitmapNumberType.XIU_WEI, a = "+" + e._value.toString();
		else if (ByteUtils.hasKey(e._result, 4)) {
			if (s) switch (s.job) {
				case 1:
					i = BitmapNumberType.FIGHT_BAOJI_RED, n = BitmapNumberType.BAO_JI_RED;
					break;
				case 2:
					i = BitmapNumberType.FIGHT_BAOJI_PURPLE, n = BitmapNumberType.BAO_JI_PURPLE;
					break;
				case 3:
					i = BitmapNumberType.FIGHT_BAOJI_BLUE, n = BitmapNumberType.BAO_JI_BLUE;
					break;
				default:
					i = BitmapNumberType.FIGHT_BAOJI_RED, n = BitmapNumberType.BAO_JI_RED
			} else i = BitmapNumberType.FIGHT_BAOJI_RED, n = BitmapNumberType.BAO_JI_RED;
			a = "-" + e._value.toString(), r = 0, o = 0
		} else if (ByteUtils.hasKey(e._result, 1024)) i = BitmapNumberType.FIGHT_WEISHE, n = BitmapNumberType.WEI_SHE, a =
			"-" + e._value.toString(), o = -4;
		else {
			if (e._target instanceof CharacterRoleData || App.data.getWangZheZBCenter().hasMyMonster(e._target.personId)) i =
				BitmapNumberType.FIGHT_RED_MYSELF;
			else if (e._mapModule.mapAvatarModel.getPet(e._attackPersonid)) i = BitmapNumberType.WARPET_FIGHT_RED;
			else if (s) switch (s.job) {
				case 1:
					i = BitmapNumberType.FIGHT_RED;
					break;
				case 2:
					i = BitmapNumberType.FIGHT_PURPLE;
					break;
				case 3:
					i = BitmapNumberType.FIGHT_BLUE
			} else i = BitmapNumberType.FIGHT_RED;
			a = "-" + e._value.toString()
		} else ByteUtils.hasKey(e._result, 1) ? (n = BitmapNumberType.SHAN_BI, a = "") : ByteUtils.hasKey(e._result, 2) ||
			ByteUtils.hasKey(e._result, 8) ? (n = BitmapNumberType.GE_DANG, a = "") : ByteUtils.hasKey(e._result, 4) || 0 == e
			._result ? Config.isDebug || 0 == Config.isRelease : ByteUtils.hasKey(e._result, 16) && (n = BitmapNumberType.MIAN_YI,
				a = "");
		if (n != BitmapNumberType.GE_DANG && n != BitmapNumberType.SHAN_BI || e._target == App.global.characterData || e._attackPersonid ==
			App.global.characterData.personId) {
			if (e._numSp = NumberBitmapCache.show(i, a, o, n, EnumNumberSheetType.NUM_FIGHT, r), n == BitmapNumberType.BAO_JI_RED ||
				n == BitmapNumberType.BAO_JI_PURPLE || n == BitmapNumberType.BAO_JI_BLUE || n == BitmapNumberType.WEI_SHE) {
				var h = e._target.pixel_x - .5 * e._numSp.width,
					l = e._target.pixel_y - e._target.modelHeight - 40;
				return e._numSp.x = h, e._numSp.y = l, e._mapModule.secne.wordLayer.addChild(e._numSp), void e.onMyAttackNum()
			}
			var p, c, _ = .6;
			e._mapModule.secne.wordLayer.addChild(e._numSp), e._target instanceof CharacterRoleData || "0" == e._attackPersonid ||
				e._target instanceof MapPetRoleData && e._target.ownerId == App.global.characterData.personId || App.data.getWangZheZBCenter()
				.hasMyMonster(e._target.personId) ? (e._numSp.x = e._target.pixel_x - .5 * e._numSp.width, e._numSp.y = e._target
					.pixel_y - e._target.modelHeight, p = e._numSp.x, c = e._numSp.y - 80, i == BitmapNumberType.FIGHT_RED_MYSELF ?
					(e._numSp.scaleX = .8, e._numSp.scaleY = .8, TweenLite.to(e._numSp, .06, {
						alpha: 1,
						x: p + 30,
						y: e._numSp.y - 30,
						scaleX: 1.3,
						scaleY: 1.3,
						onStart: e.onStart,
						onStartScope: e,
						ease: Quint.easeOut
					}), TweenLite.to(e._numSp, .09, {
						delay: .06,
						scaleX: 1,
						scaleY: 1
					}), TweenLite.to(e._numSp, .75, {
						delay: .06,
						x: p + 48,
						y: e._numSp.y - 48,
						onComplete: e.tweenOver,
						onCompleteScope: e
					}), TweenLite.to(e._numSp, .75, {
						delay: .3,
						alpha: 0
					})) : ((n == BitmapNumberType.MAP_EXP || n == BitmapNumberType.JUN_GONG || n == BitmapNumberType.XIU_WEI) && (e._numSp
						.scaleX = .7, e._numSp.scaleY = .7, e._numSp.x = e._numSp.x + 20, p += 20), TweenLite.to(e._numSp, _, {
						x: p,
						y: c,
						alpha: .8,
						onComplete: e.tweenOver,
						onCompleteScope: e,
						onStart: e.onStart,
						onStartScope: e
					}))) : null != App.global.roles.getRoleInfoById(e._attackPersonid) || e._mapModule.mapAvatarModel.getPet(e._attackPersonid) &&
				e._mapModule.mapAvatarModel.getPet(e._attackPersonid).ownerId == App.global.characterData.personId ? (e._numSp.x =
					e._target.pixel_x - .5 * e._numSp.width - 20, e._numSp.y = e._target.pixel_y - e._target.modelHeight - 20, e.onMyAttackNum()
				) : (e._numSp.x = e._target.pixel_x - .5 * e._numSp.width + 20, e._numSp.y = e._target.pixel_y - e._target.modelHeight +
					20, p = e._numSp.x + 100, c = e._numSp.y - 100, TweenLite.to(e._numSp, _, {
						alpha: 1,
						x: p,
						y: c,
						onStart: e.onStart,
						onStartScope: e,
						ease: Quint.easeOut
					}), TweenLite.to(e._numSp, .3, {
						delay: _ + .2,
						x: p + 20,
						y: c - 20,
						alpha: .4,
						onComplete: e.tweenOver,
						onCompleteScope: e
					}))
		}
	}, e.prototype.onMyAttackNum = function() {
		var t = this;
		t._numSp.scaleX = .8, t._numSp.scaleY = .8;
		var e = -30,
			i = -48,
			n = App.global.mapModule.mapAvatarModel.getRoleData(t._attackPersonid);
		n ? (t._target && n.pixel_x < t._target.pixel_x && (e = 30, i = 48), TweenLite.to(t._numSp, .06, {
			alpha: 1,
			x: t._numSp.x + e,
			y: t._numSp.y - 30,
			scaleX: 1.3,
			scaleY: 1.3,
			onStart: t.onStart,
			onStartScope: t,
			ease: Quint.easeOut
		}), TweenLite.to(t._numSp, .09, {
			delay: .06,
			scaleX: 1,
			scaleY: 1
		}), TweenLite.to(t._numSp, .75, {
			delay: .06,
			x: t._numSp.x + i,
			y: t._numSp.y - 48,
			onComplete: t.tweenOver,
			onCompleteScope: t
		}), TweenLite.to(t._numSp, .75, {
			delay: .3,
			alpha: 0
		})) : t.tweenOver()
	}, e.prototype.onStart = function() {
		var t = this;
		t._numSp && (t._numSp.visible = !0)
	}, e.prototype.tweenOver = function() {
		var t = this;
		null != t._overCallBack && t._overCallBack.exec(t), t.dispose()
	}, e.prototype.dispose = function() {
		var t = this;
		t._numSp && (TweenLite.killTweensOf(t._numSp), t._numSp.dispose(), t._numSp = null), t._target && (t._target = null),
			t._mapModule = null, t._overCallBack = null, t.delay = 0, t._result = 0, t._value = 0, t._attackPersonid = void 0,
			App.thing.putIn(t)
	}, e
}(egret.HashObject);
__reflect(FightResultNumber.prototype, "FightResultNumber");
var MapClipImage = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.resType = NetResourceType.MAP_CLIP, e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		var t = this;
		t.clear(), t._netHandler && t._netHandler.clear(), t.parent && t.parent.removeChild(t), App.thing.putIn(t)
	}, e
}(CImage);
__reflect(MapClipImage.prototype, "MapClipImage");
var BufferEffect = function(t) {
	function e(e) {
		void 0 === e && (e = -1);
		var i = t.call(this) || this;
		return i._state = 0, i._pasueFrame = -1, i._pasueFrame = e, i
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "pasueFrame", {
		set: function(t) {
			this._pasueFrame = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.updateViewBmd = function() {
		var e = this;
		t.prototype.updateViewBmd.call(this), e._pasueFrame > 0 && e._currentIndex == e._pasueFrame && 0 == e._state && e.stop()
	}, e.prototype.endAnimation = function() {
		var t = this;
		t._pasueFrame > 0 && t.animator ? (t._state = 1, t.play()) : (t.resetAndClear(), App.thing.putIn(this))
	}, e.prototype.lastFrameHandler = function() {
		this._pasueFrame > 0 && this.dispose()
	}, e
}(CEffect);
__reflect(BufferEffect.prototype, "BufferEffect");
var FlyEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._targetX = 0, e._targetY = 0, e._time = 0, e._needRation = !1, e._moveTween = new LinearTween, e._moveCallBack =
			new FunctionVO(e.onComplete, e), e._moveUpate = new FunctionVO(e.onUpdate, e), e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "target", {
		get: function() {
			return this._target
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.moveTo = function(t, e, i, n) {
		void 0 === n && (n = !0);
		var a = this;
		a._target = t, a._time = e, a._flyComplete = i, a._needRation = n, a._targetX = t.pixel_x, a._targetY = t.pixel_y;
		var o = a._targetY - .5 * t.modelHeight;
		a._needRation && (a.angle = MathUnit.atan2Angle(t.pixel_x, o, a.x, a.y) + Math.PI / 2), a._moveTween.start(e, a._targetX,
			o, a.x, a.y, a._moveCallBack, a._moveUpate)
	}, e.prototype.onComplete = function() {
		var t = this;
		null != t._flyComplete && t._flyComplete.exec(t), t.dispose()
	}, e.prototype.onUpdate = function() {
		var t = this;
		t.setTo(t._moveTween.crtx >> 0, t._moveTween.crty >> 0), t.rantionView()
	}, e.prototype.addToFrameController = function() {
		EffectAdvanceTimeCenter.instance.addEffect(this, !0)
	}, e.prototype.removeToFrameController = function() {
		EffectAdvanceTimeCenter.instance.deleteEffect(this, !0)
	}, e.prototype.addvanceTime = function(e) {
		var i = this;
		if (i._moveTween.addvanceTime(e), i._target && 0 == i._target.isDispose && (i._target.x != i._targetX || i._targetY !=
				i._target.y)) {
			var n = i._time - i._moveTween.crtPassTime / 1e3;
			i.moveTo(i._target, n, i._flyComplete, !1), i._time = n
		}
		t.prototype.addvanceTime.call(this, e)
	}, e.prototype.resetAndClear = function() {
		var e = this;
		e._moveTween.dispose(), e._time = 0, e._target = null, e._flyComplete = null, e._needRation = !1, t.prototype.resetAndClear
			.call(this)
	}, e.prototype.dispose = function() {
		this.resetAndClear(), App.thing.putIn(this)
	}, e
}(CEffect);
__reflect(FlyEffect.prototype, "FlyEffect");
var FootEffect = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return NetResourceType.ANI_EFFECT
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.resetAndClear(), App.thing.putIn(this)
	}, e
}(CEffect);
__reflect(FootEffect.prototype, "FootEffect");
var MapGroundEffect = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "resType", {
		get: function() {
			return NetResourceType.MAP_ANI_EFFECT
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.resetAndClear(), App.thing.putIn(this)
	}, e
}(CEffect);
__reflect(MapGroundEffect.prototype, "MapGroundEffect");
var MapDropEffectItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.resetAndClear = function() {
		t.prototype.resetAndClear.call(this)
	}, e.prototype.dispose = function() {
		this.resetAndClear(), App.thing.putIn(this)
	}, e
}(CEffect);
__reflect(MapDropEffectItem.prototype, "MapDropEffectItem");
var MapDropItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.dtc = 0, e._visible = !1, e._name = "", e._isMouseEnabled = !0, e._x = 0, e._y = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._nameText = new h5_engine.AvatarHeadTextName, this._imageLoaderFuc = new FunctionVO(this.onImageLoadComplete,
			this)
	}, Object.defineProperty(e.prototype, "info", {
		get: function() {
			return this._info
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "visible", {
		get: function() {
			return this._visible
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.makeIcon = function(t) {
		var e = this;
		null == e._itemImage && (e._itemImage = App.thing.create(MapDropItemIcon, "MapDropItem", !0), e._itemImage.imageType =
			EnumImageType.ITEM_80, e._itemImage.father = e, e._itemImage.netHandler.addCompleteHandler(e, e._imageLoaderFuc),
			e._itemImage.path = t, e._path = t)
	}, e.prototype.getName = function() {
		return this._name
	}, e.prototype.getUrl = function() {
		return this._itemImage ? this._itemImage.url : null
	}, e.prototype.makeEffect = function(t) {
		null == this._itemEffect && (this._itemEffect = App.thing.create(MapDropEffectItem, "MapDropItem", !0), this._itemEffect
			.play())
	}, e.prototype.makeDropEft = function(t) {
		null == this._dropEft && (this._dropEft = App.thing.create(MapDropEffectItem, "MapDropItem", !0), this._dropEft.url =
			ResPathUtil.getMenuEffect("drop", t), this._dropEft.play())
	}, e.prototype.onImageLoadComplete = function() {
		var t = this;
		t._itemImage && (t._itemImage.netHandler.removeCompleteHandler(t), t._itemImage.x = t._x - 16)
	}, e.prototype.dropJump = function(t) {
		var e = this;
		if (e.visible && ServerTime.serverTime / 1e3 - e.dropTime < 2 && t && e._itemImage) {
			e._nameText.hide();
			var i = e._itemImage.y;
			TweenLite.to(e._itemImage, .17, {
				y: i - 25
			}), TweenLite.to(e._itemImage, .17, {
				delay: .17,
				y: i,
				onComplete: e.onDropJumpComplete,
				onCompleteScope: e
			})
		}
	}, e.prototype.onDropJumpComplete = function() {
		var t = this;
		t._nameText && -3 != t.itemBaseid && -4 != t.itemBaseid && t._nameText.show()
	}, Object.defineProperty(e.prototype, "x", {
		get: function() {
			return this._x
		},
		set: function(t) {},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "y", {
		get: function() {
			return this._y
		},
		set: function(t) {},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTo = function(t, e) {
		var i = this;
		i._x = t, i._y = e, i._itemImage && (i._itemImage.x = t - 16, i._itemImage.y = e - 15), i._nameText && (i._nameText
			.x = t, i._nameText.y = e - 35, i._nameText.resetPostion()), i._itemEffect && (i._itemEffect.x = i._x, i._itemEffect
			.y = i._y), i._dropEft && (i._dropEft.x = i._x, i._dropEft.y = i._y)
	}, e.prototype.settingInfo = function(t, e, i, n) {
		var a = this;
		a._mapModule = t, a.itemBaseid = e, a.itemOnlyId = i, a._info = n, a.ownerId = LongUtil.toString(n.ownerId), a.dropTime =
			LongUtil.toNumber(n.dropTime), a.nationId = n.nationType, a.nodex = n.x / h5_engine.MapConfig.MAP_NODE_WIDTH >> 0,
			a.nodey = n.y / h5_engine.MapConfig.MAP_NODE_HEIGHT >> 0;
		var o = GameUtil.getItemConfigData(e);
		if (o) {
			a.showtype = o.q_show_type;
			var r = o.q_tiny_icon,
				s = o.q_append,
				h = o.q_effect_drop;
			o.q_drop_music && App.sound.playDelaySound(o.q_drop_music)
		}
		if (-3 == e || -4 == e ? r = "icon545" : a.changeName(), s ? a.makeEffect(s) : a.makeIcon(r), h && (a.makeDropEft(h),
				a._dropEft.visible = !1, App.timer.doTimeOnce(a, 500, a.dropEftShow)), a._mapModule.mapLoader.mapData) {
			var l = a._mapModule.mapLoader.mapData.getNode(a.nodex, a.nodey);
			l.isMask && (a._itemImage && (a._itemImage.alpha = .7), a._itemEffect && (a._itemEffect.alpha = .7), a._dropEft &&
				(a._dropEft.alpha = .7))
		}
	}, e.prototype.dropEftShow = function() {
		this._dropEft && (this._dropEft.visible = !0)
	}, e.prototype.changeName = function() {
		var t = this,
			e = t.itemBaseid == EnumMoney.YUAN_BAO ? t._info.num + "" : "",
			i = GameUtil.getItemConfigData(t.itemBaseid),
			n = i.q_name.indexOf("_") ? i.q_name.split("_")[0] : i.q_name,
			a = Config.isDebug ? "\n>ID: " + t.itemOnlyId + ", X:" + t._x + ",Y:" + t._y : "";
		t._name = e + n + a, t._nameText.setName(t._name, GameUtil.getItemNameColor(t.itemBaseid, !0))
	}, e.prototype.checkHitPoint = function() {
		return !0
	}, Object.defineProperty(e.prototype, "isMouseEnabled", {
		get: function() {
			return this._isMouseEnabled
		},
		set: function(t) {
			this._isMouseEnabled = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.mouseOver = function() {}, e.prototype.mouseOut = function() {}, e.prototype.mouseDown = function() {
		this.isDispose || App.dispatcher.dispatchEvent(EventType.TAKE_UP_DROP_ITEM, this._x, this._y)
	}, e.prototype.checkItemVisible = function() {
		var t = this,
			e = LookVisibleScreenAreaUtils.isInVisiBleArea(t.x, t.y);
		t._visible != e && (t._visible = e, t._visible ? t.addToScene() : t.removeFromScene())
	}, e.prototype.addToScene = function() {
		var t = this;
		t._visible && (t._itemImage && t._imageContainer && t._imageContainer.addChild(t._itemImage), t._itemEffect && t._imageContainer &&
			(t._itemEffect.addParent(t._imageContainer), t._itemEffect.play()), t._dropEft && t._dropEftContainer && (t._dropEft
				.addParent(t._dropEftContainer), t._dropEft.play()), t._nameContainer && t._name && (t._nameText.setContainer(t._nameContainer),
				t._nameText.show()))
	}, e.prototype.removeFromScene = function() {
		var t = this;
		0 == t._visible && (t._itemImage && t._itemImage.parent && t._itemImage.parent.removeChild(t._itemImage), t._itemEffect &&
			(t._itemEffect.stop(), t._itemEffect.removeParent()), t._dropEft && (t._dropEft.stop(), t._dropEft.removeParent()),
			t._nameContainer && t._nameText.hide())
	}, e.prototype.addParent = function(t, e, i) {
		var n = this;
		n._imageContainer = t, n._nameContainer = e, n._dropEftContainer = i, n.checkItemVisible()
	}, e.prototype.removeParent = function() {
		var t = this;
		t._visible = !1, t.removeFromScene(), t._nameContainer && t._nameText.removeFather(), t._imageContainer = null, t._nameContainer =
			null, t._dropEftContainer = null
	}, e.prototype.remove = function() {
		this.dispose()
	}, e.prototype.dispose = function() {
		var t = this;
		TweenLite.killTweensOf(t._itemImage), App.global.mouseUnit == t && (App.global.mouseUnit = null), t._nameText && (t
				._nameText.hide(), t._nameText.clear()), t._info = null, t._itemImage && (t._itemImage.netHandler.removeCompleteHandler(
				t), t._itemImage.filters = null, t._itemImage.dispose(), t._itemImage = null), t._itemEffect && (t._itemEffect.dispose(),
				t._itemEffect = null), t._dropEft && (App.timer.clearTimer(t.dropEftShow, t), t._dropEft.dispose(), t._dropEft =
				null), t._visible = !1, t._x = 0, t._y = 0, t._name = "", t._nameContainer = null, t._imageContainer = null, App.thing
			.putIn(t)
	}, e.prototype.getIcon = function() {
		return this._itemImage
	}, e
}(Dispose);
__reflect(MapDropItem.prototype, "MapDropItem");
var MapDropItemIcon = function(t) {
	function e(e, i) {
		return void 0 === e && (e = null), void 0 === i && (i = null), t.call(this, e, i) || this
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "father", {
		get: function() {
			return this._father
		},
		set: function(t) {
			this._father = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.netComplete = function(e) {
		t.prototype.netComplete.call(this, e), this.width = 32, this.height = 32
	}, e.prototype.dispose = function() {
		var t = this;
		t.parent && t.parent.removeChild(t), t._father = null, t._netHandler && t._netHandler.clear(), t.clear(), t._callback =
			null, App.thing.putIn(t)
	}, e
}(IconImage);
__reflect(MapDropItemIcon.prototype, "MapDropItemIcon", ["IMapTing"]);
var LookVisibleScreenAreaUtils = function() {
	function t() {}
	return t.setVisibleArea = function(e, i) {
			var n = .5 * e,
				a = .5 * i;
			n < t.MAP_LOOK_AREA_WIDTH && (t.MAP_LOOK_AREA_WIDTH = (n / h5_engine.MapConfig.MAP_NODE_WIDTH >> 0) * h5_engine.MapConfig
				.MAP_NODE_WIDTH), a < t.MAP_LOOK_AREA_HEIGHT && (t.MAP_LOOK_AREA_HEIGHT = (a / h5_engine.MapConfig.MAP_NODE_HEIGHT >>
				0) * h5_engine.MapConfig.MAP_NODE_HEIGHT)
		}, t.isInVisiBleArea = function(e, i) {
			var n = App.global.mapModule.mapMouseModel.controlRoleData;
			return n || (n = App.global.characterData), n && (Math.abs(n.serverMap_x - e) > t.MAP_LOOK_AREA_WIDTH || Math.abs(n
				.serverMap_y - i) > t.MAP_LOOK_AREA_HEIGHT) ? !1 : !0
		}, t.MAP_LOOK_AREA_WIDTH = 10 * h5_engine.MapConfig.MAP_NODE_WIDTH, t.MAP_LOOK_AREA_HEIGHT = 9 * h5_engine.MapConfig
		.MAP_NODE_HEIGHT, t
}();
__reflect(LookVisibleScreenAreaUtils.prototype, "LookVisibleScreenAreaUtils");
var MapRoadSearch = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isJumpMap = !1, e._index = 0, e._indexLength = 0, e._targetNpcId = 0, e._targetMonsterId = 0, e._targetEndPointX = -
			1e3, e._targetEndPointY = -1e3, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._jumpSearch = new h5_engine.BFSMapRoadSeach
	}, e.getTransPoint = function(t) {
		var e = t,
			i = e.split("#"),
			n = parseInt(i[1]),
			a = i[0],
			o = a.substr(1, a.length - 2),
			r = o.split(","),
			s = parseInt(r[0]),
			h = parseInt(r[1]);
		return {
			range: n,
			x: s,
			y: h
		}
	}, e.prototype.checkLastPoint = function(t, e, i) {
		return i.toString() == this._targetMapid && MathUnit.distance_Map(t, e, this._targetEndPointX, this._targetEndPointY) <=
			2 * h5_engine.MapConfig.MAP_NODE_WIDTH ? !0 : !1
	}, e.prototype.dispose = function() {
		var t = this;
		t._currentJumpPath = null, t._jumpSearch.clear(), t._jumpSearch.dispose(), t._jumpSearch = null, t._targetMapid =
			"", t._targetEndPointX = -1e3, t._targetEndPointY = -1e3
	}, e.prototype.setMapData = function(t) {
		for (var i = t, n = i.length, a = [], o = 0; n > o; o++) {
			var r = {},
				s = i[o],
				h = s.q_tran_from_map;
			if (s.q_tran_from_range) {
				var t = e.getTransPoint(s.q_tran_from_range),
					l = s.q_tran_to_map;
				r.mapid = h, r.X = t.x, r.Y = t.y, r.targetMapid = l, r.mapName = s.q_mapdesc, a.push(r)
			}
		}
		this._jumpSearch.setMapData(a)
	}, e.prototype.setStartPoint = function(t, e) {
		this._jumpSearch.setStartNode(t, e)
	}, e.prototype.setEndPoint = function(t, e) {
		this._targetMapid = t, e && (this._targetEndPointX = e.x, this._targetEndPointY = e.y), this._jumpSearch.setEndNode(
			t, e)
	}, Object.defineProperty(e.prototype, "params", {
		get: function() {
			return this._params
		},
		set: function(t) {
			this._params = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTargetNpcId = function(t) {
		this._targetNpcId = t
	}, Object.defineProperty(e.prototype, "targetNpcId", {
		get: function() {
			return this._targetNpcId
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "targetMonsterId", {
		get: function() {
			return this._targetMonsterId
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setTargetMonsterId = function(t) {
		this._targetMonsterId = t
	}, Object.defineProperty(e.prototype, "targetMapid", {
		get: function() {
			return this._targetMapid
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "targetEndPointX", {
		get: function() {
			return this._targetEndPointX
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "targetEndPointY", {
		get: function() {
			return this._targetEndPointY
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clear = function() {
		var t = this;
		t._targetMapid && (t._jumpSearch.clear(), t._currentJumpPath = null, t._isJumpMap = !1, t._index = 0, t._indexLength =
			0, t._targetMapid = null, t._targetNpcId = 0, t._targetMonsterId = 0)
	}, e.prototype.startSearch = function() {
		var t = this;
		return t._isJumpMap = !0, t._currentJumpPath = t._jumpSearch.startSeach(), t._currentJumpPath && 0 != t._currentJumpPath
			.length ? (t._indexLength = t._currentJumpPath.length, !0) : (t.clear(), !1)
	}, e.prototype.isLastPoint = function() {
		return this._index < this._indexLength ? !1 : !0
	}, e.prototype.getNextPoint = function() {
		var t = this._currentJumpPath[this._index];
		return t ? (this._index++, t) : null
	}, Object.defineProperty(e.prototype, "isJumpMap", {
		get: function() {
			return this._isJumpMap
		},
		enumerable: !0,
		configurable: !0
	}), e
}(Dispose);
__reflect(MapRoadSearch.prototype, "MapRoadSearch");
var SearchToPointVO = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.type = "", e.px = 0, e.py = 0, e.shift = 0, e.isNearestPoint = !0, e.roleData = null, e.max = -1, e.searchCount =
			0, e
	}
	return __extends(e, t), e.prototype.checkSearchMax = function() {
		var t = this;
		return t.max > 0 && t.searchCount > t.max ? (null != t.countMaxFinishHandler && t.countMaxFinishHandler.exec(), !0) :
			!1
	}, e.prototype.search = function(t, e, i, n) {
		void 0 === t && (t = null), void 0 === e && (e = -1), void 0 === i && (i = -1), void 0 === n && (n = null);
		var a = this;
		t && (a.roleData = t), e > -1 && i > -1 && (a.px = e, a.py = i), n && (a.type = n);
		var o = !1,
			r = App.global.mapModule.mapMoveModel.searchRoadByAstar(a);
		return r && r.length > 0 && (a.roleData.actionList.resetActionList(r), o = !0), o
	}, e.prototype.clear = function() {
		this.type = null, this.px = 0, this.py = 0, this.stepHandler = null, this.finishHandler = null, this.shift = 0,
			this.isNearestPoint = !0, this.roleData = null, this.countMaxFinishHandler = null, this.max = -1, this.searchCount =
			0
	}, e.getVO = function() {
		return e.pool.length > 0 ? e.pool.pop() : new e
	}, e.putInfo = function(t) {
		var i = e.pool; - 1 != i.indexOf(t) ? GameLog.log("有重复SearchToPointVO对象入池") : (t.clear(), i.push(t))
	}, e.pool = [], e
}(Dispose);
__reflect(SearchToPointVO.prototype, "SearchToPointVO");
var OpenRolePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isPlaying = !1, e._selectSex = -1, e._hasInitData = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._window.show(), this._view = UIMaker.createViewBase(
				"OpenRoleSkin"), this._window.viewContainer.addChild(this._view), null == this.bgimg && (this.bgimg = UIMaker.getCImage(
				this._view.bggroup, this, ResPathUtil.getImgPath("role/openrolebg", "", ".jpg"))), this._window.imgTitle.source =
			"titleview_icon_063_png", this._defaultSex = EnumRole.BOY, this._postions = [new egret.Point(320, 667), new egret.Point(
				499, 614), new egret.Point(140, 614)], this._figureData = new HashMap, this._figureHash = new HashMap, this._figureHash
			.put(this._view.figure1, 1), this._figureHash.put(this._view.figure2, 2), this._figureHash.put(this._view.figure3,
				3), this._view.btnOpen.visible = !1, this._btnClose = this._window.close_btn
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvents(), this.updateRoleListInfo(), this.sexChange(this._defaultSex)
	}, e.prototype.addEvents = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this._view.btnLeft), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this._view.btnRight), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this._view.btnOpen), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this._view.figure1), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this._view.figure2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this._view.figure3), this._dispatcher.addEventListener(
				EventType.ROLE_LIST_CHANGE, this.updateRoleListInfo, this)
	}, e.prototype.onMouseHandler = function(t) {
		switch (t.currentTarget) {
			case this._view.btnLeft:
				this.play(1);
				break;
			case this._view.btnRight:
				this.play(-1);
				break;
			case this._view.btnOpen:
				this.openRole()
		}
	}, e.prototype.sexChange = function(t, e) {
		void 0 === e && (e = !1), this._selectSex = t, e && this._figureData.foEach(this.sexSelected, this)
	}, e.prototype.sexSelected = function(t, e) {
		var i = e instanceof CharacterRoleData;
		i || (e.sex = this._selectSex, t.imgJob.source = "newopenrole_icon_" + (61 - Number(e.job)) + "_png", t.showeffect(
			e.sex, e.job))
	}, e.prototype.onFigureHandler = function(t) {
		var e = t.currentTarget,
			i = this._figureHash.get(e);
		1 != i && (2 == i ? this.play(-1) : this.play(1))
	}, e.prototype.play = function(t) {
		if (!this._isPlaying) {
			var e, i, n, a, o, r = this._figureHash.length,
				s = this._figureHash.keys;
			this._isPlaying = !0;
			for (var h = 0; r > h; h++) i = s[h], e = this._figureHash.get(i), n = e + t, n = 0 == n ? 3 : n, n = n > 3 ? 1 :
				n, this._figureHash.put(i, n), a = this._postions[n - 1], n - 1 == 0 && this.addChild(i), o = 1 == n ? 1 : .65,
				TweenLite.to(i, .3, {
					x: a.x,
					y: a.y,
					scaleX: o,
					scaleY: o,
					ease: Circ.easeIn,
					onComplete: this.tweenCom,
					onCompleteScope: this
				})
		}
	}, e.prototype.tweenCom = function() {
		this.checkSelectRole(), this._isPlaying = !1
	}, e.prototype.updateRoleListInfo = function() {
		var t, e = App.global.roles.roleList,
			i = App.global.characterData.job;
		if (void 0 == e[1]) t = i == EnumRole.ZHAN_SHI ? [{
			job: EnumRole.FA_SHI,
			sex: this._defaultSex
		}, {
			job: EnumRole.DAO_SHI,
			sex: this._defaultSex
		}, App.global.characterData] : i == EnumRole.FA_SHI ? [{
			job: EnumRole.ZHAN_SHI,
			sex: this._defaultSex
		}, {
			job: EnumRole.DAO_SHI,
			sex: this._defaultSex
		}, App.global.characterData] : [{
			job: EnumRole.ZHAN_SHI,
			sex: this._defaultSex
		}, {
			job: EnumRole.FA_SHI,
			sex: this._defaultSex
		}, App.global.characterData];
		else if (void 0 == e[2]) {
			for (var n = [App.global.characterData.job, e[1].job], a = [EnumRole.ZHAN_SHI, EnumRole.FA_SHI, EnumRole.DAO_SHI],
					o = void 0, r = 0; r < a.length; r++)
				if (-1 == n.indexOf(a[r])) {
					o = a[r];
					break
				} t = [{
				job: o,
				sex: this._defaultSex
			}, e[1], App.global.characterData]
		} else t = e.concat();
		for (var s, h = 0; h < t.length; h++) s = this._view["figure" + (h + 1)], this._figureData.put(s, t[h]), t[h] instanceof CharacterRoleData ?
			(s.imgOpen.visible = !0, s.imgJob.source = "newopenrole_icon_" + (61 - t[h].job) + "_png", s.showeffect(t[h].sex,
				t[h].job)) : (s.imgOpen.visible = !1, s.imgJob.source = "newopenrole_icon_" + (61 - t[h].job) + "_png", s.showeffect(
				t[h].sex, t[h].job));
		this.checkSelectRole(), this.sexChange(this._defaultSex)
	}, e.prototype.checkSelectRole = function() {
		var t;
		this._figureHash.foEach(function(e, i) {
			1 == i && (t = e)
		}, this), this._selectData = this._figureData.get(t);
		var e = this._selectData instanceof CharacterRoleData;
		this._view.btnOpen.visible = !e, 1 == App.global.roles.roleList.length ? this._view.tiaojiantext.textFlow =
			HtmlUtil.getHtmlStr("解锁需求:<font color='#f33333'>80级</font>或<font color='#f33333'>VIP2</font>") : 2 == App.global.roles
			.roleList.length && (this._view.tiaojiantext.textFlow = HtmlUtil.getHtmlStr(
				"解锁需求:<font color='#f33333'>4转</font>或<font color='#f33333'>VIP4</font>"))
	}, e.prototype.openRole = function() {
		var t;
		1 == App.global.roles.roleList.length ? (t = App.global.funcOpen.isFunctionOpen(92, "", !1), t || (0 == App.data.activityCenter
			.isHasFirstFlush() ? PanelOpenManager.openPanel(55) : App.global.funcOpen.isFunctionOpen(92, "", !0), t = App.global
			.characterData.vipLevel >= 2 ? !0 : !1)) : 2 == App.global.roles.roleList.length && (t = App.global.funcOpen.isFunctionOpen(
			93, "", !0), t || (t = App.global.characterData.vipLevel >= 4 ? !0 : !1)), t && (t = this._selectData instanceof CharacterRoleData,
			!t && this._selectData && CharacterUICommandSender.openRole(this._selectData.sex, this._selectData.job))
	}, e.prototype.onRoleListChange = function(t) {
		var e = this;
		if (-1 != t) {
			var i = App.global.roles.getRoleInfoByIndex(t);
			i && this._figureData.foEach(function(t, n) {
				var a = n instanceof CharacterRoleData;
				a || i.job != n.job || (e._figureData.put(t, i), t.imgOpen.visible = !0, t.imgJob.source = "newopenrole_icon_" +
					(61 - i.job) + "_png", t.showeffect(i.sex, i.job))
			}, this), this.checkSelectRole()
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._figureData && this._figureData.foEach(function(t, e) {
				t.hide()
			}, this), this._window && (this._window.dispose(), this._window = null), this.bgimg && (this.bgimg.dispose(), this
				.bgimg = null), this._isPlaying = !1, this._selectSex = -1, this._defaultSex = -1, this._postions = void 0, this._hasInitData = !
			1, this._figureData = void 0, this._figureHash = void 0, this._view.dispose(), this._view = void 0
	}, e
}(BasePanel);
__reflect(OpenRolePanel.prototype, "OpenRolePanel");
var OtherRoleMainView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.euiSkinName = "RoleMainSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.Index = 1, this.addEvent(), this.openZhuangBei()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openZhuangBei, this, this.zhuangbei), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openGodView, this, this.godBtn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.openReXue, this, this.rexueBtn), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.openHeJi, this, this.hejiBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.openHangHui, this, this.hanghuiBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openLunHui,
				this, this.lunhuiBtn)
	}, e.prototype.tabBtnSelectHandle = function(t) {
		switch (void 0 === t && (t = -1), this.clearViewGroup(), this.curBtn && (this.curBtn.currentState = "up", this.curBtn
			.enabled = !0), t) {
			case EnumRoleTab.zhuangbei:
				this.zhuangbei.currentState = "down", this.zhuangbei.enabled = !1, this.curBtn = this.zhuangbei;
				break;
			case EnumRoleTab.god:
				this.godBtn.currentState = "down", this.godBtn.enabled = !1, this.curBtn = this.godBtn;
				break;
			case EnumRoleTab.rexue:
				this.rexueBtn.currentState = "down", this.rexueBtn.enabled = !1, this.curBtn = this.rexueBtn;
				break;
			case EnumRoleTab.heji:
				this.hejiBtn.currentState = "down", this.hejiBtn.enabled = !1, this.curBtn = this.hejiBtn;
				break;
			case EnumRoleTab.hanghui:
				this.hanghuiBtn.currentState = "down", this.hanghuiBtn.enabled = !1, this.curBtn = this.hanghuiBtn;
				break;
			case EnumRoleTab.lunhui:
				this.lunhuiBtn.currentState = "down", this.lunhuiBtn.enabled = !1, this.curBtn = this.lunhuiBtn;
				break;
			default:
				this.curBtn = null
		}
		this.curTabType = t
	}, e.prototype.openZhuangBei = function() {
		App.global.funcOpen.isFunctionOpen(1, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.zhuangbei), null == this.roleEquipView &&
			(this.roleEquipView = new RoleEquipView), this.viewGroup.addChild(this.roleEquipView), this.roleEquipView.show(
				this.Index)) : this.zhuangbei.selected = !1
	}, e.prototype.openGodView = function() {
		App.global.funcOpen.isFunctionOpen(132, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.god), null == this.godView &&
				(this.godView = new GodEquipView), this.viewGroup.addChild(this.godView), this.godView.show(this.Index)) : this.godBtn
			.selected = !1
	}, e.prototype.openReXue = function() {
		App.global.funcOpen.isFunctionOpen(133, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.rexue), null == this.hotView &&
				(this.hotView = new HotBloodView), this.viewGroup.addChild(this.hotView), this.hotView.show(this.Index)) : this.rexueBtn
			.selected = !1
	}, e.prototype.openHeJi = function(t) {
		App.global.funcOpen.isFunctionOpen(54, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.heji), null == this.surfaceView &&
				(this.surfaceView = new SurfaceCommonView), this.viewGroup.addChild(this.surfaceView), this.surfaceView.show()) :
			this.hejiBtn.selected = !1, t.index && App.dispatcher.dispatchEvent(SurfaceEvent.SURFACE_INDEX, t.index)
	}, e.prototype.openHangHui = function() {
		App.global.funcOpen.isFunctionOpen(96, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.hanghui), null == this.guildEquipview &&
			(this.guildEquipview = new GuildEquipView), this.viewGroup.addChild(this.guildEquipview), this.guildEquipview.show(
				this.Index)) : this.hanghuiBtn.selected = !1
	}, e.prototype.openLunHui = function() {
		App.global.funcOpen.isFunctionOpen(99, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.lunhui), null == this.reincarnatEquipview &&
			(this.reincarnatEquipview = new ReincarnationEquipView), this.viewGroup.addChild(this.reincarnatEquipview), this.reincarnatEquipview
			.show(this.Index)) : this.lunhuiBtn.selected = !1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.roleEquipView && this.roleEquipView.hide(), this.godView && this.godView.hide(),
			this.hotView && this.hotView.hide(), this.surfaceView && this.surfaceView.hide(), this.guildEquipview && this.guildEquipview
			.hide(), this.reincarnatEquipview && this.reincarnatEquipview.hide(), this.clearViewGroup(), this.tabBtnSelectHandle(
				EnumRoleTab.none)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.clearViewGroup = function() {
		for (; this.viewGroup.numChildren;) {
			var t = this.viewGroup.getChildAt(this.viewGroup.numChildren - 1);
			t && (t.hide(), t.parent.removeChild(t))
		}
	}, e
}(ViewBase);
__reflect(OtherRoleMainView.prototype, "OtherRoleMainView");
var OtherRolePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "OtherRolePanelSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.setTitle("titleview_zhuangbei_png"), this._moneyBar = new MoneyBar, this._moneyBar.moveTo(304, 16, this), this
			.roleList = new RoleListView(!1), this.roleGroup.addChild(this.roleList), this.otherRoleMainView = new OtherRoleMainView,
			this.viewContainer.addChild(this.otherRoleMainView)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this._moneyBar.show(), this.roleList.selectIndex = 1, this.otherRoleMainView.show(),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeHandle, this, this.close_btn)
	}, e.prototype.closeHandle = function() {
		App.panel.removePanel(2e4)
	}, e.prototype.setTitle = function(t) {
		this.imgTitle.source = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.otherRoleMainView && this.otherRoleMainView.hide()
	}, e.prototype.dispose = function() {
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(OtherRolePanel.prototype, "OtherRolePanel");
var PracticePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("境界,神器,转生,道境,图鉴"), this.registerSubPanel(0, StateView,
				"titleview_state_png", 203, !1, !0), this.registerSubPanel(1, ArtifactPanel, "titleview_shenqi_png", 102, !1, !0),
			this.registerSubPanel(2, RoleZhuansView, "titleview_zhuansheng_png", 26, !1, !0), this.registerSubPanel(3,
				ReincarnationView, "titleview_daojing_png", 170, !1, !0), this.registerSubPanel(4, PictureBookView,
				"picturebook_icon_107_png", 149, !1, !0)
	}, e
}(TabPanel);
__reflect(PracticePanel.prototype, "PracticePanel");
var PictureBookItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PictureBookItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._stars = [this.star_0, this.star_1, this.star_2, this.star_3, this.star_4, this.star_5, this.star_6, this.star_7,
				this.star_8, this.star_9
			], this._starbgs = [this.star_bg0, this.star_bg1, this.star_bg2, this.star_bg3, this.star_bg4, this.star_bg5, this
				.star_bg6, this.star_bg7, this.star_bg8, this.star_bg9
			], this._fight = new NumberRolling("picturebook_num_", 19, 23, -2), this.addChild(this._fight), this._fight.x = 49,
			this._fight.y = 193, this._bg = UIMaker.getCImage(null, this, null, 0, 0), this.addChildAt(this._bg, 0), this._icon =
			UIMaker.getCImage(null, this, null, 4, 5, !0), this.addChildAt(this._icon, 1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(PictureBookCenter.UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clear()
	}, e.prototype.onUpdate = function(t) {
		null != t && null != this._bean && t.q_card_type == this._bean.q_card_type && t.q_order_card == this._bean.q_order_card &&
			this.setData(t)
	}, e.prototype.setData = function(t) {
		var e = t;
		if (this._bean = e, null != e) {
			var i = e.q_card_id,
				n = App.data.pictureCenter();
			this.name_txt.text = e.q_card_name, this.name_txt.textColor = GameUtil.getQualityColor(e.q_quality), this.quality.source =
				"picturebook_" + e.q_quality_icon + "_png", this._bg.url = ResPathUtil.getResImage(e.q_quality_kuang + "",
					"picturebook", ".jpg"), this._icon.url = ResPathUtil.getResImage(e.q_card_res + "", "picturebook/1", ".jpg");
			var a = n.getActivate(i);
			this.not_active.visible = this.imgMask.visible = !a;
			for (var o = a ? e.q_card_level : 0, r = 0; 10 > r; r++) this._stars[r].visible = o > r, this._starbgs[r].visible =
				a;
			this._fight.setValue(t.q_zhandouli);
			var s = n.getCanActivate(i);
			s ? this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "kejihuo"), 94, 67, this
				._effect) : (s = n.getCanLvUp(i), s ? this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
				"panel", "keshengji"), 94, 67, this._effect) : this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
				"panel", "keshengji"), 94, 67, this._effect, !1))
		}
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(80, this._bean)
	}, e.prototype.clear = function() {
		this._bg && this._bg.clear(), this._icon && this._icon.clear(), this._fight && this._fight.clear()
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._bg && (this._bg.dispose(), this._bg = null),
			this._fight && (this._fight.dispose(), this._fight = null), this._icon && (this._icon.dispose(), this._icon = null),
			t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PictureBookItem.prototype, "PictureBookItem");
var PictureBookTipItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PictureBookTipItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._txts = [this.txt1, this.txt2, this.txt3, this.txt4]
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (t) {
			var e = App.data.pictureCenter().getCurrentNum(t.q_cardku_id),
				i = t.q_cardku_number,
				n = e >= i ? 4109873 : 11639929;
			this.num_txt.text = "套装件数：" + i, this.need_txt.text = e + "/" + i, this.need_txt.textColor = n, this.lv_txt.text =
				t.q_cardku_level + "阶";
			var a = new BaseAttributeDataBean;
			a.convert(t.q_cardku_attribute);
			for (var o = a.getStrByBaseAttributeBean(a, "：", "#").split("#"), r = this._txts.length, s = 0; r > s; s++) s < o.length ?
				(this._txts[s].text = o[s + 1], this._txts[s].textColor = n) : this._txts[s].text = ""
		}
	}, e
}(ItemRenderer);
__reflect(PictureBookTipItem.prototype, "PictureBookTipItem");
var PictureActivate = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(t, e, i, n) {
		this.stageMask = new h5_engine.GShape, this.stageMask.graphics.clear(), this.stageMask.graphics.beginFill(0, 1),
			this.stageMask.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this.stageMask.graphics.endFill(),
			this.stageMask.touchEnabled = !0, this.addChild(this.stageMask), this.item = t, this.itemX = e, this.itemY = i,
			this.itemParent = n, this.addChild(t), t.x = 226, t.y = 350, App.layer.tipLayer.addChild(this), this.createEffect(),
			App.dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), this.resize()
	}, e.prototype.createEffect = function() {
		null == this._lightEffect && (this._lightEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"function", "light"), 310, 260, this._lightEffect)), null == this._upEffect && (this._upEffect = EffectUtils.showCEffect(
			this, this, ResPathUtil.getMenuEffect("function", "up"), 310, 90, this._upEffect)), null == this._downEffect && (
			this._downEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("function", "down"), 316, 750,
				this._downEffect)), App.timer.doTimeOnce(this, 2e3, this.dispose)
	}, e.prototype.resize = function() {
		this._lightEffect && this._lightEffect.setTo(Config.SCREEN_WIDTH / 2, 260), this._upEffect && this._upEffect.setTo(
				Config.SCREEN_WIDTH / 2, 90), this._downEffect && this._downEffect.setTo(Config.SCREEN_WIDTH / 2, 750), this.item &&
			(this.item.x = Config.SCREEN_WIDTH - this.item.width >> 1, this.item.y = 350)
	}, e.prototype.dispose = function() {
		this.itemParent && this.item && (this.itemParent.addChild(this.item), this.item.x = this.itemX, this.item.y = this.itemY,
				this.itemParent = null, this.item = null), App.timer.clearTimer(this.dispose, this), this.stageMask && (this.stageMask
				.graphics.clear(), this.stageMask.parent && this.stageMask.parent.removeChild(this.stageMask), this.stageMask =
				null), this._lightEffect && (this._lightEffect.dispose(), this._lightEffect = null), this._upEffect && (this._upEffect
				.dispose(), this._upEffect = null), this._downEffect && (this._downEffect.dispose(), this._downEffect = null),
			this.parent && this.parent.removeChild(this), App.dispatcher.removeEventListener(EventType.STGAE_RESIZE, this.resize,
				this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(PictureActivate.prototype, "PictureActivate");
var PictureActivateView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._moneyEnough = !1, e._expEnough = !1, e.euiSkinName = "PictureActivateSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._expBar = new HpBar, this._expBar.setUiComponent(this.bar, null, 460, 14, this.exp_txt), this._item = new PictureBookItem,
			this.addChild(this._item), this._item.x = 170, this._item.y = 83, this._effect = EffectUtils.showCEffect(this,
				this._item, ResPathUtil.getMenuEffect("picture", "1_0"), 94, 113), this._activate = new PictureActivate
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(PictureBookCenter.UPDATE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onWay, this, this.get_txt), this.update(e), null == this._bg ? (this._bg =
				UIMaker.getCImage(null, this, ResPathUtil.getImgPath("bg_017", "picturebook"), -2, 46), this.addChildAt(this._bg,
					0)) : this._bg.url = ResPathUtil.getImgPath("bg_017", "picturebook"), null == this._bg2 ? (this._bg2 = UIMaker.getCImage(
				null, this, ResPathUtil.getImgPath("icon_108", "picturebook"), 0, 372), this.addChildAt(this._bg2, 1)) : this._bg2
			.url = ResPathUtil.getImgPath("icon_108", "picturebook")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg && this._bg.clear(), this._bg2 && this._bg2.clear()
	}, e.prototype.onUpdate = function(t) {
		null != t && null != this._bean && t.q_card_type == this._bean.q_card_type && t.q_order_card == this._bean.q_order_card &&
			(this._tag || this._activate.show(this._item, this._item.x, this._item.y, this._item.parent), this.update(t))
	}, e.prototype.update = function(t) {
		if (null != t) {
			this._bean = t, this._item.setData(t);
			var e = App.data.pictureCenter();
			if (t.q_card_skill > 0) {
				var i = App.config.q_skillModelContainer.getDataBean(t.q_card_skill);
				i && (this.special_txt.text = i.q_tips_desc)
			} else this.special_txt.text = "";
			if (this._tag = e.getActivate(t.q_card_id), this._tag)
				if (this.curPro_txt.text = e.getPictureAttrStr(t), this.btn.label = "升 星", this.need_txt.text = "", this._consumeID =
					EnumMoney.PICTURE, this.get_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取图鉴经验")), 0 != t.q_next_id
				) {
					var n = App.config.q_pictureContainer.getDataBean(t.q_next_id);
					if (null != n) {
						var a = ItemUtil.getRewardDataList(n.q_card_use)[0];
						this.max_txt.visible = !1, this.btn.visible = !0, this.bar.visible = !0, this.bar_bg.visible = !0, this.exp_txt
							.visible = !0, this.imgTo.visible = !0, this.curPro_txt.x = 51, this.nextPro_txt.text = e.getPictureAttrStr(n);
						var o = App.data.currencyDataCenter.getMoney(EnumMoney.PICTURE),
							r = a.count;
						this._expBar.setValue(o, r), this._expEnough = o >= r
					}
				} else this.max_txt.visible = !0, this.btn.visible = !1, this.bar.visible = !1, this.bar_bg.visible = !1, this.exp_txt
					.visible = !1, this.imgTo.visible = !1, this.curPro_txt.x = this.width - this.curPro_txt.width >> 1, this.nextPro_txt
					.text = "";
			else {
				var a = ItemUtil.getRewardDataList(t.q_card_use)[0];
				this.btn.label = "激 活", this.btn.visible = !0, this.need_txt.text = "需要:" + ItemUtil.getItemName(a.itemId) + "x" +
					a.count, this.bar.visible = !1, this.bar_bg.visible = !1, this.exp_txt.visible = !1, this.max_txt.visible = !1;
				var s = App.data.bagItemDataCenter.getItemCount(a.itemId);
				FilterUtil.gray(this.btn, s < a.count), this._moneyEnough = s >= a.count, this.need_txt.textColor = s >= a.count ?
					2863402 : 11973295, this.curPro_txt.text = e.getPictureAttrStr(t).replace(/[0-9]/gi, "").replace(/:/g, ":0"),
					this.nextPro_txt.text = e.getPictureAttrStr(t), this._consumeID = a.itemId, this.get_txt.textFlow = HtmlUtil.getHtmlStr(
						HtmlUtil.formatUnderline("获取图鉴"))
			}
		}
	}, e.prototype.onTouch = function(t) {
		this._bean && (this._tag && !this._expEnough ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">图鉴经验不足</font>") : this._tag || this._moneyEnough ? ExploitCommandSender.sendC2S_TuJianGrowUpMessage(this._bean
			.q_card_id) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">图鉴材料不足</font>"))
	}, e.prototype.onWay = function(t) {
		PanelOpenManager.openPanel(19, this._consumeID)
	}, e.prototype.dispose = function() {
		this._activate = null, this._expBar && (this._expBar.dispose(), this._expBar = null), this._item && (this._item.dispose(),
			this._item = null), this._bg2 && (this._bg2.dispose(), this._bg2 = null), this._bg && (this._bg.dispose(), this._bg =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PictureActivateView.prototype, "PictureActivateView");
var PictureBookTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PictureBookTipSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = new MaskShape;
		t.graphics.beginFill(0, .01), t.graphics.drawRect(0, 0, 459, 42), t.graphics.endFill(), t.touchEnabled = !0, this.groupClick
			.addChild(t), this._vscroller = new VScrollPanel(379, 527, PictureBookTipItem, 22), this._vscroller.move(2, 58,
				this)
	}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), e) {
			var i = App.data.pictureCenter().getSuitBeanList(e.type);
			this._vscroller.dataProvider = i, this.imgScale9Grid.height = 109 * i.length + 60, this.height = this.imgScale9Grid
				.height, this._vscroller.height = 109 * i.length, this.groupClick.y = this.imgScale9Grid.height + 10, this.name_txt
				.text = App.data.pictureCenter().getTipName(e.type) + "套装加成"
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		this._vscroller.dispose(), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PictureBookTipView.prototype, "PictureBookTipView");
var PictureBookView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PictureBookSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._pool = [], this._tabs = [this.tab0, this.tab1, this.tab2, this.tab3, this.tab4, this.tab5, this.tab6, this.tab7],
			this._reds = [this.red0, this.red1, this.red2, this.red3, this.red4, this.red5, this.red6, this.red7];
		for (var t = App.data.pictureCenter().getTypes(), e = this._tabs.length, i = 0; e > i; i++) this._tabs[i].index = i,
			this._tabs[i].type = t[i];
		this.scrollerTab.scrollPolicyH = eui.ScrollPolicy.ON, this.scrollerTab.scrollPolicyV = eui.ScrollPolicy.OFF, this.decompose_txt
			.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("分解多余图鉴"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(PictureBookCenter.REFRESH, this.updateContent,
				this), this._dispatcher.addEventListener(PictureBookCenter.UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(
				MoneyEvent.CHANGE, this.onMoneyChange, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchDecompose,
				this, this.decompose_txt), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchDesc, this,
				this.imgDesc), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchLeft, this, this.left_btn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchRight, this, this.right_btn), this._dispatcher
			.addEventListener(eui.UIEvent.CHANGE_END, this.updatePageRedPoint, this, this.scrollerTab);
		for (var i = this._tabs.length, n = 0; i > n; n++) this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onTouchTab, this, this._tabs[n]);
		this.fightPower.setVis(!1), this.fightPower.x = -25, this.fightPower.y = 69, this.setSelectedIndex(0),
			ExploitCommandSender.sendC2S_TuJianListMessage()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._type = -1
	}, e.prototype.onMoneyChange = function(t, e) {
		void 0 === e && (e = 0), t == EnumMoney.PICTURE && this.updateContent()
	}, e.prototype.onUpdate = function(t) {
		null != t && this.updateOther()
	}, e.prototype.updateContent = function() {
		this.updateOther(), this.updateGroup(App.data.pictureCenter().getList(this._type))
	}, e.prototype.updateOther = function() {
		var t = this._type,
			e = App.data.pictureCenter(),
			i = e.getCurrentNum(t),
			n = e.getMax(t),
			a = e.getCurrentSuitBean(t).q_cardku_number;
		this.num_txt.text = "(已集齐" + i + "/" + n + ")", this.exp_txt.text = "图鉴经验:" + StringUtil.formatMoney(App.data.currencyDataCenter
				.getMoney(EnumMoney.PICTURE)), this.suit_txt.text = "集齐套装效果 " + e.getPictureMaxSuit(t), this.suit_txt.textColor =
			i >= a ? 4109873 : 11639929, this.imgTab.source = "picturebook_n" + t + "_png", this.fightPower.setValue(e.getTotalFightPower());
		for (var o = this._tabs.length, r = 0; o > r; r++) this._reds[r].visible = e.getTitleShowPoint(this._tabs[r].type);
		this.updatePageRedPoint(), this._decompose = App.data.pictureCenter().getDecomposeList(), this._decomposeEffect =
			EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"), 500, 92, this._decomposeEffect,
				this._decompose.length > 0)
	}, e.prototype.updateGroup = function(t) {
		for (var e, i; this.groupItem.numChildren > 0;) i = this.groupItem.removeChildAt(0), egret.is(i, "eui.Image") || (e =
			i, e.hide(), this._pool.push(e));
		for (var n = t.length, a = 0; n > a; a++) e = this.getItem(), e.show(), e.setData(t[a]), this.groupItem.addChild(e),
			e.x = 18 + 210 * Math.floor(a % 3), e.y = 32 + 251 * Math.floor(a / 3);
		e && (null == this._alphaImage && (this._alphaImage = UIMaker.getImage(this.groupItem, this,
			"picturebook_icon_105_png", 0), this._alphaImage.alpha = .01), this._alphaImage.y = e.y + 226, this.groupItem.addChild(
			this._alphaImage))
	}, e.prototype.onTouchDecompose = function(t) {
		App.data.bagItemDataCenter.fenjiTYPE = 41, App.panel.openPanel(27, this._decompose)
	}, e.prototype.onTouchDesc = function(t) {
		App.panel.openPanel(79, {
			type: this._type
		})
	}, e.prototype.onTouchLeft = function(t) {
		this.scrollerTab.stopAnimation(), this.scrollerTab.viewport && (this.scrollerTab.viewport.scrollH = 0), this.updatePageRedPoint()
	}, e.prototype.onTouchRight = function(t) {
		this.scrollerTab.stopAnimation(), this.scrollerTab.viewport && (this.scrollerTab.viewport.scrollH = this.scrollerTab
			.viewport.contentWidth - this.scrollerTab.width), this.updatePageRedPoint()
	}, e.prototype.onTouchTab = function(t) {
		var e = t.currentTarget.index;
		this.setSelectedIndex(e)
	}, e.prototype.setSelectedIndex = function(t) {
		if (t < this._tabs.length && t >= 0) {
			var e = this._tabs[t],
				i = e.type;
			this._type != i && void 0 != i && (this._type = i, this.imgSelected.x = e.x - 4, this.scrollerItem.stopAnimation(),
				this.scrollerItem.viewport && (this.scrollerItem.viewport.scrollV = 0), this.updateContent())
		}
	}, e.prototype.updatePageRedPoint = function(t) {
		void 0 === t && (t = null);
		for (var e, i = this.scrollerTab.localToGlobal().x, n = i + this.scrollerTab.width, a = !1, o = !1, r = this._tabs.length,
				s = 0; r > s; s++) this._reds[s].visible && (e = this._tabs[s].localToGlobal().x, i - 94 > e && !a ? a = !0 : e +
			94 > n && !o && (o = !0));
		this.red8.visible = a, this.red9.visible = o
	}, e.prototype.getItem = function() {
		return this._pool.length > 0 ? this._pool.shift() : new PictureBookItem
	}, e.prototype.dispose = function() {
		if (this._pool) {
			for (var e = this._pool.length, i = 0; e > i; i++) this._pool[i].dispose();
			this._pool = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PictureBookView.prototype, "PictureBookView");
var DailyLifeItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "DailyLifeItemSkin", e
	}
	return __extends(e, t), e.prototype.setBean = function(t) {
		this.id = t.q_id;
		var e = ItemUtil.getRewardDataList(t.q_fix_rewards)[0];
		this.num_txt.text = "x" + e.count, this.target_txt.text = t.q_need_activepoint + "", null == this._grid && (this._grid =
			GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.x = this.width - this._grid.gridBgSize.width >>
			1, this._grid.y = 15, this._grid.isShowEffect = !1, this._grid.gridBg.alpha = .01, this._grid.isShowCount = !1,
			this._grid.isShowDesc = !1, this.addChildAt(this._grid, 1)), this._grid.setData(ItemUtil.getRewardDataList(t.q_fix_rewards)[
			0]), this.imgYLQ.visible = !1, this.dataChanged(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onTouch, this, this._grid)
	}, e.prototype.dataChanged = function() {
		var t = App.data.exploitCenter.getData(this.id);
		null != t && (-1 == t.fixRewardsState ? (this.imgYLQ.visible = !1, this._grid.isShowTip = !0, this.imgSelected.visible = !
			1, this._effect && (this._effect.stop(), this._effect.removeParent())) : 0 == t.fixRewardsState ? (this.imgYLQ.visible = !
			1, this._grid.isShowTip = !1, this.imgSelected.visible = !0, this._effect = EffectUtils.showCEffect(this, this,
				ResPathUtil.getMenuEffect("daily", "1_0"), 51, 53, this._effect)) : (this.imgYLQ.visible = !0, this._grid.isShowTip = !
			0, this.imgSelected.visible = !1, this._effect && (this._effect.stop(), this._effect.removeParent())))
	}, e.prototype.fly = function(t) {
		this.id == t && App.global.operate.flyToBag([this._grid.icon], this)
	}, e.prototype.onTouch = function(t) {
		this._grid.isShowTip || ExploitCommandSender.sendC2S_GetActiveRewardMessage(1, 1, this.id)
	}, e.prototype.dispose = function() {
		this._grid && (this._grid.dispose(), this._grid = null), this._effect && (this._effect.dispose(), this._effect =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(DailyLifeItem.prototype, "DailyLifeItem");
var DailyLifeTaskItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "DailyLifeTaskItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.btn_go.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("点击前往"))
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn_go), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGet, this, this.btn_get)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (t) {
			var e = App.config.q_task_active_clientContainer.getDataBean(t.taskID);
			if (null != e) {
				var i = App.data.exploitCenter.getCurrentIndex(t),
					n = App.data.exploitCenter.getIndexMax(e.q_taskid_show_place);
				t.otherVarMapObj && t.otherVarMapObj.finishcount && (i = t.otherVarMapObj.finishcount), this.btn_go.visible = n >
					i, this.finish_txt.visible = i >= n, this.times_txt.text = i + "/" + n, this.name_txt.text = e.q_taskid_name,
					this.reward_txt.text = e.q_id_tips + "威望", this.btn_get.visible = 2 == t.taskState, this.btn_go.visible = 1 == t
					.taskState
			}
		}
	}, e.prototype.onTouch = function(t) {
		var e = this.data,
			i = App.config.q_task_active_clientContainer.getDataBean(e.taskID);
		8 == i.q_taskid_show_place ? App.data.zoneCenter.type != EnumZoneType.AUTO_FIGHT_ZONE ? Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">您已在副本中，无法前往关卡</font>") : App.data.zoneCenter.guanQiaCenter.goToBoss ?
			(ZoneCommandSender.sendC2S_ZoneFinishMessage(), App.global.zone.showEnterEffect(), App.panel.removePanel(36)) :
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">进度未满，请继续杀怪</font>") : App.data.taskCenter.tryExecuteTask(
				i.q_panel_ID)
	}, e.prototype.onGet = function(t) {
		Guide.getGuide().hide();
		var e = this.data;
		TaskCommandSender.sendFinishTask(e.taskID, e.taskType)
	}, e
}(ItemRenderer);
__reflect(DailyLifeTaskItem.prototype, "DailyLifeTaskItem");
var StateItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.$ShowTaskProgress = function() {
			if (null != e.data) {
				var t, i = App.data.taskCenter.GetStateTaskList(),
					n = i.getValueArray(),
					a = e.data;
				if (n.map(function(e) {
						e.taskID == a.q_id && (t = e)
					}), !App.config.q_state_taskContainer.getDataBean(a.q_id)) return void GameLog.logError(
					"q_state_taskContainer中不存在", a);
				var o, r = JSON.parse(App.config.q_state_taskContainer.getDataBean(a.q_id).q_finish_condition_ids),
					s = r[0].date1,
					h = JSON.parse(t.conditions[0].conditionVarMap);
				o = void 0 != h.data1 ? h.data1 : void 0 != h.num ? h.num : void 0 != h.date1 ? h.date1 : 0, 4 == t.conditions[0]
					.conditionType && (o = e.$GetZoneNumber(h.data1)), void 0 == o && (o = 0), o > s && (o = s), e.lb_award.text = o +
					"/" + s, void 0 != o && void 0 != s && e._hp.setValue(o, s), o == s ? (e.btn_press.label = "领取", e._btn_Effect.visible = !
						0) : (e.btn_press.label = "前往", e._btn_Effect.visible = !1)
			}
		}, e.$GetZoneNumber = function(t) {
			return App.config.q_zone_mapContainer.getDataBean(t) ? parseInt(App.config.q_zone_mapContainer.getDataBean(t).q_duplicate_name) :
				void GameLog.logError("q_zone_mapContainer中不存在", t)
		}, e.skinName = "StateItemRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._hp = new HpBar, this._hp.setUiComponent(this.bar, null, 244, 23, this.lb_award, .05), this._grid = GridUtil.getGrid(
			EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.x = 380, this._grid.y = 13, this._grid.setIconSize(t, t), this._grid.setBgVisible(!0), this.addChild(
				this._grid), this._btn_Effect = EffectUtils.showCEffect(this, this.btn_press, ResPathUtil.getMenuEffect("panel",
				"btneffect"), 61, 24, this._btn_Effect), this.pointNum = NumberBitmapCache.show("", "10", 0, 0, "fightNumber"),
			this.pointNum.x = 0, this.pointNum.y = 0, this.pointGroup.addChild(this.pointNum)
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.GetAward, this, this.btn_press)
	}, e.prototype.GetAward = function() {
		if (this.data && "领取" == this.btn_press.label) {
			var t, e = this.data,
				i = App.data.taskCenter.GetStateTaskList(),
				n = i.getValueArray();
			n.map(function(i) {
				i.taskID == e.q_id && (t = i)
			}), TaskCommandSender.sendFinishTask(t.taskID, t.taskType), this._dispatcher.dispatchEvent(TaskEvent.STATE_REFRESH);
			var a = JSON.parse(this.data.q_tesk_rewards),
				o = new ItemData,
				r = a[0];
			o.itemId = r.id, o.count = r.num, PanelOpenManager.openPanel(115, [o]), this._btn_Effect.visible = !0
		} else if (this.data && "前往" == this.btn_press.label) {
			var s = this.data;
			if (108 == s.q_taskset_id) {
				var h = JSON.parse(s.q_panel_ID);
				PanelOpenManager.openPanel(h.data, {
					index: h.data1,
					selectedIndex: 0
				}, !1)
			} else {
				App.panel.removePanel(23);
				var l = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
				if (l && l.q_finish_zone) {
					var p = App.data.zoneCenter.guanQiaCenter.killNum,
						c = Number(StringUtil.JsonParse(l.q_finish_zone)[0].num);
					if (p >= c) App.data.taskCenter.tryExecuteTask(s.q_panel_ID);
					else {
						var _ = JSON.parse(s.q_panel_ID);
						2 == _.type && Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">通关关卡数量不足，请继续挑战关卡</font>")
					}
				}
			}
			this._btn_Effect.visible = !1
		}
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (!t || "" == t.q_tesk_rewards) return this.lb_content.text = "", this.lb_award.text = "", void(this.btn_press.enabled = !
			1);
		this.btn_press.enabled = !0, this.lb_content.text = t.q_task_des;
		var e = JSON.parse(t.q_tesk_rewards),
			i = e[1].num;
		this.pointNum.show(i + "", 0, 0, BitmapNumberType.FIGHT_RED), this.pointNum.alpha = 1, 10 > i ? this.pointGroup.x =
			43 : 100 > i ? this.pointGroup.x = 33 : this.pointGroup.x = 19, this.$ShowTaskProgress();
		var n = new ItemData,
			a = e[0];
		n.itemId = a.id, n.count = a.num, this._grid && (this._grid.setData(n), this._grid.setTxtVisible(!1))
	}, e.prototype.dispose = function() {
		this._grid && this._grid.dispose(), this._btn_Effect && this._btn_Effect.dispose(), this._btn_Effect = null, this._grid =
			null, this._hp = null, null != this.pointNum && (this.pointNum.dispose(), this.pointNum = null), this.btn_press.removeEventListener(
				egret.TouchEvent.TOUCH_END, StateCommandSender.sendC2S_StateInfo, this)
	}, e
}(ItemRenderer);
__reflect(StateItemRender.prototype, "StateItemRender");
var StateTip = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._tipView = UIMaker.createViewBase("StateTipSkin"), this.addChild(this._tipView)
	}, e.prototype.show = function(t) {
		var e = App.config.q_state_lvContainer.getDataBean(t.data).q_add_attribute_client,
			i = this.formatStringToHtml(e),
			n = "";
		i.map(function(t) {
			n += t + "\r"
		}), this._tipView.attr_txt0.textFlow = HtmlUtil.getHtmlStr(n), this.resize()
	}, e.prototype.formatStringToHtml = function(t, e) {
		void 0 === e && (e = 0), t = t.replace("[", ""), t = t.replace("]", "");
		var i = t.split(",");
		return i
	}, e.prototype.hide = function() {}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._tipView.x = Config.SCREEN_WIDTH - this._tipView.width >> 1, this._tipView.y =
			Config.SCREEN_HEIGHT - this._tipView.height >> 1
	}, e
}(TipStyleBase);
__reflect(StateTip.prototype, "StateTip");
var StateTipUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(StateTipUI.prototype, "StateTipUI");
var StateView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.initView = function() {
			e.skinName = "StateSkin";
			var t = UIMaker.getCImage(null, e, ResPathUtil.getImgPath("state_back", "", ".jpg"), 0, 56);
			t.height = 830, e.addChildAt(t, 0), e._hp = new HpBar, e._hp.setUiComponent(e.UpproImg, null, 405, 16, e.UpproLab,
					.05), e._stateList = new VScrollPanel(640, 375, StateItemRender, 3), e._stateList.x = 17, e._stateList.y = 500,
				e.addChild(e._stateList), App.tip.addTip(e.btn_detail, new TipData(22, 2)), EffectUtils.showCEffect(e, e.btn_press,
					ResPathUtil.getMenuEffect("panel", "btneffect"), 61, 24), App.dispatcher.addEventListener(TaskEvent.STATE_REFRESH,
					e.refreshState, e)
		}, e.ShowPreViewEffect = function() {
			var t = new CPlayOnceEffect;
			t.finishCallBackFun = new FunctionVO(function() {
				EffectUtils.showCEffect(e, e, ResPathUtil.getMenuEffect("state", "form" + e._stateSet), 340, 390, e._effect)
			}, e), EffectUtils.showOnceEffect(e, e, ResPathUtil.getMenuEffect("state", "boom"), 340, 300, t)
		}, e.RoleStateEffect = function(t) {
			null == e._effect && (e._effect = EffectUtils.showCEffect(e, e, ResPathUtil.getMenuEffect("state", "form" + t),
				340, 390))
		}, e._stateSet = 0, e.SetFightPowerValue = function(t) {
			if (!App.config.q_state_lvContainer.getDataBean(t)) return void GameLog.logError("q_state_lvContainer中不存在", t);
			var i = App.config.q_state_lvContainer.getDataBean(t).q_fight_num;
			e.fightPower.setValue(i)
		}, e.ShowStateList = function() {
			var t = App.data.taskCenter.GetStateTaskList(),
				i = t.getKeyArray(),
				n = App.config.q_state_taskContainer.list,
				a = {};
			n.map(function(t) {
				if (t.q_taskset_id) {
					var e = a[t.q_taskset_id];
					e ? e.push(t) : (e = [], e.push(t), a[t.q_taskset_id] = e)
				}
			});
			var o = [];
			i.map(function(t) {
				if (null == App.config.q_state_taskContainer.getDataBean(t)) return void GameLog.logError(
					"q_state_taskContainer中不存在", t);
				var i = App.config.q_state_taskContainer.getDataBean(t).q_taskset_id,
					n = e.$GetSourceArr(t, a[i]);
				n && o.push(n)
			}), e._stateList.dataProvider = e.$DataSourceSort(o, t)
		}, e.$DataSourceSort = function(t, e) {
			t.sort(function(t, e) {
				return t.q_order < e.q_order ? -1 : 1
			});
			var i = e.getValueArray();
			i.sort(function(t, e) {
				return 2 == t.taskState ? -1 : 1
			});
			var n = [];
			i.map(function(t) {
				n.push(t.taskID)
			});
			var a = [];
			return n.map(function(e) {
				t.map(function(t) {
					e == t.q_id && a.push(t)
				})
			}), a
		}, e.$GetSourceArr = function(t, e) {
			var i;
			return e.map(function(e) {
				e.q_id == t && (i = e)
			}), i
		}, e.initView(), e
	}
	return __extends(e, t), e.prototype.show = function(t) {
		var e = App.global.mapModule.mapMouseModel.controlRoleData.StateLevel;
		0 == e && (e = 1), this.ShowStateList(), this.SetFightPowerValue(e), this.refreshState(), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.OnLevelUP, this, this.btn_press)
	}, e.prototype.OnLevelUP = function() {
		var t = new CPlayOnceEffect;
		t.finishCallBackFun = new FunctionVO(this.ShowPreViewEffect, this), EffectUtils.showOnceEffect(this, this,
			ResPathUtil.getMenuEffect("state", "gather"), 340, 300, t), StateCommandSender.sendC2S_StateInfo(), this.refreshState()
	}, e.prototype.refreshState = function() {
		var t = App.global.mapModule.mapMouseModel.controlRoleData.StateLevel;
		0 == t && (t = 1);
		var e = t / 3; - 1 != e.toString().indexOf(".") && (e = Math.floor(e) + 1), this._stateSet = e, this.state.source =
			"state_state" + e + "_png";
		var i = t % 3;
		this.state_now.source = "state_state_now" + i + "_png";
		var n = App.data.currencyDataCenter.getMoney(EnumMoney.STATEPOINT);
		if (!App.config.q_state_lvContainer.getDataBean(t)) return void GameLog.logError("q_state_lvContainer中不存在", t);
		var a, o = App.config.q_state_lvContainer.getDataBean(t).q_points;
		"" == o ? (this.btn_press.visible = !1, App.data.characterCenter.stateLevelUP = !1, this._hp.setValue(n, n), this.UpproLab
			.visible = !1) : a = JSON.parse(o)[0], a && (this._hp.setValue(n, a.num), n >= a.num ? (this.btn_press.visible = !
			0, App.data.characterCenter.stateLevelUP = !0) : n < a.num && (this.btn_press.visible = !1, App.data.characterCenter
			.stateLevelUP = !1)), this.ShowStateList(), this.RoleStateEffect(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), App.dispatcher.removeEventListener(TaskEvent.STATE_REFRESH,
			this.refreshState, this), this._hp = null, this._stateList = null, this._stateSet = null, t.prototype.dispose.call(
			this)
	}, e
}(ViewBase);
__reflect(StateView.prototype, "StateView");
var DailyLifeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "DailyLifeViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._places = [{
				x: 179,
				y: 368
			}, {
				x: 93,
				y: 219
			}, {
				x: 179,
				y: 65
			}, {
				x: 369,
				y: 65
			}, {
				x: 452,
				y: 219
			}, {
				x: 369,
				y: 368
			}], this._txts = [this.num_txt0, this.num_txt1, this.num_txt2, this.num_txt3, this.num_txt4, this.num_txt5], this._vscroller =
			new VScrollPanel(640, 322, DailyLifeTaskItem, 5), this._vscroller.move(23, 530, this), this._effect = EffectUtils.showCEffect(
				this, this.groupBtn, ResPathUtil.getMenuEffect("daily", "2_0"), 45, 52, this._effect), this.groupBtn.addChild(
				this.imgBtn), this._mask = new egret.Shape, this.addChild(this._mask), this.imgProgress.mask = this._mask
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ExploitEvent.REFRESH_TASK, this.taskUpdate, this),
			this._dispatcher.addEventListener(ExploitEvent.REFRESH_EXPLOIT, this.onUpdate, this), this._dispatcher.addEventListener(
				ExploitEvent.REFRESH_EXPLOIT_NUM, this.pointUpdate, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onTouch, this, this.groupBtn), this._dispatcher.addEventListener(EventType.SHOW_REDPOINT, this.onShowPoint,
				this), ExploitCommandSender.sendC2S_ActiveRewardInfoMessage(), null == this._bg && (this._bg = UIMaker.getCImage(
				null, this, ResPathUtil.getImgPath("knightbg", "knight", ".jpg"), 0, 56), this._bg.height = 830, this.addChildAt(
				this._bg, 0)), this.onShowPoint(100)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), UIMaker.showPoint(this.groupBtn, this, !1), Guide.getGuide().hide(), this._vscroller.removeAll(),
			this._vscroller && (this._vscroller.stopAnimation(), this._vscroller.viewport.scrollV = 0)
	}, e.prototype.pointUpdate = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0), this.todayPointUpdate()
	}, e.prototype.onUpdate = function() {
		this.todayPointUpdate(), this.taskUpdate()
	}, e.prototype.todayPointUpdate = function() {
		var t = App.data.exploitCenter.getRewardBeanList();
		if (null == this._itemList) {
			this._itemList = [];
			for (var e = void 0, i = 0; i < t.length; i++) e = new DailyLifeItem, i < this._txts.length && (e.target_txt =
					this._txts[i]), e.x = this._places[i].x, e.y = this._places[i].y, this.addChild(e), this._itemList.push(e), this
				._todayMax = t[i].q_need_activepoint
		}
		for (var i = 0; i < this._itemList.length; i++) this._itemList[i].setBean(t[i]);
		var n = 6;
		UIMaker.drawSector(this._mask, 320, 267, 122, 334.8 * Math.min(App.data.exploitCenter.activePoint / this._todayMax,
			1), 90 - n)
	}, e.prototype.taskUpdate = function() {
		this._vscroller.dataProvider = App.data.exploitCenter.getTaskVec()
	}, e.prototype.onTouch = function(t) {
		Guide.getGuide().hide(), PanelOpenManager.openPanel(22)
	}, e.prototype.onShowPoint = function(t) {
		if (100 == t) {
			var e = App.data.exploitCenter.prestigetCenter.getShowPoint();
			this.imgBtn.visible = !e, this._txtEffect = EffectUtils.showCEffect(this, this.groupBtn, ResPathUtil.getMenuEffect(
				"daily", "3_0"), 45, 95, this._txtEffect, e), UIMaker.showPoint(this.groupBtn, this, e);
			var i = App.config.q_jadeContainer.getDataBean(App.data.exploitCenter.prestigetCenter.prestigeID);
			i && 1 == i.q_layer && App.data.taskCenter.getThreadTaskShowGuide(16) && (e ? Guide.getGuide().show("点击进阶官职",
				Guide.RIGHT, this.groupBtn.x - 200, this.groupBtn.y + 40, this) : Guide.getGuide().show("点击获取威望", Guide.RIGHT,
				this._vscroller.x + 285, this._vscroller.y + 15, this))
		}
	}, e.prototype.dispose = function() {
		if (this._txtEffect && (this._txtEffect.dispose(), this._txtEffect = null), this._effect && (this._effect.dispose(),
				this._effect = null), this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._itemList)
			for (var e = 0; e < this._itemList.length; e++) this._itemList[e].dispose();
		this._bg && (UIMaker.putToPool(this._bg), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(DailyLifeView.prototype, "DailyLifeView");
var PrestigeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PrestigeViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.btn_go.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取威望")), this._icon = UIMaker.getCImage(this,
				this, null, 60, 313), this._bar = new HpBar, this._bar.setUiComponent(this.total_bar, null, 554, 15, null, .01),
			this._bar.setValue(0, 1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ExploitEvent.REFRESH_PRESTIGE, this.onUpdate,
				this), this._dispatcher.addEventListener(ExploitEvent.LEVEL_UP_PRESTIGE, this.onLvUpSuccess, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLvUp, this, this.btnLvUp), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onGetWay, this, this.btn_go), ExploitCommandSender.sendC2S_JadeInfoMessage();
		var i = App.config.q_jadeContainer.getDataBean(App.data.exploitCenter.prestigetCenter.prestigeID);
		i && 1 == i.q_layer && App.data.taskCenter.getThreadTaskShowGuide(16) && Guide.getGuide().show("点击进阶官职", Guide.RIGHT,
			75, 841, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), Guide.getGuide().hide(), this._effect && this._effect.stop()
	}, e.prototype.onUpdate = function() {
		var t = App.data.currencyDataCenter.getMoney(EnumMoney.Prestige),
			e = new BaseAttributeDataBean,
			i = App.config.q_jadeContainer.getDataBean(App.data.exploitCenter.prestigetCenter.prestigeID);
		if (this._bean = i, i) {
			e.convertAndAdd(i.q_attribute), this.curPro_txt.text = e.getStrByBaseAttributeBean(e), this._icon.url =
				ResPathUtil.getResImage(i.q_icon_info, "knight"), this.newDay_txt.text = "", this.damage_txt.text = "伤害增加" + i.q_lv_deter /
				100 + "%", this.fightPower && this.fightPower.setValue(FightPowerUtil.getFightPower([i.q_attribute]));
			var n = i.q_id > 6 ? 470 : 440;
			if (this._url = ResPathUtil.getMenuEffect("prestige", i.q_pos_info + "/1_0"), this._effect = EffectUtils.showCEffect(
					this, this, this._url, 311, n, this._effect), i.q_next_id > 0) {
				var a = App.config.q_jadeContainer.getDataBean(i.q_next_id);
				e = new BaseAttributeDataBean, e.convertAndAdd(a.q_attribute), this.nextPro_txt.text = e.getStrByBaseAttributeBean(
					e), this.total_txt.text = t + "/" + i.q_cost, this._bar.setValue(t, i.q_cost)
			} else this.nextPro_txt.text = "", this.total_txt.text = "" + t, this.total_bar.width = 554, this._bar.setValue(1,
				1)
		}
	}, e.prototype.onLvUpSuccess = function() {
		EffectUtils.showSuccessEffect(this, this), this.onUpdate(), App.dispatcher.dispatchEvent(EventType.ShowSuccess,
			this._url, 0)
	}, e.prototype.onLvUp = function(t) {
		Guide.getGuide().hide();
		var e = App.data.currencyDataCenter.getMoney(EnumMoney.Prestige);
		this._bean.q_next_id > 0 ? this._bean.q_cost > e ? PanelOpenManager.openPanel(19, EnumMoney.Prestige) :
			ExploitCommandSender.sendC2S_JadeUpLevelMessage() : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">已达到最大等级，无法继续升级</font>")
	}, e.prototype.onGetWay = function(t) {
		PanelOpenManager.openPanel(19, EnumMoney.Prestige)
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._icon && (this._icon.dispose(), this._icon =
			null), this._bean = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PrestigeView.prototype, "PrestigeView");
var DownLoadPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("DownLoadPanelSkin"), this.addChild(this._view), this.setWidthAndHeight(this._view
			.width, this._view.height), this._gridHash = new HashObject;
		for (var t = new egret.Rectangle(0, 0, 76, 76), i = App.config.q_activitiesContainer.getDataBean(e.ACT1), n =
				ItemUtil.getRewardDataList(i.q_show_rewards), a = this._view.group1.x, o = this._view.group1.y, r = 0; r < n.length; r++) {
			var s = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			s.x = a + 81 * (r % 3) + 0, s.y = o, s.setIconSize(t, t), s.isShowCount = !0, s.isShowDesc = !0, s.setBgVisible(!0),
				this._gridHash.put(r, s), this._view.addChild(s)
		}
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._view.closeBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onDownLoad, this, this._view.downloadBtn), this._dispatcher.addEventListener(
				PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS, this.ptReturnParma, this)
	}, e.prototype.ptReturnParma = function() {
		1 == Platfrom_HDHD.client_status_2 ? (this._view.titleImg.source = "pt_xhb_titlereward_png", this._view.downloadBtn
			.source = "pt_xhb_getbtn_png") : (this._view.titleImg.source = "pt_xhb_titledown_png", 0 == Platfrom_HDHD.client_status ?
			this._view.downloadBtn.source = "pt_xhb_downloadbtn_png" : 1 == Platfrom_HDHD.client_status && (this._view.downloadBtn
				.source = "pt_xhb_getbtn_png"))
	}, e.prototype.refresh = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(e.ACT1), i = ItemUtil.getRewardDataList(t.q_show_rewards),
				n = 0; n < i.length; n++) {
			var a = this._gridHash.get(n);
			a.setData(i[n])
		}
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), e.hasOpened = !0, this.addListeners(), this.refresh(), this.ptReturnParma()
	}, e.prototype.onDownLoad = function() {
		0 == Platfrom_HDHD.client_status ? App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, e.ACT1) :
			1 == Platfrom_HDHD.client_status && (1 == Platfrom_HDHD.client_status_2 ? (ActivityCommandSender.sendC2S_JoinActivityMessage(
					e.ACT1), this._view.downloadBtn.filters = FilterUtil.FILTER_GRAY, this._view.downloadBtn.touchEnabled = !1) :
				Alert.show("请前往微端领取奖励", "提示", Alert.DEFAULT_BTN_LABEL, this.okFunc, this))
	}, e.prototype.okFunc = function(t) {
		this.onClose()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash = null
		}
		this._view = null, this.timeOut && (egret.clearTimeout(this.timeOut), this.timeOut = 0), t.prototype.dispose.call(
			this)
	}, e.hasOpened = !1, e.ACT1 = 103, e
}(BasePanel);
__reflect(DownLoadPanel.prototype, "DownLoadPanel");
var InvitationPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("InvitationPanelSkin"), this.addChild(this._view), this.setWidthAndHeight(this._view
			.width, this._view.height), this._gridHash = new HashObject;
		var t = new egret.Rectangle(0, 0, 76, 76),
			i = App.config.q_activitiesContainer.getDataBean(e.ACT1),
			n = ItemUtil.getRewardDataList(i.q_show_rewards);
		this._view.lbCount1.text = "0/" + i.q_info;
		for (var a = this._view.group1.x, o = this._view.group1.y, r = 0; r < n.length; r++) {
			var s = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			s.x = a + 81 * (r % 3) + 0, s.y = o, s.setIconSize(t, t), s.isShowCount = !0, s.isShowDesc = !1, s.setBgVisible(!0),
				this._gridHash.put(r, s), this._view.addChild(s)
		}
		var h = App.config.q_activitiesContainer.getDataBean(e.ACT2),
			l = ItemUtil.getRewardDataList(h.q_show_rewards);
		this._view.lbCount3.text = "0/" + h.q_info;
		for (var p = this._view.group3.x, c = this._view.group3.y, _ = 0; _ < l.length; _++) {
			var s = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			s.x = p + 81 * (_ % 3) + 0, s.y = c, s.setIconSize(t, t), s.isShowCount = !0, s.isShowDesc = !1, s.setBgVisible(!0),
				this._gridHash.put(3 + _, s), this._view.addChild(s)
		}
		this._view.get1Btn.filters = FilterUtil.FILTER_GRAY, this._view.get1Btn.touchEnabled = !1, this._view.get3Btn.filters =
			FilterUtil.FILTER_GRAY, this._view.get3Btn.touchEnabled = !1, this._view.lbInfo1.text = "领 取", this._view.lbInfo3.text =
			"领 取"
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._view.closeBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onInvitation, this, this._view.invitationBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGet1, this, this._view.get1Btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onGet3, this, this._view.get3Btn), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.updatePanel, this)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getData(e.ACT1),
			i = App.config.q_activitiesContainer.getDataBean(e.ACT1);
		if (null == t || void 0 == t.extendMap || "" == t.extendMap) return this._view.get1Btn.filters = FilterUtil.FILTER_GRAY,
			void(this._view.get1Btn.touchEnabled = !1);
		var n = StringUtil.JsonParse(t.extendMap),
			a = n.num;
		a >= Number(i.q_info) && (a = Number(i.q_info)), this._view.lbCount1.text = a + "/" + i.q_info, a >= Number(i.q_info) ?
			(this._view.get1Btn.filters = [], this._view.get1Btn.touchEnabled = !0, t.receivedTimes > 0 && (this._view.get1Btn
				.filters = FilterUtil.FILTER_GRAY, this._view.get1Btn.touchEnabled = !1, this._view.lbInfo1.text = "已领取")) : (
				this._view.get1Btn.filters = FilterUtil.FILTER_GRAY, this._view.get1Btn.touchEnabled = !1);
		var o = App.data.activityCenter.getData(e.ACT2),
			r = App.config.q_activitiesContainer.getDataBean(e.ACT2);
		if (null == o || void 0 == o.extendMap || "" == o.extendMap) return this._view.get3Btn.filters = FilterUtil.FILTER_GRAY,
			void(this._view.get3Btn.touchEnabled = !1);
		var s = StringUtil.JsonParse(o.extendMap),
			h = s.num;
		h >= Number(r.q_info) && (h = Number(r.q_info)), this._view.lbCount3.text = h + "/" + r.q_info, h >= Number(r.q_info) ?
			(this._view.get3Btn.filters = [], this._view.get3Btn.touchEnabled = !0, o.receivedTimes > 0 && (this._view.get3Btn
				.filters = FilterUtil.FILTER_GRAY, this._view.get3Btn.touchEnabled = !1, this._view.lbInfo3.text = "已领取")) : (
				this._view.get3Btn.filters = FilterUtil.FILTER_GRAY, this._view.get3Btn.touchEnabled = !1)
	}, e.prototype.refresh = function() {
		for (var t = App.config.q_activitiesContainer.getDataBean(e.ACT1), i = ItemUtil.getRewardDataList(t.q_show_rewards),
				n = 0; n < i.length; n++) {
			var a = this._gridHash.get(n);
			a.setData(i[n])
		}
		for (var o = App.config.q_activitiesContainer.getDataBean(e.ACT2), r = ItemUtil.getRewardDataList(o.q_show_rewards),
				s = 0; s < r.length; s++) {
			var a = this._gridHash.get(3 + s);
			a.setData(r[s])
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.resize(), this.addListeners(), this.refresh(), this.updatePanel()
	}, e.prototype.onInvitation = function() {
		App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_ID, e.ACT1)
	}, e.prototype.onGet1 = function() {
		ActivityCommandSender.sendC2S_JoinActivityMessage(e.ACT1), this._view.get1Btn.filters = FilterUtil.FILTER_GRAY,
			this._view.get1Btn.touchEnabled = !1
	}, e.prototype.onGet3 = function() {
		ActivityCommandSender.sendC2S_JoinActivityMessage(e.ACT2), this._view.get1Btn.filters = FilterUtil.FILTER_GRAY,
			this._view.get1Btn.touchEnabled = !1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash = null
		}
		this._view = null, t.prototype.dispose.call(this)
	}, e.ACT1 = 107, e.ACT2 = 108, e
}(BasePanel);
__reflect(InvitationPanel.prototype, "InvitationPanel");
var RankItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._type = -1, e.isDispose = !1, e.skinName = "RankItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._img = new eui.Image, this._img.x = 70, this._img.y = 0, this.addChild(this._img)
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchuFunc, this, this)
	}, e.prototype.onTouchuFunc = function(t) {}, e.prototype.dataChanged = function() {
		var t = RankPanel.RANK_TYPE;
		this.updateData(t, this.data)
	}, e.prototype.updateData = function(t, e) {
		this._type = t, this._dataInfo = e, this._img.visible = !1, this.rankingTxt.visible = !0;
		var i = {};
		if (i.guildid = LongUtil.fromNumber(e.guildid), i.vip = e.viplevel, i.pfVipInfo = {}, i.pfVipInfo.vipType = e.pfVipType,
			i.pfVipInfo.yearVip = e.pfVipYear, i.pfVipInfo.highVip = e.pfViphigh, i.pfVipInfo.vipLvl = e.pfVipLvl, this.rankingTxt
			.text = e.topindex + 1 + "", e.viplevel > 0 ? this.vip_img.visible = !0 : this.vip_img.visible = !1, this.bgimg.source =
			"rankview_bg2_png", this.chenghaotitle.source = "rankview_title1small_png", 0 == e.topindex ? (this._img.visible = !
				0, this.rankingTxt.visible = !1, this._img.source = "rankview_first1_png", this.bgimg.source = "rankview_bg4_png"
			) : 1 == e.topindex ? (this.rankingTxt.visible = !1, this._img.source = "rankview_first2_png", this._img.visible = !
				0, this.bgimg.source = "rankview_bg3_png") : 2 == e.topindex && (this.rankingTxt.visible = !1, this._img.source =
				"rankview_first3_png", this._img.visible = !0), this.nameTxt.text = e.name, this.bandTxt.visible = !0, this.chenghaotitle
			.visible = !1, RankPanel.RANK_TYPE == EnumRankType.LEVEL_TOP_RANK) this.bandTxt.text = "等级:" + e.level;
		else if (RankPanel.RANK_TYPE == EnumRankType.ZSFIGHT_TOP_RANK) this.bandTxt.text = "战斗力:" + StringUtil.formatNum(e.fightPower,
			!0, !1, !0);
		else if (RankPanel.RANK_TYPE == EnumRankType.JUEWEI_RANK) {
			var n = Number(StringUtil.JsonParse(e.expandMap).rankData),
				a = App.config.q_active_positionContainer.getDataBean(n);
			this.bandTxt.text = a.q_name_position
		} else if (RankPanel.RANK_TYPE == EnumRankType.WEIWANG_RANK) {
			var o = Number(StringUtil.JsonParse(e.expandMap).rankData),
				r = App.config.q_jadeContainer.getDataBean(o);
			r ? this.bandTxt.text = r.q_name : this.bandTxt.text = ""
		} else if (RankPanel.RANK_TYPE == EnumRankType.SHALU_RANK) {
			if ("" != e.expandMap) {
				var o = Number(StringUtil.JsonParse(e.expandMap).rankData);
				this.bandTxt.text = "杀意:" + o
			}
		} else if (RankPanel.RANK_TYPE == EnumRankType.ACHEVE_RANK) {
			if ("" != e.expandMap) {
				var o = Number(StringUtil.JsonParse(e.expandMap).rankData),
					r = App.config.q_successContainer.getDataBean(o);
				this.bandTxt.text = "" + r.q_success_name
			}
		} else if (RankPanel.RANK_TYPE == EnumRankType.ZHUANS_RANK) {
			if ("" != e.expandMap) {
				var o = Number(StringUtil.JsonParse(e.expandMap).maxLevel);
				this.bandTxt.text = "转生:" + o
			}
		} else if (RankPanel.RANK_TYPE == EnumRankType.GUANQIA_RANK && "" != e.expandMap) {
			var o = Number(StringUtil.JsonParse(e.expandMap).rankData);
			this.bandTxt.text = "第" + o + "关"
		}
	}, e.MESSAGE_TYPE = !1, e
}(ItemRenderer);
__reflect(RankItemView.prototype, "RankItemView");
var RankPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._type = 1, e._currentTab = -1, e._wingWish = 0, e._wingLevel = 0, e.idpos = 0, e.ranktype = [0, 1, 2, 4, 5,
			6, 7
		], e.titleArray = [5009, 5013, 5015, 5008, 5010, 5027, 5026], e.curShowType = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
			this.window = new WindowMain, this.addChild(this.window), this.window.show(), this.window.imgBottom.y += 65, this._btnClose =
				this.window.close_btn, this.window.imgTitle.source = "titleview_paihangbang_png", this._view = UIMaker.createViewBase(
					"RankSkin"), this.window.viewContainer.addChild(this._view), this._vscroller = new VScrollPanel(640, 240,
					RankItemView, 1), this._vscroller.move(0, 540), this._rankScroller = new VScrollPanel(500, 100, RankSelectItem, 0,
					null, 2), this._view.addChild(this._vscroller), this._view.roleGroup.addChild(this._rankScroller), this._view.addChild(
					this._view.myRankGroup), this._avatargict = new HashObject
		}, e.prototype.show = function(i) {
			void 0 === i && (i = null), t.prototype.show.call(this, i), e.ISFIRST = !1, this._currentTab = -1, this.addEvent(),
				this._rankScroller.dataProvider = this.ranktype, this._rankInfo = i, App.timer.doFrameOnce(this, 1, this.callLater),
				App.global.redPoint.redPointDispatchEvent(13)
		}, e.prototype.callLater = function() {
			App.dispatcher.dispatchEvent(e.RANKSELECT, 0)
		}, e.prototype.addEvent = function() {
			this._dispatcher.addEventListener(PlayerAttributeEvent.CHECK_OTHER_PALYERINFO_BACK, this.showFirstAvatar, this),
				this._dispatcher.addEventListener(PlayerAttributeEvent.RANK_LIST_PAGE_CHANGED, this.changePageData, this), this._dispatcher
				.addEventListener(EventType.RANK_LIST_REFRESH, this.changePageData, this), this._dispatcher.addEventListener(
					EventType.RANK_LIST_REFRESH1, this.changePageData1, this), this._dispatcher.addEventListener(EventType.RANK_WORSHIP,
					this.onWorship, this), this._dispatcher.addEventListener(e.RANKSELECT, this.onSelected, this), this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.preClick, this, this._view.prebutton), this._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, this.nextClick, this, this._view.nextbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onWorshipClick, this, this._view.img_btn)
		}, e.prototype.preClick = function(t) {
			this._rankScroller.selectClick(0, 5, !1)
		}, e.prototype.nextClick = function(t) {
			this._rankScroller.selectClick(2, 5, !0)
		}, e.prototype.onSelected = function(t) {
			this.selectedIndexChange(t)
		}, e.prototype.selectedIndexChange = function(t) {
			if (this._currentTab != t) switch (this._currentTab = t, this.clearAvatar(), t) {
				case 0:
					this._type = EnumRankType.LEVEL_TOP_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.LEVEL_TOP_RANK,
						1);
					break;
				case 1:
					this._type = EnumRankType.FIGHT_POWER_TOP_KEY, RankListCommandSender.getRankListInfo(0, EnumRankType.FIGHT_POWER_TOP_KEY,
						1);
					break;
				case 4:
					this._type = EnumRankType.WEIWANG_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.WEIWANG_RANK, 1);
					break;
				case 3:
					this._type = EnumRankType.JUEWEI_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.JUEWEI_RANK, 1);
					break;
				case 2:
					this._type = EnumRankType.SHALU_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.SHALU_RANK, 1);
					break;
				case 5:
					this._type = EnumRankType.ACHEVE_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.ACHEVE_RANK, 1);
					break;
				case 6:
					this._type = EnumRankType.ZHUANS_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.ZHUANS_RANK, 1);
					break;
				case 7:
					this._type = EnumRankType.GUANQIA_RANK, RankListCommandSender.getRankListInfo(0, EnumRankType.GUANQIA_RANK, 1)
			}
		}, e.prototype.changePageData1 = function() {
			this._firstRankView && (this._firstRankView.visible = !1), this._view.img_btn.visible = !0, this._view.img_btn.touchEnabled = !
				1, this._vscroller.dataProvider = [], this.clearAvatar(), this._view.rankingTxt.text = "未有人上榜", this._view.kongbaitishi
				.visible = !0, this._view.myrankdata.text = "无", this._view.yingzi0.visible = !1, this._view.yingzi1.visible = !1,
				this._view.yingzi2.visible = !1, this._titleEffect && (this._titleEffect.visible = !1)
		}, e.prototype.changePageData = function(t) {
			t.rankType == this._type && (this._view.img_btn.touchEnabled = !0, this._rankInfo = t, this._view.kongbaitishi.visible = !
				1, this._view.rankingTxt.text = -1 == t.myRank || t.myRank >= e.PERPAGENUM ? "我的排名:未上榜" : "我的排名:第" + (t.myRank +
					1) + "名", this.setListData(), this.getMydata(), this.onWorship())
		}, e.prototype.getMydata = function() {
			if (e.RANK_TYPE == EnumRankType.LEVEL_TOP_RANK) this._view.myrankdata.text = "等级:" + App.global.characterData.level,
				this.idpos = 0;
			else if (e.RANK_TYPE == EnumRankType.ZSFIGHT_TOP_RANK) this._view.myrankdata.text = "战斗力:" + StringUtil.formatNum(
				App.data.characterCenter.roleSumFight, !0, !1, !0), this.idpos = 1;
			else if (e.RANK_TYPE == EnumRankType.JUEWEI_RANK) {
				var t = App.config.q_active_positionContainer.getDataBean(App.data.exploitCenter.position);
				this._view.myrankdata.text = "" + t.q_name_position, this.idpos = 2
			} else if (e.RANK_TYPE == EnumRankType.WEIWANG_RANK) {
				var i = App.config.q_jadeContainer.getDataBean(App.data.exploitCenter.prestigetCenter.prestigeID);
				this._view.myrankdata.text = "" + i.q_name, this.idpos = 3
			} else e.RANK_TYPE == EnumRankType.SHALU_RANK ? (this._view.myrankdata.text = "杀意:" + App.data.getWangZheZBCenter()
				.shayi, this.idpos = 2) : e.RANK_TYPE == EnumRankType.ACHEVE_RANK ? (App.data.achieveCenter.id ? this._view.myrankdata
				.text = "" + App.config.q_successContainer.getDataBean(App.data.achieveCenter.id).q_success_name : this._view.myrankdata
				.text = "无", this.idpos = 4) : e.RANK_TYPE == EnumRankType.ZHUANS_RANK ? (this._view.myrankdata.text = "转生:" +
				App.global.characterData.zhuanSheng, this.idpos = 5) : e.RANK_TYPE == EnumRankType.GUANQIA_RANK && (this._view.myrankdata
				.text = "第" + App.data.zoneCenter.getMyZoneData().bean.q_duplicate_name + "关", this.idpos = 6)
		}, e.prototype.onWorship = function() {
			var t = App.config.q_globalContainer.getDataBean(301),
				i = t.q_string_value.split("_"),
				n = e.WORSHIP_TYPES ? e.WORSHIP_TYPES : [];
			this._view.groupReward.visible = !1;
			for (var a = 0; a < i.length; a++)
				if (i[a] == "" + this._type) {
					this._view.groupReward.visible = !0;
					break
				} var o = App.global.characterData.level;
			t = App.config.q_globalContainer.getDataBean(302);
			for (var r = t.q_string_value.split("#"), a = 0; a < r.length; a++) {
				var s = r[a].split("_");
				o > Number(s[0]) && (this._view.money_txt.text = "金币：" + StringUtil.formatMoney(Number(s[2])), this._view.exp_txt.text =
					"经验：" + StringUtil.formatMoney(Number(s[1])))
			}
			this._view.img_btn.visible = !0, this._view.img_get.visible = !1;
			for (var a = 0; a < n.length; a++)
				if (n[a] == this._type) {
					this._view.img_btn.visible = !1, this._view.img_get.visible = !0;
					break
				}
		}, e.prototype.onWorshipClick = function(t) {
			RankListCommandSender.sendC2S_RankWorshipMessage(this._type)
		}, e.prototype.setListData = function() {
			this._vscroller.dataProvider = [];
			for (var t = [], e = 0; e < this._rankInfo.rankInfoVec.length; e++)
				if (t.push(this._rankInfo.rankInfoVec[e]), 0 != e);
				else {
					var i = this._rankInfo.rankInfoVec[e];
					CharacterUICommandSender.checkPalyerInfo(i.playerId, 1, !1)
				} this._vscroller.dataProvider = t, this._vscroller.viewport && (this._vscroller.viewport.scrollV = 0), this.showdata(
				this._rankInfo.rankInfoVec[0])
		}, e.prototype.showFirstAvatar = function(t) {
			if (null != t) {
				this.clearAvatar(), this._avatar = new CUIShowAvatar, this._avatar.x = 325, this._avatar.y = 310, this._avatar.scaleX =
					.8, this._avatar.scaleY = .8, this._avatar.touchEnabled = !1, this._view.addChild(this._avatar);
				var e = t.equips,
					i = EnumRole.getDefaultBody(t.job, t.sex);
				if (this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, t.sex, i), null != e)
					for (var n = 0; n < e.length; n++) {
						var a = e[n],
							o = GameUtil.getItemConfigData(a.itemId);
						if (null != o) {
							var r = t.sex,
								s = o.q_equip_resource;
							a.position == EnumEquipType.WU_QI ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, r, s) : a.position ==
								EnumEquipType.YI_FU && this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, r, s)
						}
					}
				for (var h = App.config.q_surfaceContainer.getDataBean(this.titleArray[this.idpos]), l = 0; l < t.showSurfaceInfo.length; l++) {
					var p = t.showSurfaceInfo[l];
					this.showSurface(p, t)
				}
				this._view.yingzi0.visible = !0, this._view.yingzi1.visible = !1, this._view.yingzi2.visible = !1, t.followerList &&
					t.followerList.length > 0 && this.showOtherView(t.followerList), this._titleEffect ? this._titleEffect.url =
					ResPathUtil.getTitleEffect(h.q_scene_show_id) : this._titleEffect = EffectUtils.showCEffect(this, this,
						ResPathUtil.getTitleEffect(h.q_scene_show_id), 325, 150, this._titleEffect), this._titleEffect.visible = !0,
					this._avatar.setWingPos(-40)
			}
		}, e.prototype.showOtherView = function(t) {
			for (var e = 0; e < t.length; e++) 0 == e ? (this._avatar2 = new CUIShowAvatar, this._avatar2.x = 120, this._avatar2
				.y = 350, this._avatar2.scaleX = .64, this._avatar2.scaleY = .64, this._avatar2.touchEnabled = !1, this._view.avaterGroup
				.addChild(this._avatar2), this._avatargict.put(e, this._avatar2), this._view.yingzi1.visible = !0, this._avatar2.setWingPos(
					-40)) : (this._avatar3 = new CUIShowAvatar, this._avatar3.x = 530, this._avatar3.y = 350, this._avatar3.scaleX =
				.64, this._avatar3.scaleY = .64, this._avatar3.touchEnabled = !1, this._view.avaterGroup.addChild(this._avatar3),
				this._avatargict.put(e, this._avatar3), this._view.yingzi2.visible = !0, this._avatar3.setWingPos(-40));
			for (var i = 0; i < t.length; i++) {
				var n = void 0 == t[i].equips ? null : t[i].equips,
					a = EnumRole.getDefaultBody(t[i].job, t[i].sex);
				if (this._avatargict.get(i).changePlayerRolePartResource(AvatarPartType.BODY, t[i].sex, a), null != n)
					for (var e = 0; e < n.length; e++) {
						var o = n[e],
							r = GameUtil.getItemConfigData(o.itemModelId),
							s = GameUtil.getEquipConfigData(o.itemModelId);
						if (null != s) {
							var h = (t[i].sex, r.q_equip_resource);
							s.q_kind == EnumEquipType.WU_QI ? (this._avatargict.get(i).changePlayerRolePartResource(AvatarPartType.WEAPON,
									t[i].sex, h), this._avatargict.get(i).avatarKeyPart = AvatarPartType.WEAPON) : s.q_kind == EnumEquipType.YI_FU &&
								this._avatargict.get(i).changePlayerRolePartResource(AvatarPartType.BODY, t[i].sex, h)
						}
					}
				for (var l = 0; l < t[i].showSurfaceInfo.length; l++) {
					var p = t[i].showSurfaceInfo[l];
					this.showOtherSurface(p, t[i], 0, this._avatargict.get(i))
				}
			}
		}, e.prototype.showOtherSurface = function(t, e, i, n) {
			void 0 === t && (t = null), void 0 === i && (i = 0);
			var a = null != t ? t.surfaceId : i;
			if (-1 != a) {
				var o = App.config.q_surfaceContainer.getDataBean(a);
				if (o)
					if (1 == o.q_type) t && "" != t.detailMap && (this._wingWish = StringUtil.JsonParse(t.detailMap).luck), this.wearWing(
						a, n);
					else if (2 == o.q_type);
				else if (4 == o.q_type) {
					1 == o.q_head_hide && n.removePart(AvatarPartType.HEAD);
					var r = o.q_scene_show_id;
					n.changePlayerRolePartResource(AvatarPartType.BODY, e.sex, r)
				} else if (5 == o.q_type) {
					var r = o.q_scene_show_id;
					n.changePlayerRolePartResource(AvatarPartType.WEAPON, e.sex, r)
				}
			}
		}, e.prototype.showSurface = function(t, e, i) {
			void 0 === t && (t = null), void 0 === i && (i = 0);
			var n = null != t ? t.surfaceId : i;
			if (-1 != n) {
				var a = App.config.q_surfaceContainer.getDataBean(n);
				if (a)
					if (1 == a.q_type) t && "" != t.detailMap && (this._wingWish = StringUtil.JsonParse(t.detailMap).luck), this.wearWing(
						n, this._avatar), 501 == n ? this._avatar.setWingPos(35) : this._avatar.setWingPos(0);
					else if (2 == a.q_type);
				else if (4 == a.q_type) {
					1 == a.q_head_hide ? this._avatar.removePart(AvatarPartType.HEAD) : e && e.otherRoleData && this.showSurface(null,
						e, e.otherRoleData.surfaceManager.getShowSurfaceByType(3, 4));
					var o = a.q_scene_show_id;
					this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, e.sex, o)
				} else if (5 == a.q_type) {
					var o = a.q_scene_show_id;
					this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, e.sex, o)
				}
			}
		}, e.prototype.wearWing = function(t, e) {
			if (void 0 === t && (t = -1), this._wingLevel = t, 0 == t) e.removePart(AvatarPartType.WING);
			else {
				var i = App.config.q_surfaceContainer.getDataBean(t),
					n = i.q_scene_show_id;
				switch (i.q_type) {
					case 1:
						e.changePlayerRolePartResource(AvatarPartType.WING, 1, n);
						break;
					case 2:
				}
			}
		}, e.prototype.showdata = function(t) {
			void 0 === t && (t = null), t && (0 == this._currentTab ? e.RANK_TYPE = EnumRankType.LEVEL_TOP_RANK : 1 == this._currentTab ?
				e.RANK_TYPE = EnumRankType.ZSFIGHT_TOP_RANK : 4 == this._currentTab ? e.RANK_TYPE = EnumRankType.WEIWANG_RANK : 3 ==
				this._currentTab ? e.RANK_TYPE = EnumRankType.JUEWEI_RANK : 2 == this._currentTab ? e.RANK_TYPE = EnumRankType.SHALU_RANK :
				5 == this._currentTab ? e.RANK_TYPE = EnumRankType.ACHEVE_RANK : 6 == this._currentTab ? e.RANK_TYPE =
				EnumRankType.ZHUANS_RANK : 7 == this._currentTab && (e.RANK_TYPE = EnumRankType.GUANQIA_RANK))
		}, e.prototype.clearAvatar = function() {
			this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose());
			for (var t = 0; t < this._avatargict.length; t++) this._avatargict.get(t).parent && this._avatargict.get(t).parent.removeChild(
				this._avatargict.get(t)), this._avatargict.get(t).dispose()
		}, e.prototype.hide = function() {
			t.prototype.hide.call(this), this.clearAvatar(), this._vscroller.removeAll()
		}, e.prototype.dispose = function() {
			this.window && (this.window.dispose(), this.window = null), this._titleEffect && this._titleEffect.dispose(), this._titleEffect =
				null, this._vscroller.removeAll(), this._vscroller.dispose(), this._vscroller = null, this._currentTab = -1, this._rankInfo =
				null, this._firstRankView = null, this._type = -1, this._view.dispose(), this._view = null, this.clearAvatar(), t.prototype
				.dispose.call(this)
		}, Object.defineProperty(e.prototype, "roleData", {
			get: function() {
				return App.global.characterData
			},
			enumerable: !0,
			configurable: !0
		}), e.RANKSELECT = "RankPanel.RANKSELECT", e.PERPAGENUM = 50, e.RANK_TYPE = 0, e.WORSHIP_TYPES = new Array, e.ISFIRST = !
		0, e
}(BasePanel);
__reflect(RankPanel.prototype, "RankPanel");
var RankSelectItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.currindex = 0, e.skinName = "RankSelectSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.imgselect.visible = !1
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this), this._dispatcher.addEventListener(RankPanel.RANKSELECT, this.onSelected, this)
	}, e.prototype.onSelected = function(t) {
		this.imgselect.visible = this.index == t, this.currindex = t
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.index = this.data, this.imghead.source = "rankview_btn_" + this.index + "_png", this.imgselect.visible = this.index ==
			this.currindex
	}, e.prototype.onTouch = function(t) {
		App.dispatcher.dispatchEvent(RankPanel.RANKSELECT, this.index)
	}, e
}(ItemRenderer);
__reflect(RankSelectItem.prototype, "RankSelectItem");
var RetRankInfo = function() {
	function t() {}
	return t
}();
__reflect(RetRankInfo.prototype, "RetRankInfo");
var ChargeItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ChargeItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._rmbNumber = NumberBitmapCache.show("", "10", 0, 0, "chargeNumber"), this._rmbNumber.x = 0, this._rmbNumber.y =
			0, this.rmbRoot.addChild(this._rmbNumber), this._yuanbaoNumber = NumberBitmapCache.show("", "10", 0, 0,
				"chargeNumber"), this._yuanbaoNumber.x = 0, this._yuanbaoNumber.y = 0, this.yuanbaoRoot.addChild(this._yuanbaoNumber)
	}, e.prototype.setBean = function(t) {
		egret.Capabilities.os == h5_engine.OsType.IOS ? this.index = t.q_id - 1 : this.index = t.q_id - 1 - 63, this.config =
			t
	}, e.prototype.updateItem = function(t) {
		if (null != t) {
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this), this.data = t;
			var e = 0,
				i = App.data.getVipCenter()._yichongzhiarr;
			if (i)
				for (var n = App.data.getVipCenter()._yichongzhiarr.length, a = 0; n > a; a++)
					if (i[a] == this.config.q_id) {
						this.data.isDouble = !1;
						break
					} this.data.isDouble ? (e = this.config.q_first_yuanbao, this.tagDouble.visible = !0, this.tag_im.visible = !0) :
				(e = this.config.q_yuanbao, this.tagDouble.visible = !1, this.tag_im.visible = !1);
			var o = Math.floor(e / 1e3).toString().length;
			1 == o ? this._yuanbaoNumber.x = 15 : 2 == o ? this._yuanbaoNumber.x = 0 : 3 == o && (this._yuanbaoNumber.x = -15),
				this._rmbNumber.show(this.config.q_rmb_num + "", 0, 0, "num"), this._yuanbaoNumber.show(e + "", 0, 0, "yuanbao"),
				this._rmbNumber.alpha = 1, this._yuanbaoNumber.alpha = 1;
			var r = this.config ? this.config.q_rmb_num : 10;
			this.icon_bg.source = "charge_icon_" + r + "_png"
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.onTouch = function(t) {
		App.platform.pay("" + this.config.q_id, "充值", "", this.config.q_rmb_num)
	}, e.prototype.dispose = function() {
		null != this._rmbNumber && (this._rmbNumber.dispose(), this._rmbNumber = null), null != this._yuanbaoNumber && (
				this._yuanbaoNumber.dispose(), this._yuanbaoNumber = null), this._rmbNumber = null, this._yuanbaoNumber = null,
			this.data = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ChargeItem.prototype, "ChargeItem");
var ChargePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentIndex = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = new WindowMain;
		this.addChild(t), t.imgTitle.source = "titleview_chongzhi_png", t.show(), this._view = UIMaker.createViewBase(
				"ChargePanelSkin"), this._view.y += 63, this._btnClose = t.close_btn, t.viewContainer.addChild(this._view), this.chargeItemArr = [],
			this.recharArr = [];
		var e = App.config.q_rechargeContainer.list,
			i = App.config.q_rechargeContainer.list.length,
			n = 1;
		egret.Capabilities.os == h5_engine.OsType.IOS && (n = 2);
		for (var a = 0; i > a; a++)(e[a].q_type == n || 0 == e[a].q_type) && this.recharArr.push(e[a]);
		this.count = this.recharArr.length;
		for (var o = 0; o < this.count; o++) {
			var r = new ChargeItem;
			r.setBean(this.recharArr[o]), this.chargeItemArr.push(r), o % 2 == 0 ? r.x = 8 : r.x = 320, r.y = 142 * Math.floor(
				o / 2) + 8, this._view.ItemGrop.addChild(r)
		}
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this.addEvent(), this.updataPanel();
		var i = !1;
		egret.Capabilities.os == h5_engine.OsType.IOS && Config.isWxGame && (i = !0), this._view.groupMain.visible = !i,
			this._view.desc_txt.visible = i
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		for (var e = 0; e < this.chargeItemArr.length; e++) this.chargeItemArr[e].dispose();
		this.chargeItemArr = null, t.prototype.dispose.call(this)
	}, e.prototype.updataPanel = function() {
		for (var t = 0; t < this.chargeItemArr.length; t++) {
			var e = {
				isDouble: !0
			};
			this.chargeItemArr[t].updateItem(e)
		}
	}, e.prototype.onOpenVipPanel = function() {
		PanelOpenManager.openPanel(35, null, !0), this.onClose()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(VipEvent.VIP_INFO_REFRESH, this.infoHandler, this), this._dispatcher.addEventListener(
				VipEvent.VIP_LEVEL_UP, this.levelChange, this), this._dispatcher.addEventListener(VipEvent.CHONGZHI, this.updataPanel,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenVipPanel, this, this._view.btnChongZhi),
			VipCommandSender.requestC2S_VipInfo()
	}, e.prototype.infoHandler = function(t) {
		var e = App.data.getVipCenter().getVipExp();
		this._view.imgCurVip.source = "vip_vippos" + t + "_png";
		var i, n =
			"<font color='#b19c79'>再充值</font><font color='#eaf44b'>{0}元宝</font><font color='#b19c79'>成为</font><font color='#fff82e'>VIP{1}</font>";
		if (t < App.data.getVipCenter().getMaxVipLevel() ? (i = App.config.q_vipContainer.getDataBean(t + 1), this._view.lalZcz
				.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(n, i.q_vip_value - e, i.q_vip_level))) : (i = App.config.q_vipContainer
				.getDataBean(t), n = "已达最高VIP等级", this._view.lalZcz.text = n), this.refreshExp(e, t), t >= App.data.getVipCenter()
			.getMaxVipLevel() ? t = App.data.getVipCenter().getMaxVipLevel() : t++, App.global.characterData.vipLevel > 0)
			for (var a = App.global.characterData.vipLevel, o = 1; a >= o; o++)
				if (1 != App.data.getVipCenter().getptLibaoState(o)) {
					t = o;
					break
				}
	}, e.prototype.refreshExp = function(t, e) {
		var i;
		i = e < App.data.getVipCenter().getMaxVipLevel() ? App.config.q_vipContainer.getDataBean(e + 1) : App.config.q_vipContainer
			.getDataBean(e);
		var n = i.q_vip_value,
			a = 235;
		this._view.progressYuanBao.width = Math.min(1, t / n) * a, this._view.lalYuanBaoPer.text = t + "/" + n
	}, e.prototype.levelChange = function(t) {
		this.infoHandler(t)
	}, e
}(BasePanel);
__reflect(ChargePanel.prototype, "ChargePanel");
var ChargeItemData = function() {
	function t() {}
	return t.prototype.updateData = function(t) {
		this.index = t.q_id - 1, this.isDouble = !0, this.config = t
	}, t
}();
__reflect(ChargeItemData.prototype, "ChargeItemData");
var FirstFlushPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.currentIndex = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("FirstFlushSkin"), this.addChild(this._view), this.setWidthAndHeight(this._view
			.width, this._view.height), this._gridHash = new HashObject;
		for (var t = new egret.Rectangle(0, 0, 76, 76), e = App.config.q_activitiesContainer.getDataBean(ActivityCenter.firstChargeAct),
				i = ItemUtil.getRewardDataList(e.q_show_rewards), n = 0; n < i.length; n++) {
			var a = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			a.x = 91 * (n % 5) + 0, a.setIconSize(t, t), a.isShowCount = !0, a.isShowDesc = !0, a.setBgVisible(!0), this._gridHash
				.put(n, a), this._view.gridgroup.addChild(a)
		}
		App.data.getVipCenter()._firstRechange = !1, App.global.redPoint.redPointDispatchEvent(130), App.global.redPoint.redPointDispatchEvent(
			45), EffectUtils.showCEffect(this, this._view.effgroup, ResPathUtil.getMenuEffect("main", "firstflushbtn"), 105,
			40)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.showText(), this.updatePanelTab()
	}, e.prototype.updateActList = function() {
		console.log("定时更新"), this.setTouchEnabled(!0), ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([e.ACT1, e.ACT2,
			e.ACT3
		])
	}, e.prototype.updatePanelTab = function() {
		var t = 1,
			i = App.data.activityCenter.getData(e.ACT1);
		0 == i.playerStates && (t = 2, 0 == App.data.activityCenter.getData(e.ACT2).playerStates && (t = 3)), this["onTab" +
			t](null), this.updatePanel()
	}, e.prototype.clearEffect = function() {
		this.ceffext && (this.ceffext.stop(), this.ceffext.dispose(), this.ceffext = null), this.showCeffect && (this.showCeffect
			.stop(), this.showCeffect.dispose(), this.showCeffect = null)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), console.log("清除定时更新"), App.timer.clearTimer(this.updateActList, this), this.clearEffect(),
			this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), console.log("清除定时更新"), App.timer.clearTimer(this.updateActList, this), this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash = null
		}
		this._view && (this._view.dispose(), this._view = null)
	}, e.prototype.showText = function() {
		this._view.text0.textFlow = HtmlUtil.getHtmlStr("获得<font color='0x17cd17' size='22' >4000</font>元宝"), this._view.text1
			.textFlow = HtmlUtil.getHtmlStr("获得<font color='0x17cd17' size='22' >9000</font>元宝"), this._view.text2.textFlow =
			HtmlUtil.getHtmlStr("获得<font color='0x17cd17' size='22' >25000</font>元宝"), this._view.text3.textFlow = HtmlUtil.getHtmlStr(
				"获得<font color='0x17cd17' size='22' >49000</font>元宝")
	}, e.prototype.showgridreward = function(t) {
		var e = App.config.q_activitiesContainer.getDataBean(t),
			i = ItemUtil.getRewardDataList(e.q_show_rewards);
		this.showCeffect = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect("panel", "" + e.q_icon2),
			230, 380);
		for (var n = 0; n < i.length; n++) {
			var a = this._gridHash.get(n);
			a.setData(i[n])
		}
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick, this, this._view.btn1), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick, this, this._view.btn2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.rechageClick, this, this._view.btn3), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.rechageClick, this, this._view.btn4), this._dispatcher.addEventListener(ActivityEvent.REFRESH_BRIEF,
				this.onRechageClick, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this,
				this._view.btnclose), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._view
				.groupClick), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTab1, this, this._view.select1Btn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTab2, this, this._view.select2Btn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTab3, this, this._view.select3Btn), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.updatePanel, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onGetReward, this, this._view.getNowbtn)
	}, e.prototype.onGetReward = function(t) {
		if (this.currentIndex != e.ACT1 && this.currentIndex != e.ACT2 && this.currentIndex != e.ACT3) return void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">异常currentIndex:" + this.currentIndex + "</font>");
		if (null == this.currentData) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">异常currentData:" + this.currentData + "</font>");
		if (1 == this.currentData.playerStates);
		else if (0 != this.currentData.playerStates) {
			var i = "不可领取";
			return this.currentIndex == e.ACT2 && (i = "第二天登录即可领取奖励"), this.currentIndex == e.ACT3 && (i = "第三天登录即可领取奖励"),
				void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">" + i + "</font>")
		}
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.currentIndex)
	}, e.prototype.updatePanel = function() {
		var t = App.data.activityCenter.getData(e.ACT1);
		2 == t.playerStates ? (this._view.chooseOnePayGroup.visible = !0, this._view.getNowGroup.visible = !1) : (this._view
			.chooseOnePayGroup.visible = !1, this._view.getNowGroup.visible = !0), this.updateRed(), this.viewUpdateShow()
	}, e.prototype.updateButtonState = function(t) {
		if (this.currentData = t, 1 == t.playerStates) this._view.getNowbtn.label = "立即领取", this._view.getNowbtn.touchEnabled =
			this._view.getNowbtn.touchChildren = !0;
		else if (0 == t.playerStates) this._view.getNowbtn.label = "已领取", this._view.getNowbtn.touchEnabled = this._view.getNowbtn
			.touchChildren = !1;
		else {
			var i = "不可领取";
			this.currentIndex == e.ACT2 && (i = "第二天可领"), this.currentIndex == e.ACT3 && (i = "第三天可领"), this._view.getNowbtn.label =
				i, this._view.getNowbtn.touchEnabled = this._view.getNowbtn.touchChildren = !0
		}
	}, e.prototype.onTab1 = function(t) {
		this.currentIndex = e.ACT1, this.viewUpdateShow()
	}, e.prototype.onTab2 = function(t) {
		this.currentIndex = e.ACT2, this.viewUpdateShow()
	}, e.prototype.onTab3 = function(t) {
		this.currentIndex = e.ACT3, this.viewUpdateShow()
	}, e.prototype.viewUpdateShow = function() {
		this._view.select1Btn.alpha = this.currentIndex == e.ACT1 ? 1 : .1, this._view.select2Btn.alpha = this.currentIndex ==
			e.ACT2 ? 1 : .1, this._view.select3Btn.alpha = this.currentIndex == e.ACT3 ? 1 : .1, this._view.select1Lb.textColor =
			this.currentIndex == e.ACT1 ? 16636802 : 13987897, this._view.select2Lb.textColor = this.currentIndex == e.ACT2 ?
			16636802 : 13987897, this._view.select3Lb.textColor = this.currentIndex == e.ACT3 ? 16636802 : 13987897, this.showgridreward(
				this.currentIndex);
		var t = App.data.activityCenter.getData(this.currentIndex);
		this.updateButtonState(t)
	}, e.prototype.updateRed = function() {
		var t = App.data.activityCenter.getData(e.ACT1);
		UIMaker.showPoint(this._view.redGroup1, this, t ? 1 == t.playerStates : !1);
		var i = App.data.activityCenter.getData(e.ACT2);
		UIMaker.showPoint(this._view.redGroup2, this, i ? 1 == i.playerStates : !1);
		var n = App.data.activityCenter.getData(e.ACT3);
		UIMaker.showPoint(this._view.redGroup3, this, n ? 1 == n.playerStates : !1)
	}, e.prototype.onRechageClick = function(t) {
		this.updatePanelTab();
		var i = (App.data.activityCenter.getData(ActivityCenter.firstChargeAct), App.data.activityCenter.getData(e.ACT1));
		if (!i || 1 != i.playerStates) {
			var n = App.data.activityCenter.getData(e.ACT2);
			if (!n || 1 != n.playerStates) {
				var a = App.data.activityCenter.getData(e.ACT3);
				a && 1 == a.playerStates || App.panel.removePanel(55)
			}
		}
	}, e.prototype.rechageClick = function(t) {
		var e = "",
			i = 0,
			n = App.config.q_activitiesContainer.getDataBean(ActivityCenter.firstChargeAct);
		t.currentTarget == this._view.btn1 ? (e = "52", i = 8) : t.currentTarget == this._view.btn2 ? (e = "53", i = 18) :
			t.currentTarget == this._view.btn3 ? (e = "54", i = 50) : t.currentTarget == this._view.btn4 && (e = "55", i = 98),
			e && 0 != i && (this.setTouchEnabled(!1), App.timer.clearTimer(this.updateActList, this), App.timer.doTimeLoop(
				this, 3e3, this.updateActList), App.platform.pay(e, "首充", "" + n.q_desc, i, new FunctionVO(this.succClick, this),
				new FunctionVO(this.failClick, this), new FunctionVO(this.canelClick, this)))
	}, e.prototype.succClick = function(t) {
		this.setTouchEnabled(!1)
	}, e.prototype.failClick = function(t) {
		this.setTouchEnabled(!0)
	}, e.prototype.canelClick = function(t) {
		this.setTouchEnabled(!0)
	}, e.prototype.setTouchEnabled = function(t) {
		this._view.btn1.touchEnabled = this._view.btn1.touchChildren = t, this._view.btn2.touchEnabled = this._view.btn2.touchChildren =
			t, this._view.btn3.touchEnabled = this._view.btn3.touchChildren = t, this._view.btn4.touchEnabled = this._view.btn4
			.touchChildren = t
	}, e.ACT1 = 20017, e.ACT2 = 20018, e.ACT3 = 20019, e
}(BasePanel);
__reflect(FirstFlushPanel.prototype, "FirstFlushPanel");
var GetRedEnvelopesView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"GetRedEnvelopesViewSkin"), this._window.viewContainer.addChild(this._view), this._window.setHeight(541), this._window
			.close_btn.visible = this._window.bg0.visible = this._window.bg.visible = !1, null == this.bgimg && (this.bgimg =
				UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("fuli/hongbao2"), 0, 0)), null == this.bgimg1 &&
			(this.bgimg1 = UIMaker.getCImage(this._view, this, ResPathUtil.getImgPath("fuli/hongbao3"), 50, 0), this.bgimg1.touchEnabled = !
				0), null == this.bgimg2 && (this.bgimg2 = UIMaker.getCImage(this._view, this, ResPathUtil.getImgPath(
				"fuli/hongbaokai"), 179, 79), this.bgimg2.touchEnabled = !0), this._view.chongzhi.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatUnderline("成为VIP"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onchongzhiClick,
				this, this._view.chongzhi), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.playEffeck, this,
				this), this._view.nametext.text = "" + App.global.characterData.name, this._view.headimg.source = GridUtil.getHead(
				App.global.characterData.job, App.global.characterData.sex), this._view.curryuanbao.visible = !1, this._view.leijiyuanbao
			.visible = !1, this._window.groupClick.visible = !1, this._view.zhedang.touchEnabled = !0, this.bgimg2.visible = !
			0, this.bgimg1.visible = !0
	}, e.prototype.playEffeck = function(t) {
		var e = App.data.moonCardCenter.redenve;
		this._view.curryuanbao.text = "" + e.num, App.global.characterData.vipLevel >= 1 ? this._view.leijiyuanbao.text =
			"" + e.vipnum : this._view.leijiyuanbao.text = "" + e.vipsum, App.global.characterData.vipLevel < 1 ? (this._view.chongzhi
				.visible = !0, this._view.titleimg.source = "loginreward_hbtitle2_png") : (this._view.chongzhi.visible = !1, this
				._view.titleimg.source = "loginreward_hbtitle1_png"), this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP,
				this.playEffeck, this, this), this.bgimg2.visible = !1, this._view.zhedang.touchEnabled = !1, EffectUtils.showOnceEffect(
				this, this._view, ResPathUtil.getMenuEffect("panel", "hongbaoeffect"), 263, 157), App.timer.doTimeOnce(this, 500,
				this.remove)
	}, e.prototype.remove = function() {
		this.bgimg1.visible = !1, this._window.groupClick.visible = !0, this._view.curryuanbao.visible = !0, this._view.leijiyuanbao
			.visible = !0
	}, e.prototype.onchongzhiClick = function(t) {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.remove, this), t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 510
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 541
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.bgimg1 && (this.bgimg1.dispose(), this.bgimg1 = null),
			this.bgimg2 && (this.bgimg2.dispose(), this.bgimg2 = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GetRedEnvelopesView.prototype, "GetRedEnvelopesView");
var GuanzhuTipView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase("GuanZhuTipSkin"),
			this._window.viewContainer.addChild(this._view), this._window.setHeight(578), this._window.close_btn.visible =
			this._window.title_txt.visible = this._window.bg0.visible = this._window.bg.visible = !1, this._btnClose = this._window
			.close_btn = this._view.btnclose, null == this.bgimg && (this.bgimg = UIMaker.getCImage(this._view.bggroup, this,
				ResPathUtil.getImgPath("fuli/bg_032")))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this,
			this._view.btn), this.clearEffect(), this._effBG = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"rexue", "btneffect"), this._view.btn.x + 90, this._view.btn.y + 33)
	}, e.prototype.onBtnClick = function(t) {
		App.panel.openPanel(10013), App.panel.removePanel(10012)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearEffect()
	}, e.prototype.clearEffect = function() {
		this._effBG && (this._effBG.stop(), this._effBG.dispose(), this._effBG = null)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 539
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 578
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GuanzhuTipView.prototype, "GuanzhuTipView");
var GuanZhuView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase("GuanZhuSkin"),
			this._window.viewContainer.addChild(this._view), this._window.setHeight(537), this._window.setTitle("友情提示"), this._window
			.bg0.visible = this._window.bg.visible = !1, this._btnClose = this._window.close_btn, null == this.bgimg && (this.bgimg =
				UIMaker.getCImage(this._view, this, ResPathUtil.getImgPath("jiazai_05"), 248, 423), this.bgimg.scaleX = .3, this.bgimg
				.scaleY = .3)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 537
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GuanZhuView.prototype, "GuanZhuView");
var HongBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos1, e), e.setPos(), e._dispatcher = new DispatcherRegister,
			e.touchEnabled = !0, e.anchorOffsetX = 30, e.anchorOffsetY = 40, e
	}
	return __extends(e, t), e.prototype.setPos1 = function() {
		this.x = 110, this.y = Config.SCREEN_HEIGHT - 302
	}, e.prototype.setPos = function() {
		this.x = 110, this.y = -100
	}, e.prototype.show = function(t) {
		this.setPos(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onchongzhiClick, this, this),
			null == this.bgimg && (this.bgimg = new eui.Image, this.addChild(this.bgimg), this.bgimg.source =
				"main_hongbao_png", this.bgimg.scaleX = .4, this.bgimg.scaleY = .4), App.timer.clearTimer(this.flyClick, this),
			TweenLite.to(this, 4, {
				y: Config.SCREEN_HEIGHT - 302,
				onComplete: this.flyClick,
				onCompleteParams: [this],
				onCompleteScope: this
			})
	}, e.prototype.flyClick = function(t) {
		TweenLite.to(this, .08, {
			rotation: 10,
			onComplete: this.yaohuang1,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang1 = function(t) {
		TweenLite.to(this, .16, {
			rotation: -10,
			onComplete: this.yaohuang2,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang2 = function(t) {
		TweenLite.to(this, .08, {
			rotation: 0,
			onComplete: this.yaohuang3,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang3 = function(t) {
		App.timer.doTimeOnce(this, 1e3, this.flyClick)
	}, e.prototype.onchongzhiClick = function(t) {
		this.hide(), VipCommandSender.sendC2S_ReceivehongbaoMessage(App.data.moonCardCenter.redenve.id), App.panel.openPanel(
			3001)
	}, e.prototype.hide = function() {
		TweenLite.killTweensOf(this), App.timer.clearTimer(this.flyClick, this), this._dispatcher.removeAllListeners(),
			this.bgimg && (this.bgimg.parent && this.bgimg.parent.removeChild(this.bgimg), this.bgimg.source = void 0, this.bgimg =
				null)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 150
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 199
		},
		enumerable: !0,
		configurable: !0
	}), e
}(h5_engine.GSprite);
__reflect(HongBaoView.prototype, "HongBaoView");
var JiHuoMaView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "JiHuoMaViewSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath(
			"fuli/bg_033"))), e.txtMsg.type = egret.TextFieldType.INPUT, e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181,
			63, e), e._moneyBar.setMoneyLocationX(-75, 85), e._moneyBar.showBg(!1), e
	}
	return __extends(e, t), e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this,
				this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.btnClose), this
			._dispatcher.addEventListener(egret.FocusEvent.FOCUS_IN, this.onTexClick, this, this.txtMsg), this._dispatcher.addEventListener(
				egret.FocusEvent.FOCUS_OUT, this.onTexOutClick, this, this.txtMsg), this._moneyBar.show()
	}, e.prototype.onBtnClick = function(t) {
		"请输入激活码" != this.txtMsg.text && ActivityCommandSender.sendC2s_card(this.txtMsg.text)
	}, e.prototype.onTexClick = function() {
		"请输入激活码" == this.txtMsg.text && (this.txtMsg.text = "")
	}, e.prototype.onTexOutClick = function() {
		"" == this.txtMsg.text && (this.txtMsg.text = "请输入激活码")
	}, e.prototype.hide = function() {
		this._moneyBar && this._moneyBar.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this.bgimg && (this.bgimg.dispose(), this.bgimg =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(JiHuoMaView.prototype, "JiHuoMaView");
var KunHongbaoItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "KunHongBaoItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		t.prototype.clear.call(this)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.nametext.text = this.data.name, this.itemtext.textFlow = HtmlUtil.getHtmlStr("<font color='" + GameUtil.getItemNameColor(
			this.data.id) + "'>" + GameUtil.getItemConfigData(this.data.id).q_name + "</font>*" + this.data.num)
	}, e
}(ItemRenderer);
__reflect(KunHongbaoItem.prototype, "KunHongbaoItem");
var KunHongBaoShowView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"GetRedEnvelopesViewSkin"), this._window.viewContainer.addChild(this._view), this._window.setHeight(541), this._window
			.close_btn.visible = this._window.bg0.visible = this._window.bg.visible = !1, null == this.bgimg && (this.bgimg =
				UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("fuli/hongbao2"), 0, 0)), null == this.bgimg1 &&
			(this.bgimg1 = UIMaker.getCImage(this._view, this, ResPathUtil.getImgPath("fuli/hongbao3"), 50, 0), this.bgimg1.touchEnabled = !
				0), null == this.bgimg2 && (this.bgimg2 = UIMaker.getCImage(this._view, this, ResPathUtil.getImgPath(
				"fuli/hongbaokai"), 179, 79), this.bgimg2.touchEnabled = !0), this._view.gonxiimg.visible = !1, this._view.zhedang
			.visible = this._view.hongbaoGroup.visible = !1, this._vscroller = new VScrollPanel(268, 90, KunHongbaoItem, 2),
			this._vscroller.move(120, 375, this), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.x = 220, this._grid.y = 250, this.addChild(this._grid)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.playEffeck, this,
			this), this._hbData = e
	}, e.prototype.playEffeck = function(t) {
		this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.playEffeck, this, this), this.bgimg2.visible = !
			1, this._view.zhedang.touchEnabled = !1, EffectUtils.showOnceEffect(this, this._view, ResPathUtil.getMenuEffect(
				"panel", "hongbaoeffect"), 263, 157), App.timer.doTimeOnce(this, 500, this.remove)
	}, e.prototype.refreView = function(t) {
		this.bgimg1.visible = !1, this._view.nametext.textFlow = HtmlUtil.getHtmlStr("来自<font color='0x2bb12a'>" + t.roleInfo
				.name + "</font>的红包"), this._view.headimg.source = GridUtil.getHead(t.roleInfo.job, t.roleInfo.sex), this._grid.setData(
				t.itemId), this._grid.setCount("" + t.itemSum), this._vscroller.dataProvider = t.hongbaoArr, this._view.noimg.visible =
			0 == t.type
	}, e.prototype.remove = function() {
		this.refreView(this._hbData), this._window.groupClick.visible = !0, this._view.curryuanbao.visible = !0, this._view
			.leijiyuanbao.visible = !0
	}, e.prototype.onchongzhiClick = function(t) {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.remove, this), this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 510
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 541
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._grid && (this._grid.dispose(), this._grid = null),
			this._vscroller && (this._vscroller.removeAll(), this._vscroller.dispose(), this._vscroller = null), this.bgimg1 &&
			(this.bgimg1.dispose(), this.bgimg1 = null), this.bgimg2 && (this.bgimg2.dispose(), this.bgimg2 = null), t.prototype
			.dispose.call(this)
	}, e
}(BasePanel);
__reflect(KunHongBaoShowView.prototype, "KunHongBaoShowView");
var KunHongBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return App.dispatcher.addEventListener(EventType.STGAE_RESIZE, e.setPos1, e), e.setPos(), e._dispatcher = new DispatcherRegister,
			e.touchEnabled = !0, e.anchorOffsetX = 30, e.anchorOffsetY = 40, e
	}
	return __extends(e, t), e.prototype.setPos1 = function() {
		this.x = 110, this.y = Config.SCREEN_HEIGHT - 402
	}, e.prototype.setPos = function() {
		this.x = 110, this.y = -100
	}, e.prototype.show = function(t) {
		this.setPos(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onchongzhiClick, this, this),
			null == this.bgimg && (this.bgimg = new eui.Image, this.addChild(this.bgimg), this.bgimg.source =
				"main_hongbao_png", this.bgimg.scaleX = .4, this.bgimg.scaleY = .4), App.timer.clearTimer(this.flyClick, this),
			TweenLite.to(this, 4, {
				y: Config.SCREEN_HEIGHT - 402,
				onComplete: this.flyClick,
				onCompleteParams: [this],
				onCompleteScope: this
			})
	}, e.prototype.flyClick = function(t) {
		TweenLite.to(this, .08, {
			rotation: 10,
			onComplete: this.yaohuang1,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang1 = function(t) {
		TweenLite.to(this, .16, {
			rotation: -10,
			onComplete: this.yaohuang2,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang2 = function(t) {
		TweenLite.to(this, .08, {
			rotation: 0,
			onComplete: this.yaohuang3,
			onCompleteParams: [this],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang3 = function(t) {
		App.timer.doTimeOnce(this, 1e3, this.flyClick)
	}, e.prototype.onchongzhiClick = function(t) {
		1 == App.data.moonCardCenter.kunArr.length && this.hide(), VipCommandSender.sendC2S_getKunDevourRewardsMessage(App.data
			.moonCardCenter.kunArr[0].hongbaoId)
	}, e.prototype.hide = function() {
		TweenLite.killTweensOf(this), App.timer.clearTimer(this.flyClick, this), this._dispatcher.removeAllListeners(),
			this.bgimg && (this.bgimg.parent && this.bgimg.parent.removeChild(this.bgimg), this.bgimg.source = void 0, this.bgimg =
				null)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 150
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 199
		},
		enumerable: !0,
		configurable: !0
	}), e
}(h5_engine.GSprite);
__reflect(KunHongBaoView.prototype, "KunHongBaoView");
var LoginRewardPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.selectID = 0, e.init(), e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 63, e), e._moneyBar.setMoneyLocationX(
			-75, 85), e._moneyBar.showBg(!1), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("LoginRewardSkin"), this.addChild(this._view), this._itemHash = new HashObject,
			this._gridHash = new HashObject, this._activityArray = new Array;
		for (var t = 0; 14 > t; t++) {
			var e = new RewardItem;
			e.x = t % 5 * 100 + 5, 5 > t ? e.y = 0 : 10 > t ? e.y = 141 : e.y = 282, this._itemHash.put(t, e), this._view.allrewardGroup
				.addChild(e)
		}
		for (var i = 0; 4 > i; i++) {
			var n = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			n.x = 85 * i + 190, n.y = 50, this._view.rewardGroup.addChild(n), this._gridHash.put(i, n)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._moneyBar.show(), this.addEvent(), this.showactivity()
	}, e.prototype.showIndexValue = function() {
		var t = new GameEvent(egret.TouchEvent.TOUCH_TAP),
			e = !0;
		t.$currentTarget = this._itemHash.get(0);
		for (var i = 0; i < this._activityArray.length; i++) {
			if (1 == this._activityArray[i].playerStates) {
				t.$currentTarget = this._itemHash.get(i);
				break
			}
			0 == this._activityArray[i].playerStates && i < this._activityArray.length - 1 && (t.$currentTarget = this._itemHash
				.get(i + 1))
		}
		for (var n = "登录天数：<font color = '0x2bb510'>14</font>", i = 0; i < this._activityArray.length; i++) 2 == this._activityArray[
			i].playerStates && e && (e = !1, n = "登录天数：<font color = '0x2bb510'>" + i + "</font>");
		this._view.numday.textFlow = HtmlUtil.getHtmlStr(n), this.rechageClick(t)
	}, e.prototype.showactivity = function() {
		this._activityArray = App.data.activityCenter.getList(9);
		var t = this._activityArray.length;
		if (0 != t) {
			for (var e = 0; t > e; e++) this._itemHash.get(e).showdata(this._activityArray[e]);
			this.showIndexValue()
		}
	}, e.prototype.showSuccess = function(t) {}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getRewardClick, this, this._view.rewardBtn),
			this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity, this), this._dispatcher.addEventListener(
				ActivityEvent.SUCCESS_JOIN, this.showSuccess, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClose, this, this._view.actBg.btn_close);
		for (var t = 0; t < this._itemHash.length; t++) this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick,
			this, this._itemHash.get(t))
	}, e.prototype.getRewardClick = function() {
		0 != this.selectID && ActivityCommandSender.sendC2S_JoinActivityMessage(this.selectID)
	}, e.prototype.rechageClick = function(t) {
		var i = t.currentTarget;
		if (this.selectID != i._data.id) {
			this.selectID = i._data.id;
			for (var n = ItemUtil.getRewardDataList(i._data.bean.q_show_rewards), a = 0; 4 > a; a++) this._gridHash.get(a).setData(
				n[a]);
			App.dispatcher.dispatchEvent(e.LOGINREWARDTOUCH, i._data.bean.q_sort), this._view.theDay.source =
				"loginreward_num" + i._data.bean.q_sort + "_png", this._view.rewardBtn.visible = 1 == i._data.playerStates ? !0 :
				!1
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar && this._moneyBar.hide(), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		if (this._activityArray && (this._activityArray = null), this._moneyBar && (this._moneyBar.dispose(), this._moneyBar =
				null), this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash.dispose(), this._gridHash = null
		}
		if (this._itemHash) {
			for (var e = 0; e < this._itemHash.length; e++) this._itemHash.get(e).dispose();
			this._itemHash.dispose(), this._itemHash = null
		}
		this._view && (this._view = null), t.prototype.dispose.call(this)
	}, e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e.LOGINREWARDTOUCH = "LOGINREWARDTOUCH", e
}(ViewBase);
__reflect(LoginRewardPanel.prototype, "LoginRewardPanel");
var MeirichongzhiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "MeirichongzhiViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("fuli/mrcz"))),
			this._gridHash = new HashObject;
		for (var t = 0; 5 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 89 * t, e.isShowCount = !0, e.isShowDesc = !0, e.setBgVisible(!0), this._gridHash.put(t, e), this.gridgroup.addChild(
				e)
		}
		this._array = []
	}, e.prototype.getdata = function() {
		var t, e = App.data.activityCenter.getList(800, !1, !0),
			i = e.length;
		this._array.length = 0;
		for (var n = 0; i > n; n++) t = e[n], t.activityStates <= 0 || this._array.push(t)
	}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), this.btn_cz.visible = !1, this.addEvent(), this.getdata(), this.refreRed(),
			this._array && this._array.length > 1) {
			this.refreView(this._array[0]), this.btn_10.selected = !0;
			for (var i = 0; i < this._array.length; i++)
				if (1 == this._array[i].playerStates) {
					switch (this.refreView(this._array[i]), this.btn_10.selected = !1, i) {
						case 0:
							this.btn_10.selected = !0;
							break;
						case 1:
							this.btn_50.selected = !0;
							break;
						case 2:
							this.btn_200.selected = !0;
							break;
						case 3:
							this.btn_500.selected = !0
					}
					break
				}
		}
	}, e.prototype.refreView = function(t) {
		this._data = t;
		for (var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards), i = 0; i < this._gridHash.length; i++) {
			var n = this._gridHash.get(i);
			n.setData(null)
		}
		for (var i = 0; i < e.length; i++) {
			var n = this._gridHash.get(i);
			n.setData(e[i])
		}
		this.btn_cz.visible = !1;
		var a = this._data.bean.q_info,
			o = "0";
		if (t.extendMap && "" != t.extendMap) {
			var r = StringUtil.JsonParse(t.extendMap);
			o = Number(r.gold) / 100 + ""
		}
		this.num_lb.text = "当前充值金额（" + o + "/" + a + "）", 1 == t.playerStates ? (this.desc.visible = !1, this.btn_cz.visible = !
				1, this.btn_lq.visible = !0, this.num_lb.text = "") : 0 == t.playerStates ? (this.desc.visible = !0, this.btn_cz.visible = !
				1, this.btn_lq.visible = !1, this.num_lb.text = "") : (this.desc.visible = !1, this.btn_cz.visible = !0, this.btn_lq
				.visible = !1), this.mrEffect ? this.mrEffect.url = "" + ResPathUtil.getMenuEffect("panel", "" + t.bean.q_icon2) :
			this.mrEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "" + t.bean.q_icon2), 194,
				301)
	}, e.prototype.refreRed = function() {
		UIMaker.showPoint(this.redGroup1, this, 1 == this._array[0].playerStates), UIMaker.showPoint(this.redGroup2, this,
				1 == this._array[1].playerStates), UIMaker.showPoint(this.redGroup3, this, 1 == this._array[2].playerStates),
			UIMaker.showPoint(this.redGroup4, this, 1 == this._array[3].playerStates)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.img_close), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBuyBtnClick, this, this.btn_10), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onBuyBtnClick, this, this.btn_50), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onBuyBtnClick, this, this.btn_200), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onBuyBtnClick, this, this.btn_500), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLqBtnClick,
				this, this.btn_lq), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onczClick, this, this.btn_cz),
			this._dispatcher.addEventListener(ActivityEvent.SUCCESS_JOIN, this.joinSuccess, this), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.update, this)
	}, e.prototype.update = function(t) {
		if (void 0 === t && (t = null), t && t.indexOf(this._data.type) > -1) {
			var e = App.data.activityCenter.getData(this._data.id);
			e && this.refreView(e), this.refreRed()
		}
	}, e.prototype.onLqBtnClick = function() {
		this._data && ActivityCommandSender.sendC2S_JoinActivityMessage(this._data.id)
	}, e.prototype.joinSuccess = function(t) {
		var e = App.data.activityCenter.getData(t);
		e && this.refreView(e)
	}, e.prototype.hide = function() {
		this.clearEffect(), this.btn_10.selected = !1, this.btn_50.selected = !1, this.btn_200.selected = !1, this.btn_500.selected = !
			1, t.prototype.hide.call(this)
	}, e.prototype.clearEffect = function() {
		this.mrEffect && (this.mrEffect.stop(), this.mrEffect.dispose(), this.mrEffect = null)
	}, e.prototype.onlqClick = function(t) {}, e.prototype.onczClick = function(t) {
		App.panel.openPanel(205)
	}, e.prototype.onBuyBtnClick = function(t) {
		this.btn_10.selected = !1, this.btn_50.selected = !1, this.btn_200.selected = !1, this.btn_500.selected = !1;
		var e = 0;
		switch (t.currentTarget) {
			case this.btn_10:
				this.btn_10.selected = !0, e = 0;
				break;
			case this.btn_50:
				this.btn_50.selected = !0, e = 1;
				break;
			case this.btn_200:
				this.btn_200.selected = !0, e = 2;
				break;
			case this.btn_500:
				this.btn_500.selected = !0, e = 3
		}
		this.refreView(this._array[e])
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(105)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(), this._array && (this._array = null),
			this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MeirichongzhiView.prototype, "MeirichongzhiView");
var MonthCardPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 63, e), e._moneyBar.setMoneyLocationX(-75, 85),
			e._moneyBar.showBg(!1), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("MonthCardSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this._view.bggroup, this,
				ResPathUtil.getImgPath("fuli/monthcardbg", "", ".jpg"))), this.addEvent(), this.isMooncard(), this.clearEffect(),
			this.moonCardEffect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "mooncard"), 344, 190),
			App.data.moonCardCenter.flag = !1, App.global.redPoint.redPointDispatchEvent(130), App.global.redPoint.redPointDispatchEvent(
				140), this._moneyBar.show(), Guide.getGuide().hide()
	}, e.prototype.isMooncard = function() {
		App.data.moonCardCenter.isCardVip() ? this._view.buyBtn.label = "" + StringUtil.convertTime_4(App.data.moonCardCenter
			.getCardData().remanumberime) : this._view.buyBtn.label = "30元抢购"
	}, e.prototype.timeClick = function() {
		this._view.buyBtn.label = "" + StringUtil.convertTime_4(App.data.moonCardCenter.getCardData().remanumberime)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick, this, this._view.buyBtn), this._dispatcher
			.addEventListener(VipEvent.CARD_BUY_RESULT, this.moonCard, this), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClose, this, this._view.btnClose), this._dispatcher.addEventListener(VipEvent.REFRESH_MOON_CARD,
				this.refrushData, this)
	}, e.prototype.refrushData = function(t) {
		this.isMooncard()
	}, e.prototype.moonCard = function(t) {
		0 == t ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">开通月卡失败</font>") : 1 == t && (Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">已成功开通月卡</font>"), App.global.characterData.autoSettingData.isAutoHeji = !
			0, App.global.characterData.autoSettingData.isAutoClickHeji = 2)
	}, e.prototype.rechageClick = function(t) {
		"30元抢购" == this._view.buyBtn.label ? App.platform.pay("51", "月卡", "", 30) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">您已开通月卡</font>")
	}, e.prototype.clearEffect = function() {
		this.moonCardEffect && (this.moonCardEffect.stop(), this.moonCardEffect.dispose(), this.moonCardEffect = null)
	}, e.prototype.hide = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(), this._moneyBar && this._moneyBar.hide(),
			t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._view &&
			(this._view = null)
	}, e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e
}(ViewBase);
__reflect(MonthCardPanel.prototype, "MonthCardPanel");
var PayViewPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._payText = "wx", e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("PayViewSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSelectClick,
				this, this._view.selectgroup1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSelectClick1,
				this, this._view.selectgroup2), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.buyClick, this,
				this._view.paybtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeClick, this, this._view
				.btnclose), this._bean = App.config.q_recharge_shopContainer.getDataBean(Number(e)), this._view.ordermoney.text =
			"￥ " + this._bean.q_rmb_num, this._view.orderdesc.text = this._bean.q_shop_name, this._payText = "wx", this._view.selectimg1
			.visible = !0, this._view.selectimg2.visible = !1
	}, e.prototype.closeClick = function(t) {
		App.dispatcher.dispatchEvent(EventType.EventTypePaymentPlatform, "canel"), App.panel.removePanel(99999)
	}, e.prototype.buyClick = function(t) {
		App.dispatcher.dispatchEvent(EventType.EventTypePaymentPlatform, this._payText), App.panel.removePanel(99999)
	}, e.prototype.onSelectClick1 = function(t) {
		this._payText = "zfb", this._view.selectimg1.visible = !1, this._view.selectimg2.visible = !0
	}, e.prototype.onSelectClick = function(t) {
		this._payText = "wx", this._view.selectimg1.visible = !0, this._view.selectimg2.visible = !1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 412
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 436
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(PayViewPanel.prototype, "PayViewPanel");
var RedEnvelopesItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RedEnvelopesItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		t.prototype.clear.call(this)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.desc.textFlow = HtmlUtil.getHtmlStr("玩家" + App.global.characterData.name + "领取了<font color='0x2bb12a'>" + this
			.data + "元宝</font>")
	}, e
}(ItemRenderer);
__reflect(RedEnvelopesItem.prototype, "RedEnvelopesItem");
var RedEnvelopesView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RedEnvelopesViewSkin", e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 60, e), e._moneyBar
			.showBg(!1), null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath("fuli/bj", "",
				".jpg"), 0, 3)), e._vscroller = new VScrollPanel(406, 118, RedEnvelopesItem, 2), e.jilugroup.addChild(e._vscroller),
			e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ongetBtnClick,
			this, this.getrewardbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onCloseClick, this,
			this.btnClose), this._moneyBar.show(), this.refreView()
	}, e.prototype.onCloseClick = function(t) {
		App.panel.removePanel(60)
	}, e.prototype.ongetBtnClick = function(t) {
		App.data.moonCardCenter.redenve.vipsum > 0 && 0 == App.global.characterData.vipLevel ? Alert.show(
			"VIP可领取，前往充值成为VIP", "提示", "确定|取消", this.okFunc, this) : 0 == App.data.moonCardCenter.redenve.vipsum ? Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">暂无红包余额领取</font>") : VipCommandSender.sendC2S_ReceivehongbaoMessage(0)
	}, e.prototype.okFunc = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.refreView = function() {
		var t = App.data.moonCardCenter.redenve;
		if (null != t) {
			for (var e = 0, i = 0; i < t.receiverArr.length; i++) e += t.receiverArr[i];
			this.yilingqu.text = "" + e, this.eqailingqu.text = "" + t.vipsum, this._vscroller.dataProvider = t.receiverArr
		}
	}, e.prototype.hide = function() {
		this._moneyBar && this._moneyBar.hide(), this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this.bgimg && (this.bgimg.dispose(), this.bgimg =
				null), this._vscroller && (this._vscroller.removeAll(), this._vscroller.dispose(), this._vscroller = null), t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(RedEnvelopesView.prototype, "RedEnvelopesView");
var RewardItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RewardItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.grid = new ItemGrid, this.grid.isShowTip = !1, this.grid.x = 0, this.grid.y = 0, this.icon.addChild(this.grid),
			this.addEvent()
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.showdata = function(t) {
		this._data = t;
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		this.grid.setData(e[0]), this.numday.source = "loginreward_di" + (t.bean.q_sort - 1) + "_png", 0 == t.playerStates ?
			this.yilingqu.visible = !0 : this.yilingqu.visible = !1
	}, e.prototype.onTouch = function(t) {}, e.prototype.onTouchEvent = function(t) {
		t == this._data.bean.q_sort ? this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"panel", "signeffect"), 46, 67) : this.cleareffect()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this), this._dispatcher.addEventListener(
			LoginRewardPanel.LOGINREWARDTOUCH, this.onTouchEvent, this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners(), this.cleareffect()
	}, e.prototype.cleareffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.dispose = function() {
		this._data = null, this.grid && (this.grid.dispose(), this.grid = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(RewardItem.prototype, "RewardItem");
var SignChouJiangView = function(t) {
	function e() {
		var e = t.call(this) || this;
		e.flag = !1, e.point = 0, e.pointArr = [0, 36, 72, 108, 144, 180, 216, 252, 288, 324], e.postionArr = [new egret.Point(
				283, 171), new egret.Point(381, 195), new egret.Point(454, 286), new egret.Point(454, 383), new egret.Point(381,
				474), new egret.Point(282, 501), new egret.Point(185, 474), new egret.Point(112, 383), new egret.Point(112, 286),
			new egret.Point(185, 195)
		], e.euiSkinName = "SignChouJiangViewSkin", e._gridDict = new HashObject, null == e.bgimg && (e.bgimg = UIMaker.getCImage(
			e.bggroup, e, ResPathUtil.getImgPath("fuli/fxzp_01", "", ".jpg"), 0, -2));
		for (var i = 0; 10 > i; i++) {
			var n = new ItemGrid;
			n.isShowDesc = !1, n.x = e.postionArr[i].x, n.y = e.postionArr[i].y, e.liqugroup.addChild(n), e._gridDict.put(i, n)
		}
		return e._moneyBar = new MoneyBar, e._moneyBar.moveTo(181, 63, e), e._moneyBar.setMoneyLocationX(-75, 85), e._moneyBar
			.showBg(!1), e.gl_lb.textFlow = new Array({
				text: "概率说明",
				style: {
					underline: !0
				}
			}), e
	}
	return __extends(e, t), e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(VipEvent.Turntable, this.showView, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onfenxiangClick, this, this.btn0), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClose, this, this.btnClose), this._moneyBar.show(), this.desc1.textFlow = HtmlUtil.getHtmlStr(
				"" + GameUtil.getGlobalConfigData(275).q_string_value), this.showView(), App.tip.addTip(this.gl_lb, new TipData(1,
				[App.config.q_tipContainer.getDataBean(182).q_tipDesc, "概率说明"]))
	}, e.prototype.showView = function() {
		this.flag = !1, this.btn.touchEnabled = !0, this.btn.filters = [], this.comonarr = App.data.moonCardCenter.getTuranbleList();
		for (var t = this.comonarr.length, e = 0; t > e; e++) {
			var i = this.comonarr[e],
				n = ItemUtil.getRewardDataList(i.q_reward),
				a = this._gridDict.get(e);
			a.setData(n[0]), a.name = "" + i.q_id, i.q_get_order <= App.data.moonCardCenter.turData.sumcount ? (this["gou" + e]
				.visible = !0, a.filters = FilterUtil.FILTER_GRAY) : (this["gou" + e].visible = !1, a.filters = [])
		}
		this.canchoujiangtext.text = "可抽奖次数:" + App.data.moonCardCenter.turData.remainder, 0 == App.data.moonCardCenter.turData
			.remainder && App.platform.agent == EnumPlatform.GAME_37WAN ? (this.btn.visible = !1, this.btn0.visible = !0) : (
				this.btn.visible = !0, this.btn0.visible = !1)
	}, e.prototype.onfenxiangClick = function(t) {
		App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_37_ID, 102)
	}, e.prototype.onBtnClick = function(t) {
		if (!this.flag) {
			if (0 == App.data.moonCardCenter.turData.remainder) return void Notice.showMousePosMessage("<font color=" + Notice
				.MIDDLE_COLOR_2 + ">没有抽奖次数啦!</font>");
			this.flag = !0, this.btn.touchEnabled = !1, this.btn.filters = FilterUtil.FILTER_GRAY;
			for (var e = 0; e < this.comonarr.length; e++)
				if (this.comonarr[e].q_get_order == App.data.moonCardCenter.turData.sumcount + 1) {
					this.point = this.comonarr[e].q_display_order - 1;
					break
				} TweenLite.to(this.img, 4, {
				ease: Cubic.easeOut,
				onStart: this.onStartView(),
				onComplete: this.choujiangClick,
				onCompleteScope: this,
				rotation: 1080 + this.pointArr[this.point]
			})
		}
	}, e.prototype.onStartView = function() {
		App.timer.doFrameLoop(this, 1, this.updeteView)
	}, e.prototype.updeteView = function() {
		var t = Math.abs(Math.ceil(this.img.rotation / 36));
		this.img.rotation >= -18 && this.img.rotation < 18 ? t = 0 : this.img.rotation >= 18 && this.img.rotation < 54 ? t =
			1 : this.img.rotation >= 54 && this.img.rotation < 90 ? t = 2 : this.img.rotation >= 90 && this.img.rotation < 126 ?
			t = 3 : this.img.rotation >= 126 && this.img.rotation < 162 ? t = 4 : this.img.rotation >= 162 && this.img.rotation <
			-162 ? t = 5 : this.img.rotation >= -162 && this.img.rotation < -126 ? t = 6 : this.img.rotation >= -126 && this.img
			.rotation < -90 ? t = 7 : this.img.rotation >= -90 && this.img.rotation < -54 ? t = 8 : this.img.rotation >= -54 &&
			this.img.rotation < -18 && (t = 9), this["img" + t].visible = !0, this["img" + t].alpha = 1;
		for (var e = 0; t - 1 > e; e++) this["img" + e].visible = !1;
		t > 0 ? TweenLite.to(this["img" + (t - 1)], .1, {
			alpha: 0,
			visible: !1
		}) : TweenLite.to(this.img9, .1, {
			alpha: 0,
			visible: !1
		})
	}, e.prototype.choujiangClick = function() {
		App.timer.clearTimer(this.updeteView, this);
		for (var t = 0; 10 > t; t++) t != this.point && (this["img" + t].visible = !1);
		var e = this._gridDict.get(this.point);
		App.global.operate.flyToBag([e.icon], this), VipCommandSender.sendC2sTurntableReward(Number(e.name), 1)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar && this._moneyBar.hide(), App.timer.clearTimer(this.updeteView, this),
			TweenLite.killTweensOf(this.img), TweenLite.killTweensOf(this.img0), TweenLite.killTweensOf(this.img1), TweenLite.killTweensOf(
				this.img2), TweenLite.killTweensOf(this.img3), TweenLite.killTweensOf(this.img4), TweenLite.killTweensOf(this.img5),
			TweenLite.killTweensOf(this.img6), TweenLite.killTweensOf(this.img7), TweenLite.killTweensOf(this.img8), TweenLite
			.killTweensOf(this.img9), App.tip.removeTip(this.gl_lb)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) {
				var i = this._gridDict.get(e);
				i.filters = [], i.dispose(), i = null
			}
			this._gridDict.dispose(), this._gridDict = null
		}
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this.bgimg && (this.bgimg.dispose(), this.bgimg =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(SignChouJiangView.prototype, "SignChouJiangView");
var SignItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "SignItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.grid = new ItemGrid, this.grid.x = 0, this.grid.y = 0, this.grid.isShowDesc = !1, this.gridGroup.addChild(this
			.grid), this.beishu.touchEnabled = !1
	}, e.prototype.showdata = function(t) {
		this._data = t;
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		if (this.grid.setData(e[0]), this.numday.text = t.bean.q_name, this.grid.isShowTip = !0, parseInt(t.bean.q_desc) >
			0 ? (this.beishu.source = "loginreward_v" + t.bean.q_desc + "_png", this.beishu.visible = !0) : this.beishu.visible = !
			1, 0 == t.playerStates) {
			if (this.beishu.visible = !1, this.yilingqu.visible = !0, this._mask && this.gridGroup.numChildren > 1) this.gridGroup
				.removeChild(this._mask);
			else {
				this._mask = new h5_engine.GShape;
				var i = this.gridGroup.width,
					n = this.gridGroup.height;
				(i != this._mask.width || n != this._mask.height) && (this._mask.graphics.clear(), this._mask.graphics.beginFill(
						0, .4), this._mask.graphics.drawRect(-8, -7, this.gridGroup.width + 18, this.gridGroup.height + 32), this._mask
					.graphics.endFill(), this._mask.touchEnabled = !0)
			}
			this.gridGroup.addChild(this._mask), this.cleareffect()
		} else this.yilingqu.visible = !1, 1 == t.playerStates ? (this.grid.isShowTip = !1, SignView.flag ? (SignView.flag = !
			1, this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "signeffect"), 46, 46)
		) : this.cleareffect()) : this.cleareffect()
	}, e.prototype.cleareffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null), this._mask && (this._mask
			.graphics.clear(), this._mask = null)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.cleareffect()
	}, e.prototype.dispose = function() {
		this.cleareffect(), this._data = null, this.grid && (this.grid.dispose(), this.grid = null), t.prototype.dispose.call(
			this)
	}, e
}(ViewBase);
__reflect(SignItem.prototype, "SignItem");
var SignPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectIndex = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("SignPanelSkin"), this.addChild(this._view), this._vscroller =
			new VScrollPanel(484, 100, SignPanelItem, 0, null, 2), this._view.itemGroup.addChild(this._vscroller)
	}, e.prototype.showitem = function() {
		this._viewHash = new HashObject, this._itemHash = new HashObject;
		var t = [0, 1, 2, 3];
		this._viewHash.put(0, this.signView), this._viewHash.put(1, this.loginreward), this._viewHash.put(2, this.monthCard),
			this._viewHash.put(this._viewHash.length, this.choujiangview), App.global.funcOpen.isFunctionOpen(154) && (this._viewHash
				.put(this._viewHash.length, this.vipspecview), t.push(4)), ServerTime.openday > 3 && 0 == App.data.moonCardCenter
			.redenve.vipsum || (this._viewHash.put(this._viewHash.length, this.redEnvelopesView), t.push(5)), this._viewHash.put(
				this._viewHash.length, this.jihuomaView), t.push(6), this._vscroller.dataProvider = t
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.showitem();
		var i = 0;
		i = null == e ? 0 : e.selectedIndex ? e.selectedIndex : 0, this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP,
				this.fuliView, this, this._vscroller.list), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rightbtnClick,
				this, this._view.rightbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.leftbtnClick, this,
				this._view.leftbtn), i > 5 ? this._vscroller.selectClick(2, 5, !0) : this._vscroller.selectClick(0, 5, !1), App.timer
			.doFrameOnce(this, 1, this.callLater, [i])
	}, e.prototype.rightbtnClick = function(t) {
		this._vscroller.selectClick(2, 5, !0)
	}, e.prototype.leftbtnClick = function(t) {
		this._vscroller.selectClick(0, 5, !1)
	}, e.prototype.callLater = function(t) {
		void 0 === t && (t = 0), this._vscroller.selectedIndex = t, this.curritem && this.curritem.selectItem(!1);
		var e = this._vscroller.list.getChildAt(t);
		this.curritem = e, e && (e.selectItem(!0), this.setView(e))
	}, e.prototype.setView = function(t) {
		this._selectIndex = t.index, this.currView = this._viewHash.get(t.index), null == this.currView && (0 == t.index ?
				this.currView = new SignView : 1 == t.index ? this.currView = new LoginRewardPanel : 2 == t.index ? this.currView =
				new MonthCardPanel : 3 == t.index ? this.currView = new SignChouJiangView : 5 == t.index ? this.currView = new RedEnvelopesView :
				6 == t.index ? this.currView = new JiHuoMaView : 4 == t.index && (this.currView = new VipSpectalView)), this.currView
			.show(), this._view.viewgroup.addChild(this.currView), 2 == this.curritem.index && this.curritem.showPoint(!App.data
				.moonCardCenter.isCardVip() && App.data.moonCardCenter.flag), this._viewHash.get(this.curritem.index) || this._viewHash
			.put(this.curritem.index, this.currView)
	}, e.prototype.fuliView = function(t) {
		this.curritem && this.curritem.selectItem(!1), this.curritem = t.itemRenderer, this.curritem.selectItem(!0), this._selectIndex !=
			this.curritem.index && (this.currView && this.currView.parent && this.currView.parent.removeChild(this.currView),
				this.currView, this.setView(this.curritem))
	}, e.prototype.hide = function() {
		if (t.prototype.hide.call(this), this._selectIndex = -1, this._viewHash) {
			for (var e = 0; e < this._viewHash.length; e++) {
				var i = this._viewHash.get(e);
				i && (i.hide(), i.dispose())
			}
			this._viewHash.dispose(), this._viewHash = null
		}
		if (this._itemHash) {
			for (var e = 0; e < this._itemHash.length; e++) this._itemHash.get(e).hide();
			this._itemHash.dispose(), this._itemHash = null
		}
	}, e.prototype.dispose = function() {
		this._view && (this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(SignPanel.prototype, "SignPanel");
var SignPanelItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = -1, e.skinName = "SignPanelItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = Number(this.data);
		this.index = t, this.img.source = "loginreward_fuli_0" + (t + 3) + "_png", 0 == t ? (this.showPoint(App.data.activityCenter
				.showFuliRedPoint(2)), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.refActivity, this)) :
			1 == t ? (this.showPoint(App.data.activityCenter.showFuliRedPoint(9)), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.refActivity1, this)) : 2 == t ? (this._dispatcher.addEventListener(VipEvent.CARD_BUY_RESULT,
				this.moonCard, this), this.showPoint(!App.data.moonCardCenter.isCardVip() && App.data.moonCardCenter.flag)) : 3 ==
			t ? (this._dispatcher.addEventListener(VipEvent.Turntable, this.turdata, this), this.showPoint(App.data.moonCardCenter
				.turData && App.data.moonCardCenter.turData.remainder > 0)) : 4 == t && this.showPoint(!1)
	}, e.prototype.refActivity = function() {
		this.showPoint(App.data.activityCenter.showFuliRedPoint(2))
	}, e.prototype.refActivity1 = function() {
		this.showPoint(App.data.activityCenter.showFuliRedPoint(9))
	}, e.prototype.moonCard = function(t) {
		0 == t ? this.showPoint(!0) : 1 == t && this.showPoint(!1)
	}, e.prototype.turdata = function() {
		this.showPoint(App.data.moonCardCenter.turData && App.data.moonCardCenter.turData.remainder > 0)
	}, e.prototype.selectItem = function(t) {
		this.selectImg.visible = t
	}, e.prototype.showPoint = function(t) {
		this.redpoint1.visible = t
	}, e.prototype.clearLabelEff = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.selectImg && (this.selectImg.visible = !1), this.clearLabelEff()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ItemRenderer);
__reflect(SignPanelItem.prototype, "SignPanelItem");
var SignView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("SignSkin"), this.addChild(this._view), this._moneyBar = new MoneyBar, this._moneyBar
			.moveTo(181, 63, this), this._moneyBar.setMoneyLocationX(-75, 85), this._moneyBar.showBg(!1), this._itemHash = new HashObject,
			this._gridLayer = new SignGridContainer("76,76|80,80", 5, 25, 35), this._gridLayer.initLayers([SignGridLayout.BigBg,
				SignGridLayout.BG, SignGridLayout.ICON, SignGridLayout.TEXT_BOTTOM, SignGridLayout.TEXT_COUNT, SignGridLayout.EFFECT,
				SignGridLayout.BEISHU, SignGridLayout.YILINGQU, SignGridLayout.EFFECT2
			]), this._gridLayer.setCallback(new FunctionVO(this.onGridClick, this)), this._gridLayer.moveTo(6, 10, this._view.itemGroup)
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), e.flag = !0, this.addEvent(), this._moneyBar.show(), this.showactivity()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.showactivity, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._view.actBg.btn_close);
		for (var t = 0; t < this._itemHash.length; t++) this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick,
			this, this._itemHash.get(t))
	}, e.prototype.onGridClick = function(t) {
		var e = t;
		0 != e[0].data.id && 1 == e[0].data.playerStates && (30001 == e[0].data.id ? (ActivityCommandSender.sendC2S_JoinActivityMessage(
			e[0].data.id), Config.isWxGame && App.panel.openPanel(10012)) : ActivityCommandSender.sendC2S_JoinActivityMessage(
			e[0].data.id))
	}, e.prototype.rechageClick = function(t) {
		var e = t.currentTarget;
		0 != e._data.id && 1 == e._data.playerStates && (30001 == e._data.id ? (ActivityCommandSender.sendC2S_JoinActivityMessage(
			e._data.id), Config.isWxGame && App.panel.openPanel(10012)) : ActivityCommandSender.sendC2S_JoinActivityMessage(
			e._data.id))
	}, e.prototype.showactivity = function() {
		e.flag = !0, this._activityArray = App.data.activityCenter.getList(2), this._gridLayer.clear(), this._gridLayer.dataProvider =
			this._activityArray
	}, e.prototype.hide = function() {
		if (t.prototype.hide.call(this), this._gridLayer && this._gridLayer.clear(), this.bgimg && (this.bgimg.dispose(),
				this.bgimg = null), this._moneyBar && this._moneyBar.hide(), this._itemHash)
			for (var e = this._itemHash.length, i = 0; e > i; i++) this._itemHash.get(i).hide();
		this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), this._activityArray &&
			(this._activityArray = null), this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._itemHash) {
			for (var e = this._itemHash.length, i = 0; e > i; i++) this._itemHash.get(i).dispose();
			this._itemHash = null
		}
		this._view && (this._view = null)
	}, e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e.flag = !0, e
}(ViewBase);
__reflect(SignView.prototype, "SignView");
var VipLevelGift = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectedIndex = 3, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.y += 50, this._view = UIMaker.createViewBase("VipLevelGiftSkin"), this.addChild(this._view), this._scroll =
			new VScrollPanel(400, 120, ActRewardItemRender, 2, null, 2), this._scroll.move(164, 523, this), this._view.btnRecharge
			.label = "领取奖励", this._view.reddian.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.updatePanel()
	}, e.prototype.updatePanel = function() {
		this.clearEffect(), this._view.reddian.visible = !1;
		var t = App.data.activityCenter.getData(e.actID);
		t && -1 != t.activityStates ? (this._eff = EffectUtils.showCEffect(this, this._view.effRoot, ResPathUtil.getMenuEffect(
			"rexue", "mabi"), 167, 90), this._view.title.source = "vip3gift_lqmb_01_png", this._selectedIndex = 3) : (this.showhusheneffect(),
			t = App.data.activityCenter.getData(e.actID1), this._view.title.source = "vip3gift_lqmb_02_png", this._selectedIndex =
			5), this._view.effDesc.textFlow = HtmlUtil.getHtmlStr(t.bean.q_info), this._view.actDesc.textFlow = HtmlUtil.getHtmlStr(
			t.bean.q_desc);
		var i = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
		this._scroll.dataProvider = i, this._view.fightNum.setValue(40007), t.id == e.actID ? App.data.getVipCenter().getCurrentVip() >=
			3 ? (this._view.btnRecharge.label = "领取奖励", this.showEffect()) : (this._view.btnRecharge.label = "领取奖励", this.hideEffect()) :
			t.id == e.actID1 && App.data.getVipCenter().getCurrentVip() >= 5 ? (this.showEffect(), this._view.btnRecharge.label =
				"领取奖励") : (this._view.btnRecharge.label = "领取奖励", this.hideEffect())
	}, e.prototype.showEffect = function() {
		this._view.reddian.visible = !0, null == this.ceffect && (this.ceffect = EffectUtils.showCEffect(this, this._view.btnRecharge,
			ResPathUtil.getMenuEffect("main", "firstflushbtn"), 105, 40))
	}, e.prototype.hideEffect = function() {
		this.ceffect && (this.ceffect.visible = !1, this.ceffect.stop())
	}, e.prototype.showhusheneffect = function() {
		this._hushenEffect1 = EffectUtils.showCEffect(this, this._view.effRoot, ResPathUtil.getMenuEffect("rexue",
			"hushen1"), 140, 70)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.rechageClick, this, this._view.btnRecharge),
			this._dispatcher.addEventListener(VipEvent.VIP_LEVEL_UP, this.updatePanel, this)
	}, e.prototype.rechageClick = function() {
		var t = App.data.activityCenter.getData(e.actID);
		t && -1 != t.activityStates || (t = App.data.activityCenter.getData(e.actID1));
		var i = !1;
		t.id == e.actID ? App.data.getVipCenter().getCurrentVip() >= 3 || (i = !0) : t.id == e.actID1 ? App.data.getVipCenter()
			.getCurrentVip() >= 5 || (i = !0) : i = !0, i ? PanelOpenManager.openChargePanel() : App.panel.openPanel(35, {
				selectedIndex: this._selectedIndex
			})
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.clearEffect = function() {
		null != this._eff && (this._eff.stop(), this._eff.dispose(), this._eff = null), null != this.ceffect && (this.ceffect
			.stop(), this.ceffect.dispose(), this.ceffect = null), this._hushenEffect1 && (this._hushenEffect1.stop(), this._hushenEffect1
			.dispose(), this._hushenEffect1 = null), this._hushenEffect2 && (this._hushenEffect2.stop(), this._hushenEffect2.dispose(),
			this._hushenEffect2 = null), this._hushenEffect3 && (this._hushenEffect3.stop(), this._hushenEffect3.dispose(),
			this._hushenEffect3 = null)
	}, e.prototype.dispose = function() {
		null != this._view && (this._view.fightNum.dispose(), this._view.fightNum = null, this._view.dispose(), this._view =
				null), null != this._scroll && (this._scroll.dispose(), this._scroll = null), this.clearEffect(), t.prototype.dispose
			.call(this)
	}, e.actID = 5556, e.actID1 = 5557, e.effShowID = 267, e
}(BasePanel);
__reflect(VipLevelGift.prototype, "VipLevelGift");
var VipSpectalItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._index = 0, e._needYB = -1, e._x = 0, e._y = 0, e._flag = !0, e.euiSkinName = "VipSpectalItemSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.buyClick = function(t) {
		this._needYB > 0 && App.data.currencyDataCenter.isMoneyEnough(this._needYB, EnumMoney.YUAN_BAO, !1) &&
			VipCommandSender.sendPrivilegeInfo(this._data.id)
	}, e.prototype.hide = function() {
		this._data = null, this._needYB = -1, App.timer.clearTimer(this.timeClick, this), this.clearLabelEff(), this._fightBmp &&
			(this._fightBmp.dispose(), this._fightBmp = null), t.prototype.hide.call(this)
	}, e.prototype.clearLabelEff = function() {
		this._surEff && (this._surEff.stop(), this._surEff.dispose(), this._surEff = null)
	}, e.prototype.itemChangeClick = function(t) {
		this._flag = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this), this
			._x = t.stageX, this._y = t.stageY
	}, e.prototype.moveOnclick = function(t) {
		t.stageX - this._x < -30 && (App.dispatcher.dispatchEvent(VipSpectalView.SELECTITEM, this._index - 1), this._flag = !
				1, this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this)), t.stageX -
			this._x > 30 && (App.dispatcher.dispatchEvent(VipSpectalView.SELECTITEM, this._index + 1), this._flag = !1, this._dispatcher
				.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this)), t.stageY - this._y > 50 && this
			._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this), t.stageY - this._y <
			-50 && this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this)
	}, e.prototype.setdata = function(t) {
		this._data = t, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.buyClick, this, this.btnbuy),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.itemChangeClick, this, this);
		var e = App.config.q_privilegeContainer.getDataBean(t.id),
			i = new BaseAttributeDataBean;
		if (i.convertAndAdd(e.q_attribute_client), this.shuxing.textFlow = HtmlUtil.getHtmlStr(i.getStrByBaseAttributeBean3(
				i)), this.desc.textFlow = HtmlUtil.getHtmlStr(e.q_privilege_des), this.showTitleEffect(e.q_title_id), this.showFigh(
				FightPowerUtil.getFightPower([e.q_attribute_client])), this.moneytext.visible = !0, this.btnbuy.enabled = !0,
			this.btnbuy.filters = [], this.btnbuy.label = "激活", 3 == t.id ? (this.tuijianimg.visible = !0, this.bg.source =
				"lqtq_02_png") : (2 == t.id ? this.bg.source = "lqtq_03_png" : this.bg.source = "lqtq_04_png", this.tuijianimg.visible = !
				1), App.data.moonCardCenter.getprivilegeFlag()) {
			var n = App.data.moonCardCenter.getMoneyMax(t.id);
			0 == n ? (this.moneytext.visible = !1, this.btnbuy.enabled = !1, this.btnbuy.filters = FilterUtil.FILTER_GRAY,
				this.btnbuy.label = "已激活", this.tuijianimg.visible = !1, this._needYB = -1) : (this.moneytext.text = "补差价" + n +
				"元宝", this._needYB = n)
		} else this.moneytext.text = "花费" + e.q_need_yuanbao + "元宝", this._needYB = e.q_need_yuanbao;
		1 == this._data.state ? (this.timetext.visible = !0, App.timer.serverTimeEnd(this, this.timeClick, this._data.time)) :
			this.timetext.visible = !1
	}, e.prototype.timeClick = function(t) {
		t.spuleTime > 0 ? this.timetext.textFlow = HtmlUtil.getHtmlStr("特权剩余时间:<font color='0x35ea35'>" + StringUtil.convertTime_4(
			t.spuleTime) + "</font>") : (this.timetext.textFlow = HtmlUtil.getHtmlStr("特权剩余时间:00:00:00"), this.timetext.visible = !
			1)
	}, e.prototype.showTitleEffect = function(t) {
		var e = App.config.q_surfaceContainer.getDataBean(t);
		this.clearLabelEff(), this._surEff = EffectUtils.showCEffect(this, this, ResPathUtil.getTitleEffect(e.q_scene_show_id),
			185, 137)
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? (this._fightBmp.x = 45, this._fightBmp.y = 38, this._fightBmp.setValue(e)) : (this._fightBmp = new FightPower,
			this._fightBmp.x = 45, this._fightBmp.y = 38, this._fightBmp.setValue(e), this._fightBmp.bg.source = "", this._fightBmp
			._effect.visible = !1, this.addChild(this._fightBmp))
	}, e
}(ViewBase);
__reflect(VipSpectalItem.prototype, "VipSpectalItem");
var VipSpectalView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._index = 1, e._isPlaying = !1, e.euiSkinName = "VipSpectalSkin", e.init(), e._moneyBar = new MoneyBar, e._moneyBar
			.moveTo(181, 63, e), e._moneyBar.setMoneyLocationX(-75, 85), e._moneyBar.showBg(!1), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._postions = [new egret.Point(136, 164), new egret.Point(88, 222), new egret.Point(254, 222)], this._figureHash =
			new HashMap, this._figureHash.put(this.vipspec2, 1), this._figureHash.put(this.vipspec0, 2), this._figureHash.put(
				this.vipspec1, 3), App.data.moonCardCenter.TeQuanKaFlag = !1, App.global.redPoint.redPointDispatchEvent(154)
	}, e.prototype.onClose = function() {
		App.panel.removePanel(60)
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler,
				this, this.prebtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMouseHandler, this, this
				.nextbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this.vipspec0),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this.vipspec1), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onFigureHandler, this, this.vipspec2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClose, this, this.btnClose), this._dispatcher.addEventListener(e.SELECTITEM,
				this.selectView, this), this._dispatcher.addEventListener(VipEvent.Privilege, this.showView, this), this.showView(),
			this._moneyBar.show()
	}, e.prototype.selectView = function(t) {
		1 != t && (2 == t ? (this.showpoint(1), this.play(-1)) : (this.showpoint(-1), this.play(1)))
	}, e.prototype.showView = function() {
		for (var t, e = App.data.moonCardCenter._privilegeList, i = e.length, n = 0; i > n; n++) {
			var a = e.get(n);
			t = this["vipspec" + n], t._index = i - n, t.setdata(a)
		}
	}, e.prototype.onMouseHandler = function(t) {
		switch (t.currentTarget) {
			case this.prebtn:
				this.showpoint(-1), this.play(1);
				break;
			case this.nextbtn:
				this.showpoint(1), this.play(-1)
		}
	}, e.prototype.showpoint = function(t) {
		if (!this._isPlaying) {
			this._index = this._index + t, this._index > 2 ? this._index = 0 : this._index < 0 && (this._index = 2);
			for (var e = 0; 3 > e; e++) this._index == e ? this["dianimg" + e].source = "loginreward_lqtq_08_png" : this[
				"dianimg" + e].source = "loginreward_lqtq_07_png"
		}
	}, e.prototype.onFigureHandler = function(t) {
		var e = t.currentTarget,
			i = this._figureHash.get(e);
		1 != i && (2 == i ? (this.showpoint(1), this.play(-1)) : (this.showpoint(-1), this.play(1)))
	}, e.prototype.play = function(t) {
		if (!this._isPlaying) {
			var e, i, n, a, o, r = this._figureHash.length,
				s = this._figureHash.keys;
			this._isPlaying = !0;
			for (var h = 0; r > h; h++) i = s[h], e = this._figureHash.get(i), n = e + t, n = 0 == n ? 3 : n, n = n > 3 ? 1 :
				n, this._figureHash.put(i, n), i._index = n, a = this._postions[n - 1], n - 1 == 0 && this.addChild(i), o = 1 ==
				n ? 1 : .8, TweenLite.to(i, .3, {
					x: a.x,
					y: a.y,
					scaleX: o,
					scaleY: o,
					ease: Circ.easeInOut,
					onComplete: this.tweenCom,
					onCompleteScope: this
				})
		}
	}, e.prototype.tweenCom = function(t, e) {
		this._isPlaying = !1
	}, e.prototype.hide = function() {
		this._figureHash && this._figureHash.length > 0 && this._figureHash.foEach(function(t, e) {
			t && t.hide()
		}, this), this._moneyBar && this._moneyBar.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._figureHash && (this._figureHash.dispose(), this._figureHash = null), this._moneyBar && (this._moneyBar.dispose(),
			this._moneyBar = null), t.prototype.dispose.call(this)
	}, e.SELECTITEM = "VipSpectalView.SELECTITEM", e
}(ViewBase);
__reflect(VipSpectalView.prototype, "VipSpectalView");
var SignGridContainer = function(t) {
	function e(e, i, n, a) {
		void 0 === n && (n = 2), void 0 === a && (a = 2);
		var o = t.call(this) || this;
		return o._clearCurrentTip = !0, o._dataSource = new Array, o._renderDataHash = new HashObject, o._layerHash = {}, o._uiComponentToIdHash =
			new HashMap, o._controller = new SignGridContainerController, o._controller.setStyle(e, i, n, a), o.init(), o
	}
	return __extends(e, t), e.prototype.init = function() {
		this._layerContainer = new eui.Group, this.addChild(this._layerContainer)
	}, e.prototype.initLayers = function(t) {
		t = this._controller.getTypes(t);
		for (var e, i, n = t.length, a = 0; n > a; a++) i = t[a], e = new RenderContainer(i), e.moveTo(this._controller.layerGapX,
				this._controller.layerGapY, this._layerContainer), e.touchEnabled = i == SignGridLayout.BG, e.touchChildren = i ==
			SignGridLayout.BG, this._layerHash[i] = e;
		this._controller.layoutList = t
	}, e.prototype.getLayer = function(t) {
		return this._layerHash[t]
	}, Object.defineProperty(e.prototype, "dataProvider", {
		get: function() {
			return this._controller.dataProvider
		},
		set: function(t) {
			this._controller.dataProvider = t, this._controller.repeatY = Math.ceil(t.length / this._controller.repeatX),
				App.timer.doFrameOnce(this, 2, this.callLater, [t], !0)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.callLater = function(t) {
		this._clearCurrentTip = !1, this.clear();
		for (var e = t.length, i = 0; e > i; i++) this.getRenderData(i).data = t[i];
		this._dataSource = t, this.updateLayers(), this._scroller && this.onChange(), this._alphaImage && (this._alphaImage
			.y = this._controller.getAlphaImageY(this._dataSource.length))
	}, e.prototype.updateLayers = function() {
		for (var t, e = this._controller.layoutList.length, i = this._dataSource.length, n = 0; e > n; n++) {
			t = this._controller.layoutList[n];
			for (var a = 0; i > a; a++) this.addToLayer(t, this.getLayer(t), this.getRenderData(a))
		}
		this.renderLayers(this._controller.layoutList)
	}, e.prototype.addToLayer = function(t, e, i) {
		var n = this._controller.getUiComponent(t, i);
		if (egret.is(n, "egret.DisplayObject") && n && n.touchEnabled) {
			this._uiComponentToIdHash.put(n, i.id), n.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this);
			var a = i.data,
				o = ItemUtil.getRewardDataList(a.bean.q_show_rewards),
				r = new ItemData;
			TypeUtil.isNumber(o[0]) ? r.itemId = Number(o[0]) : (r = o[0], r.itemId = o[0].itemId), t == SignGridLayout.BG &&
				this._controller.showTip && r && this._controller.isShowTip(r) && 1 != a.playerStates && App.tip.addTip(n, this._controller
					.getTipData(r))
		}
		i.setUiComponent(t, n), e && e.add(i)
	}, e.prototype.removeFromLayer = function(t, e, i) {
		var n = i.getUiComponent(t);
		if (egret.is(n, "egret.DisplayObject") && n && n.touchEnabled && (this._uiComponentToIdHash.del(n), n.removeEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this), t == SignGridLayout.BG)) {
			var a = !this._clearCurrentTip && App.tip.tipBelongTarget(n);
			App.tip.removeTip(n, !a)
		}
		e && e.remove(i), i.data = null
	}, e.prototype.renderLayers = function(t) {
		for (var e = t.length, i = 0; e > i; i++) this.getLayer(t[i]).renderLayer()
	}, e.prototype.getRenderData = function(t) {
		var e = this._renderDataHash.get(t + "");
		return null == e && (e = new GridRenderData, e.id = t, e.x = this._controller.getGridX(t), e.y = this._controller.getGridY(
			t), this._renderDataHash.put(t + "", e)), e
	}, e.prototype.setCallback = function(t, e) {
		this._gridClickCallBack = t, this._gridClickParam = e
	}, e.prototype.setSelectedIndex = function(t) {
		var e = this.getRenderData(t);
		if (null != this._gridClickCallBack) {
			var i = [e];
			this._gridClickParam && i.concat(this._gridClickParam), this._gridClickCallBack.exec(i)
		}
	}, e.prototype.onClick = function(t) {
		if (t.target instanceof eui.Image) {
			var e = this._uiComponentToIdHash.get(t.target);
			this.setSelectedIndex(e)
		}
	}, e.prototype.setShowTip = function(t) {
		this._controller.showTip = t
	}, e.prototype.clear = function() {
		for (var t, e = this._controller.layoutList, i = e.length, n = this._renderDataHash.length, a = 0; i > a; a++) {
			t = e[a];
			for (var o = 0; n > o; o++) this.removeFromLayer(t, this.getLayer(t), this.getRenderData(o))
		}
	}, e.prototype.useScroller = function(t, e) {
		this._scroller = UIMaker.getScroller(this, this, 0, 0, t, e), this._scroller.viewport = this._layerContainer, this._scroller
			.addEventListener(eui.UIEvent.CHANGE, this.onChange, this), this._alphaImage = UIMaker.getImage(this._layerContainer,
				this, GridUtil.getGridGradeBg(-1), 0, 0, !1, this._alphaImage), this._alphaImage.alpha = .01
	}, e.prototype.onChange = function(t) {
		void 0 === t && (t = null);
		for (var e = this._scroller.localToGlobal().y - this._controller.horGap, i = e + this._scroller.height + 3 * this._controller
				.horGap, n = this._dataSource.length, a = 0; n > a; a++) this.getRenderData(a).setVisibleArea(e, i)
	}, e.prototype.stopScroller = function() {
		this._scroller && (this._scroller.stopAnimation(), this._scroller.viewport && (this._scroller.viewport.scrollV = 0))
	}, e.prototype.useSelectedImage = function(t, e, i) {
		void 0 === e && (e = 89), void 0 === i && (i = 89), this._controller.selectedWidth = e, this._controller.selectedHeight =
			i, this._imageSelected = UIMaker.getImage(null, this, GridUtil.getSelectedUrl()), this._layerContainer.addChildAt(
				this._imageSelected, 0)
	}, e.prototype.setImageSelectedXY = function(t) {
		this._imageSelected && (this._imageSelected.x = this._controller.getSelectedImageX(t), this._imageSelected.y = this
			._controller.getSelectedImageY(t))
	}, e.prototype.moveTo = function(t, e, i) {
		this.x = t - this._controller.layerGapX, this.y = e - this._controller.layerGapY, i && i.addChild(this)
	}, e.prototype.getIconList = function() {
		var t = this.getLayer(SignGridLayout.ICON);
		return t ? t.targetList : null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._controller ? this._controller.getWidth() : 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._controller ? this._controller.getHeight() : 0
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getController = function() {
		return this._controller
	}, e.prototype.dispose = function() {
		App.timer.clearTimer(this.callLater, this), this._clearCurrentTip = !0, this.clear(), this._scroller && this._scroller
			.removeEventListener(eui.UIEvent.CHANGE, this.onChange, this), UIMaker.putToPool(this._scroller), UIMaker.putToPool(
				this._alphaImage), UIMaker.putToPool(this._imageSelected), this._uiComponentToIdHash.dispose(), this._renderDataHash =
			null, this._layerHash = null, this._uiComponentToIdHash = null, this._gridClickCallBack = null, this._gridClickParam =
			null, this._dataSource = null, this._controller = null, this.parent && this.parent.removeChild(this)
	}, e
}(eui.Group);
__reflect(SignGridContainer.prototype, "SignGridContainer");
var SignGridContainerController = function() {
	function t() {
		this.showTip = !0, this.layoutList = new Array
	}
	return t.prototype.getTypes = function(t) {
		return t.sort(this.sort), t
	}, t.prototype.sort = function(t, e) {
		return t > e ? 1 : -1
	}, t.prototype.setStyle = function(t, e, i, n) {
		void 0 === i && (i = 2), void 0 === n && (n = 2);
		var a = t.split("|"),
			o = a[0].split(","),
			r = a[1].split(",");
		this.bgBorderWidth = parseInt(o[0]), this.bgBorderHeight = parseInt(o[1]), this.iconWidth = parseInt(r[0]), this.iconHeight =
			parseInt(r[1]), this.iconX = this.bgBorderWidth - this.iconWidth >> 1, this.iconY = this.bgBorderHeight - this.iconHeight >>
			1, this.repeatX = e, this.horGap = i, this.verGap = n, this.layerGapX = 10, this.layerGapY = 10
	}, t.prototype.setLayer = function() {
		this.layoutList = [SignGridLayout.BigBg, SignGridLayout.BG, SignGridLayout.ICON, SignGridLayout.TEXT_BOTTOM,
			SignGridLayout.TEXT_COUNT
		]
	}, t.prototype.getWidth = function() {
		return this.dataProvider ? (this.bgBorderWidth + this.horGap) * Math.min(this.dataProvider.length, this.repeatX) -
			this.horGap : 0
	}, t.prototype.getHeight = function() {
		return this.dataProvider ? (this.bgBorderHeight + this.verGap) * Math.min(this.dataProvider.length, this.repeatY) -
			this.verGap : 0
	}, t.prototype.getGridX = function(t) {
		return t % this.repeatX * (this.bgBorderWidth + this.horGap)
	}, t.prototype.getGridY = function(t) {
		return Math.floor(t / this.repeatX) * (this.bgBorderHeight + this.verGap)
	}, t.prototype.getSelectedImageX = function(t) {
		return this.layerGapY + this.getGridX(t) + (this.bgBorderWidth - this.selectedWidth >> 1)
	}, t.prototype.getSelectedImageY = function(t) {
		return this.layerGapY + this.getGridY(t) + (this.bgBorderHeight - this.selectedHeight >> 1)
	}, t.prototype.getAlphaImageY = function(t) {
		return this.getGridY(t - 1) + this.layerGapY + 30
	}, t.prototype.getTipData = function(t) {
		var e;
		return e = new TipData(ItemUtil.isEquip(t.itemId) ? 4 : ItemUtil.isWarpet(t.itemId) ? 19 : ItemUtil.isFaBao(t.itemId) ?
			23 : 2), e.data = t, e
	}, t.prototype.isShowTip = function(t) {
		return t.itemId == EnumItemId.NAMECHANGECARD ? !1 : !0
	}, t.prototype.getUiComponent = function(t, e) {
		var i = e.data;
		if (null == i) return null;
		switch (t) {
			case SignGridLayout.BigBg:
				return this.getBigbg(e);
			case SignGridLayout.BG:
				return this.getBg(e);
			case SignGridLayout.EFFECT:
				return this.getEffect(e);
			case SignGridLayout.ICON:
				return this.getIcon(e);
			case SignGridLayout.TEXT_BOTTOM:
				return this.getDescTxt(e);
			case SignGridLayout.TEXT_COUNT:
				return this.getCountTxt(e);
			case SignGridLayout.BEISHU:
				return this.getBeishu(e);
			case SignGridLayout.YILINGQU:
				return this.getYilingqu(e);
			case SignGridLayout.EFFECT2:
				return this.getEffect2(e)
		}
	}, t.prototype.getBeishu = function(t) {
		var e = t.data,
			i = "loginreward_v1_png";
		if (!(parseInt(e.bean.q_desc) > 0)) return t.setGridLayoutVisible(SignGridLayout.BEISHU, !1), null;
		i = "loginreward_v" + e.bean.q_desc + "_png", t.setGridLayoutVisible(SignGridLayout.BEISHU, !0);
		var n = UIMaker.getImage(null, this, i, t.x + 8, t.y + 7);
		return n.width = 50, n.height = 52, n
	}, t.prototype.getYilingqu = function(t) {
		var e = t.data,
			i = UIMaker.getImage(null, this, "loginreward_yilingqu_png", t.x + 28, t.y + 25);
		return i.width = 42, i.height = 42, 0 != e.playerStates ? (t.setGridLayoutVisible(SignGridLayout.YILINGQU, !1),
			null) : (t.setGridLayoutVisible(SignGridLayout.YILINGQU, !0), i)
	}, t.prototype.getBigbg = function(t) {
		var e = (t.data, UIMaker.getImage(null, this, "loginreward_bg12_png", t.x, t.y));
		return e.width = 92, e.height = 105, e
	}, t.prototype.getIcon = function(t) {
		var e = t.data,
			i = ItemUtil.getRewardDataList(e.bean.q_show_rewards),
			n = new ItemData;
		TypeUtil.isNumber(i[0]) ? n.itemId = Number(i[0]) : (n = i[0], n.itemId = i[0].itemId);
		var a = ResPathUtil.getIcon(n.getDataBean().q_tiny_icon, "item/80"),
			o = UIMaker.getCImage(null, this, a, t.x + 8, t.y + 7);
		return o.width = 76, o.height = 76, o
	}, t.prototype.getBg = function(t) {
		var e = t.data,
			i = ItemUtil.getRewardDataList(e.bean.q_show_rewards),
			n = new ItemData;
		TypeUtil.isNumber(i[0]) ? n.itemId = Number(i[0]) : (n = i[0], n.itemId = i[0].itemId);
		var a = GridUtil.getSizeGridGradeBg(this.bgBorderWidth, n.getDataBean().q_default),
			o = UIMaker.getImage(null, this, a, t.x + 8, t.y + 7, !0);
		return o.width = 76, o.height = 76, o
	}, t.prototype.getJob = function(t) {
		var e = t.data;
		if (1 == e.bean.q_type) {
			var i = e.bean.q_job;
			if (i > 0) {
				var n = GridUtil.getGridJob(i),
					a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
				return a
			}
		} else if (39 == e.bean.q_type) {
			var n = GridUtil.getGridWingGod(e.bean.q_level),
				a = UIMaker.getImage(null, this, n, t.x + this.bgBorderWidth - 35, t.y);
			return a
		}
		return null
	}, t.prototype.getRedPoint = function(t) {
		var e = t.data;
		if (7 == e.bean.q_type && App.data.bagItemDataCenter.hasItem(e) && App.data.bagItemDataCenter.getItemRemainNum(e.itemId) >
			0 && App.global.itemUse.isMatchUseCondition(e, !1)) {
			var i = GridUtil.getGridRedPointUrl(),
				n = UIMaker.getImage(null, this, i, t.x + this.bgBorderWidth - 15, t.y - 5);
			return n
		}
		return null
	}, t.prototype.getDescTxt = function(t) {
		var e = t.data,
			i = (this.bgBorderWidth == EnumGridStyle.DEFAULT_SIZE ? 4 : 1, UIMaker.getTextField(null, this, t.x + 0, t.y + 85,
				92, 18, 16757336, 18)),
			n = "" + e.bean.q_name;
		return i.text = n, i.textColor = 16757336, i
	}, t.prototype.getCountTxt = function(t) {
		var e = t.data,
			i = ItemUtil.getRewardDataList(e.bean.q_show_rewards),
			n = new ItemData;
		TypeUtil.isNumber(i[0]) ? n.itemId = Number(i[0]) : (n = i[0], n.itemId = i[0].itemId);
		var a = UIMaker.getTextField(null, this, t.x + 8, t.y + 7 + 74 - 18 - 3, 68, 18, 12168079, 18);
		return a.textAlign = egret.HorizontalAlign.RIGHT, a.stroke = 1, n.itemId < 0 ? n.count >= 1e8 ? a.text = StringUtil
			.formatMoney(n.count, "亿", 1e8) : a.text = StringUtil.formatMoney(n.count, "w") : a.text = n.showCompleteCount ? n
			.count + "" : n.count > 1 ? n.count + "" : "", a
	}, t.prototype.getEffect = function(t) {
		var e = t.data,
			i = ItemUtil.getRewardDataList(e.bean.q_show_rewards),
			n = new ItemData;
		if (TypeUtil.isNumber(i[0]) ? n.itemId = Number(i[0]) : (n = i[0], n.itemId = i[0].itemId), 0 == n.getDataBean().q_effect)
			return null;
		var a = ResPathUtil.getMenuEffect("item", n.getDataBean().q_effect + "_" + EnumGridStyle.DEFAULT_SIZE),
			o = EffectUtils.showCEffect(this, null, a, t.x + 8 + 38, t.y + 7 + 38);
		return o.scaleX = this.bgBorderWidth / EnumGridStyle.DEFAULT_SIZE, o.scaleY = this.bgBorderHeight / EnumGridStyle.DEFAULT_SIZE,
			o
	}, t.prototype.getEffect2 = function(t) {
		var e, i = t.data;
		return 0 == i.playerStates ? null : 1 != i.playerStates ? null : SignView.flag ? (SignView.flag = !1, e =
			EffectUtils.showCEffect(this, null, ResPathUtil.getMenuEffect("panel", "signeffect"), t.x + 46, t.y + 46)) : null
	}, t
}();
__reflect(SignGridContainerController.prototype, "SignGridContainerController");
var SignGridLayout;
! function(t) {
	t[t.BigBg = 1] = "BigBg", t[t.BG = 2] = "BG", t[t.ICON = 3] = "ICON", t[t.TEXT_BOTTOM = 4] = "TEXT_BOTTOM", t[t.TEXT_COUNT =
		5] = "TEXT_COUNT", t[t.EFFECT = 6] = "EFFECT", t[t.BEISHU = 7] = "BEISHU", t[t.YILINGQU = 8] = "YILINGQU", t[t.EFFECT2 =
		9] = "EFFECT2"
}(SignGridLayout || (SignGridLayout = {}));
var ChangeEquipItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ChangeEquipSkin", e
	}
	return __extends(e, t), e.prototype.creategrid = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.isShowTip = !1, this.grid.isShowDesc = !
			1, this.addChild(this.grid), this.grid.x = 20, this.grid.y = 10;
		var t = new eui.HorizontalLayout;
		t.gap = 0, this.starGroup.layout = t
	}, e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickBuy,
			this, this.fenjiebtn), this.creategrid()
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, this.titletext.text = this._bean.name;
		var t = this._bean.getDataBean().q_id;
		if (this.titletext.textColor = GameUtil.getItemNameColor(t), App.global.itemUse.isMatchBaseCondition(this._bean, !1))
			if (this.fenjiebtn.enabled = !0, 0 == this._bean.getDataBean().q_zhuanshen && 1 == this._bean.getDataBean().q_level &&
				this._bean.getDataBean().q_default >= EnumNumber.red) this.dengji.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0xb19c79'>等级:</font>无级别");
			else {
				var e = "";
				e = App.data.advanceDataCenter.isAdvanceEquipType(this._bean.getDataBean().q_type) ? "进阶等级：" : "等级：", this.dengji
					.textFlow = HtmlUtil.getHtmlStr("<font color='0xb19c79'>" + e + "</font>" + (0 == this._bean.getDataBean().q_zhuanshen ?
						this._bean.getDataBean().q_level + "级" : this._bean.getDataBean().q_zhuanshen + "转"))
			}
		else this.dengji.text = this._bean.getDataBean().q_zhuanshen + "转穿戴", this.fenjiebtn.enabled = !1;
		this.pingfentext.text = "评分:" + GameUtil.getEquipConfigData(t).q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(GameUtil.getEquipConfigData(t).q_add_attribute_client), this.shuxing.text = i.getStrByBaseAttributeBean(
			i), this.grid.setData(t);
		var n = GameUtil.getEquipConfigData(t),
			a = App.global.characterData.selectindex1;
		if (this.starDesc.visible = !1, this.starGroup.removeChildren(), this.lbStarLv.text = "", App.data.advanceDataCenter
			.isAdvanceEquipType(this._bean.getDataBean().q_type)) {
			var o = App.data.advanceDataCenter.getAdvanceEquipType(t),
				r = App.data.advanceDataCenter.getProxyByType(a, o);
			0 == this.itemIndex && n && r.getEquipDataByPos(n.q_kind) ? (this.starimg.visible = !0, this.fenjiebtn.visible = !
				1) : (this.starimg.visible = !1, this.fenjiebtn.visible = !0)
		} else if (31 == this._bean.getDataBean().q_type) {
			this.starDesc.visible = !0, 0 == this.itemIndex && n && App.data.characterCenter.getFaBaoByPart(a, n.q_kind) ? (
				this.starimg.visible = !0, this.fenjiebtn.visible = !1) : (this.starimg.visible = !1, this.fenjiebtn.visible = !
				0), n.q_xingj > 0 ? this.lbStarLv.text = "" : this.lbStarLv.text = "0级";
			for (var s = 0; s < n.q_xingj; s++) {
				var h = new eui.Image;
				h.source = "common1_star_light_png", h.width = h.height = 20, this.starGroup.addChild(h)
			}
		} else 0 == this.itemIndex && n && App.data.wearEquipCenter.getRoleWearData(n.q_kind, a) ? (this.starimg.visible = !
			0, this.fenjiebtn.visible = !1) : (this.starimg.visible = !1, this.fenjiebtn.visible = !0)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this.addChild(t), t.x = e, t.y = i)
	}, e.prototype.onClickBuy = function(t) {
		this.hideGuide(this.fenjiebtn, this.fenjiebtn.x + 77, this.fenjiebtn.y + 122), App.global.itemUse.useItemById(this._bean
			.id, 1, GameUtil.getEquipConfigData(this._bean.itemId).q_kind, !1), App.panel.removePanel(24), App.sound.playSound(
			EnumSoundId.WEAR_EQUIP, 0, 1 / .3), App.data.taskCenter.getThreadTaskShowGuide(2) && App.dispatcher.dispatchEvent(
			EventType.BACKGUIDE)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e.flag = !1, e
}(ItemRenderer);
__reflect(ChangeEquipItem.prototype, "ChangeEquipItem");
var ChangeEquipPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("DecomposePanelSkin"), this.addChild(this._view), this._vscroller = new VScrollPanel(
				516, 600, ChangeEquipItem, 0), this._view.vscro.addChild(this._vscroller), this._itemList = new VScrollPanel(516,
				166, ConsumeItemView, 4), this._itemList.move(6, -1), this._view.itemgroup.addChild(this._itemList), this._view.group2
			.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EnumRole.Decompose, this.showxiaohao, this), this
			._view.toptitle.text = "更换", this._shopAry = e, this._vscroller.dataProvider = this._shopAry, 0 == this._shopAry.length ?
			(this._view.isCanText.visible = !0, RoleMainView.roleSelectEquipKind == EnumEquipType.XUE_FU ? (this.showItemGroup(),
				this._view.isCanText.text = "没有可以穿戴的装备可以在历练爵位获得") : this._view.isCanText.text = "没有可以穿戴的装备继续战斗吧") : this._view.isCanText
			.visible = !1
	}, e.prototype.showItemGroup = function() {
		var t = GameUtil.getItemConfigData(2001001),
			e = t.q_input_intro.replace("[", "");
		e = e.replace("]", "");
		var i = e.split(","),
			n = i.length;
		this._dataAry = [];
		for (var a, o, r = 0; n > r; r++) o = App.config.q_output_introContainer.getDataBean(i[r]), a = new ConsumeData, a.name_des =
			o.q_output_title, a.panelId = o.q_change_ui, a.scendid = o.q_need_level, a.functinid = o.q_need_level_zs, this._dataAry
			.push(a);
		n > 1 ? (this._view.itemgroup.height = 166, this._itemList.height = 166) : (this._view.itemgroup.height = 50, this._itemList
				.height = 50), this._view.bg.height = this._view.itemgroup.y + this._view.itemgroup.height - 75, this._view.bg0.height =
			this._view.itemgroup.y + this._view.itemgroup.height - 75, this._view.group1.y = this._view.bg.y + this._view.bg.height +
			5, null != this._dataAry && (this._itemList.dataProvider = this._dataAry)
	}, e.prototype.showxiaohao = function() {
		this._vscroller.dataProvider = App.data.bagItemDataCenter.getQualityEquipList(EnumNumber.red)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._itemList.removeAll(), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._shopAry = null, this._itemList && (this._itemList.dispose(), this._itemList =
				null), this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._view.dispose(), this._view =
			null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._view.width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._view.height
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(ChangeEquipPanel.prototype, "ChangeEquipPanel");
var CharacterItemPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._index = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("CharacterItemSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.ChangeRoleRightClick, this, this._view.btnright), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.ChangeRoleLeftClick, this, this._view.btnleft), this.showValue(e), 1 == App.global.roles.roleList.length &&
			(this._view.btnright.visible = !1, this._view.btnleft.visible = !1)
	}, e.prototype.ChangeRoleRightClick = function() {
		this._roleData = App.global.roles.getRoleInfoByIndex(++this._index), this.roleData && (this.showValue(this.roleData),
			this._index == App.global.roles.roleList.length && (this._view.btnright.visible = !1), this._view.btnleft.visible = !
			0)
	}, e.prototype.ChangeRoleLeftClick = function() {
		this._roleData = App.global.roles.getRoleInfoByIndex(--this._index), this.roleData && (this.showValue(this.roleData),
			1 == this._index && (this._view.btnleft.visible = !1), this._view.btnright.visible = !0)
	}, e.prototype.showValue = function(t) {
		this._roleData = t, this._index = 2, this._view.btnleft.visible = !0, this._view.btnright.visible = !0, 1 == this.roleData
			.roleIndex ? (this._view.btnleft.visible = !1, this._view.btnright.visible = !0, this._index = 1) : 3 == this.roleData
			.roleIndex && (this._view.btnleft.visible = !0, this._view.btnright.visible = !1, this._index = 3), this._view.jobimg
			.source = "roleview_job" + this.roleData.job + "_png", this.updateHp(), this.updateMp();
		var e = 0;
		e = 1 == this.roleData.job ? this.roleData.dcmax : 2 == this.roleData.job ? this.roleData.mcmax : this.roleData.scmax,
			this._view.attack_wu_txt.text = "" + e, this._view.wudef_txt.text = "" + this.roleData.acmax, this._view.modef_txt
			.text = "" + this.roleData.macmax, this._view.dodge_txt.text = Number(.01 * this.roleData.juck).toFixed(1) + "%",
			this._view.exact_txt.text = Number(.01 * this.roleData.hit).toFixed(1) + "%", this._view.tenacity_txt.text =
			Number(.01 * this.roleData.tenacity).toFixed(1) + "%", this._view.criticalRate_txt.text = Number(.01 * this.roleData
				.crit).toFixed(1) + "%", this._view.pk_txt.text = this.roleData.pksword + "";
		var i = App.data.warpetCenter.kunCenter.vo,
			n = ["真实伤害", "伤害转移", "抵挡伤害", "致命一击"],
			a = [0, 0, 0, 0],
			o = 0;
		if (null != i)
			for (var r = 0; r < n.length; r++) o = r > 1 ? r + 1 : r, a[r] += App.data.warpetCenter.kunCenter.attrOthers[r] +
				LongUtil.toNumber(i.maxAttrList[o].attribute);
		for (var s = "", r = 0; r < n.length; r++) s += n[r] + "：" + HtmlUtil.formatColor(Math.floor(a[r]) + "", 15397963) +
			"\n";
		this._view.kun_txt.textFlow = HtmlUtil.getHtmlStr(s)
	}, e.prototype.updateHp = function(t, e, i) {
		void 0 === t && (t = ""), void 0 === e && (e = -1), void 0 === i && (i = -1);
		var n = this.roleData;
		null == n || n.personId != t && "" != t || (this._view.hp_txt.text = this.roleData.maxHp + "")
	}, e.prototype.updateMp = function(t, e, i) {
		void 0 === t && (t = ""), void 0 === e && (e = -1), void 0 === i && (i = -1);
		var n = this.roleData;
		null == n || n.personId != t && "" != t || (this._view.mp_txt.text = "" + this.roleData.maxMp)
	}, e.prototype.addGuildName = function(t, e) {}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		this._view = null
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return this._roleData
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "mainRoleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(CharacterItemPanel.prototype, "CharacterItemPanel");
var ChuanQiOneView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e._fuseid = 0, e.iswearequip = !1, e._equipid = 0, e._equipIndex = 0, e.selectType = 43, e.curritemid =
			"", e.isshowbottom = !0, e.euiSkinName = "ChuanQiViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject, this._gridshow = new HashObject, this._selectBgDict = new HashObject;
		for (var t = [this.selectbg0, this.selectbg7, this.selectbg1, this.selectbg8, this.selectbg3, this.selectbg13, this
				.selectbg5, this.selectbg12
			], e = 0; 8 > e; e++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.part = this.getPart(e), i.place = EnumGrid.GODEQUIP, i.isShowJobImg = !1, i.x = e % 2 * 462 + 51, i.y = 84 + 109 *
				Math.floor(e / 2), i.isShowTip = !1, i.touchEnabled = !0, this.addChild(i), this._gridDict.put(i.part, i), this._selectBgDict
				.put(i.part, t[e])
		}
		for (var n = 0; 2 > n; n++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.setGradeBg(GridUtil.getGridGradeBg(-1)), i.isShowTip = !1, i.isShowJobImg = !1, i.isShowDesc = !1, 0 == n ? (i.x =
				47, i.y = 90, this.group1.addChild(i)) : (i.x = -19, i.y = 97, this.group2.addChild(i)), this._gridshow.put(n, i)
		}
		this.gridBigBg1.source = "chuanqi_taozhuangkuang2_png", this.gridBigBg.source = "chuanqi_taozhuangkuang1_png", this
			.gridBigBg.x = 23, this.gridBigBg1.x = -186, this.chuanqititle.visible = this.chuanqitaozhuang.visible = this.desc2group
			.visible = this.group11.visible = !0
	}, e.prototype.show = function(t) {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("taozhuangbg43",
				"", ".jpg"))), this._dispatcher.addEventListener(EventType.WEAR_LIST_REFRESH, this.refClick, this), this._dispatcher
			.addEventListener(EnumRole.Decompose, this.showxiaohao, this), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2,
				this.refreshRoleData, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.shengjiClick,
				this, this.shengjibtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getgodClick, this,
				this.getgod), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.showSuiPian, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.CHUANQITAOZHUANG, this.wearRefreshView, this), this.addgridevent(), this.refreshView()
	}, e.prototype.refreshView = function(t) {
		void 0 === t && (t = 43), this.selectType = t, this.refresh(), this.showxiaohao(), this.showSuiPian(), this.guildicon
			.source = "chuanqi_icon" + t + "_png", this.showskill(), this.chuanqititle.source = "chuanqi_z" + t + "_png",
			RoleMainView.roleSelectView = this.gettypeid(t), this.bgimg.url = ResPathUtil.getImgPath("taozhuangbg" + t, "",
				".jpg");
		var e = "获取神兽碎片";
		switch (t) {
			case 43:
				e = "获取玄武碎片";
				break;
			case 44:
				e = "获取朱雀碎片";
				break;
			case 45:
				e = "获取青龙碎片";
				break;
			case 46:
				e = "获取白虎碎片";
				break;
			case 47:
				e = "获取烛龙碎片"
		}
		this.getgod.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(e))
	}, e.prototype.gettypeid = function(t) {
		return 43 == t ? EnumItemId.JINGANG : 44 == t ? EnumItemId.KUANGFENG : 45 == t ? EnumItemId.HONGMO : 46 == t ?
			EnumItemId.QIDAO : 47 == t ? EnumItemId.KEJIN : void 0
	}, e.prototype.showskill = function() {
		var t = App.config.q_equip_masterContainer.getDataBean(8e5 + 100 * this.selectType + 1),
			e = App.config.q_skillModelContainer.getDataBean(Number(t.q_suit_skill));
		null == this.skillicon && (this.skillicon = UIMaker.getCImage(this, this, ResPathUtil.getIcon(e.q_small_icon + "",
				"skill/80", ".jpg"), this.chuanqitaozhuang.x + 6, this.chuanqitaozhuang.y + 6)), this.skillicon.touchEnabled = !1,
			this.skillicon.url = ResPathUtil.getIcon(e.q_small_icon + "", "skill/80", ".jpg")
	}, e.prototype.wearRefreshView = function() {
		this.refresh(), this.showxiaohao(), this.showSuiPian()
	}, e.prototype.showFigh = function(t) {
		this._fightBmp ? (this._fightBmp.x = 150, this._fightBmp.y = 30, this._fightBmp.setValue(t)) : (this._fightBmp =
			new FightPower, this._fightBmp.x = 150, this._fightBmp.y = 30, this._fightBmp.setValue(t), this.addChild(this._fightBmp)
		)
	}, e.prototype.addgridevent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGridClick, this, e)
		}
	}, e.prototype.showSuiPian = function(t) {
		void 0 === t && (t = null), this.clearEffect();
		var e = App.data.bagItemDataCenter.getAllTypeProp(this.selectType);
		e.length > 0 ? (this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"),
			523, 588), this.imgred.visible = !0) : (this.imgred.visible = !1, this.clearEffect())
	}, e.prototype.refClick = function() {
		this.refresh()
	}, e.prototype.getgodClick = function() {
		App.data.bagItemDataCenter.fenjiTYPE = this.selectType, App.panel.openPanel(27, App.data.bagItemDataCenter.getAllTypeProp(
			this.selectType))
	}, e.prototype.shengjiClick = function() {
		var t = App.config.q_equip_fuseContainer.getDataBean(this._fuseid),
			e = StringUtil.JsonParse(t.q_consume),
			i = 0;
		if (i = "升 级" == this.shengjibtn.label || "合 成" == this.shengjibtn.label ? e[0].num : App.data.characterCenter.getFuseEquipSuipian(
				this._fuseid, GameUtil.getEquipConfigData(t.q_equip_model_id).q_kind, this.roleData), "" != this.curritemid)
			return void EquipFuseCommandSender.sendWearChuanqi(this.curritemid, this.Index, this.selectType, this._equipIndex +
				100 * this.selectType);
		if (e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= i) {
			if (PanelOpenManager.openBagFullAlert()) return;
			0 == this._equipid ? EquipFuseCommandSender.sendEquipFuseMessage(this._fuseid, null, this.Index, this._equipIndex +
				100 * this.selectType) : EquipFuseCommandSender.sendEquipFuseMessage(this._fuseid, [this._equipid], this.Index,
				this._equipIndex + 100 * this.selectType)
		} else App.panel.openPanel(19, e[0].id)
	}, e.prototype.showgroup = function() {
		this.group1.x = 250, this.group11.x = 31, this.group2.visible = !1, this.gridBigBg.visible = !0, this.gridBigBg1.visible = !
			1, this.gro1title.x = 32, this.gro1title0.x = 24
	}, e.prototype.showGridClick = function(t) {
		var e = t.$currentTarget;
		if (this.group1.visible = !0, 0 == e.itemId) {
			this.showgroup(), this._gridshow.get(0).x = 47;
			var i = App.data.characterCenter.getGuildEquipID(e.itemId, e.part + 100 * this.selectType);
			i ? (this._gridshow.get(0).setData(i.q_id), this.showgro1Text(i.q_id), this._equipIndex = e.part) : (this._gridshow
				.get(0).setData(null), this._equipIndex = 0)
		} else {
			this.group1.x = 180, this.group11.x = 11, this.gro1title.x = 44, this.gro1title0.x = 31, this.gro2title.x = -41,
				this._gridshow.get(0).x = 54, this.group2.visible = !0, this._gridshow.get(0).setData(e.itemId), this.showgro1Text(
					e.itemId);
			var n = (1 == e.part ? this.roleData.sex : 0, App.data.characterCenter.getGuildEquipID(e.itemId, e.part + 100 *
				this.selectType));
			n ? (this._gridshow.get(1).setData(n.q_id), this.showgro2Text(n.q_id), this.gridBigBg1.visible = !0, this.gridBigBg
				.visible = !1) : (this._gridshow.get(1).setData(null), this._gridshow.get(0).x = 47, this.showgroup(), this.gridBigBg
				.visible = !0, this.gridBigBg1.visible = !1), this._equipIndex = e.part
		}
		0 != e.itemId ? (this._equipid = Number(this.getequip(e.itemId)), 0 != this._gridshow.get(1).itemId && App.data.characterCenter
				.getFuseEquip(this._gridshow.get(1).itemId) ? this._fuseid = App.data.characterCenter.getFuseEquip(this._gridshow
					.get(1).itemId).q_id : this._fuseid = 0) : 0 == this._gridshow.get(0).itemId ? (this._equipid = 0, this._fuseid =
				0, this.group1.visible = !1) : (this._equipid = Number(this.getequip(this._gridshow.get(0).itemId)), this._fuseid =
				App.data.characterCenter.getFuseEquip(this._gridshow.get(0).itemId).q_id), this._selectBgImg && (this._selectBgImg
				.visible = !1), this._selectBgImg = this._selectBgDict.get(e.part), this._selectBgDict.get(e.part).visible = !0,
			this.showxiaohao()
	}, e.prototype.showgro1Text = function(t) {
		var e = GameUtil.getEquipConfigData(t);
		this.gro1pingfen.text = "评分：" + e.q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(e.q_add_attribute_client), this.gro1att.text = i.getStrByBaseAttributeBean(i), this.gro1title0.text =
			e.q_name, this.gro1title.text = 0 == GameUtil.getItemConfigData(t).q_zhuanshen ? "LV:" + GameUtil.getItemConfigData(
				t).q_level : GameUtil.getItemConfigData(t).q_zhuanshen + "阶"
	}, e.prototype.showgro2Text = function(t) {
		var e = GameUtil.getEquipConfigData(t);
		this.gro2pingfen.text = "评分：" + e.q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(e.q_add_attribute_client), this.gro2att.text = i.getStrByBaseAttributeBean(i), this.gro2title0.text =
			e.q_name, this.gro2title.text = 0 == GameUtil.getItemConfigData(t).q_zhuanshen ? "LV:" + GameUtil.getItemConfigData(
				t).q_level : GameUtil.getItemConfigData(t).q_zhuanshen + "阶"
	}, e.prototype.getequip = function(t) {
		for (var e = App.data.wearEquipCenter.getRoleWearList(this.roleData.roleIndex), i = 0; i < e.length; i++)
			if (e[i].itemId == t) return e[i].id;
		return "0"
	}, e.prototype.getequipScore = function(t, e) {
		var i;
		i = e ? App.data.wearEquipCenter.getRoleWearList(e.roleIndex) : App.data.wearEquipCenter.getRoleWearList(this.roleData
			.roleIndex);
		for (var n = 0; n < i.length; n++)
			if (i[n].position == t) return GameUtil.getEquipConfigData(i[n].itemId).q_score;
		return 0
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.refresh(), this.showxiaohao()
	}, e.prototype.showxiaohao = function() {
		this.isshowbottom = !0, App.data.characterCenter.ChuanqiEquipRedPoint(this.roleData.roleIndex, this.selectType, !0);
		for (var t = App.data.characterCenter._chuanqiEquipHash, e = 0; 8 > e; e++) {
			var i = this.getPart(e),
				n = this._gridDict.get(i);
			n && n.setRedDot(t.get(n.part))
		}
		if (0 == this._fuseid) this.shengjibtn.label = "已满级", this.xiaohaogroup.visible = !1, UIMaker.showPoint(this.redpointGroup,
			this, !1);
		else {
			this.xiaohaogroup.visible = !0;
			var a = App.config.q_equip_fuseContainer.getDataBean(this._fuseid),
				o = (GameUtil.getItemConfigData(a.q_equip_model_id), StringUtil.JsonParse(a.q_consume));
			0 == this._gridDict.get(this._equipIndex).itemId ? this.shengjibtn.label = "合 成" : this.shengjibtn.label = "升 级",
				this.curritemid = "";
			var r = App.data.bagItemDataCenter.getPropItemList(this.selectType);
			if (r.length > 0)
				for (var s = 0; s < r.length; s++) GameUtil.getEquipConfigData(r[s].itemId).q_kind == GameUtil.getEquipConfigData(
					a.q_equip_model_id).q_kind && r[s].itemId >= a.q_equip_model_id && (this.shengjibtn.label = "装 备", this.xiaohaogroup
					.visible = !1, this.curritemid = r[s].id);
			this.xiaohaotext.text = "/" + o[0].num, App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num ? (this.xiaohaotext0
					.textColor = 2863402, this.isshowbottom = !1) : this.xiaohaotext0.textColor = 11996943, this.xiaohaotext0.text =
				App.data.bagItemDataCenter.getItemCount(o[0].id) + "", this.xiaohaotext.x = this.xiaohaotext0.x + this.xiaohaotext0
				.width + 2
		}
	}, e.prototype.refresh = function() {
		for (var t = App.data.characterCenter.ChuanqiEquipsHash.get(this.roleData.roleIndex), e = t.get(this.selectType), i =
				0; 8 > i; i++) {
			var n = this.getPart(i),
				a = this._gridDict.get(n);
			a && (a.setData(100001), a.setData(null))
		}
		if (e)
			for (var o = 0; o < e.length; o++)
				if (e && e[o]) {
					var r = this._gridDict.get(e[o].pos - 100 * this.selectType);
					null != r && r.setData(e[o].itemid)
				} for (var s = 0; 1 > s; s++) {
			var h = this._gridDict.get(this._equipIndex),
				l = new GameEvent(egret.TouchEvent.TOUCH_TAP);
			l.$currentTarget = h, this.showGridClick(l)
		}
		this.showFigh(App.data.characterCenter.getAllChuanqiFight(this.Index, this.selectType)), App.tip.addTip(this.chuanqitaozhuang,
			new TipData(20, {
				index: this.Index,
				selecttype: this.selectType
			}))
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI : 1 == t ? t = EnumEquipType.TOU_KUI : 2 == t ? t = EnumEquipType.YI_FU : 3 ==
			t ? t = EnumEquipType.XIANG_LIAN : 4 == t ? t = EnumEquipType.SHOU_ZHUO : 5 == t ? t = EnumEquipType.YAO_DAI : 6 ==
			t ? t = EnumEquipType.JIE_ZHI : 7 == t && (t = EnumEquipType.XIE_ZI), t
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearEffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.hide = function() {
		UIMaker.showPoint(this.redpointGroup, this, !1), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.skillicon &&
			(this.skillicon.dispose(), this.skillicon = null), this.clearEffect(), this._dispatcher.removeAllListeners(), t.prototype
			.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		this._selectBgDict && (this._selectBgDict.dispose(), this._selectBgDict = null), this._fightBmp && (this._fightBmp.dispose(),
			this._fightBmp = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ChuanQiOneView.prototype, "ChuanQiOneView");
var ChuanQiTaoZhuangItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = -1, e.skinName = "ChuanQiTaoZhuangItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(PlayerAttributeEvent.CHUANQITAOZHUANG, this
			.wearRefreshView, this), this._dispatcher.addEventListener(EnumRole.Decompose, this.wearRefreshView, this)
	}, e.prototype.dataChanged = function() {
		var t = Number(this.data);
		this.index = t, App.data.characterCenter.showChuanqiequipRed(this.index) ? this.redimg.visible = !0 : this.redimg.visible = !
			1, this.img.source = "chuanqi_taozhuang" + this.index + "_png", this.img.width = this.img.height = 90
	}, e.prototype.wearRefreshView = function() {
		App.data.characterCenter.showChuanqiequipRed(this.index) ? this.redimg.visible = !0 : this.redimg.visible = !1
	}, e.prototype.selectItem = function(t) {
		this.selectbg.visible = t
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ItemRenderer);
__reflect(ChuanQiTaoZhuangItem.prototype, "ChuanQiTaoZhuangItem");
var ChuanQiTaoZhuangViewPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectIndex = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowMain, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"ChuanQiTaoZhuangViewSkin"), this._window.viewContainer.addChild(this._view), this._window.imgTitle.source =
			"titleview_shenshou_png", this._vscroller = new VScrollPanel(100, 100, ChuanQiTaoZhuangItem, 10, null, 2), this._btnClose =
			this._window.close_btn, this._view.itemGroup.addChild(this._vscroller), null == this.godView && (this.godView =
				new ChuanQiOneView), this._view.viewgroup.addChild(this.godView)
	}, e.prototype.showitem = function() {
		var t = [];
		App.global.funcOpen.isFunctionOpen(162) && t.push(43), App.global.funcOpen.isFunctionOpen(163) && t.push(44), App.global
			.funcOpen.isFunctionOpen(164) && t.push(45), App.global.funcOpen.isFunctionOpen(165) && t.push(46), App.global.funcOpen
			.isFunctionOpen(166) && t.push(47), this._vscroller.width = 110 * t.length, this._vscroller.dataProvider = t, this
			._vscroller.scrollPolicyH = eui.ScrollPolicy.OFF
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._window.show(), this._window.showRoleList(!0), this.showitem();
		var i = 0;
		i = null == e ? 0 : e.selectedIndex ? e.selectedIndex : 0, this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP,
			this.fuliView, this, this._vscroller.list), this.godView.show(), App.timer.doFrameOnce(this, 1, this.callLater, [
			i
		])
	}, e.prototype.callLater = function(t) {
		void 0 === t && (t = 0), this._vscroller.selectedIndex = t, this.curritem = this._vscroller.list.getChildAt(t),
			this.curritem && (this._selectIndex = this.curritem.index, this.curritem.selectItem(!0), this._window.roleList.functionid =
				this.getfunctinid(this._selectIndex), this._window.roleList.showPoint(this.getfunctinid(this._selectIndex)), this
				._window.imgTitle.source = "titleview_shenshou_png", this.godView.refreshView(this._selectIndex))
	}, e.prototype.fuliView = function(t) {
		this.curritem && this.curritem.selectItem(!1), this.curritem = t.itemRenderer, this.curritem.selectItem(!0), this._selectIndex !=
			this.curritem.index && (this._selectIndex = this.curritem.index, this._window.roleList.functionid = this.getfunctinid(
					this._selectIndex), this._window.roleList.showPoint(this.getfunctinid(this._selectIndex)), this._window.imgTitle
				.source = "titleview_shenshou_png", this.godView.refreshView(this._selectIndex))
	}, e.prototype.getfunctinid = function(t) {
		return 43 == t ? 162 : 44 == t ? 163 : 45 == t ? 164 : 46 == t ? 165 : 47 == t ? 166 : void 0
	}, e.prototype.hide = function() {
		if (t.prototype.hide.call(this), this.godView.hide(), this._window.hide(), this._selectIndex = -1, this._viewHash) {
			for (var e = 0; e < this._viewHash.length; e++) {
				var i = this._viewHash.get(e);
				i && (i.hide(), i.dispose())
			}
			this._viewHash.dispose(), this._viewHash = null
		}
		if (this._itemHash) {
			for (var e = 0; e < this._itemHash.length; e++) this._itemHash.get(e).hide();
			this._itemHash.dispose(), this._itemHash = null
		}
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.removeAll(), this._vscroller.dispose(), this._vscroller = null), this._window &&
			(this._window.dispose(), this._window = null), this.godView && (this.godView.dispose(), this.godView = null), this
			._view && (this._view = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(ChuanQiTaoZhuangViewPanel.prototype, "ChuanQiTaoZhuangViewPanel");
var DecomposeItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "DecomposeItemSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null), Guide.getGuide().hide()
	}, e.prototype.creategrid = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.isShowTip = !1, this.addChild(
			this.grid), this.grid.x = 15, this.grid.y = 15
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickBuy,
			this, this.fenjiebtn), this.creategrid()
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, this.titletext.text = this._bean.name, this.grid.setData(this._bean);
		var t = "";
		if (1 == this._bean.type) this._bean.bean.q_default == EnumNumber.gold ? t = "破天碎片 x " : (t = "神装碎片 x ", App.data.taskCenter
			.getThreadTaskShowGuide(15) && 0 == this.itemIndex && Guide.getGuide().show("点击分解神装", Guide.RIGHT, this.fenjiebtn
				.x - 175, this.fenjiebtn.y + 20, this.fenjiebtn.parent));
		else if (34 == this._bean.type) t = "灵台碎片 x ";
		else if (31 == this._bean.type) {
			var e = StringUtil.JsonParse(this._bean.getEquipDataBean().q_resolve)[0].id,
				i = App.config.q_itemContainer.getDataBean(e);
			t = i.q_name + " x "
		} else t = "碎片 x ";
		if (41 == this._bean.type) {
			var n = App.data.pictureCenter().getBeanByItemID(this._bean.itemId);
			n && (this.suipiantext.text = "图鉴经验" + n.q_card_remove)
		} else if (App.data.advanceDataCenter.isAdvanceEquipType(this._bean.type)) {
			var a = App.config.q_equipContainer.getDataBean(this._bean.itemId),
				o = StringUtil.JsonParse(a.q_resolve),
				r = o[0].id,
				s = o[0].num,
				h = void 0,
				l = 0,
				p = 0;
			if (this._bean.gradeNum > 0) {
				var c = App.data.advanceDataCenter.getAdvanceEquipByKindAndLevel(a.q_kind, this._bean.gradeNum);
				h = StringUtil.JsonParse(c.q_resolve), l = h[0].id, p = h[0].num
			}
			var _ = App.config.q_itemContainer.getDataBean(r);
			this.suipiantext.text = _.q_name + " X " + (s + p)
		} else this.suipiantext.text = t + StringUtil.JsonParse(this._bean.getEquipDataBean().q_resolve)[0].num
	}, e.prototype.onClickBuy = function(t) {
		41 == this._bean.type ? ExploitCommandSender.sendC2S_TuJianFenJieMessage([this._bean.id]) : ItemCommandSender.sendEquipHuiShou(
			[this._bean.id]), Guide.getGuide().hide()
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e
}(ItemRenderer);
__reflect(DecomposeItem.prototype, "DecomposeItem");
var DecomposePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("DecomposePanelSkin"), this.addChild(this._view), this._vscroller = new VScrollPanel(
				518, 527, DecomposeItem, 0), this._view.vscro.addChild(this._vscroller), this._itemList = new VScrollPanel(516,
				166, ConsumeItemView, 4), this._itemList.move(6, -1), this._view.itemgroup.addChild(this._itemList), this._view.group2
			.visible = !0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EnumRole.Decompose, this.showxiaohao, this), this
			._shopAry = e, this._vscroller.dataProvider = this._shopAry, 0 == this._shopAry.length ? this._view.isCanText.visible = !
			0 : this._view.isCanText.visible = !1, this.showItemGroup()
	}, e.prototype.showItemGroup = function() {
		var t = GameUtil.getItemConfigData(RoleMainView.roleSelectView),
			e = t.q_input_intro.replace("[", "");
		e = e.replace("]", "");
		var i = e.split(","),
			n = i.length;
		this._dataAry = [];
		for (var a, o, r = 0; n > r; r++) o = App.config.q_output_introContainer.getDataBean(i[r]), a = new ConsumeData, a.name_des =
			o.q_output_title, a.panelId = o.q_change_ui, a.scendid = o.q_need_level, a.functinid = o.q_need_level_zs, this._dataAry
			.push(a);
		n > 1 ? (this._view.itemgroup.height = 166, this._itemList.height = 166) : (this._view.itemgroup.height = 50, this._itemList
				.height = 50), this._view.bg.height = this._view.itemgroup.y + this._view.itemgroup.height - 75, this._view.bg0.height =
			this._view.itemgroup.y + this._view.itemgroup.height - 75, this._view.group1.y = this._view.bg.y + this._view.bg.height +
			5, null != this._dataAry && (this._itemList.dataProvider = this._dataAry)
	}, e.prototype.showxiaohao = function() {
		if (1 == App.data.bagItemDataCenter.fenjiTYPE) App.data.bagItemDataCenter.fenjiAdvanceTYPE ? this._vscroller.dataProvider =
			App.data.bagItemDataCenter.getAdvanceEquipByType(App.data.bagItemDataCenter.fenjiAdvanceTYPE) : this._vscroller.dataProvider =
			App.data.bagItemDataCenter.getQualityEquipList(EnumNumber.red);
		else if (34 == App.data.bagItemDataCenter.fenjiTYPE) {
			App.data.characterCenter.hejiEquipCenter.setCanDessProp();
			var t = App.data.characterCenter.hejiEquipCenter.getCanDessProp();
			0 == t.length && this.onClose(), this._vscroller.dataProvider = t
		} else 88 == App.data.bagItemDataCenter.fenjiTYPE ? this._vscroller.dataProvider = App.data.bagItemDataCenter.getPropItemList(
				88) : 41 == App.data.bagItemDataCenter.fenjiTYPE ? this._vscroller.dataProvider = App.data.pictureCenter().getDecomposeList() :
			this._vscroller.dataProvider = App.data.bagItemDataCenter.getAllTypeProp(App.data.bagItemDataCenter.fenjiTYPE)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._itemList.removeAll(), this._dispatcher.removeAllListeners(),
			App.data.bagItemDataCenter.fenjiAdvanceTYPE = 0
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._itemList && (this._itemList.dispose(), this._itemList = null), this._vscroller &&
			(this._vscroller.dispose(), this._vscroller = null), this._shopAry = null, this._view.dispose(), this._view = null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._view.width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._view.height
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(DecomposePanel.prototype, "DecomposePanel");
var EnumNumber;
! function(t) {
	t[t.exp_zhuansheng = .015] = "exp_zhuansheng", t[t.white = 0] = "white", t[t.green = 1] = "green", t[t.blue = 2] =
		"blue", t[t.violet = 3] = "violet", t[t.orange = 4] = "orange", t[t.red = 5] = "red", t[t.gold = 6] = "gold"
}(EnumNumber || (EnumNumber = {}));
var GetMetempsyItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isDispose = !1, e.skinName = "GetMetempsyItemSkin", e
	}
	return __extends(e, t), e.prototype.creategrid = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.addChild(this.grid), this.grid.x = 15,
			this.grid.y = 15
	}, e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null)
	}, e.prototype.refreshMyMetem = function(t, e) {
		if (void 0 === t && (t = null), void 0 === e && (e = !0), 10061 == this._bean.q_id || 10060 == this._bean.q_id) {
			var i = GameUtil.getItemConfigData(-5);
			this.grid.isShowDesc = !1, this.grid.setData(i.q_id);
			var n = GameUtil.getItemNameColor(this._bean.q_itemModelId),
				a = GameUtil.getCharacterConfigData(t.curExchangeLevel);
			this.name_txt0.textFlow = HtmlUtil.getHtmlStr("当前等级:<font color = '0x9b4eaf'>" + App.global.characterData.level +
				"</font>级"), 10061 == this._bean.q_id ? (this._metemInfo = t, this.count_txt.text = "当前可领取" + t.curExchangeLevel +
				"级转生修为", this.canbuytext.text = "今天还可兑换" + this._metemInfo.count + "次", this.name_txt.textFlow = HtmlUtil.getHtmlStr(
					"增加<font color = '#2bb12a'>" + a.q_repair_to_exp + "</font>修为"), this._metemInfo.count > 0 && App.global.characterData
				.level > 80 ? this.redimg.visible = !0 : this.redimg.visible = !1) : (App.data.characterCenter.lunhuiCount > 0 &&
				App.global.characterData.level > 80 ? this.redimg.visible = !0 : this.redimg.visible = !1, this.count_txt.text =
				"当前可领取" + App.data.characterCenter.curExchangeLevel + "级轮回修为", this.canbuytext.text = "今天还可兑换" + App.data.characterCenter
				.lunhuiCount + "次", this.name_txt.textFlow = HtmlUtil.getHtmlStr("增加<font color = '#2bb12a'>" + a.q_repair_to_exp +
					"</font>轮回业力"));
			this._bean.q_price, App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.count_txt.textColor = 10178223, this.canbuy.visible = !1, this.yuanbao.visible = !1
		} else {
			var i = GameUtil.getItemConfigData(this._bean.q_itemModelId);
			this.grid.isShowDesc = !1, this.grid.setData(i.q_id);
			var n = GameUtil.getItemNameColor(this._bean.q_itemModelId);
			this.name_txt.textFlow = HtmlUtil.getHtmlStr(i.q_describe.split("\n")[0]), this.name_txt0.textColor = n;
			this._bean.q_price;
			this.name_txt0.text = i.q_name;
			App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.count_txt.text = i.q_name + "", this.count_txt.textColor = n, this.canbuytext.text = "今天还可使用" + App.data.bagItemDataCenter
				.getItemRemainNum(i.q_id) + "次", App.data.bagItemDataCenter.getItemCount(i.q_id) > 0 ? (this.canbuy.text = "剩余" +
					App.data.bagItemDataCenter.getItemCount(i.q_id) + "个", this.Btn.label = "使 用", this.redimg.visible = !0, this.yuanbao
					.visible = !1) : (this.canbuy.text = "" + this._bean.q_price, this.Btn.label = "购 买", this.yuanbao.visible = !0,
					this.redimg.visible = !1), 0 == App.data.bagItemDataCenter.getItemRemainNum(i.q_id) && (this.redimg.visible = !1),
				this.canbuy.visible = !0
		}
	}, e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(EventType.MY_METEM, this.refreshMyMetem, this), this._dispatcher.addEventListener(
			PlayerAttributeEvent.LUNHUILEVEL, this.refreshMyMetem, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onClickBuy, this, this.Btn), this.creategrid()
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, CharacterUICommandSender.getMetempsychosisInfo()
	}, e.prototype.onClickBuy = function(t) {
		10061 == this._bean.q_id ? App.global.characterData.level > App.config.q_functionContainer.getDataBean(26).q_open_level ?
			CharacterUICommandSender.sendExpToXiuwei() : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">您的等级不足以兑换转生修为</font>") : 10060 == this._bean.q_id ? App.global.characterData.level > App.config.q_functionContainer
			.getDataBean(26).q_open_level ? CharacterUICommandSender.sendExpToLunhuiXiuwei() : Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">您的等级不足以兑换轮回修为</font>") : "购 买" == this.Btn.label ? App.global.itemBuy.buy(
				this._bean, 1, !1) : App.global.itemUse.useItemByItemId(this._bean.q_itemModelId)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e
}(ItemRenderer);
__reflect(GetMetempsyItemView.prototype, "GetMetempsyItemView");
var GetMetempsyPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e._metemTileAry = [], e.isDispose = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase("GetMetempsySkin"),
			this._window.viewContainer.addChild(this._view), this._window.height = 450, this._btnClose = this._window.close_btn,
			this._vscroller = new VScrollPanel(507, 403, GetMetempsyItemView, 0), this._view._scoller.addChild(this._vscroller)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = Number(e);
		ShopCommandSender.sendRequestShopListMessage(1), this._dispatcher.addEventListener(EventType.MY_METEM, this.refreshMyMetem,
				this), this._dispatcher.addEventListener(EventType.refreshMetemNum, this.refreshMetemNum, this), this._dispatcher
			.addEventListener(ItemEvent.CHANGE, this.refreshMetemNum, this), this._dispatcher.addEventListener(ItemEvent.ADD,
				this.refreshMetemNum, this), CharacterUICommandSender.getMetempsychosisInfo(), 7 == i ? this._window.setTitle(
				"获取转生修为") : this._window.setTitle("获取轮回业力"), this._shopAry = App.data.quickPurchaseShopCenter.getQuickPurchaseShopItemList(
				i, 7 == i ? 10061 : 10060), this._vscroller.dataProvider = this._shopAry, App.data.characterCenter.zhuanslogin = !
			1
	}, e.prototype.refreshMyMetem = function(t, e) {
		void 0 === e && (e = !0), this._metemInfo = t
	}, e.prototype.refreshMetemNum = function(t, e) {
		void 0 === e && (e = 0), this._vscroller.dataProvider = this._shopAry
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 444
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view.dispose(), this._view = null, this._shopAry = null
	}, e
}(BasePanel);
__reflect(GetMetempsyPanel.prototype, "GetMetempsyPanel");
var HeChengItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ChangeEquipSkin", e
	}
	return __extends(e, t), e.prototype.creategrid = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.isShowTip = !1, this.grid.isShowDesc = !
			1, this.addChild(this.grid), this.grid.x = 20, this.grid.y = 10;
		var t = new eui.HorizontalLayout;
		t.gap = 0, this.starGroup.layout = t
	}, e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickBuy,
			this, this.fenjiebtn), this.creategrid(), this.fenjiebtn.label = "选 择"
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, this.titletext.text = this._bean.name;
		var t = this._bean.getDataBean().q_id;
		this.titletext.textColor = GameUtil.getItemNameColor(t);
		var e = "等级：";
		this.dengji.textFlow = HtmlUtil.getHtmlStr("<font color='0xb19c79'>" + e + "</font>" + (0 == this._bean.getDataBean()
				.q_zhuanshen ? this._bean.getDataBean().q_level + "级" : this._bean.getDataBean().q_zhuanshen + "转")), this.pingfentext
			.text = "评分:" + GameUtil.getEquipConfigData(t).q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(GameUtil.getEquipConfigData(t).q_add_attribute_client), this.shuxing.text = i.getStrByBaseAttributeBean(
			i), this.grid.setData(t);
		var n = GameUtil.getEquipConfigData(t);
		this.starGroup.removeChildren(), this.lbStarLv.text = "", n.q_xingj > 0 ? this.lbStarLv.text = "" : this.lbStarLv.text =
			"0级";
		for (var a = 0; a < n.q_xingj; a++) {
			var o = new eui.Image;
			o.source = "common1_star_light_png", o.width = o.height = 20, this.starGroup.addChild(o)
		}
	}, e.prototype.onClickBuy = function(t) {
		App.panel.removePanel(10001), App.dispatcher.dispatchEvent(EventType.FABAO_SELECT_HECHENG, this.data)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e.flag = !1, e
}(ItemRenderer);
__reflect(HeChengItem.prototype, "HeChengItem");
var HeChengPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._shopAry = [], e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("DecomposePanelSkin"), this.addChild(this._view), this._vscroller = new VScrollPanel(
				516, 600, ChangeEquipItem, 0), this._view.vscro.addChild(this._vscroller), this._itemList = new VScrollPanel(516,
				166, ConsumeItemView, 4), this._itemList.move(6, -1), this._view.itemgroup.addChild(this._itemList), this._view.group2
			.visible = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.toptitle.text = "合成", this._vscroller.dataProvider = this._shopAry, 0 ==
			this._shopAry.length ? (this._view.isCanText.visible = !0, this._view.isCanText.text = "没有可以合成的法宝装备继续战斗吧") : this._view
			.isCanText.visible = !1, this.showListData()
	}, e.prototype.showListData = function() {
		this._vscroller.dataProvider = App.data.bagItemDataCenter.getAllCanHeChengFaBaoEquip()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._itemList.removeAll(), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._shopAry = null, this._itemList && (this._itemList.dispose(), this._itemList =
				null), this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._view.dispose(), this._view =
			null
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._view.width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._view.height
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(HeChengPanel.prototype, "HeChengPanel");
var RoleMainView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.euiSkinName = "RoleMainSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), this.Index = 1, this.addEvent(), this.openZhuangBei(), e.index) switch (e.index) {
			case EnumRoleTab.zhuangbei:
				this.openZhuangBei();
				break;
			case EnumRoleTab.god:
				this.openGodView();
				break;
			case EnumRoleTab.rexue:
				this.openReXue();
				break;
			case EnumRoleTab.heji:
				this.openHeJi(null);
				break;
			case EnumRoleTab.hanghui:
				this.openHangHui();
				break;
			case EnumRoleTab.lunhui:
				this.openLunHui();
				break;
			default:
				this.openZhuangBei()
		}
		this.godEquipGuide(), this.zhuangBeiRed(), this.godRed(), this.reXueRed(), this.heJiRed(), this.hangHuiRed(), this.lunHuiRed()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.openZhuangBei, this, this.zhuangbei), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.openGodView, this, this.godBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.openReXue, this, this.rexueBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openHeJi,
				this, this.hejiBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openHangHui, this, this.hanghuiBtn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openLunHui, this, this.lunhuiBtn), this._dispatcher
			.addEventListener(EventType.EQUIP_GUILD_REFRESH, this.hangHuiRed, this), this._dispatcher.addEventListener(
				ForgeEvent.HEJI_RESULT, this.heJiRed, this), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUIRESULT,
				this.lunHuiRed, this), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUISTARRESULT, this.lunHuiRed,
				this), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUIZHUHUNRESULT, this.lunHuiRed, this), this._dispatcher
			.addEventListener(EventType.SHOW_REDPOINT, this.zhuangBeiRed, this), this._dispatcher.addEventListener(ItemEvent.ADD,
				this.ItemChange, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.ItemChange, this), this._dispatcher
			.addEventListener(ItemEvent.REMOVE, this.ItemChange, this)
	}, e.prototype.godEquipGuide = function() {
		App.data.taskCenter.getThreadTaskShowGuide(22) && this.godequguide.show("点击打造神装", Guide.LEFT, this.godBtn.parent.x +
			280, this.godBtn.parent.y + 45, this.godBtn.parent.parent)
	}, Object.defineProperty(e.prototype, "godequguide", {
		get: function() {
			return null == this._godequguide && (this._godequguide = Guide.getGuide()), this._godequguide
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.zhuangBeiRed = function() {
		UIMaker.showPoint(this.selectGroup1, this, App.data.characterCenter.showEquipRed(), 0, 10)
	}, e.prototype.godRed = function() {
		App.global.funcOpen.isFunctionOpen(132) && UIMaker.showPoint(this.selectGroup2, this, App.data.godEquipCenter.showGodEquipRed(),
			0, 10)
	}, e.prototype.reXueRed = function() {
		UIMaker.showPoint(this.selectGroup3, this, App.data.characterCenter.showHotBloodRed(), 0, 10)
	}, e.prototype.heJiRed = function() {
		UIMaker.showPoint(this.selectGroup4, this, App.data.surfaceCenter.showSurfaceRed(), 0, 10)
	}, e.prototype.hangHuiRed = function() {
		UIMaker.showPoint(this.selectGroup5, this, App.data.characterCenter.showGuildequipRed(), 0, 10)
	}, e.prototype.lunHuiRed = function() {
		UIMaker.showPoint(this.selectGroup6, this, App.data.characterCenter.showLunhuiequipRed(), 0, 10)
	}, e.prototype.ItemChange = function(t, e) {
		void 0 === e && (e = 0), this.godRed(), this.heJiRed(), this.hangHuiRed(), this.reXueRed()
	}, e.prototype.tabBtnSelectHandle = function(t) {
		switch (void 0 === t && (t = -1), this.clearViewGroup(), this.curBtn && (this.curBtn.currentState = "up", this.curBtn
			.enabled = !0), t) {
			case EnumRoleTab.zhuangbei:
				this.zhuangbei.currentState = "down", this.zhuangbei.enabled = !1, this.curBtn = this.zhuangbei;
				break;
			case EnumRoleTab.god:
				this.godBtn.currentState = "down", this.godBtn.enabled = !1, this.curBtn = this.godBtn;
				break;
			case EnumRoleTab.rexue:
				this.rexueBtn.currentState = "down", this.rexueBtn.enabled = !1, this.curBtn = this.rexueBtn;
				break;
			case EnumRoleTab.heji:
				this.hejiBtn.currentState = "down", this.hejiBtn.enabled = !1, this.curBtn = this.hejiBtn;
				break;
			case EnumRoleTab.hanghui:
				this.hanghuiBtn.currentState = "down", this.hanghuiBtn.enabled = !1, this.curBtn = this.hanghuiBtn;
				break;
			case EnumRoleTab.lunhui:
				this.lunhuiBtn.currentState = "down", this.lunhuiBtn.enabled = !1, this.curBtn = this.lunhuiBtn;
				break;
			default:
				this.curBtn = null
		}
		this.curTabType = t, App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_TITLE, t)
	}, e.prototype.openZhuangBei = function() {
		App.global.funcOpen.isFunctionOpen(1, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.zhuangbei), this.roleList.functionid =
			1, this.roleList.showPoint(1), null == this.roleEquipView && (this.roleEquipView = new RoleEquipView), this.viewGroup
			.addChild(this.roleEquipView), this.roleEquipView.show(this.Index)) : this.zhuangbei.selected = !1
	}, e.prototype.openGodView = function() {
		App.global.funcOpen.isFunctionOpen(132, "", !0) ? (e.roleSelectView = 21, this.tabBtnSelectHandle(EnumRoleTab.god),
			this.roleList.functionid = 132, this.roleList.showPoint(132), null == this.godView && (this.godView = new NewGodEquipView),
			this.viewGroup.addChild(this.godView), this.godView.show(this.Index)) : this.godBtn.selected = !1
	}, e.prototype.openReXue = function() {
		App.global.funcOpen.isFunctionOpen(133, "", !0) ? (e.roleSelectView = 22, this.tabBtnSelectHandle(EnumRoleTab.rexue),
			this.roleList.functionid = 133, this.roleList.showPoint(133), null == this.hotView && (this.hotView = new HotBloodView),
			this.viewGroup.addChild(this.hotView), this.hotView.show(this.Index)) : this.rexueBtn.selected = !1
	}, e.prototype.openHeJi = function(t) {
		App.global.funcOpen.isFunctionOpen(54, "", !0) ? (e.roleSelectView = 23, this.tabBtnSelectHandle(EnumRoleTab.heji),
				this.roleList.functionid = 54, null == this.surfaceView && (this.surfaceView = new SurfaceCommonView), this.viewGroup
				.addChild(this.surfaceView), this.surfaceView.show(this.Index)) : this.hejiBtn.selected = !1, t.index && App.dispatcher
			.dispatchEvent(SurfaceEvent.SURFACE_INDEX, t.index)
	}, e.prototype.openHangHui = function() {
		App.global.funcOpen.isFunctionOpen(96, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.hanghui), this.roleList.functionid =
			96, this.roleList.showPoint(96), null == this.guildEquipview && (this.guildEquipview = new GuildEquipView), this.viewGroup
			.addChild(this.guildEquipview), this.guildEquipview.show(this.Index)) : this.hanghuiBtn.selected = !1
	}, e.prototype.openLunHui = function() {
		App.global.funcOpen.isFunctionOpen(99, "", !0) ? (this.tabBtnSelectHandle(EnumRoleTab.lunhui), this.roleList.functionid =
				99, this.roleList.showPoint(99), null == this.reincarnatEquipview && (this.reincarnatEquipview = new ReincarnationEquipView),
				this.viewGroup.addChild(this.reincarnatEquipview), this.reincarnatEquipview.show(this.Index)) : this.lunhuiBtn.selected = !
			1
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hideRedPoint = function() {
		UIMaker.showPoint(this.selectGroup1, this, !1), UIMaker.showPoint(this.selectGroup2, this, !1), UIMaker.showPoint(
			this.selectGroup3, this, !1), UIMaker.showPoint(this.selectGroup4, this, !1), UIMaker.showPoint(this.selectGroup5,
			this, !1), UIMaker.showPoint(this.selectGroup6, this, !1)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.roleEquipView && this.roleEquipView.hide(), this.godView && this.godView.hide(),
			this.hotView && this.hotView.hide(), this.surfaceView && this.surfaceView.hide(), this.guildEquipview && this.guildEquipview
			.hide(), this.reincarnatEquipview && this.reincarnatEquipview.hide(), this.viewGroup.removeChildren(), this.hideRedPoint(),
			this.clearViewGroup(), this.tabBtnSelectHandle(EnumRoleTab.none), this.roleList.touchEnabled = !0, this.roleList.touchChildren = !
			0, this._godequguide && (this._godequguide.hide(), this._godequguide = null)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.clearViewGroup = function() {
		for (; this.viewGroup.numChildren;) {
			var t = this.viewGroup.getChildAt(this.viewGroup.numChildren - 1);
			t && (t.hide(), t.parent.removeChild(t))
		}
	}, e.roleSelectEquipKind = 0, e.roleSelectView = 23, e.isshowsurfaceguild = !1, e
}(ViewBase);
__reflect(RoleMainView.prototype, "RoleMainView");
var EnumRoleTab;
! function(t) {
	t[t.none = -1] = "none", t[t.zhuangbei = 0] = "zhuangbei", t[t.god = 1] = "god", t[t.rexue = 2] = "rexue", t[t.heji =
		3] = "heji", t[t.hanghui = 4] = "hanghui", t[t.lunhui = 5] = "lunhui"
}(EnumRoleTab || (EnumRoleTab = {}));
var RolePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.registerSubPanel(0, RoleMainView, "titleview_zhuangbei_png", 1, !0, !0), this.window
			.imgBottom.y += 65, App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, this.updateFightPower,
				this), App.dispatcher.addEventListener(PlayerAttributeEvent.ROLE_CHANGE_TITLE, this.setTitle, this)
	}, e.prototype.updateFightPower = function(t) {
		0 > t ? this.window.showFightPower(!1) : (this.window.showFightPower(!0), this.window.fightPower.setValue(t))
	}, e.prototype.setTitle = function(t) {
		switch (t) {
			case EnumRoleTab.zhuangbei:
				this.window.imgTitle.source = "titleview_zhuangbei_png";
				break;
			case EnumRoleTab.god:
				this.window.imgTitle.source = "titleview_shenzhuang_png";
				break;
			case EnumRoleTab.rexue:
				this.window.imgTitle.source = "titleview_potian_png";
				break;
			case EnumRoleTab.heji:
				this.window.imgTitle.source = "titleview_zhuangban_png";
				break;
			case EnumRoleTab.hanghui:
				this.window.imgTitle.source = "titleview_mieshen_png";
				break;
			case EnumRoleTab.lunhui:
				this.window.imgTitle.source = "titleview_lunhui_png"
		}
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), App.dispatcher.removeEventListener(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER,
			this.updateFightPower, this), App.dispatcher.removeEventListener(PlayerAttributeEvent.ROLE_CHANGE_TITLE, this.setTitle,
			this)
	}, e
}(TabPanel);
__reflect(RolePanel.prototype, "RolePanel");
var RoleRingEquipPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._lastIndex = -1, e._currentIndex = -1, e._count = 0, e._ringNamePre = "SpecialRing_YC_title_png", e._ringSkillNamePre =
			"SpecialRing_YC_skill_png", e.s = [{
				text: "解锁烈焰戒指可以融合前五个特戒\n"
			}, {
				text: "升级烈焰戒指可获得"
			}, {
				text: "巨额属性提升\n",
				style: {
					textColor: 16734426
				}
			}, {
				text: "融合后烈焰戒指将"
			}, {
				text: "跟随玩家出战\n",
				style: {
					textColor: 16734426
				}
			}, {
				text: "烈焰戒指"
			}, {
				text: "拥有独立的强力技能\n",
				style: {
					textColor: 16734426
				}
			}], e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = new RoleRingEquipUI, this._view.y = 60, this._scollPanel = new VScrollPanel(
				190, 840, RingItemRender, 7), this._scollPanel.move(495, 30), this._view.addChild(this._scollPanel), this._window =
			new WindowMain, this._window.show(), this._window.imgTitle.source = "titleview_tejie_png", this._btnClose = this._window
			.close_btn, this.addChild(this._window), this._window.viewContainer.addChild(this._view)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnClose, this, this._btnClose), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnActive, this, this._view.btnActive), this._dispatcher.addEventListener(
				ActivityEvent.UPDATEPANEL_RING, this.updatePanel, this), this._dispatcher.addEventListener(RingEvent.ACTIVE_SUCCESS,
				this.onSuccessActive, this), this._scollPanel.list.addEventListener(eui.ItemTapEvent.ITEM_TAP, this.onUpdateList,
				this), ActivityCommandSender.sendC2S_GetSpecialRing()
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this.addEvent(), this.updatePanel()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), null != this._effRing && (this._effRing.stop(), this._effRing.dispose(), this._effRing =
				null), this._scollPanel.list.removeEventListener(eui.ItemTapEvent.ITEM_TAP, this.updateList, this), this._scollPanel
			.removeAll(), this._view.hide()
	}, e.prototype.dispose = function() {
		null != this._window && (this._window.dispose(), this._window = null), null != this._scollPanel && (this._scollPanel
				.dispose(), this._scollPanel = null), this._view && (this._view.dispose(), this._view = null), t.prototype.dispose
			.call(this)
	}, e.prototype.updateList = function(t) {
		var e = (App.data.getRingDataCenter().getRingGotID(), App.data.getRingDataCenter().getItemData(t));
		this._view.imgRingName.source = this._ringNamePre + e.bean.q_ring_id;
		var i = e.bean.q_ring_skill_id,
			n = App.config.q_skillModelContainer.getDataBean(i);
		if (null != n) {
			var a = n.q_tips_desc;
			this._view.labSpecialAtt.textFlow = HtmlUtil.getHtmlStr(a)
		} else this._view.labSpecialAtt.textFlow = void 0;
		this._view.imgSkillName.source = this._ringSkillNamePre + e.bean.q_ring_id;
		var o = new BaseAttributeDataBean;
		o.convert(e.bean.q_ring_basis);
		var r = o.getStrByBaseAttributeBean2(o).split("\n"),
			s = "";
		s = StringUtil.substitute("{0}\n{1}", r[0], r[1]), this._view.labAttribute.text = s, s = StringUtil.substitute(
			"{0}\n{1}", r[2], r[3]), this._view.labAttribute0.text = s, this._view.textBg.visible = !0;
		var h = ResPathUtil.getMenuEffect("specialring", "ring" + e.bean.q_ring_id + "/1_0");
		this._effRing = EffectUtils.showCEffect(this, this._view, h, 272, 320, this._effRing), this._view.btnActive.label =
			"激 活", this._view.btnActive.visible = 1 == e.status, this._view.labOpenCondition.text = e.bean.q_ring_order, this._view
			.labOpenCondition.visible = 0 == e.status, this._lastIndex = t
	}, e.prototype.onUpdateList = function(t) {
		this._currentIndex = this._scollPanel.list.selectedIndex, -1 != this._currentIndex && this._currentIndex != this._lastIndex &&
			this.updateList(this._currentIndex)
	}, e.prototype.updatePanel = function() {
		this._scollPanel.dataProvider = App.data.getRingDataCenter().getListData(), this._count = this._scollPanel.list.numChildren;
		var t = -1 != this._lastIndex ? this._lastIndex : 0;
		this.updateList(t), this._scollPanel.list.selectedIndex = t
	}, e.prototype.onSuccessActive = function() {
		App.panel.openPanel(1011)
	}, e.prototype.onBtnClose = function() {
		App.panel.removePanel(101, !0)
	}, e.prototype.onBtnActive = function(t) {
		t.stopImmediatePropagation();
		var e = this._scollPanel.list.selectedIndex;
		ActivityCommandSender.sendC2S_ActiveSpecialRing(e + 1)
	}, e
}(BasePanel);
__reflect(RoleRingEquipPanel.prototype, "RoleRingEquipPanel");
var RoleZhuansView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.myMetemLevel = 100, e.showeff = !1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("RoleZhuansSkin"), this.addChild(this._view), this._view.huoquLab.textFlow =
			HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取修为"))
	}, e.prototype.show = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = 1), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this._view
				.bg, this, ResPathUtil.getImgPath("role/bj", "", ".jpg"))), this.fightPower.setValue(0), this._dispatcher.addEventListener(
				EventType.MY_METEM, this.refreshMyMetem, this), CharacterUICommandSender.getMetempsychosisInfo(), this.Index = e,
			this.addEvent(), this.fightPower.x = 170, this.fightPower.y = 150
	}, e.prototype.refreshMyMetem = function(t, e) {
		void 0 === e && (e = !0), this._metemInfo = t, this.getXiuwei(t), this.showMetempsyInfo(), this.showEffect()
	}, e.prototype.showEffect = function() {
		this.clearEffect(), this.showeff ? this._labelEff = EffectUtils.showCEffect(this, this._view, ResPathUtil.getMenuEffect(
			"panel", "labelfour"), 520, 832) : this.clearEffect()
	}, e.prototype.getXiuwei = function(t) {
		var e = (t.repair, t.level);
		GameUtil.getMetempsyConfigData(e + 1);
		t.count > 0 && App.data.characterCenter.zhuanslogin ? this.showeff = !0 : this.showeff = !1, (App.data.bagItemDataCenter
			.getItemRemainNum(EnumItemId.ZHUANSHENG_DAN) > 0 && App.data.bagItemDataCenter.getItemCount(EnumItemId.ZHUANSHENG_DAN) >
			0 || App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.ZHUANSHENG_Super_DAN) > 0 && App.data.bagItemDataCenter
			.getItemCount(EnumItemId.ZHUANSHENG_Super_DAN) > 0) && (this.showeff = !0)
	}, e.prototype.showMetempsyInfo = function() {
		var t, e, i, n, a = this.roleData.job,
			o = !1,
			r = App.data.characterCenter.maxMetemLevel;
		if (this._metemInfo.level < r) {
			if (0 == this._metemInfo.level) {
				var s = "";
				s = a == EnumRole.ZHAN_SHI ? "[物攻下限:0,物攻上限:0," : a == EnumRole.FA_SHI ? "[魔攻下限:0,魔攻上限:0," : "[道攻下限:0,道攻上限:0,", t =
					s + "物防下限:0,物防上限:0,魔防下限:0,魔防上限:0,生命上限:0]"
			} else this._metemInfo.level > 0 && this._metemInfo.level < r && (i = GameUtil.getMetempsyConfigData(this._metemInfo
				.level), t = a == EnumRole.ZHAN_SHI ? i.q_zs_ability : a == EnumRole.FA_SHI ? i.q_fs_ability : i.q_ds_ability);
			n = GameUtil.getMetempsyConfigData(this._metemInfo.level + 1), e = a == EnumRole.ZHAN_SHI ? n.q_zs_ability : a ==
				EnumRole.FA_SHI ? n.q_fs_ability : n.q_ds_ability
		} else o = !0, i = GameUtil.getMetempsyConfigData(this._metemInfo.level), t = a == EnumRole.ZHAN_SHI ? i.q_zs_ability :
			a == EnumRole.FA_SHI ? i.q_fs_ability : i.q_ds_ability, s = a == EnumRole.ZHAN_SHI ? "[物攻下限:0,物攻上限:0," : a ==
			EnumRole.FA_SHI ? "[魔攻下限:0,魔攻上限:0," : "[道攻下限:0,道攻上限:0,", e = s + "物防下限:0,物防上限:0,魔防下限:0,魔防上限:0,生命上限:0]";
		var h = new BaseAttributeDataBean;
		h.convert(t), this.fightPower.setValue(FightPowerUtil.getFightPower([t]));
		var l = new BaseAttributeDataBean;
		l.convert(e);
		if (this.zhuanshengLvl(this._metemInfo.level), this._view.nowAttackLab.text = "攻击：", this._view.nextAttackLab.text =
			this._view.nowAttackLab.text, this.roleData.job == EnumRole.ZHAN_SHI ? (this._view.nowattackNum.text = "+" + h.dcMax,
				this._view.nextattackNum.text = "+" + l.dcMax) : this.roleData.job == EnumRole.FA_SHI ? (this._view.nowattackNum.text =
				"+" + h.mcMax, this._view.nextattackNum.text = "+" + l.mcMax) : (this._view.nowattackNum.text = "+" + h.scMax,
				this._view.nextattackNum.text = "+" + l.scMax), this._view.nowWufangNum.text = "+" + h.acMax, this._view.NowMofangNum
			.text = "+" + h.macMax, this._view.nowlifeNum.text = "+" + h.maxHp, this._view.nextWufangNum.text = "+" + l.acMax,
			this._view.nextMofangNum.text = "+" + l.macMax, this._view.nextlifeNum.text = "+" + l.maxHp, this._view.groupNext.visible = !
			0, this._view.jiantou_im.visible = !0, this._view.groupNow.x = 125, o && (this._view.upBtn.touchEnabled = !1, this
				._view.huoquLab.visible = !1, this._view.groupNext.visible = !1, this._view.jiantou_im.visible = !1, n = null,
				this.showeff = !1, this._view.upBtn.label = "已满级", UIMaker.showPoint(this._view.zhuansredDot, this, !1), this._view
				.groupNow.x = 267), n) {
			this._useNum = n.q_reiki, this._needSateLevel = n.q_state_level, this._needLevel = n.q_role_level;
			var p = "#FF0000";
			this._metemInfo.repair < n.q_reiki || App.global.characterData.StateLevel < n.q_state_level ? (p = "#FF0000",
					UIMaker.showPoint(this._view.zhuansredDot, this, !1)) : (p = "#00FF00", UIMaker.showPoint(this._view.zhuansredDot,
					this, !0)), this._zsLvLab || (this._zsLvLab = new egret.TextField, this._zsLvLab.textColor = 516400, this._zsLvLab
					.size = 14, this._zsLvLab.bold = !0, this._zsLvLab.x = 250, this._zsLvLab.y = 220, this.addChild(this._zsLvLab)),
				this._zsLvLab.text = "需求人物等级：" + this._needLevel + "级", this._zsLvLab.visible = !1
		} else this._zsLvLab || (this._zsLvLab = new egret.TextField, this._zsLvLab.text = "转生等级已满！"), this._useNum = 0,
			this._needSateLevel = 0;
		this.updateStateLevel(), this.updateRepairVaule(this._metemInfo.repair)
	}, e.prototype.changeRepaire = function(t, e) {
		t == EnumMoney.ZHUAN_SHENG && (this._metemInfo && (this._metemInfo.repair = e), this.updateRepairVaule(e))
	}, e.prototype.updateStateLevel = function() {
		var t = App.config.q_state_lvContainer.getDataBean(this._needSateLevel),
			e = 16711680,
			i = App.global.characterData.StateLevel;
		i >= this._needSateLevel && (e = 16777215), this._view.jingjieLab.textColor = e, t ? this._view.jingjieLab.text = t
			.q_state_name : this._view.jingjieLab.text = "无"
	}, e.prototype.updateRepairVaule = function(t) {
		if (0 == this._useNum) return this._view.xiuweiLab.text = "0", void(this._view.xiuwei_im.width = 160);
		var e = "#FF0000";
		e = t < this._useNum ? "#FF0000" : "#00FF00", this._view.xiuweiLab.textFlow = HtmlUtil.getHtmlStr("<font color = " +
				e + ">" + StringUtil.formatMoney(t) + "</font>/" + StringUtil.formatMoney(this._useNum)), this._view.xiuwei_im.width =
			160 * t / this._useNum > 160 ? 160 : 160 * t / this._useNum
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.zhuanshengLvl = function(t) {
		if (0 != t) {
			App.data.characterCenter.maxMetemLevel;
			this.myMetemLevel = t, this._view.zhuanLvLab.text = t + "转"
		} else this._view.zhuanLvLab.text = "未转"
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickSuicideBtn, this, this._view.upBtn), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickSuicideBtn, this, this._view.huoquLab), this
			._dispatcher.addEventListener(EventType.MY_METEM_UP_SUSS, this.playmeteEffect, this), this._dispatcher.addEventListener(
				MoneyEvent.CHANGE, this.changeRepaire, this)
	}, e.prototype.playmeteEffect = function(t) {
		var e = App.thing.create(CPlayOnceEffect, "RoleZhuansView", !0);
		EffectUtils.showOnceEffect(this, this._view, ResPathUtil.getMenuEffect("rexue", "zhuansheng"), 310, 360, e)
	}, e.prototype.onClickSuicideBtn = function(t) {
		switch (t.currentTarget) {
			case this._view.upBtn:
				var e = App.global.characterData.StateLevel;
				if (e < this._needSateLevel) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">境界等级不足！</font>");
				var i = App.data.currencyDataCenter.getMoney(EnumMoney.ZHUAN_SHENG);
				i < this._useNum ? App.panel.openPanel(21, 7) : this.roleData.level < this._needLevel || CharacterUICommandSender
					.upgradeMetempsychosis();
				break;
			case this._view.huoquLab:
				App.global.redPoint.redPointDispatchEvent(26), App.panel.openPanel(21, 7)
		}
	}, e.prototype.clearEffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.hide = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(), this.removeMetemPanel(), this._metemInfo =
			null, this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.removeMetemPanel = function() {}, e
}(ViewBase);
__reflect(RoleZhuansView.prototype, "RoleZhuansView");
var SpecialRingPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._roleIndex = 1, e._fuseid = 5001, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("SpecialRingSkin"), this.addChild(this._view), this.resize()
	}, e.prototype.show = function(e) {
		"string" == typeof e && (e = JSON.parse(e)), t.prototype.show.call(this, e);
		var i = e;
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetTejie1Click, this, this._view.gettejie1),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetTejie2Click, this, this._view.gettejie2),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.jihuoClick, this, this._view.jihuo), i && (this
				._bean = GameUtil.getEquipConfigData(i[0]), this._itemBean = GameUtil.getItemConfigData(i[0]), this._fuseid = i[1],
				this._roleIndex = i[2]), this.redPoint(), this.referView(), this.resize()
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.redPoint = function() {
		if (this._bean.q_kind == EquipPos.jgzPos) {
			this._view.jihuo.enabled = !0, this._view.jihuo.label = "续 时";
			var t = 3013901,
				e = GameUtil.getItemConfigData(t),
				i = App.data.bagItemDataCenter.getItemCount(t);
			return e && i >= 1 ? this._view.redpoint.visible = !0 : this._view.redpoint.visible = !1, void(this._view.xiaohaotext
				.visible = !1)
		}
		if (this._bean.q_kind == EquipPos.yxpPos) {
			this._view.jihuo.enabled = !0, this._view.jihuo.label = "续 时";
			var t = 3013801,
				n = GameUtil.getItemConfigData(t),
				i = App.data.bagItemDataCenter.getItemCount(t);
			return n && i >= 1 ? this._view.redpoint.visible = !0 : this._view.redpoint.visible = !1, void(this._view.xiaohaotext
				.visible = !1)
		}
		this._view.jihuo.label = "激 活", this._view.jihuo.enabled = !0;
		var a = App.data.characterCenter._tejieHash.get(this._roleIndex);
		if (a)
			for (var o = 0; o < a.length; o++) a[o] && 1 == a[o].index && this._bean.q_kind == EquipPos.mabiPos && (this._view
				.jihuo.label = "升 级"), a[o] && 2 == a[o].index && this._bean.q_kind == EquipPos.hushenPos && (this._view.jihuo.label =
				"升 级");
		var r = App.config.q_equip_fuseContainer.getDataBean(this._fuseid);
		if (r) {
			var s = StringUtil.JsonParse(r.q_consume),
				i = App.data.bagItemDataCenter.getItemCount(s[0].id),
				h = 11639929;
			s && i >= s[0].num ? (this._view.redpoint.visible = !0, h = 3533365) : (this._view.redpoint.visible = !1, h =
				15938355), this._view.xiaohaotext.visible = !0, this._view.xiaohaotext.textFlow = HtmlUtil.getHtmlStr(GameUtil.getItemConfigData(
				s[0].id).q_name + ":<font color='" + h + "'>" + i + "</font>/" + s[0].num)
		} else this._view.redpoint.visible = !1, this._view.jihuo.label = "已满级", this._view.jihuo.enabled = !1, this._view.xiaohaotext
			.visible = !1
	}, e.prototype.jihuoClick = function(t) {
		if (this._bean.q_kind == EquipPos.yxpPos || this._bean.q_kind == EquipPos.jgzPos) {
			if (this._itemBean) {
				var e = App.data.bagItemDataCenter.getItemIDData(this._itemBean.q_id);
				if (e) ItemCommandSender.sendUseItemMessage(e.position, e.id, 1, {
					index: this._roleIndex
				}), App.panel.removePanel(26);
				else {
					if (!App.global.funcOpen.isFunctionOpen(7, "", !0)) return;
					var i = App.data.mallCenter.getItemShopBean(this._itemBean.q_id);
					if (!i) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">shop表中找不到id" + this._itemBean
						.q_id + "</font>");
					PanelOpenManager.openBuyPanel(i, i.q_shop_type, 26, 0, !1)
				}
			}
		} else EquipFuseCommandSender.sendEquipFuseMessage(this._fuseid, null, this._roleIndex);
		App.panel.removePanel(26)
	}, e.prototype.onGetTejie1Click = function(t) {
		var e = StringUtil.JsonParse(this._itemBean.q_input_intro);
		App.panel.removePanel(26), App.global.funcOpen.isFunctionOpen(7, "", !0) && App.panel.openPanel(App.config.q_output_introContainer
			.getDataBean(e[0]).q_change_ui)
	}, e.prototype.onGetTejie2Click = function(t) {
		if (App.global.funcOpen.isFunctionOpen(42)) {
			var e = StringUtil.JsonParse(this._itemBean.q_input_intro);
			App.panel.removePanel(26), App.panel.openPanel(App.config.q_output_introContainer.getDataBean(e[1]).q_change_ui)
		}
	}, e.prototype.referView = function() {
		if (this._bean) {
			this._view.titlename.text = this._bean.q_name, this._view.gongji.text = this._bean.q_attack_max + "", this._view.mofang
				.text = this._bean.q_magic_defence_max + "", this._view.wufang.text = this._bean.q_defense_max + "", this._view.shengm
				.text = this._bean.q_hp + "", this._view.xiaoguo.text = this._itemBean.q_describe + "";
			var t = StringUtil.JsonParse(this._itemBean.q_input_intro);
			if (t) switch (t.length) {
				case 0:
					this._view.reward1.text = "", this._view.gettejie1.visible = !1, this._view.reward2.text = "", this._view.gettejie2
						.visible = !1;
					break;
				case 1:
					this._view.reward1.text = App.config.q_output_introContainer.getDataBean(t[0]).q_output_title, this._view.gettejie1
						.visible = !0, this._view.reward2.text = "", this._view.gettejie2.visible = !1;
					break;
				default:
					this._view.reward1.text = App.config.q_output_introContainer.getDataBean(t[0]).q_output_title, this._view.gettejie1
						.visible = !0, this._view.reward2.text = App.config.q_output_introContainer.getDataBean(t[1]).q_output_title,
						this._view.gettejie2.visible = !0
			}
			this.showFigh();
			var e = 0;
			switch (this._bean.q_kind) {
				case EquipPos.mabiPos:
					this.showmabieffect(), this._view.shengyu_lb.text = "";
					break;
				case EquipPos.hushenPos:
					this.showhusheneffect(), this._view.shengyu_lb.text = "";
					break;
				case EquipPos.jgzPos:
					this.showJGZffect(), e = this.roleData.hoopCharmTime - ServerTime.getServerTime(), 0 == this.roleData.hoopCharmTime ?
						(this._view.shengyu_lb.text = "", this._view.shengyu_lb.textColor = 15938355) : e > 0 ? (this._view.shengyu_lb.text =
							"剩余时间：" + StringUtil.convertTime_4(e), this._view.shengyu_lb.textColor = 3533365) : (this._view.shengyu_lb.text =
							"已过期", this._view.shengyu_lb.textColor = 15938355);
					break;
				case EquipPos.yxpPos:
					this.showYXPffect(), e = this.roleData.jadeFairyBottleTime - ServerTime.getServerTime(), 0 == this.roleData.jadeFairyBottleTime ?
						(this._view.shengyu_lb.text = "", this._view.shengyu_lb.textColor = 15938355) : e > 0 ? (this._view.shengyu_lb.text =
							"剩余时间：" + StringUtil.convertTime_4(e), this._view.shengyu_lb.textColor = 3533365) : (this._view.shengyu_lb.text =
							"已过期", this._view.shengyu_lb.textColor = 15938355)
			}
		}
	}, e.prototype.showJGZffect = function() {
		this._jgzEffect = EffectUtils.showCEffect(this, this._view.mbjz, ResPathUtil.getMenuEffect("rexue", "jinguzhou")),
			this._jgzEffect.x = 200, this._jgzEffect.y = 150
	}, e.prototype.showYXPffect = function() {
		this._yxpEffect = EffectUtils.showCEffect(this, this._view.mbjz, ResPathUtil.getMenuEffect("rexue", "yuxianping")),
			this._yxpEffect.x = 200, this._yxpEffect.y = 190
	}, e.prototype.showmabieffect = function() {
		this._mabiEffect = EffectUtils.showCEffect(this, this._view.mbjz, ResPathUtil.getMenuEffect("rexue", "mabi")), this
			._mabiEffect.x = 200, this._mabiEffect.y = 150
	}, e.prototype.showhusheneffect = function() {
		this._hushenEffect1 = EffectUtils.showCEffect(this, this._view.mbjz, ResPathUtil.getMenuEffect("rexue", "hushen1")),
			this._hushenEffect1.x = 181, this._hushenEffect1.y = 131
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearEffect(), this._dispatcher.removeAllListeners()
	}, e.prototype.showFigh = function() {
		var t = this._bean.q_score;
		this._fightBmp ? (this._fightBmp.x = 92, this._fightBmp.y = 5, this._fightBmp.setValue(t)) : (this._fightBmp = new FightPower,
			this._fightBmp.x = 92, this._fightBmp.y = 5, this._fightBmp.bg.source = "", this._fightBmp.setValue(t), this._view
			.addChild(this._fightBmp))
	}, e.prototype.clearEffect = function() {
		this._mabiEffect && (this._mabiEffect.stop(), this._mabiEffect.dispose(), this._mabiEffect = null), this._hushenEffect1 &&
			(this._hushenEffect1.stop(), this._hushenEffect1.dispose(), this._hushenEffect1 = null), this._hushenEffect2 && (
				this._hushenEffect2.stop(), this._hushenEffect2.dispose(), this._hushenEffect2 = null), this._hushenEffect3 && (
				this._hushenEffect3.stop(), this._hushenEffect3.dispose(), this._hushenEffect3 = null), this._jgzEffect && (this._jgzEffect
				.stop(), this._jgzEffect.dispose(), this._jgzEffect = null), this._yxpEffect && (this._yxpEffect.stop(), this._yxpEffect
				.dispose(), this._yxpEffect = null)
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 444 >> 1, this._view.y = Config.SCREEN_HEIGHT - 811 >> 1
	}, e.prototype.dispose = function() {
		this._fightBmp && (this._fightBmp.dispose(), this._fightBmp = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(SpecialRingPanel.prototype, "SpecialRingPanel");
var EquipPos;
! function(t) {
	t[t.mabiPos = 121] = "mabiPos", t[t.hushenPos = 122] = "hushenPos", t[t.jgzPos = 38] = "jgzPos", t[t.yxpPos = 37] =
		"yxpPos"
}(EquipPos || (EquipPos = {}));
var WingGodHechengItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WingGodHechengItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn), this._dispatcher.addEventListener(SkillEvent.WINGGODSELECTITEM, this.onSelected, this)
	}, e.prototype.onSelected = function(t) {
		this.btn.currentState = this.bean.q_id == t.q_id ? "down" : "up"
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.bean = this.data, this.btn.label = this.bean.q_name;
		var t = App.data.characterCenter.getFuseEquip(this.bean.q_id),
			e = StringUtil.JsonParse(t.q_consume);
		this.redPoint.visible = !1, e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num && (this.redPoint.visible = !
			0), "down" == this.btn.currentState && App.dispatcher.dispatchEvent(SkillEvent.WINGGODSELECTITEM, this.bean)
	}, e.prototype.onTouch = function(t) {
		this.setSelected(!0)
	}, e.prototype.setSelected = function(t) {
		t && null != this.bean ? (this.btn.currentState = "down", App.dispatcher.dispatchEvent(SkillEvent.WINGGODSELECTITEM,
			this.bean)) : this.btn.currentState = "up"
	}, e
}(ItemRenderer);
__reflect(WingGodHechengItemRender.prototype, "WingGodHechengItemRender");
var WingGodHeChengView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._wingID = 0, e._wingType = EnumEquipType.FEIYU, e.skinName = "WingGodHeChengSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject, this._vscroller = new VScrollPanel(200, 695, WingGodHechengItemRender, 5), this._vscroller
			.move(455, 187, this), this.selectGroup0.name = "" + EnumEquipType.FEIYU, this.selectGroup1.name = "" +
			EnumEquipType.QIANYU, this.selectGroup2.name = "" + EnumEquipType.RONGYU, this.selectGroup3.name = "" +
			EnumEquipType.LINGYU;
		for (var t = 0; 2 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.x = 210 * t + 95, e.y = 280, this.addChild(e), this._gridDict.put(t, e)
		}
		var i = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("godwingbg2", "", ".jpg"), 0, 56);
		i.height = 829, this.addChildAt(i, 0);
		var n = new eui.VerticalLayout;
		n.gap = 10, n.horizontalAlign = egret.HorizontalAlign.CENTER, n.verticalAlign = egret.VerticalAlign.MIDDLE, this.group1
			.layout = n;
		var a = new eui.VerticalLayout;
		a.gap = 10, a.horizontalAlign = egret.HorizontalAlign.CENTER, a.verticalAlign = egret.VerticalAlign.MIDDLE, this.group2
			.layout = a
	}, e.prototype.show = function(t) {
		this.addEvent(), this.selectimg.x = 100, this.selectimg.y = 77, this._vscroller.dataProvider = App.data.characterCenter
			.getAllKindEquip(EnumEquipType.FEIYU), App.timer.doFrameOnce(this, 1, this.callLater)
	}, e.prototype.callLater = function() {
		this._vscroller.selectedIndex = 0;
		var t = this._vscroller.list.getChildAt(0);
		t && (t.btn.currentState = "down", this.setContent(t.data), App.dispatcher.dispatchEvent(SkillEvent.WINGGODSELECTITEM,
			t.data))
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectClick, this, this.selectGroup0), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectClick, this, this.selectGroup1), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.selectClick, this, this.selectGroup2), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.selectClick, this, this.selectGroup3), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.hechengClick, this, this.hechengBtn), this._dispatcher.addEventListener(SkillEvent.WINGGODSELECTITEM, this.setContent,
				this), this._dispatcher.addEventListener(SkillEvent.WingGodResult, this.hechengResult, this)
	}, e.prototype.hechengResult = function(t) {
		this._vscroller.dataProvider = App.data.characterCenter.getAllKindEquip(this._wingType);
		var e = App.data.wingGodCenter().fuseBean,
			i = StringUtil.JsonParse(e.q_consume);
		this.showXiaohao(i)
	}, e.prototype.hechengClick = function(t) {
		var e = App.data.wingGodCenter().fuseBean,
			i = StringUtil.JsonParse(e.q_consume);
		i && App.data.bagItemDataCenter.getItemCount(i[0].id) >= i[0].num ? CharacterUICommandSender.sendC2S_GodWingAdvanceMessage(
			this._wingID, this._wingType) : App.panel.openPanel(19, i[0].id)
	}, e.prototype.setContent = function(t) {
		this._wingID = t.q_id;
		var e = new ItemData;
		e.itemId = t.q_id, this._gridDict.get(1).setData(e), this.fptext1.text = "战斗力:" + t.q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(t.q_add_attribute_client), this.fpta1.text = i.getStrByBaseAttributeBean(i);
		var n = App.data.characterCenter.getFuseEquip(t.q_id);
		App.data.wingGodCenter().fuseBean = n;
		var a = StringUtil.JsonParse(n.q_consume);
		if (a && 43 != a[0].id) {
			this.group2.visible = !0, this.group1.x = 53;
			var o = App.config.q_equipContainer.getDataBean(a[0].id),
				r = new ItemData;
			r.itemId = o.q_id, this._gridDict.get(0).setData(r), this.fptext0.text = "战斗力:" + o.q_score;
			var s = new BaseAttributeDataBean;
			s.convertAndAdd(o.q_add_attribute_client), this.fpta0.text = s.getStrByBaseAttributeBean(s)
		} else {
			this.group2.visible = !1, this.group1.x = 160;
			var h = App.config.q_itemContainer.getDataBean(a[0].id),
				r = new ItemData;
			r.itemId = h.q_id, this._gridDict.get(0).setData(r), this.fptext0.text = this.fptext1.text, this.fpta0.text = this
				.fpta1.text
		}
		this.showXiaohao(a)
	}, e.prototype.selectClick = function(t) {
		var e = t.currentTarget;
		this.selectimg.x = e.x - 9, this.selectimg.y = e.y - 9, this._wingType = Number(e.name), this._vscroller.dataProvider =
			App.data.characterCenter.getAllKindEquip(Number(e.name))
	}, e.prototype.showXiaohao = function(t) {
		if (t) {
			var e = App.data.bagItemDataCenter.getItemCount(t[0].id),
				i = "";
			i = e >= t[0].num ? "<font color='0x2bb12a'>" : "<font color='0xf33333'>", this.currXiaohao.textFlow = HtmlUtil.getHtmlStr(
				i + App.data.bagItemDataCenter.getItemCount(t[0].id) + "</font>/" + t[0].num)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WingGodHeChengView.prototype, "WingGodHeChengView");
var WingGodPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("装备,合成,转换"), this.registerSubPanel(0, WingGodView, "titleview_shenyu_png",
			152, !0, !0), this.registerSubPanel(1, WingGodHeChengView, "titleview_shenyu_png", 153, !1, !1), this.registerSubPanel(
			2, WingGodZHView, "titleview_shenyu_png", void 0, !1, !1), null == this.bgimg && (this.bgimg = UIMaker.getCImage(
			this.viewContainer, this, ResPathUtil.getImgPath("godwingbg", "", ".jpg"), 0, 56))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null)
	}, e
}(TabPanel);
__reflect(WingGodPanel.prototype, "WingGodPanel");
var WingGodView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.skinName = "WingGodSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.part = this.getPart(t), e.x = 115 * t + 109, e.y = 339, e.isShowTip = !1, this.addChild(e),
				this._gridDict.put(e.part, e)
		}
		App.tip.addTip(this.skillicon, new TipData(15)), App.tip.addTip(this.shenyudashi, new TipData(16)), this.getgwbtn.textFlow =
			HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取神羽"));
		var i = new eui.VerticalLayout;
		i.gap = 10, i.horizontalAlign = egret.HorizontalAlign.CENTER, i.verticalAlign = egret.VerticalAlign.MIDDLE, this.group1
			.layout = i;
		var n = new eui.VerticalLayout;
		n.gap = 10, n.horizontalAlign = egret.HorizontalAlign.CENTER, n.verticalAlign = egret.VerticalAlign.MIDDLE, this.group2
			.layout = n
	}, e.prototype.show = function(t) {
		this.addEvent(), this.refreView()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.wearWingGodClick, this, this.zbbtn), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.quickwearWingGodClick, this, this.kshcbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.openConsume, this, this.getgwbtn), this._dispatcher.addEventListener(SkillEvent.WingGodWEAR, this.refreView,
			this);
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGridClick, this, e)
		}
	}, e.prototype.openConsume = function() {
		PanelOpenManager.openPanel(19, 43)
	}, e.prototype.refreshRoleData = function(t) {
		this.Index = t.roleIndex, App.data.wingGodCenter().selectIndex = this.Index, this.refreView()
	}, e.prototype.quickwearWingGodClick = function(t) {
		if (0 == this.wearGrid.itemId) {
			var e = 5001001;
			this.wearGrid.part == EnumEquipType.FEIYU ? e = 5001001 : this.wearGrid.part == EnumEquipType.QIANYU ? e = 5002001 :
				this.wearGrid.part == EnumEquipType.RONGYU ? e = 5003001 : this.wearGrid.part == EnumEquipType.LINGYU && (e =
					5004001), CharacterUICommandSender.sendC2S_GodWingFastAdvanceMessage(e, this.Index)
		} else CharacterUICommandSender.sendC2S_GodWingFastAdvanceMessage(this.wearGridID, this.Index)
	}, e.prototype.wearWingGodClick = function(t) {
		CharacterUICommandSender.sendC2S_WearMaxGodWingMessage(App.data.bagItemDataCenter.getHeightGodWing(39, this.wearGrid
			.part), this.wearGrid.part, this.Index)
	}, e.prototype.refreView = function() {
		for (var t = App.data.wingGodCenter().getWingGod(this.Index), e = 0; e < this._gridDict.length; e++) {
			var i = this._gridDict.get(this.getPart(e));
			i.setData(1), i.setData(null)
		}
		for (var n = 0, a = 0; a < t.length; a++)
			if (t && t[a]) {
				var o = this._gridDict.get(t[a].pos);
				if (null != o) {
					var r = new ItemData;
					r.itemId = t[a].godwingID, o.setData(r), n += r.getEquipDataBean().q_score
				}
			} for (var e = 0; e < this._gridDict.length; e++) {
			var s = this._gridDict.get(this.getPart(e));
			s.itemId < App.data.bagItemDataCenter.getHeightGodWing(39, s.part) || App.data.wingGodCenter().getWingGodHECHENG(s
				.itemId) ? s.setRedDot(!0) : s.setRedDot(!1)
		}
		this.fightPower.setValue(n);
		var h = t.length;
		if (4 == h) {
			for (var l = App.config.q_itemContainer.getDataBean(t[0].godwingID).q_level, p = 0; h > p; p++) {
				var c = App.config.q_itemContainer.getDataBean(t[p].godwingID);
				l > c.q_level && (l = c.q_level)
			}
			l >= 4 ? this.skillicon.filters = [] : this.skillicon.filters = FilterUtil.FILTER_GRAY
		} else this.skillicon.filters = FilterUtil.FILTER_GRAY;
		var _ = this._gridDict.get(App.data.wingGodCenter().itemSelectIndex),
			d = new egret.TouchEvent(egret.TouchEvent.TOUCH_TAP);
		d.$currentTarget = _, this.onGridClick(d)
	}, e.prototype.onGridClick = function(t) {
		var e = t.currentTarget;
		if (App.data.wingGodCenter().itemSelectIndex = e.part, this.wearGrid = e, this.selectBorder.x = e.x - 9, this.selectBorder
			.y = e.y - 9, 0 == e.itemId) {
			var i = 5001001;
			e.part == EnumEquipType.FEIYU ? i = 5001001 : e.part == EnumEquipType.QIANYU ? i = 5002001 : e.part ==
				EnumEquipType.RONGYU ? i = 5003001 : e.part == EnumEquipType.LINGYU && (i = 5004001), this.showText(i, !0), this.title1
				.text = "合成预览", this.group2.visible = !1, this.group1.x = 254
		} else this.group2.visible = !0, this.group1.x = 150, this.title1.text = "进阶前", this.showText(e.itemId, !1);
		e.itemId < App.data.bagItemDataCenter.getHeightGodWing(39, e.part) ? this.redpoint1.visible = !0 : this.redpoint1.visible = !
			1, App.data.wingGodCenter().getWingGodHECHENG(e.itemId) ? this.redpoint2.visible = !0 : this.redpoint2.visible = !
			1
	}, e.prototype.showText = function(t, e) {
		void 0 === e && (e = !0);
		var i = App.config.q_equipContainer.getDataBean(t);
		this.fptext1.text = "战斗力:" + i.q_score;
		var n = new BaseAttributeDataBean;
		n.convertAndAdd(i.q_add_attribute_client), this.fpta1.text = n.getStrByBaseAttributeBean(n);
		var a = App.data.characterCenter.getFuseEquip(t);
		if (a) {
			this.wearGridID = a.q_equip_next_id;
			var o = App.config.q_equipContainer.getDataBean(a.q_equip_next_id);
			if (o) {
				this.fptext2.text = "战斗力:" + o.q_score;
				var n = new BaseAttributeDataBean;
				if (n.convertAndAdd(o.q_add_attribute_client), this.fpta2.text = n.getStrByBaseAttributeBean(n), !e) {
					var r = App.data.characterCenter.getFuseEquip(a.q_equip_next_id),
						s = StringUtil.JsonParse(r.q_consume),
						h = App.config.q_itemContainer.getDataBean(s[0].id),
						l = App.data.bagItemDataCenter.getItemCount(s[0].id) + 1;
					l >= s[0].num ? this.xiaohaotext.textFlow = HtmlUtil.getHtmlStr(h.q_name + "<font color='0x2bb12a'>" + l +
						"</font>/" + s[0].num) : this.xiaohaotext.textFlow = HtmlUtil.getHtmlStr(h.q_name + "<font color='0xf33333'>" +
						l + "</font>/" + s[0].num)
				}
			} else this.fptext2.text = "0", this.fpta2.text = "无", this.xiaohaotext.text = "无"
		}
		if (e) {
			var s = (App.data.characterCenter.getFuseEquip(t), StringUtil.JsonParse(a.q_consume)),
				h = App.config.q_itemContainer.getDataBean(s[0].id);
			App.data.bagItemDataCenter.getItemCount(s[0].id) >= s[0].num ? this.xiaohaotext.textFlow = HtmlUtil.getHtmlStr(h.q_name +
					"<font color='0x2bb12a'>" + App.data.bagItemDataCenter.getItemCount(s[0].id) + "</font>/" + s[0].num) : this.xiaohaotext
				.textFlow = HtmlUtil.getHtmlStr(h.q_name + "<font color='0xf33333'>" + App.data.bagItemDataCenter.getItemCount(s[
					0].id) + "</font>/" + s[0].num)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.FEIYU : 1 == t ? t = EnumEquipType.QIANYU : 2 == t ? t = EnumEquipType.RONGYU : 3 ==
			t && (t = EnumEquipType.LINGYU), t
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(WingGodView.prototype, "WingGodView");
var WingGodZHItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WingGodZHItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.isShowJobImg = !1, this._grid.isShowTip = !
			1, this._grid.x = 8, this._grid.y = 8, this.addChild(this._grid)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.item = this.data, this._grid.setData(this.item)
	}, e.prototype.setSelected = function(t) {
		this.selectimg.visible = t
	}, e
}(ItemRenderer);
__reflect(WingGodZHItem.prototype, "WingGodZHItem");
var WingGodZHView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.converWingid = 0, e.wingid = 0, e.skinName = "WingGodZHSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = [this.currgrid, this.grid0, this.grid1, this.grid2];
		this._gridDict = new HashObject, this._vscroller = new VScrollPanel(380, 200, WingGodZHItem, 5, null, 2), this._vscroller
			.move(130, 70, this);
		for (var e = 0; 4 > e; e++) {
			var i = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.isShowJobImg = !1, i.isShowTip = !1, i.x = t[e].x, i.y = t[e].y, i.name = "" + e, this.addChild(i), this._gridDict
				.put(e, i)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectClick,
				this, this._gridDict.get(1)), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectClick,
				this, this._gridDict.get(2)), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectClick,
				this, this._gridDict.get(3)), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.zhClick, this,
				this.zhbtn), this._dispatcher.addEventListener(SkillEvent.WingGodZHResult, this.zhResult, this), this._dispatcher
			.addEventListener(eui.ItemTapEvent.ITEM_TAP, this.onSelectZHItem, this, this._vscroller.list), this.refreView()
	}, e.prototype.setZHTarget = function(t) {
		t ? (this.selectImg.visible = !0, this.converWingid = t.itemId, this.selectImg.x = t.x - 9, this.selectImg.y = t.y -
			9) : (this.selectImg.visible = !1, this.converWingid = 0)
	}, e.prototype.setZHItem = function(t) {
		this.curSelect && this.curSelect.setSelected(!1), t ? (t.setSelected(!0), this.setContent(t.data)) : this.wingid =
			0, this.curSelect = t
	}, e.prototype.onSelectZHItem = function(t) {
		t.stopImmediatePropagation();
		var e = t.itemRenderer;
		this.setZHItem(e), this.setZHTarget(null)
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t && this.setZHItem(t)
	}, e.prototype.zhResult = function() {
		this._vscroller.removeAll(), this.refreView(), this.showEffect()
	}, e.prototype.showEffect = function() {
		var t = App.thing.create(CPlayOnceEffect, this, !0);
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("panel", "zhuanhuanchenggong"), 304, 380, t)
	}, e.prototype.selectClick = function(t) {
		var e = t.currentTarget;
		this.setZHTarget(e)
	}, e.prototype.zhClick = function(t) {
		return 0 == this.wingid ? void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">请选择要转换的神羽</font>") : 0 == this.converWingid ? void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">请选择要转换的神羽目标</font>") : void CharacterUICommandSender.sendC2S_ConvertGodWingMessage(this.converWingid, this.wingid)
	}, e.prototype.arrSort = function(t, e) {
		return t.getDataBean().q_id > e.getDataBean().q_id ? 1 : -1
	}, e.prototype.refreView = function() {
		var t = App.data.bagItemDataCenter.getAllTypeProp(39);
		t && t.length > 0 ? (t.sort(this.arrSort), this.miaoshutext.visible = !1, this._vscroller.dataProvider = t) : this.miaoshutext
			.visible = !0;
		for (var e = this._gridDict.length, i = 0; e > i; i++) this._gridDict.get(i).setData(null);
		this.setZHItem(null), this.setZHTarget(null)
	}, e.prototype.setContent = function(t) {
		this._gridDict.get(0).setData(t);
		var e = StringUtil.JsonParse(t.getDataBean().q_package_ids),
			i = e.length;
		this.wingid = t.itemId;
		for (var n = 0; i > n; n++) {
			var a = new ItemData;
			a.itemId = e[n], this._gridDict.get(n + 1).setData(a)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll();
		for (var e = this._gridDict.length, i = 0; e > i; i++) this._gridDict.get(i).setData(null)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._gridDict && this._gridDict.dispose()
	}, e
}(ViewBase);
__reflect(WingGodZHView.prototype, "WingGodZHView");
var FaBaoHeChengView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.posArr = [{
			x: 157,
			y: 63
		}, {
			x: 410,
			y: 63
		}, {
			x: 284,
			y: 142
		}, {
			x: 284,
			y: 291
		}], e.euiSkinName = "FaBaoHeChengSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/faBaoUpStar",
				"", ".jpg"), 0, -3)), this._hLayout = new eui.HorizontalLayout, this._hLayout.gap = 30, this._hLayout.horizontalAlign =
			egret.HorizontalAlign.CENTER, this._hLayout.verticalAlign = egret.VerticalAlign.MIDDLE, this._vLayout = new eui.VerticalLayout,
			this._vLayout.gap = 30, this._vLayout.horizontalAlign = egret.HorizontalAlign.CENTER, this._vLayout.verticalAlign =
			egret.VerticalAlign.MIDDLE, this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.isShowTip = !0, e.isShowDesc = !1, e.showStar = !0, e.setBgVisible(!1), e.x = this.posArr[t]
				.x, e.y = this.posArr[t].y, this.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(t) {
		this.model = App.data.characterCenter, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.heChengHandle,
				this, this.heChengBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.addHandle, this, this.add_img),
			this._dispatcher.addEventListener(EventType.FABAO_EQUIP_REFRESH, this.upStarSuccess, this), this._dispatcher.addEventListener(
				EventType.FABAO_SELECT_HECHENG, this.selectHandle, this), this.getEquipId = 0, this.equip = null
	}, e.prototype.selectHandle = function(t) {
		var e = App.data.bagItemDataCenter.getAllPropItemByItemId(t.itemId);
		if (e.length < 3) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">消耗材料不足，无法合成</font>");
		this.equip = t;
		var i = App.data.characterCenter.getFuseEquip(t.itemId);
		this.getEquipId = i.q_equip_next_id
	}, Object.defineProperty(e.prototype, "equip", {
		set: function(t) {
			if (this._equip = t, t) {
				var e = t.itemId,
					i = App.config.q_equipContainer.getDataBean(e),
					n = App.data.bagItemDataCenter.getAllPropItemByItemId(e);
				this.setGridData(0, n[0]), this.setGridData(1, n[1]), this.setGridData(2, n[2]), this.add_img.visible = !1;
				var a = new BaseAttributeDataBean;
				a.convertAndAdd(i.q_add_attribute_client), this.base_lb.text = a.getStrByBaseAttributeBean(a)
			} else this.setGridData(0, t), this.setGridData(1, t), this.setGridData(2, t), this.base_lb.text = "", this.add_img
				.visible = !0;
			this.jiantouimg.visible = "" != this.base_lb.text, App.timer.doTimeOnce(this, 100, this.setLayout)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "getEquipId", {
		set: function(t) {
			this._getEquipId = t, this.add_lb.text = "";
			var e = App.config.q_equipContainer.getDataBean(t);
			if (e) {
				var i = new BaseAttributeDataBean;
				i.convertAndAdd(e.q_add_attribute_client), this.add_lb.text = i.getStrByBaseAttributeBean(i)
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setLayout = function() {
		this.jiantouimg.visible ? this.atrriGroup.layout = this._hLayout : this.atrriGroup.layout = this._vLayout
	}, e.prototype.setGridData = function(t, e) {
		var i = this._gridDict.get(t);
		i.setData(e), e ? i.star = e.getEquipDataBean().q_xingj : i.star = 0
	}, e.prototype.addHandle = function() {
		App.panel.openPanel(10001)
	}, e.prototype.heChengHandle = function() {
		if (!this._equip) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">请选择需要被消耗的法宝</font>");
		var t = App.data.bagItemDataCenter.getAllPropItemByItemId(this._equip.itemId);
		if (t.length < 3) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">消耗材料不足</font>");
		var e = App.data.characterCenter.getFuseEquip(this._equip.itemId)
	}, e.prototype.upStarSuccess = function(t) {
		App.dispatcher.dispatchEvent(EventType.ShowSuccess, null, 300, SuccessEffect.STAR), this.equip = null
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._hLayout = null, this
			._vLayout = null
	}, e
}(ViewBase);
__reflect(FaBaoHeChengView.prototype, "FaBaoHeChengView");
var FaBaoUpStarTip = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.roleIndex = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("FaBaoUpStarTipSkin"), this.addChild(this._view), this._grid = GridUtil.getGrid(
				ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.setGradeBg(GridUtil.getGridGradeBg(-1)), this._grid.x = 0,
			this._grid.y = 0, this._view.gridGroup.addChild(this._grid), this._grid.isShowTip = !1, this._grid.isShowDesc = !1;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t);
		var e = new eui.HorizontalLayout;
		e.gap = 0, this._view.starGroup.layout = e, this._view.change_lb.textFlow = new Array({
			text: "更换法宝",
			style: {
				underline: !0
			}
		}), this.resize()
	}, e.prototype.resize = function() {
		this._view.x = App.stage.stageWidth - 450 >> 1, this._view.y = App.stage.stageHeight - 665 >> 1
	}, e.prototype.show = function(t) {
		this.roleIndex = App.global.characterData.selectindex1, this._view.starGroup.removeChildren();
		var e, i = 0;
		TypeUtil.isNumber(t) ? i = t : (e = t, i = e.itemId, this._equipData = t);
		var n = GameUtil.getItemConfigData(i);
		if (n) {
			var a = GameUtil.getItemNameColor(i, !0);
			this._view.lblName.textColor = a, this._view.lblName.text = n.q_name + (Config.isDebug ? "_" + i : ""), this._grid
				.setData(i);
			var o = GameUtil.getEquipConfigData(i);
			if (this.showFigh(o.q_score), this._view.thebg.source = "common1_equipbg_png" + n.q_default, o) {
				o.q_xingj > 0 ? this._view.lbStarLv.text = "" : this._view.lbStarLv.text = "0级";
				for (var r = 0; r < o.q_xingj; r++) {
					var s = new eui.Image;
					s.source = "common1_star_light_png", s.width = s.height = 30, this._view.starGroup.addChild(s)
				}
				this._view.lblLvl.text = n.q_zhuanshen + "阶";
				var h = new BaseAttributeDataBean;
				h.convertAndAdd(o.q_add_attribute_client), this._view.txtPro.text = h.getStrByBaseAttributeBean(h), h = new BaseAttributeDataBean,
					h.convertAndAdd(o.q_add_1), this._view.txtPro0.text = h.getStrByBaseAttributeBean(h);
				var l = 1e6 + 100 * n.q_zhuanshen + Math.floor(o.q_kind % 100 / 2) + o.q_kind % 2,
					p = "#ff0000",
					c = "（未激活）";
				GameUtil.getFaBaoSuitIsJiHuo(l) && (p = "#00ff00", c = "（已激活）");
				var _ = "<font color=" + p + ">" + c + "</font>",
					d = App.config.q_equip_masterContainer.getDataBean(l);
				d && (this._view.txtPro1.textFlow = HtmlUtil.getHtmlStr(d.q_equip_icon_female + _))
			}
		}
		this.resize(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.upStarHandle, this, this._view.upStarBtn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.changeHandle, this, this._view.change_lb), this
			._view.upstarRed.visible = App.data.characterCenter.getIsFaBaoCanUpStarByPart(this.roleIndex, this._equipData.getEquipDataBean()
				.q_kind), this._view.changeRed.visible = App.data.characterCenter.getHasBestFaBaoEquipByPart(this.roleIndex, this
				._equipData.getEquipDataBean().q_kind)
	}, e.prototype.changeHandle = function() {
		this._equipData && (App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeFaBaoEquips(this.roleIndex,
			this._equipData.getEquipDataBean().q_kind)), App.panel.removePanel(1e4))
	}, e.prototype.upStarHandle = function() {
		return this._equipData ? 0 == this._equipData.itemId ? void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">该部位还没有法宝，无法升星</font>") : this._equipData && this._equipData.getEquipDataBean().q_xingj >= 3 ? void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">该部位法宝已满星，无法升星</font>") : (App.dispatcher.dispatchEvent(EventType.FABAO_STAR_OPEN,
			this._equipData), void App.panel.removePanel(1e4)) : void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">选择一个需要升星的法宝</font>")
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp.bg.source = "", this
			._fightBmp._effect.visible = !0, this._fightBmp.setValue(e), this._view.groupFight.addChild(this._fightBmp))
	}, e.prototype.hide = function() {
		this._grid.setData(null), this._dispatcher.removeAllListeners()
	}, e
}(BasePanel);
__reflect(FaBaoUpStarTip.prototype, "FaBaoUpStarTip");
var FaBaoUpStarTipUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(FaBaoUpStarTipUI.prototype, "FaBaoUpStarTipUI");
var FaBaoUpStarView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.roleIndex = 1, e.posArr = [{
			x: 157,
			y: 63
		}, {
			x: 410,
			y: 63
		}, {
			x: 284,
			y: 142
		}, {
			x: 284,
			y: 291
		}], e.euiSkinName = "FaBaoUpStarSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/faBaoUpStar",
				"", ".jpg"), 0, -3)), this._hLayout = new eui.HorizontalLayout, this._hLayout.gap = 30, this._hLayout.horizontalAlign =
			egret.HorizontalAlign.CENTER, this._hLayout.verticalAlign = egret.VerticalAlign.MIDDLE, this._vLayout = new eui.VerticalLayout,
			this._vLayout.gap = 30, this._vLayout.horizontalAlign = egret.HorizontalAlign.CENTER, this._vLayout.verticalAlign =
			egret.VerticalAlign.MIDDLE, this._gridDict = new HashObject;
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.isShowJobImg = !1, e.isShowTip = !0, e.isShowDesc = !1, e.showStar = !0, e.setBgVisible(!1), e.x = this.posArr[t]
				.x, e.y = this.posArr[t].y, this.addChild(e), this._gridDict.put(t, e)
		}
	}, e.prototype.show = function(t) {
		this.roleIndex = App.global.characterData.selectindex, this.model = App.data.characterCenter, this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.upStarHandle, this, this.upStarBtn), this._dispatcher.addEventListener(EventType
				.FABAO_EQUIP_REFRESH, this.upStarSuccess, this), App.timer.doTimeOnce(this, 30, this.callLater, [t]), this.getEquip =
			null
	}, e.prototype.callLater = function(t) {
		this.equip = t
	}, Object.defineProperty(e.prototype, "equip", {
		set: function(t) {
			if (this._equip = t, t) {
				var e = t.itemId,
					i = App.config.q_equipContainer.getDataBean(e);
				this.setGridData(2, t);
				var n = App.data.bagItemDataCenter.getAllPropItemByItemId(e);
				this.setGridData(0, n[0]), this.setGridData(1, n[1]);
				var a = new BaseAttributeDataBean;
				a.convertAndAdd(i.q_add_attribute_client), this.base_lb.text = a.getStrByBaseAttributeBean(a)
			} else this.setGridData(0, t), this.setGridData(1, t), this.setGridData(2, t), this.base_lb.text = "";
			this.jiantouimg.visible = "" != this.base_lb.text, App.timer.doTimeOnce(this, 100, this.setLayout)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "getEquip", {
		set: function(t) {
			if (this._getEquip = t, this.add_lb.text = "", t) {
				var e = new BaseAttributeDataBean,
					i = App.data.characterCenter.getFuseEquip(t.itemId),
					n = App.config.q_equipContainer.getDataBean(i.q_equip_next_id);
				e.convertAndAdd(n.q_add_attribute_client), this.add_lb.text = e.getStrByBaseAttributeBean(e)
			}
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setLayout = function() {
		this.jiantouimg.visible ? this.atrriGroup.layout = this._hLayout : this.atrriGroup.layout = this._vLayout
	}, e.prototype.setGridData = function(t, e) {
		var i = this._gridDict.get(t);
		i.setData(e), e ? i.star = e.getEquipDataBean().q_xingj : i.star = 0
	}, e.prototype.upStarHandle = function() {
		if (!this._equip) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">请选择需要升星的法宝</font>");
		var t = App.data.bagItemDataCenter.getAllPropItemByItemId(this._equip.itemId);
		if (t.length < 2) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">消耗材料不足</font>");
		var e = App.data.characterCenter.getFuseEquip(this._equip.itemId);
		e && EquipFuseCommandSender.sendEquipFuseMessage(e.q_id, null, this.roleIndex, this._equip.getEquipDataBean().q_kind)
	}, e.prototype.upStarSuccess = function(t) {
		App.dispatcher.dispatchEvent(EventType.ShowSuccess, null, 300, SuccessEffect.STAR), this.equip = null;
		var e = this.model.getFaBaoByPart(this.roleIndex, t);
		this.getEquip = e
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._hLayout = null, this
			._vLayout = null
	}, e
}(ViewBase);
__reflect(FaBaoUpStarView.prototype, "FaBaoUpStarView");
var FaBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.roleIndex = 1, e._curSelectIndex = -1, e.euiSkinName = "FaBaoSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/bg_fabao",
				"", ".jpg"), 0, -3)), this._gridDict = new HashObject, this._gridImgDict = new HashObject, this._quanImgDict =
			new HashObject;
		for (var t = 0; 8 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPartByIndex(t), e.place = EnumGrid.CHAR, e.isShowJobImg = !
				1, e.showStar = !0, e.x = this.getPos(t).x, e.y = this.getPos(t).y, e.isShowTip = !1, this._gridDict.put(e.part,
					e);
			var i = new eui.Image;
			this._gridImgDict.put(t, i), this._quanImgDict.put(t, this["quan" + (t + 1) + "_img"]), i.x = this.getPos(t).x + 5,
				i.y = this.getPos(t).y + 5, i.width = i.height = 66, this.addChild(i), this.addChild(e)
		}
		this.model = App.data.characterCenter, this.feJieBtn.textFlow = new Array({
			text: "点击分解法宝",
			style: {
				underline: !0
			}
		})
	}, e.prototype.show = function(t) {
		this.roleIndex = App.global.characterData.selectindex1, this.addGridEvent(), this.update(), this.curSelectIndex = -
			1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.fenJieClick, this, this.feJieBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.hechengClick, this, this.hecheng_img), this._dispatcher.addEventListener(
				EventType.FABAO_EQUIP_REFRESH, this.update, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.showFenJieEfc,
				this), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this)
	}, e.prototype.refreshRoleData = function(t) {
		this.roleIndex = t.roleIndex, this.update(), this.curSelectIndex = 0
	}, e.prototype.hechengClick = function() {
		App.dispatcher.dispatchEvent(EventType.FABAO_HECHENG_OPEN)
	}, e.prototype.fenJieClick = function(t) {
		App.data.bagItemDataCenter.fenjiTYPE = 31, App.panel.openPanel(27, App.data.bagItemDataCenter.getPropItemList(31))
	}, e.prototype.upStarHandle = function() {
		var t = this.model.getFaBaoByPart(this.roleIndex, this._curSelectGrid.part);
		App.panel.openPanel(1e4, t)
	}, e.prototype.changeHandle = function() {
		this._curSelectGrid && App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeFaBaoEquips(this.roleIndex,
			this._curSelectGrid.part))
	}, e.prototype.addGridEvent = function() {
		for (var t = 0; t < this._gridDict.length; ++t) {
			var e = this._gridDict.get(this.getPartByIndex(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGridClick, this, e)
		}
	}, e.prototype.showFenJieEfc = function() {
		var t = App.data.bagItemDataCenter.getPropItemList(31);
		t.length > 0 ? this._labelEff ? (this._labelEff.visible = !0, this._labelEff.play()) : this._labelEff = EffectUtils
			.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"), this.feJieBtn.x + 72, this.feJieBtn.y +
				12) : this._labelEff && (this._labelEff.stop(), this._labelEff.visible = !1)
	}, e.prototype.clearLabelEff = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.update = function(t) {
		void 0 === t && (t = null);
		for (var e = 0; e < this._gridDict.length; ++e) {
			var i = this._gridDict.get(this.getPartByIndex(e));
			i.setRedDot(App.data.characterCenter.getFaBaoRedByPart(this.roleIndex, i.part));
			var n = this.model.getFaBaoByPart(this.roleIndex, i.part);
			n ? (i.setData(n.itemId), i.star = n.getEquipDataBean().q_xingj) : (i.setData(100001), i.setData(null), i.star = 0);
			var a = this._gridImgDict.get(e);
			n ? (a.visible = !1, a.source = null, a.filters = []) : (a.visible = !0, a.source = "fabao_pos_" + e + "_png", a.filters =
				FilterUtil.FILTER_GRAY);
			var o = this._quanImgDict.get(e);
			o.visible = null != n
		}
		if (this.showFenJieEfc(), t) {
			var r = this._curSelectIndex;
			this.curSelectIndex = -1, this.curSelectIndex = r
		}
		this.showFigh(this.model.getAllFaBaoFight(this.roleIndex))
	}, e.prototype.showGridClick = function(t) {
		var e = t.$currentTarget,
			i = this.getIndexByPart(e.part);
		this.curSelectIndex = i, 0 == e.itemId ? this.changeHandle() : this.upStarHandle()
	}, e.prototype.showFigh = function(t) {
		this._fightBmp || (this._fightBmp = new FightPower, this._fightBmp.x = 150, this._fightBmp.y = 0, this.addChild(
			this._fightBmp)), this._fightBmp.setValue(t)
	}, e.prototype.getPartByIndex = function(t) {
		return EnumEquipType.FABAO_1 + t
	}, e.prototype.getIndexByPart = function(t) {
		return t - EnumEquipType.FABAO_1
	}, e.prototype.getPos = function(t) {
		return {
			x: this["pos" + (t + 1)].x,
			y: this["pos" + (t + 1)].y
		}
	}, Object.defineProperty(e.prototype, "curSelectIndex", {
		set: function(t) {
			if (-1 == t) this._curSelectIndex = -1, this.selectbg.visible = !1;
			else if (t != this._curSelectIndex) {
				this._curSelectIndex = t, this.selectbg.visible = !0, this.selectbg.x = this.getPos(this._curSelectIndex).x - 8,
					this.selectbg.y = this.getPos(this._curSelectIndex).y - 8;
				var e = this.getPartByIndex(this._curSelectIndex),
					i = this._gridDict.get(e);
				this.curSelectGrid = i
			}
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "curSelectGrid", {
		set: function(t) {
			this._curSelectGrid = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this.curSelectIndex = -1, this._dispatcher.removeAllListeners(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (t.prototype.dispose.call(this), this.clearLabelEff(), this.bgimg && (this.bgimg.dispose(), this.bgimg = null),
			this._fightBmp && (this._fightBmp.dispose(), this._fightBmp = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPartByIndex(e)).dispose();
			this._gridDict.dispose()
		}
		if (this._gridImgDict) {
			for (var e = 0; e < this._gridImgDict.length; e++) this._gridImgDict.get(this.getPartByIndex(e)).dispose();
			this._gridDict.dispose()
		}
		this._curSelectGrid && (this._curSelectGrid.dispose(), this._curSelectGrid = null)
	}, e
}(ViewBase);
__reflect(FaBaoView.prototype, "FaBaoView");
var GodEquipDecomposePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.model = App.data.godEquipCenter, this._view = UIMaker.createViewBase("GodEquipDecomposeSkin"), this.addChild(
				this._view), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.setGradeBg(
				GridUtil.getGridGradeBg(-1)), this._view.gridGroup.addChild(this._grid), this._grid.isShowTip = !1, this._grid.isShowDesc = !
			1, this._grid.isShowCount = !0;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t)
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 514 >> 1, this._view.y = Config.SCREEN_HEIGHT - 379 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.index = e.index, this.pos = e.pos, this.itemId = e.itemId;
		var i = App.config.q_equipContainer.getDataBean(this.itemId);
		if (i) {
			var n = StringUtil.JsonParse(i.q_resolve),
				a = n[0].id,
				o = n[0].num;
			this._grid.setData(a), this._grid.setCount(o + "")
		}
		var r = "拆解成功后，当前部位重置为<font color = '#00cc00'>未打造</font>状态并<font color = '#00cc00'>返回全部</font>升级消耗材料：";
		this._view.desc.textFlow = HtmlUtil.getHtmlStr(r), this.resize(), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onClose, this, this._view.btnNo), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.execHandle, this, this._view.btnExec)
	}, e.prototype.execHandle = function() {
		CharacterUICommandSender.sendC2S_GodEquipFenJieMessage(this.index, this.pos), this.onClose(), App.panel.removePanel(
			3e4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._grid.setData(null)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(GodEquipDecomposePanel.prototype, "GodEquipDecomposePanel");
var GodEquipDetailsItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "GodEquipDetailsRender", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {}, e.prototype.dataChanged = function() {
		var t = this.data;
		this.suitProDesc.text = "", this.suitPro.text = "";
		var e = App.config.q_equip_masterContainer.getDataBean(t);
		if (e) {
			this.suitProDesc.text = "[" + e.q_suit_num + "]件套激活：";
			var i = e.q_equip_icon_female.split(",");
			if (i)
				for (var n = 0; n < i.length; ++n) this.suitPro.text += i[n] + "\n"
		}
	}, e.prototype.clear = function() {}, e
}(ItemRenderer);
__reflect(GodEquipDetailsItemRender.prototype, "GodEquipDetailsItemRender");
var GodEquipDetailsPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.model = App.data.godEquipCenter, this._view = UIMaker.createViewBase("GodEquipDetailsSkin"), this.addChild(
			this._view), this.scroll = new VScrollPanel(410, 268, GodEquipDetailsItemRender, 5), this.scroll.move(20, 160,
			this._view)
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 386 >> 1, this._view.y = Config.SCREEN_HEIGHT - 486 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.index = e.index, this._roleData = App.global.roles.getRoleInfoByIndex(this.index),
			this._view.jobimg.source = "roleview_job" + this._roleData.job + "_png", this.getInfo()
	}, e.prototype.getInfo = function() {
		var t = 0,
			e = 0,
			i = this.model.godEquipsHash.get(this.index);
		if (i)
			for (var n = 0; n < i.length; ++n) {
				var a = i[n],
					o = App.config.q_equipContainer.getDataBean(a.itemID);
				o && (t += o.q_hp, e += o.q_attack_max, e += o.q_magic_attack_max, e += o.q_sc_attack_max)
			}
		e > 0 ? (this._view.gjGroup.visible = !0, this._view.gj_lb.text = "+" + e) : this._view.gjGroup.visible = !1, t > 0 ?
			(this._view.hpGroup.visible = !0, this._view.hp_lb.text = "+" + t) : this._view.hpGroup.visible = !1;
		var r = this.getSideSuitIdArr(EmunGodEquipSide.left),
			s = this.getSideSuitIdArr(EmunGodEquipSide.right);
		this.scroll.dataProvider = r.concat(s), this._view.haveNo_lb.visible = 0 == this.scroll.getDataProvider().length
	}, e.prototype.getSideSuitIdArr = function(t) {
		for (var e = [], i = this.getSideArr(t), n = [], a = 0; a < i.length; ++a) {
			var o = i[a],
				r = this.model.getLevelById(o.itemID);
			"" != r && n.push(r)
		}
		var s = new HashObject;
		for (a = 0; a < n.length; ++a) {
			var r = n[a],
				h = s.get(r) ? s.get(r) : 0;
			s.put(r, h + 1)
		}
		var l = s.getKeyArray();
		for (a = 0; a < l.length; ++a) {
			var p = l[a];
			s.get(p) > 1 && e.push(GameUtil.getGodEquipSuitId(this.getItemIdByLevel(t, p), 2)), s.get(p) > 3 && e.push(
				GameUtil.getGodEquipSuitId(this.getItemIdByLevel(t, p), 4))
		}
		return e
	}, e.prototype.getItemIdByLevel = function(t, e) {
		for (var i = this.getSideArr(t), n = 0; n < i.length; ++n) {
			var a = i[n],
				o = this.model.getLevelById(a.itemID);
			if (e == o) return a.itemID
		}
		return 0
	}, e.prototype.getSideArr = function(t) {
		var e = [],
			i = this.model.godEquipsHash.get(this.index);
		if (i)
			for (var n = 0; n < i.length; ++n) {
				var a = i[n],
					o = this.model.getGodEquipSideByPos(a.pos);
				t == o && e.push(a)
			}
		return e
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._roleData = null, this.scroll && this.scroll.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.scroll && this.scroll.dispose()
	}, e
}(BasePanel);
__reflect(GodEquipDetailsPanel.prototype, "GodEquipDetailsPanel");
var GodEquipPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("神装,破天,合击"), this.registerSubPanel(0, GodEquipView,
			"titleview_shenzhuang_png", 132, !0, !1), this.registerSubPanel(1, HotBloodView, "titleview_rexue_png", 133, !0,
			!1), this.registerSubPanel(2, RoleHejiView, "titleview_heji_png", 103, !1, !1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(GodEquipPanel.prototype, "GodEquipPanel");
var GodEquipTipPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.model = App.data.godEquipCenter, this._view = UIMaker.createViewBase("GodEquipTipSkin"), this.addChild(this._view),
			this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.setGradeBg(GridUtil.getGridGradeBg(
				-1)), this._grid.x = 0, this._grid.y = 0, this._view.gridGroup.addChild(this._grid), this._grid.isShowTip = !1,
			this._grid.isShowDesc = !1;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t), this._cImgsmall = UIMaker.getCImage(this._view.iconGroup, this, "", 0, 0, !1), this._cImgsmall
			.width = this._cImgsmall.height = 30
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - this._view.imgScale9Grid.width >> 1, this._view.y = Config.SCREEN_HEIGHT -
			this._view.imgScale9Grid.height - 60 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._side = e.side, this._level = e.level, this.itemId = e.itemId, this.index = e.index,
			this.realId = e.realId, this.setButton();
		var i = GameUtil.getItemConfigData(this.itemId);
		if (!i) return void Notice.showBottomMessage("item表中找不到id：" + this.itemId);
		var n = GameUtil.getEquipConfigData(this.itemId);
		if (!n) return void Notice.showBottomMessage("equip表中找不到id：" + this.itemId);
		this.setConsume();
		var a = GameUtil.getItemNameColor(this.itemId, !0);
		this._view.lblName.textColor = a, this._view.lblName.text = n.q_name + (Config.isDebug ? "_" + this.itemId : ""),
			this._grid.setData(this.itemId), this.showFigh(n.q_score), this._view.thebg.source = "common1_equipbg" + i.q_default +
			"_png", this.postation = n.q_kind, this._view.lblPos.text = EnumEquipType.PART_NAME[this.postation - 5e3], this._view
			.lblLvl.text = this.model.getLevelStrById(this.itemId), this._view.lblJob.text = EnumRole.JOB[i.q_job];
		var o = new BaseAttributeDataBean;
		o.convertAndAdd(n.q_add_attribute_client), this._view.basePro.text = o.getStrByBaseAttributeBean(o);
		var r = this.model.getSuitCountBySidePos(this.index, this._side, this._level),
			s = this._level + "神装套装<font color = '#00cc00'>（" + r + "/4）</font>";
		this._view.suitName_lb.textFlow = HtmlUtil.getHtmlStr(s), this._side == EmunGodEquipSide.left ? (this._view.pos1_lb
				.text = this._level + this.model.leftEquipName[0], this._view.pos2_lb.text = this._level + this.model.leftEquipName[
					1], this._view.pos3_lb.text = this._level + this.model.leftEquipName[2], this._view.pos4_lb.text = this._level +
				this.model.leftEquipName[3], this._view.pos1_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[
					0], this._level), this._view.pos2_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[1], this._level),
				this._view.pos3_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[2], this._level), this._view
				.pos4_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[3], this._level)) : this._side ==
			EmunGodEquipSide.right && (this._view.pos1_lb.text = this._level + this.model.rightEquipName[0], this._view.pos2_lb
				.text = this._level + this.model.rightEquipName[1], this._view.pos3_lb.text = this._level + this.model.rightEquipName[
					2], this._view.pos4_lb.text = this._level + this.model.rightEquipName[3], this._view.pos1_lb.textColor = this.model
				.getPosColor(this.index, this.model.rightArr[0], this._level), this._view.pos2_lb.textColor = this.model.getPosColor(
					this.index, this.model.rightArr[1], this._level), this._view.pos3_lb.textColor = this.model.getPosColor(this.index,
					this.model.rightArr[2], this._level), this._view.pos4_lb.textColor = this.model.getPosColor(this.index, this.model
					.rightArr[3], this._level));
		var h, l = GameUtil.getGodEquipSuitId(this.itemId, 2),
			p = App.config.q_equip_masterContainer.getDataBean(l);
		if (p && (this._view.suitPro2.text = "", h = p.q_equip_icon_female.split(",")))
			for (var c = 0; c < h.length; ++c) this._view.suitPro2.text += h[c] + "\n";
		if (this._view.suitPro2Desc.textColor = this._view.suitPro2.textColor = this.model.proIsActivate(this.index, this._side,
				this._level, 2) ? 52224 : 7631988, l = GameUtil.getGodEquipSuitId(this.itemId, 4), p = App.config.q_equip_masterContainer
			.getDataBean(l), p && (this._view.suitPro4.text = "", h = p.q_equip_icon_female.split(",")))
			for (var c = 0; c < h.length; ++c) this._view.suitPro4.text += h[c] + "\n";
		this._view.suitPro4Desc.textColor = this._view.suitPro4.textColor = this.model.proIsActivate(this.index, this._side,
			this._level, 4) ? 52224 : 7631988, this.resize(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.uplevelHandle, this, this._view.btnUplevel), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.execHandle, this, this._view.btnExec), App.data.taskCenter.getThreadTaskShowGuide(22) && Guide.getGuide().show(
			"点击打造神装", Guide.RIGHT, this._view.btnExec.x - 175, this._view.btnExec.y + 20, this._view)
	}, e.prototype.uplevelHandle = function() {
		if (!this.nextEquipFuse) return void Notice.showBottomMessage("已满级");
		this.onClose();
		var t = {};
		t.itemId = this.realId, t.index = this.index, t.side = this._side, App.panel.openPanel(30001, t)
	}, e.prototype.execHandle = function() {
		if (Guide.getGuide().hide(), 0 == this.realId) {
			if (!this.nextEquipFuse) return;
			if (!App.data.characterCenter.checkIsCanExec(this.nextEquipFuse.q_id)) return;
			var t = StringUtil.JsonParse(this.nextEquipFuse.q_consume);
			t && App.data.bagItemDataCenter.getItemCount(t[0].id) >= t[0].num ? (this.onClose(), EquipFuseCommandSender.sendEquipFuseMessage(
				this.nextEquipFuse.q_id, null, this.index, this.postation)) : App.panel.openPanel(19, t[0].id)
		} else {
			var e = {};
			e.index = this.index, e.pos = this.postation, e.itemId = this.realId, App.panel.openPanel(30002, e)
		}
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#F33333'>" + n + "</font>"
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp.bg.source = "", this
			._fightBmp._effect.visible = !1, this._fightBmp.setValue(e), this._view.groupFight.addChild(this._fightBmp))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._grid.setData(null), Guide.getGuide().hide()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._cImgsmall && (this._cImgsmall.dispose(), this._cImgsmall = null)
	}, e.prototype.setButton = function() {
		0 == this.realId ? (this._view.btnUplevel.visible = !1, this._view.btnExec.label = "打 造", this._view.xhDesc.text =
			"打造需要：") : (this._view.btnUplevel.visible = !0, this._view.btnExec.label = "拆 解", this._view.xhDesc.text =
			"升阶需要：")
	}, e.prototype.setConsume = function() {
		this._view.lb_xh.text = "";
		var t, e = 21,
			i = App.data.characterCenter.getFuseEquip(this.itemId),
			n = 0;
		0 == this.realId ? this.nextEquipFuse = App.data.characterCenter.getFuseEquip(this.itemId) : this.nextEquipFuse =
			App.data.characterCenter.getFuseEquip(i.q_equip_next_id), this.nextEquipFuse && (t = StringUtil.JsonParse(this.nextEquipFuse
				.q_consume)), t && (n = t[0].num, e = t[0].id), this._cImgsmall.url = ResPathUtil.getIcon(GameUtil.getItemConfigData(
				e).q_tiny_icon, EnumImageType.ITEM_80), this._view.lb_xh.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(e, n) +
				"/<font color='0xf8f3b7'>" + n + "</font>"), this.nextEquipFuse ? (this._view.btnUplevel.label = "升 级", this._view
				.iconGroup.visible = !0) : (this._view.btnUplevel.label = "已满级", this._view.iconGroup.visible = !1, this._view.lb_xh
				.text = "", this._view.xhDesc.text = "已满级")
	}, e
}(BasePanel);
__reflect(GodEquipTipPanel.prototype, "GodEquipTipPanel");
var GodEquipUpLevelPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.model = App.data.godEquipCenter, this._view = UIMaker.createViewBase("GodEquipUpLevelSkin"), this.addChild(
			this._view), this.curGrid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.curGrid.setGradeBg(
			GridUtil.getGridGradeBg(-1)), this.curGrid.isShowTip = !1, this.curGrid.isShowDesc = !1, this._view.curGridGroup.addChild(
			this.curGrid);
		var t = new egret.Rectangle(0, 0, 66, 66);
		this.curGrid.setIconSize(t, t), this.nextGrid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.nextGrid
			.setGradeBg(GridUtil.getGridGradeBg(-1)), this.nextGrid.isShowTip = !1, this.nextGrid.isShowDesc = !1, this._view.nextGridGroup
			.addChild(this.nextGrid), this.nextGrid.setIconSize(t, t), this._cImgsmall = UIMaker.getCImage(this._view.iconGroup,
				this, "", 0, 0, !1), this._cImgsmall.width = this._cImgsmall.height = 30
	}, e.prototype.resize = function() {
		this._view.x = Config.SCREEN_WIDTH - 425 >> 1, this._view.y = Config.SCREEN_HEIGHT - 722 >> 1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._side = e.side, this.itemId = e.itemId, this.index = e.index;
		var i = GameUtil.getEquipConfigData(this.itemId);
		return i ? (this.postation = i.q_kind, this.update(), this.resize(), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.uplevelHandle, this, this._view.btnUplevel), void this._dispatcher.addEventListener(EventType.WEAR_GOD_REFRESH,
			this.updatePanel, this)) : void Notice.showBottomMessage("equip表中找不到id：" + this.itemId)
	}, e.prototype.updatePanel = function() {
		var t = this.model.getGodEquipDataByPos(this.index, this.postation);
		t && (this.itemId = t.itemID, this.update())
	}, e.prototype.update = function() {
		var t = App.data.characterCenter.getFuseEquip(this.itemId);
		this.nextEquipFuse = App.data.characterCenter.getFuseEquip(t.q_equip_next_id), this._level = this.model.getLevelById(
			this.itemId), this._view.curLevel_lb.text = this.model.getLevelStrById(this.itemId), this.nextEquipFuse ? (this._view
			.nextLevel_lb.text = this.model.getLevelStrById(t.q_equip_next_id), this.nextGrid.setData(t.q_equip_next_id)) : (
			this._view.nextLevel_lb.text = "", this.nextGrid.setData(null)), this._view.name_lb.text = this._level + "神装套装";
		var e = GameUtil.getItemConfigData(this.itemId);
		if (!e) return void Notice.showBottomMessage("item表中找不到id：" + this.itemId);
		this.setConsume(), this.curGrid.setData(this.itemId), this._side == EmunGodEquipSide.left ? (this._view.pos1_lb.text =
				this._level + this.model.leftEquipName[0], this._view.pos2_lb.text = this._level + this.model.leftEquipName[1],
				this._view.pos3_lb.text = this._level + this.model.leftEquipName[2], this._view.pos4_lb.text = this._level + this
				.model.leftEquipName[3], this._view.pos1_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[0],
					this._level), this._view.pos2_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[1], this._level),
				this._view.pos3_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[2], this._level), this._view
				.pos4_lb.textColor = this.model.getPosColor(this.index, this.model.leftArr[3], this._level)) : this._side ==
			EmunGodEquipSide.right && (this._view.pos1_lb.text = this._level + this.model.rightEquipName[0], this._view.pos2_lb
				.text = this._level + this.model.rightEquipName[1], this._view.pos3_lb.text = this._level + this.model.rightEquipName[
					2], this._view.pos4_lb.text = this._level + this.model.rightEquipName[3], this._view.pos1_lb.textColor = this.model
				.getPosColor(this.index, this.model.rightArr[0], this._level), this._view.pos2_lb.textColor = this.model.getPosColor(
					this.index, this.model.rightArr[1], this._level), this._view.pos3_lb.textColor = this.model.getPosColor(this.index,
					this.model.rightArr[2], this._level), this._view.pos4_lb.textColor = this.model.getPosColor(this.index, this.model
					.rightArr[3], this._level));
		var i, n = GameUtil.getGodEquipSuitId(this.itemId, 2),
			a = App.config.q_equip_masterContainer.getDataBean(n);
		if (a && (this._view.suitPro2.text = "", i = a.q_equip_icon_female.split(",")))
			for (var o = 0; o < i.length; ++o) this._view.suitPro2.text += i[o] + "\n";
		if (this._view.suitPro2Desc.textColor = this._view.suitPro2.textColor = this.model.proIsActivate(this.index, this._side,
				this._level, 2) ? 52224 : 7631988, n = GameUtil.getGodEquipSuitId(this.itemId, 4), a = App.config.q_equip_masterContainer
			.getDataBean(n), a && (this._view.suitPro4.text = "", i = a.q_equip_icon_female.split(",")))
			for (var o = 0; o < i.length; ++o) this._view.suitPro4.text += i[o] + "\n";
		this._view.suitPro4Desc.textColor = this._view.suitPro4.textColor = this.model.proIsActivate(this.index, this._side,
			this._level, 4) ? 52224 : 7631988
	}, e.prototype.uplevelHandle = function() {
		if (!this.nextEquipFuse) return void Notice.showBottomMessage("已满级");
		if (App.data.characterCenter.checkIsCanExec(this.nextEquipFuse.q_id)) {
			var t = StringUtil.JsonParse(this.nextEquipFuse.q_consume);
			t && App.data.bagItemDataCenter.getItemCount(t[0].id) >= t[0].num ? EquipFuseCommandSender.sendEquipFuseMessage(
				this.nextEquipFuse.q_id, [this.itemId], this.index, this.postation) : App.panel.openPanel(19, t[0].id)
		}
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#F33333'>" + n + "</font>"
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.curGrid.setData(null), this.nextGrid.setData(null), this.nextEquipFuse = null
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._cImgsmall && (this._cImgsmall.dispose(), this._cImgsmall = null)
	}, e.prototype.setConsume = function() {
		this._view.xh_lb.text = "";
		var t, e = 21,
			i = (App.data.characterCenter.getFuseEquip(this.itemId), 0);
		this.nextEquipFuse && (t = StringUtil.JsonParse(this.nextEquipFuse.q_consume)), t && (i = t[0].num, e = t[0].id),
			this._cImgsmall.url = ResPathUtil.getIcon(GameUtil.getItemConfigData(e).q_tiny_icon, EnumImageType.ITEM_80), this._view
			.xh_lb.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(e, i) + "/" + i)
	}, e
}(BasePanel);
__reflect(GodEquipUpLevelPanel.prototype, "GodEquipUpLevelPanel");
var GodEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e._fuseid = 0, e.iswearequip = !1, e._equipid = 0, e._equipIndex = 5e3, e.currItemID = 0, e.euiSkinName =
			"GodEquipSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject, this._gridshow = new HashObject, this._selectBgDict = new HashObject;
		for (var t = [this.selectbg0, this.selectbg7, this.selectbg1, this.selectbg8, this.selectbg3, this.selectbg13, this
				.selectbg5, this.selectbg12
			], e = 0; 8 > e; e++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.part = this.getPart(e), i.place = EnumGrid.GODEQUIP, i.isShowJobImg = !1, i.x = e % 2 * 462 + 51, i.y = 72 + 109 *
				Math.floor(e / 2), i.isShowTip = !1, i.touchEnabled = !0, this.addChild(i), this._gridDict.put(i.part, i), this._selectBgDict
				.put(i.part, t[e])
		}
		for (var n = 0; 2 > n; n++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.setGradeBg(GridUtil.getGridGradeBg(-1)), i.isShowTip = !0, i.isShowJobImg = !1, i.isShowDesc = !1, 0 == n ? (i.x =
				47, i.y = 92, this.group1.addChild(i)) : (i.x = -21, i.y = 98, this.group2.addChild(i)), this._gridshow.put(n, i)
		}
		this.getgod.textFlow = new Array({
			text: "获取神装碎片",
			style: {
				underline: !0
			}
		}), this.desctext.visible = !1, this.desc2group.visible = this.group11.visible = !0
	}, e.prototype.show = function(t) {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/bg_027", "",
				".jpg"), 0, -3)), this._dispatcher.addEventListener(EventType.WEAR_GOD_REFRESH, this.refClick, this), this._dispatcher
			.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.shengjiClick, this, this.shengjibtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.getgodClick, this, this.getgod), this._dispatcher.addEventListener(ItemEvent.ADD, this.itemAddHandle, this),
			this._dispatcher.addEventListener(ItemEvent.REMOVE, this.showSuiPian, this), this._dispatcher.addEventListener(
				EnumRole.Decompose, this.refresh, this), App.data.taskCenter.getThreadTaskShowGuide(15) && Guide.getGuide().show(
				"点击分解神装", Guide.RIGHT, this.getgod.x - 175, this.getgod.y + 15, this.getgod.parent), t && (this.Index = t), this.refresh(),
			this.addgridevent(), this.showSuiPian(), this.showFigh(App.data.godEquipCenter.getAllGodFight(this.Index))
	}, e.prototype.itemAddHandle = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++) i = t[a], null != i && (21 == i.getDataBean().q_id || 50 == i.getDataBean()
			.q_type) && this.refresh()
	}, e.prototype.addgridevent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGridClick, this, e)
		}
	}, e.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0), this.showxiaohao()
	}, e.prototype.showFigh = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, t)
	}, e.prototype.showSuiPian = function(t) {
		void 0 === t && (t = null), this.clearEffect();
		var e = App.data.bagItemDataCenter.getPropItemList(50);
		e.length > 0 ? (this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"),
			523, 640), this.imgred.visible = !0) : (this.imgred.visible = !1, this.clearEffect())
	}, e.prototype.refClick = function() {
		this.refresh()
	}, e.prototype.getgodClick = function() {
		App.data.bagItemDataCenter.fenjiTYPE = 50, App.panel.openPanel(27, App.data.bagItemDataCenter.getPropItemList(50))
	}, e.prototype.shengjiClick = function() {
		var t = App.data.bagItemDataCenter.getHeightGod(this.currItemID, this._equipIndex, this.roleData.job, this.roleData
			.sex);
		if (0 != this._fuseid) {
			if (!App.data.characterCenter.checkIsCanExec(this._fuseid)) return;
			var e = StringUtil.JsonParse(App.config.q_equip_fuseContainer.getDataBean(this._fuseid).q_consume);
			e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num ? 0 == this._equipid ? EquipFuseCommandSender.sendEquipFuseMessage(
				this._fuseid, null, this.Index, this._equipIndex) : EquipFuseCommandSender.sendEquipFuseMessage(this._fuseid, [
				this._equipid
			], this.Index, this._equipIndex) : App.panel.openPanel(19, e[0].id)
		} else CharacterUICommandSender.sendC2S_GodEquipWearableMessage(this.roleData.roleIndex, t, this._equipIndex)
	}, e.prototype.showgroup = function() {
		this.group1.x = 234, this.group11.x = 31, this.group2.visible = !1, this.gridBigBg.visible = !0, this.gro1title.x =
			42, this.gro1title0.x = 38
	}, e.prototype.showGrid = function(t) {
		if (this.currItemID = t.itemId, this.group1.visible = !0, 0 == t.itemId) {
			this.showgroup();
			var e = App.data.godEquipCenter.getGodEquipFirstId(this.roleData.job, t.part),
				i = App.config.q_equipContainer.getDataBean(e);
			this.curEquip = i;
			var n = App.data.characterCenter.getFuseEquip(i.q_id);
			if (this._fuseid = n.q_id, i) {
				var a = this._gridshow.get(0);
				a && a.itemId == i.q_id || (this._gridshow.get(0).setData(i.q_id), this.showgro1Text(i.q_id)), this._equipIndex =
					i.q_kind
			} else this._gridshow.get(0).setData(null), this._equipIndex = 5e3;
			this._equipid = 0
		} else {
			this.group1.x = 158, this.group11.x = 11, this.gro1title.x = 44, this.gro1title0.x = 41, this.group2.visible = !0,
				this._gridshow.get(0).setData(t.itemId), this.gridBigBg.visible = !1, this.showgro1Text(t.itemId);
			var o = App.data.characterCenter.getGuildEquipID(t.itemId, t.part),
				n = App.data.characterCenter.getFuseEquip(t.itemId);
			this.curEquip = App.config.q_equipContainer.getDataBean(n.q_equip_next_id);
			var r = App.data.characterCenter.getFuseEquip(n.q_equip_next_id);
			if (r) {
				var a = this._gridshow.get(1);
				a && a.itemId == o.q_id || (this._gridshow.get(1).setData(o.q_id), this.showgro2Text(o.q_id)), this._fuseid = r.q_id,
					this._equipid = t.itemId
			} else this._gridshow.get(1).setData(null), this.showgroup(), this._fuseid = 0;
			this._equipIndex = t.part
		}
		this._selectBgImg && (this._selectBgImg.visible = !1), this._selectBgImg = this._selectBgDict.get(t.part), this._selectBgDict
			.get(t.part).visible = !0, this.showxiaohao()
	}, e.prototype.showGridClick = function(t) {
		var e = t.$currentTarget;
		this.showGrid(e)
	}, e.prototype.showgro1Text = function(t) {
		var e = GameUtil.getEquipConfigData(t);
		this.gro1pingfen.text = "评分：" + e.q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(e.q_add_attribute_client), this.gro1att.text = i.getStrByBaseAttributeBean(i), this.gro1att.x =
			this.cur_lb.x + .5 * (this.cur_lb.width - this.gro1att.width), this.gro1title0.text = e.q_name, this.gro1title.text =
			0 == GameUtil.getItemConfigData(t).q_zhuanshen ? "LV:" + GameUtil.getItemConfigData(t).q_level : "转" + GameUtil.getItemConfigData(
				t).q_zhuanshen
	}, e.prototype.showgro2Text = function(t) {
		var e = GameUtil.getEquipConfigData(t);
		this.gro2pingfen.text = "评分：" + e.q_score;
		var i = new BaseAttributeDataBean;
		i.convertAndAdd(e.q_add_attribute_client), this.gro2att.text = i.getStrByBaseAttributeBean(i), this.gro2att.x =
			this.next_lb.x + .5 * (this.next_lb.width - this.gro2att.width), this.gro2title0.text = e.q_name, this.gro2title.text =
			0 == GameUtil.getItemConfigData(t).q_zhuanshen ? "LV:" + GameUtil.getItemConfigData(t).q_level : "转" + GameUtil.getItemConfigData(
				t).q_zhuanshen
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.refresh(), this.showxiaohao()
	}, e.prototype.showxiaohao = function() {
		App.data.godEquipCenter.godRedDot(this.roleData, !0);
		for (var t = App.data.godEquipCenter._godEquipHash, e = 0; 8 > e; e++) {
			var i = this.getPart(e),
				n = this._gridDict.get(i);
			n && n.setRedDot(t.get(n.part))
		}
		if (0 == this._fuseid) this.shengjibtn.label = "已满级", this.xiaohaogroup.visible = !1, UIMaker.showPoint(this.redpointGroup,
			this, !1);
		else {
			this.xiaohaogroup.visible = !0;
			var a = App.data.characterCenter.getFuseEquip(this.curEquip.q_id),
				o = StringUtil.JsonParse(a.q_consume);
			0 == this._gridDict.get(this._equipIndex).itemId ? this.shengjibtn.label = "合 成" : this.shengjibtn.label = "升 级",
				this.xiaohaotext.text = "/" + o[0].num, App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num ? this.xiaohaotext0
				.textColor = 2863402 : this.xiaohaotext0.textColor = 11996943, this.guildicon.source = "shenzhuang_png", this.xiaohaotext0
				.text = App.data.bagItemDataCenter.getItemCount(o[0].id) + "", this.xiaohaotext.x = this.xiaohaotext0.x + this.xiaohaotext0
				.width + 2
		}
		this.xiaohaotext0.text = App.data.bagItemDataCenter.getItemCount(21) + "", this.xiaohaotext.x = this.xiaohaotext0.x +
			this.xiaohaotext0.width + 2
	}, e.prototype.refresh = function() {
		var t = App.data.godEquipCenter.godEquipsHash.get(this.roleData.roleIndex);
		App.data.godEquipCenter.godRedDot(this.roleData, !0);
		for (var e = App.data.godEquipCenter._godEquipHash, i = 0; 8 > i; i++) {
			var n = this.getPart(i),
				a = this._gridDict.get(n);
			a && (a.setData(100001), a.setData(null), a.setRedDot(e.get(n)))
		}
		for (var o = 0; o < t.length; o++)
			if (t && t[o]) {
				var r = this._gridDict.get(t[o].pos);
				null != r && r.setData(t[o].itemID)
			} for (var s = 0; 1 > s; s++) {
			var h = this._gridDict.get(this._equipIndex);
			this.showGrid(h)
		}
		this.showFigh(App.data.godEquipCenter.getAllGodFight(this.Index))
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI + 5e3 : 1 == t ? t = EnumEquipType.TOU_KUI + 5e3 : 2 == t ? t =
			EnumEquipType.YI_FU + 5e3 : 3 == t ? t = EnumEquipType.XIANG_LIAN + 5e3 : 4 == t ? t = EnumEquipType.SHOU_ZHUO +
			5e3 : 5 == t ? t = EnumEquipType.YAO_DAI + 5e3 : 6 == t ? t = EnumEquipType.JIE_ZHI + 5e3 : 7 == t && (t =
				EnumEquipType.XIE_ZI + 5e3), t
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearEffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.hide = function() {
		UIMaker.showPoint(this.redpointGroup, this, !1), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(),
			this._dispatcher.removeAllListeners(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		this._selectBgDict && (this._selectBgDict.dispose(), this._selectBgDict = null), this.curEquip && (this.curEquip =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(GodEquipView.prototype, "GodEquipView");
var GuildEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e._fuseid = 0, e.iswearequip = !1, e._equipid = 0, e._equipIndex = 100, e.isshowbottom = !0, e.strarr = [],
			e._pos = 0, e.euiSkinName = "GodEquipSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject, this._gridshow = new HashObject, this._selectBgDict = new HashObject;
		for (var t = [this.selectbg0, this.selectbg7, this.selectbg1, this.selectbg8, this.selectbg3, this.selectbg13, this
				.selectbg5, this.selectbg12
			], e = 0; 8 > e; e++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.setGradeBg(GridUtil.getGridGradeBg(-1)), i.part = this.getPart(e), i.place = EnumGrid.CHAR, i.isShowJobImg = !1,
				i.x = e % 2 * 462 + 51, i.y = 72 + 109 * Math.floor(e / 2), i.isShowTip = !1, this.addChild(i), this._gridDict.put(
					i.part, i), this._selectBgDict.put(i.part, t[e])
		}
		for (var n = 0; 2 > n; n++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.setGradeBg(GridUtil.getGridGradeBg(-1)), i.isShowTip = !1, i.isShowJobImg = !1, i.isShowDesc = !1, 0 == n ? (i.x =
				47, i.y = 92, this.group1.addChild(i)) : (i.x = -20, i.y = 98, this.group2.addChild(i)), this._gridshow.put(n, i)
		}
		this.gridBigBg1.source = "roleview_jinhua1_png", this.gridBigBg.source = "roleview_bigequip1_png", this.getgod.textFlow =
			new Array({
				text: "获得灭神套装",
				style: {
					underline: !0
				}
			}), this.desctext.visible = !0, this.desc2group.visible = this.group11.visible = !1, this.gro2title.textColor =
			this.gro1title.textColor = 15090673, this.imgred.visible = !1
	}, e.prototype.show = function(t) {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/bg_026", "",
				".jpg"), 0, -3)), this._dispatcher.addEventListener(EventType.EQUIP_GUILD_REFRESH, this.refClick, this), this._dispatcher
			.addEventListener(EnumRole.Decompose, this.showxiaohao, this), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2,
				this.refreshRoleData, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.shengjiClick,
				this, this.shengjibtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getgodClick, this,
				this.getgod), this._dispatcher.addEventListener(ItemEvent.ADD, this.onItemChange, this), this._dispatcher.addEventListener(
				ItemEvent.CHANGE, this.onItemChange, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.onItemChange,
				this), t && (this.Index = t), this.refresh(), this.addgridevent(), this.showxiaohao(), this.showFigh(App.data.characterCenter
				.getAllGuildFight(this.Index)), ShopCommandSender.sendRequestShopListMessage(11)
	}, e.prototype.addgridevent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGridClick, this, e)
		}
	}, e.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0), this.showxiaohao()
	}, e.prototype.showFigh = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, t)
	}, e.prototype.refClick = function() {
		this.refresh()
	}, e.prototype.getgodClick = function() {
		if (App.global.characterData.guildId && "" != App.global.characterData.guildId && "0" != App.global.characterData.guildId)
			for (var t = App.data.guildCenter.shopList.sort(App.data.mallCenter.sortMallFunc), e = 0; e < t.length; e++) {
				this._bean = GameUtil.getShopItemConfigData(t[e].sellId);
				var i = GameUtil.getEquipConfigData(this._bean.q_itemModelId);
				if (i && i.q_kind == this._equipIndex) return void PanelOpenManager.openBuyPanel(this._bean, 11, 110, 0, !1)
			} else App.panel.openPanel(31)
	}, e.prototype.shengjiClick = function() {
		"升 级" == this.shengjibtn.label ? CharacterUICommandSender.sendC2S_GuildSuitUP(this._fuseid, this._equipIndex, this.Index) :
			CharacterUICommandSender.sendC2S_GuildSuitUSE(this._fuseid, this._equipIndex, this.Index)
	}, e.prototype.showgroup = function() {
		this.group1.x = 234, this.group11.x = 31, this.group2.visible = !1, this.gridBigBg.visible = !0, this.gro1title.x =
			28, this.gro1title0.x = 28
	}, e.prototype.showGridClick = function(t) {
		var e = t.$currentTarget;
		if (this.group1.visible = !0, 0 == e.itemId) {
			this.showgroup();
			var i = (1 == e.part ? this.roleData.sex : 0, App.data.characterCenter.getGuildEquipID(e.itemId, e.part));
			this._fuseid = i.q_id, i ? (this._gridshow.get(0).setData(i.q_id), this.showgro1Text(i.q_id, !0), this._equipIndex =
				i.q_kind) : (this._gridshow.get(0).setData(null), this._equipIndex = 100)
		} else {
			this.group1.x = 158, this.group11.x = 11, this.gro1title.x = 35, this.gro1title0.x = 25, this.group2.visible = !0,
				this._gridshow.get(0).setData(e.itemId), this.gridBigBg.visible = !1;
			var n = (1 == e.part ? this.roleData.sex : 0, App.data.characterCenter.getGuildEquipID(e.itemId, e.part));
			n ? (this.showgro1Text(e.itemId, !1), this._gridshow.get(1).setData(n.q_id), this._fuseid = n.q_id, this.showgro2Text(
				n.q_id)) : (this.showgro1Text(e.itemId, !0), this._gridshow.get(1).setData(null), this._fuseid = 0, this.showgroup(),
				this.gridBigBg.visible = !1), this._equipIndex = e.part
		}
		0 != e.itemId ? this._equipid = e.itemId : 0 == this._gridshow.get(0).itemId ? (this._equipid = 0, this.group1.visible = !
				1) : this._equipid = this._gridshow.get(0).itemId, this._selectBgImg && (this._selectBgImg.visible = !1), this._selectBgImg =
			this._selectBgDict.get(e.part), this._selectBgDict.get(e.part).visible = !0, this.showxiaohao()
	}, e.prototype.showgro1Text = function(t, e) {
		var i = GameUtil.getEquipConfigData(t),
			n = new BaseAttributeDataBean;
		n.convertAndAdd(i.q_add_attribute_client), this.hashatt = App.data.characterCenter.hejiEquipCenter.getAllAddAttrStr1(
			[n.getStrByBaseAttributeBean(n)]), this.strarr = this.hashatt.getKeyArray();
		for (var a = 0; a < this.hashatt.length; a++) 2 > a && null != this.hashatt.get(this.strarr[a]) && (this["desctext" +
			a].textFlow = HtmlUtil.getHtmlStr(this.strarr[a] + this.hashatt.get(this.strarr[a])));
		e ? this.desctext2.textFlow = HtmlUtil.getHtmlStr(GameUtil.getItemConfigData(t).q_describe.split("→")[0]) : this.desctext2
			.textFlow = HtmlUtil.getHtmlStr(GameUtil.getItemConfigData(t).q_describe), this.gro1title0.text = i.q_name, this.gro1title0
			.textColor = 15090673, this.gro1title.text = i.q_add_engrave_prop + "阶"
	}, e.prototype.showgro2Text = function(t) {
		var e = GameUtil.getEquipConfigData(t),
			i = new BaseAttributeDataBean;
		i.convertAndAdd(e.q_add_attribute_client), this.hashatt1 = App.data.characterCenter.hejiEquipCenter.getAllAddAttrStr1(
			[i.getStrByBaseAttributeBean(i)]), this.strarr = this.hashatt1.getKeyArray();
		for (var n = 0; n < this.hashatt1.length; n++)
			if (2 > n && null != this.hashatt1.get(this.strarr[n])) {
				var a = this["desctext" + n].text;
				this["desctext" + n].textFlow = HtmlUtil.getHtmlStr(a + "<font color='0xe643f1'> → " + this.hashatt1.get(this.strarr[
					n]) + "</font>")
			} this.gro2title0.text = e.q_name, this.gro2title0.textColor = 15090673, this.gro2title.text = e.q_add_engrave_prop +
			"阶"
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.refresh(), this.showxiaohao()
	}, e.prototype.showxiaohao = function() {
		this.isshowbottom = !0, App.data.characterCenter.guildEquipRedPoint(this.Index);
		for (var t = App.data.characterCenter._guildEquipHash, e = 0; 8 > e; e++) {
			var i = this.getPart(e),
				n = this._gridDict.get(i);
			n && n.setRedDot(t.get(i))
		}
		if (0 == this._fuseid) this.shengjibtn.label = "已满级", this.xiaohaogroup.visible = !1, this.gridBigBg.visible = !0;
		else {
			this.xiaohaogroup.visible = !0;
			var a = App.data.characterCenter.getFuseEquip(this._fuseid),
				o = (GameUtil.getItemConfigData(a.q_equip_model_id), StringUtil.JsonParse(a.q_consume));
			0 == this._gridDict.get(this._equipIndex).itemId ? this.shengjibtn.label = "装 备" : this.shengjibtn.label = "升 级",
				this.xiaohaotext.text = "/" + o[0].num, App.data.bagItemDataCenter.getItemCount(o[0].id) >= o[0].num ? (this.xiaohaotext0
					.textColor = 2863402, this.isshowbottom = !1) : this.xiaohaotext0.textColor = 11996943, this.guildicon.source =
				"roleview_" + o[0].id + "_png", this.xiaohaotext0.text = App.data.bagItemDataCenter.getItemCount(o[0].id) + "",
				this.xiaohaotext.x = this.xiaohaotext0.x + this.xiaohaotext0.width + 2
		}
	}, e.prototype.refresh = function() {
		for (var t = App.data.characterCenter.guildEquipsHash.get(this.roleData.roleIndex), e = 0; 8 > e; e++) {
			var i = this.getPart(e),
				n = this._gridDict.get(i);
			n && (n.setData(100001), n.setData(null))
		}
		for (var a = 0; a < t.length; a++)
			if (t && t[a]) {
				var o = this._gridDict.get(t[a].pos);
				null != o && o.setData(t[a].itemID)
			} for (var r = 0; 1 > r; r++) {
			var s = this._gridDict.get(this._equipIndex),
				h = new GameEvent(egret.TouchEvent.TOUCH_TAP);
			h.$currentTarget = s, this.showGridClick(h)
		}
		this.showFigh(App.data.characterCenter.getAllGuildFight(this.Index))
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI + 100 : 1 == t ? t = EnumEquipType.TOU_KUI + 100 : 2 == t ? t =
			EnumEquipType.YI_FU + 100 : 3 == t ? t = EnumEquipType.XIANG_LIAN + 100 : 4 == t ? t = EnumEquipType.SHOU_ZHUO +
			100 : 5 == t ? t = EnumEquipType.YAO_DAI + 100 : 6 == t ? t = EnumEquipType.JIE_ZHI + 100 : 7 == t && (t =
				EnumEquipType.XIE_ZI + 100), t
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearEffect = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.hide = function() {
		UIMaker.showPoint(this.redpointGroup, this, !1), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(),
			t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		this._selectBgDict && (this._selectBgDict.dispose(), this._selectBgDict = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(GuildEquipView.prototype, "GuildEquipView");
var HotBloodView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e._arr = [], e._allZeroArr = [2000001, 2000036, 2000006, 2000021, 2000026, 2000041, 2000031,
				2000016
			], e._womanclothsArr = [], e._equipsArr = [], e._equipid = 0, e._equipItemId = 0, e.currItemID = 0, e._equipIndex =
			8800, e.showid = 0, e.euiSkinName = "HotBloodSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		App.tip.removeTip(this.rexuetao), t.prototype.dispose.call(this)
	}, e.prototype.init = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 8 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.place = EnumGrid.CHAR, e.name = "" + t, e.isShowDesc = !
				1, e.isShowTip = !1, e.setBgVisible(!1), e.x = this["group" + t].x + 7, e.y = this["group" + t].y + 10, this.addChild(
					e), this._gridDict.put(e.part, e)
		}
		this.gethot.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取破天碎片")), App.tip.addTip(this.rexuetao, new TipData(
			21))
	}, e.prototype.show = function(t) {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/rexue_a06",
				"", ".jpg"), 0, -5)), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, -1), this.getOrange(),
			this._dispatcher.addEventListener(EventType.WEAR_REXUE_REFRESH, this.refresh, this), this._dispatcher.addEventListener(
				RoleListView.ROLE_SELECT2, this.refreshRoleData, this);
		for (var e = 0; 8 > e; e++) {
			var i = this._gridDict.get(this.getPart(e));
			i.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGrid, this, i)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.shengjiClick, this, this.shengjibtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getconsum, this, this.gethot), this._dispatcher.addEventListener(
				ItemEvent.ADD, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.showSuiPian, this),
			this._dispatcher.addEventListener(EnumRole.Decompose, this.refresh, this), t && (App.global.characterData.selectindex1 =
				this.Index = t), this.refresh(), this.showeffect(), this.showSuiPian(), this.showselect()
	}, e.prototype.showSuiPian = function(t) {
		void 0 === t && (t = null), this.clearLabelEff();
		var e = App.data.bagItemDataCenter.getPropItemList(88);
		e.length > 0 ? this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"),
			523, 640) : this.clearLabelEff()
	}, e.prototype.showeffect = function() {
		this.clearGrid()
	}, e.prototype.getequip = function(t) {
		for (var e = App.data.wearEquipCenter.getRoleWearList(this.roleData.roleIndex), i = 0; i < e.length; i++)
			if (e[i].itemId == t) return e[i].id;
		return "0"
	}, e.prototype.onUpdate = function(t, e) {
		void 0 === e && (e = 0), this.refresh()
	}, e.prototype.getconsum = function() {
		App.data.bagItemDataCenter.fenjiTYPE = 88, App.panel.openPanel(27, App.data.bagItemDataCenter.getPropItemList(88))
	}, e.prototype.shengjiClick = function() {
		var t = App.data.bagItemDataCenter.getHeightRexue(this.currItemID, this._equipIndex, this.roleData.job, this.roleData
			.sex);
		if ("0" == t && 0 != this._fuseid) {
			if (!App.data.characterCenter.checkIsCanExec(this._fuseid)) return;
			var e = StringUtil.JsonParse(App.config.q_equip_fuseContainer.getDataBean(this._fuseid).q_consume);
			e && App.data.bagItemDataCenter.getItemCount(e[0].id) >= e[0].num ? 0 == this._equipid ? EquipFuseCommandSender.sendEquipFuseMessage(
				this._fuseid, null, this.Index, this._equipIndex) : EquipFuseCommandSender.sendEquipFuseMessage(this._fuseid, [
				this._equipid
			], this.Index, this._equipIndex) : App.panel.openPanel(19, e[0].id)
		} else CharacterUICommandSender.sendC2S_ReXueEquipWearableMessage(this.roleData.roleIndex, t, this._equipIndex)
	}, e.prototype.getOrange = function() {
		for (var t = App.config.q_equip_fuseContainer.list, e = 0; e < t.length; e++) 1 == t[e].q_fuse_type && this._arr.push(
			t[e]);
		for (var i = 0; i < this._arr.length; i++) this._equipsArr.push(this._arr[i]);
		this._equipsArr.sort(this.arrSort)
	}, e.prototype.arrSort = function(t, e) {
		return t.q_id > e.q_id ? 1 : -1
	}, e.prototype.showconsume = function(t) {
		var e = App.data.bagItemDataCenter.getItemCount(22);
		this.xiaohaotext0.text = e + "", 0 == t ? (this.shengjibtn.label = "已满级", this.shengjibtn.enabled = !1, this.xiaohaogroup
			.visible = !1, UIMaker.showPoint(this.redpointGroup, this, !1)) : (this.xiaohaogroup.visible = !0, this.shengjibtn
			.enabled = !0, this.xiaohaotext.text = "/" + t, e >= t ? (this.xiaohaotext0.textColor = 2863402, UIMaker.showPoint(
				this.redpointGroup, this, !0)) : (this.xiaohaotext0.textColor = 11996943, UIMaker.showPoint(this.redpointGroup,
				this, !1)), this.xiaohaotext.x = this.xiaohaotext0.x + this.xiaohaotext0.width + 2)
	}, e.prototype.showselect = function() {
		this.showEquipEff("rexue" + this._equipIndex)
	}, e.prototype.refreView = function(t) {
		var e = t.name;
		if (this.currItemID = t.itemId, this.selectimg.visible = !0, this.selectimg.x = this["group" + e].x - 17, this.selectimg
			.y = this["group" + e].y - 15, 0 == this.currItemID) {
			this.currGroup0.x = 268, this.currGroup1.visible = this.jiantouimg.visible = !1;
			var i = App.data.characterCenter.getGuildEquipID(t.itemId, t.part),
				n = new BaseAttributeDataBean;
			n.convertAndAdd(i.q_add_attribute_client), this.text0.text = n.getStrByBaseAttributeBean(n);
			var a = Number(t.name),
				o = 0;
			o = 2 == a && 2 == this.roleData.sex ? 2000011 : this._allZeroArr[a];
			var r = App.data.characterCenter.getFuseEquip(o);
			this._fuseid = r.q_id, this._equipid = 0;
			var s = StringUtil.JsonParse(r.q_consume);
			this.showconsume(s[0].num), this.shengjibtn.label = "合 成";
			var h = GameUtil.getItemConfigData(o);
			this.rexuetitle.source = "roleview_rexue_" + t.part + "_" + h.q_zhuanshen + "_png"
		} else {
			this.currGroup0.x = 114, this.currGroup1.visible = this.jiantouimg.visible = !0;
			var l = App.config.q_equipContainer.getDataBean(t.itemId),
				n = new BaseAttributeDataBean;
			n.convertAndAdd(l.q_add_attribute_client), this.text0.text = n.getStrByBaseAttributeBean(n);
			var i = App.data.characterCenter.getGuildEquipID(t.itemId, t.part);
			if (i) {
				var n = new BaseAttributeDataBean;
				n.convertAndAdd(i.q_add_attribute_client), this.text1.text = n.getStrByBaseAttributeBean(n)
			} else this.currGroup0.x = 268, this.currGroup1.visible = this.jiantouimg.visible = !1;
			var r = App.data.characterCenter.getFuseEquip(t.itemId),
				p = App.data.characterCenter.getFuseEquip(r.q_equip_next_id);
			if (p) {
				this._fuseid = p.q_id, this._equipid = t.itemId;
				var s = StringUtil.JsonParse(p.q_consume);
				this.showconsume(s[0].num), this.shengjibtn.label = "升 级"
			} else this.showconsume(0);
			var h = GameUtil.getItemConfigData(t.itemId);
			this.rexuetitle.source = "roleview_rexue_" + t.part + "_" + h.q_zhuanshen + "_png"
		}
		var c = App.data.bagItemDataCenter.getHeightRexue(this.currItemID, this._equipIndex, this.roleData.job, this.roleData
			.sex);
		"0" != c && (this.shengjibtn.label = "装 备", this.xiaohaogroup.visible = !1, UIMaker.showPoint(this.redpointGroup,
			this, !0))
	}, e.prototype.showGrid = function(t) {
		var e = t.currentTarget;
		this._equipIndex = e.part, this.refreView(e), this.showselect()
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.refresh()
	}, e.prototype.showEquipEff = function(t) {
		this.clearEffect(), this._eff = EffectUtils.showCEffect(this, this.conView, ResPathUtil.getMenuEffect("rexue", t),
			0, 0)
	}, e.prototype.refresh = function() {
		var t = App.data.characterCenter.rexueEquipsHash.get(this.roleData.roleIndex);
		App.data.characterCenter.hotRedDot(this.roleData, !0);
		for (var e = App.data.characterCenter._hotBloodHash, i = 0; 8 > i; i++) {
			var n = this.getPart(i),
				a = this._gridDict.get(n);
			a && (a.setData(100001), a.setData(null), a.setRedDot(e.get(n)))
		}
		for (var o = 0; o < t.length; o++)
			if (t && t[o]) {
				var r = this._gridDict.get(t[o].pos);
				null != r && (r.setData(t[o].itemID), r._effect.url = ResPathUtil.getMenuEffect("rexue", "rexuebg"))
			} this.refreView(this._gridDict.get(this._equipIndex))
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI : 1 == t ? t = EnumEquipType.TOU_KUI : 2 == t ? t = EnumEquipType.YI_FU : 3 ==
			t ? t = EnumEquipType.XIANG_LIAN : 4 == t ? t = EnumEquipType.SHOU_ZHUO : 5 == t ? t = EnumEquipType.YAO_DAI : 6 ==
			t ? t = EnumEquipType.JIE_ZHI : 7 == t && (t = EnumEquipType.XIE_ZI), t + 8800
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.clearGrid = function() {
		this._effect && (this._effect.stop(), this._effect.dispose(), this._effect = null), this._effect1 && (this._effect1
			.stop(), this._effect1.dispose(), this._effect1 = null)
	}, e.prototype.clearLabelEff = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.clearEffect = function() {
		this._eff && (this._eff.stop(), this._eff.dispose(), this._eff = null)
	}, e.prototype.clear = function() {
		this._effBG && (this._effBG.stop(), this._effBG.dispose(), this._effBG = null)
	}, e.prototype.hide = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(), this.clearLabelEff(), this.clearGrid(),
			UIMaker.showPoint(this.redpointGroup, this, !1), this.clear(), this._dispatcher.removeAllListeners()
	}, e
}(ViewBase);
__reflect(HotBloodView.prototype, "HotBloodView");
var NewGodEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.euiSkinName = "NewGodEquipSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.model = App.data.godEquipCenter, this._gridDict = new HashObject, this._selectBgDict = new HashObject, this.lightEffDict =
			new HashObject;
		for (var t = [this.selectbg0, this.selectbg7, this.selectbg1, this.selectbg8, this.selectbg3, this.selectbg13, this
				.selectbg5, this.selectbg12
			], e = 0; 8 > e; e++) {
			var i = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			i.part = this.getPart(e), i.place = EnumGrid.GODEQUIP, i.isShowJobImg = !1, i.isHasSuit = !1, i.x = e % 2 * 462 +
				52, i.y = 145 + 109 * Math.floor(e / 2), i.isShowTip = !1, i.touchEnabled = !0, this.addChild(i), this._gridDict.put(
					i.part, i), this._selectBgDict.put(i.part, t[e]);
			var n = EffectUtils.showCEffect(this, this["group" + e], ResPathUtil.getMenuEffect("godEquipSuit", "line_duan"), 0,
				47);
			n.stop(), n.visible = !1, this.lightEffDict.put("duanLeft_" + e, n);
			var a = EffectUtils.showCEffect(this, this["group" + e], ResPathUtil.getMenuEffect("godEquipSuit", "line_duan"),
				96, 47);
			if (a.stop(), a.visible = !1, this.lightEffDict.put("duanRight_" + e, a), 6 != e && 7 != e) {
				var o = EffectUtils.showCEffect(this, this["group" + e], ResPathUtil.getMenuEffect("godEquipSuit", "line_chang"),
					-12, 100);
				o.stop(), o.visible = !1, this.lightEffDict.put("changLeft_" + e, o);
				var r = EffectUtils.showCEffect(this, this["group" + e], ResPathUtil.getMenuEffect("godEquipSuit", "line_chang"),
					108, 100);
				r.stop(), r.visible = !1, this.lightEffDict.put("changRight_" + e, r)
			}
		}
		this.roleEff = EffectUtils.showCEffect(this, this.roleGroup, ResPathUtil.getMenuEffect("godEquipSuit", "szjr"), 300,
			580), this.roleEff.play()
	}, e.prototype.show = function(t) {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("role/bg_027", "",
				".jpg"), 0, -3)), t && (this.Index = t), this.refresh(), this.addgridevent(), this.showFigh(this.model.getAllGodFight(
				this.Index)), this._dispatcher.addEventListener(EventType.WEAR_GOD_REFRESH, this.refresh, this), this._dispatcher
			.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
				EnumRole.Decompose, this.refresh, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.XQClick,
				this, this.xqbtn), App.data.taskCenter.getThreadTaskShowGuide(22) && Guide.getGuide().show("打造神装", Guide.LEFT,
				this.group0.x + 280, this.group0.y + 50, this)
	}, e.prototype.XQClick = function() {
		var t = {};
		t.index = this.Index, App.panel.openPanel(30003, t)
	}, e.prototype.addgridevent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.showGridClick, this, e)
		}
	}, e.prototype.showFigh = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, t)
	}, e.prototype.showGridClick = function(t) {
		Guide.getGuide().hide();
		var e = t.$currentTarget;
		if (this.curSelectImg && (this.curSelectImg.visible = !1), e) {
			var i = this._selectBgDict.get(e.part);
			i && (i.visible = !0, this.curSelectImg = i);
			var n = this.model.getGodEquipFirstId(this.roleData.job, e.part),
				a = {};
			a.side = this.model.getGodEquipSideByPos(e.part), a.level = 0 == e.itemId ? this.model.getLevelById(n) : this.model
				.getLevelById(e.itemId), a.itemId = 0 == e.itemId ? n : e.itemId, a.index = this.Index, a.realId = e.itemId, App.panel
				.openPanel(3e4, a)
		}
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.curSelectImg && (this.curSelectImg.visible = !
			1), this.refresh()
	}, e.prototype.refresh = function() {
		var t = this.model.godEquipsHash.get(this.Index);
		this.model.godRedDot(this.roleData, !0);
		for (var e = this.model._godEquipHash, i = 0; 8 > i; i++) {
			var n = this.getPart(i),
				a = this._gridDict.get(n);
			a && (a.setData(100001), a.setData(null), a.setRedDot(e.get(n)))
		}
		for (var o = 0; o < t.length; o++)
			if (t && t[o]) {
				var r = this._gridDict.get(t[o].pos);
				null != r && r.setData(t[o].itemID)
			} this.showFigh(this.model.getAllGodFight(this.Index)), this.checkLeftSuit(), this.checkRightSuit(), this.lineHandle()
	}, e.prototype.lineHandle = function() {
		for (var t = 0; 8 > t; ++t) {
			var e = this._gridDict.get(this.getPart(t)),
				i = this._gridDict.get(this.getPart(t - 2)),
				n = this._gridDict.get(this.getPart(t - 4)),
				a = this._gridDict.get(this.getPart(t - 6)),
				o = this.lightEffDict.get("duanLeft_" + t),
				r = this.lightEffDict.get("duanLeft_" + (t - 2)),
				s = this.lightEffDict.get("duanLeft_" + (t - 4)),
				h = this.lightEffDict.get("duanLeft_" + (t - 6)),
				l = this.lightEffDict.get("duanRight_" + t),
				p = this.lightEffDict.get("duanRight_" + (t - 2)),
				c = this.lightEffDict.get("duanRight_" + (t - 4)),
				_ = this.lightEffDict.get("duanRight_" + (t - 6)),
				d = GameUtil.getItemConfigData(e.itemId),
				u = void 0;
			e.isHasSuit ? this.model.leftArr.indexOf(e.part) > -1 ? i ? (u = GameUtil.getItemConfigData(i.itemId), this.model.checkIsSameLevel(
						d, u) ? (o.visible = r.visible, l.visible = p.visible) : i.isHasSuit ? (o.visible = !r.visible, l.visible = !p.visible) :
					(l && (l.visible = !0), o && (o.visible = !1))) : n ? (u = GameUtil.getItemConfigData(n.itemId), this.model.checkIsSameLevel(
						d, u) ? (o.visible = s.visible, l.visible = c.visible) : n.isHasSuit ? (o.visible = !s.visible, l.visible = !c.visible) :
					(l && (l.visible = !0), o && (o.visible = !1))) : a ? (u = GameUtil.getItemConfigData(a.itemId), this.model.checkIsSameLevel(
						d, u) ? (o.visible = h.visible, l.visible = _.visible) : a.isHasSuit ? (o.visible = !h.visible, l.visible = !_.visible) :
					(l && (l.visible = !0), o && (o.visible = !1))) : (l && (l.visible = !0), o && (o.visible = !1)) : this.model.rightArr
				.indexOf(e.part) > -1 && (i ? (u = GameUtil.getItemConfigData(i.itemId), this.model.checkIsSameLevel(d, u) ? (o.visible =
					r.visible, l.visible = p.visible) : i.isHasSuit ? (o.visible = !r.visible, l.visible = !p.visible) : (o && (o.visible = !
					0), l && (l.visible = !1))) : n ? (u = GameUtil.getItemConfigData(n.itemId), this.model.checkIsSameLevel(d, u) ?
					(o.visible = s.visible, l.visible = c.visible) : n.isHasSuit ? (o.visible = !s.visible, l.visible = !c.visible) :
					(o && (o.visible = !0), l && (l.visible = !1))) : a ? (u = GameUtil.getItemConfigData(a.itemId), this.model.checkIsSameLevel(
					d, u) ? (o.visible = h.visible, l.visible = _.visible) : a.isHasSuit ? (o.visible = !h.visible, l.visible = !_
					.visible) : (o && (o.visible = !0), l && (l.visible = !1))) : (o && (o.visible = !0), l && (l.visible = !1))) :
				(o && (o.visible = !1), l && (l.visible = !1)), o.visible ? o.play() : o.stop(), l.visible ? l.play() : l.stop()
		}
		for (var t = 0; 8 > t; ++t) {
			var g = this.lightEffDict.get("duanLeft_" + t),
				f = this.lightEffDict.get("duanRight_" + t),
				m = this.lightEffDict.get("changLeft_" + t),
				v = this.lightEffDict.get("changRight_" + t),
				y = this.lightEffDict.get("duanLeft_" + (t - 2)),
				E = this.lightEffDict.get("duanLeft_" + (t - 4)),
				C = this.lightEffDict.get("duanLeft_" + (t - 6)),
				b = this.lightEffDict.get("duanRight_" + (t - 2)),
				w = this.lightEffDict.get("duanRight_" + (t - 4)),
				A = this.lightEffDict.get("duanRight_" + (t - 6)),
				T = this.lightEffDict.get("duanLeft_" + (t + 2)),
				I = this.lightEffDict.get("duanLeft_" + (t + 4)),
				S = this.lightEffDict.get("duanLeft_" + (t + 6)),
				P = this.lightEffDict.get("duanRight_" + (t + 2)),
				D = this.lightEffDict.get("duanRight_" + (t + 4)),
				M = this.lightEffDict.get("duanRight_" + (t + 6));
			m && (g && g.visible ? 0 == t || 1 == t ? (m.visible = !0, m.play()) : T && T.visible || I && I.visible ? (m.visible = !
				0, m.play()) : (m.visible = !1, m.stop()) : (y && y.visible || E && E.visible || C && C.visible) && (T && T.visible ||
				I && I.visible || S && S.visible) ? (m.visible = !0, m.play()) : (m.visible = !1, m.stop())), v && (f && f.visible ?
				0 == t || 1 == t ? (v.visible = !0, v.play()) : P && P.visible || D && D.visible ? (v.visible = !0, v.play()) :
				(v.visible = !1, v.stop()) : (b && b.visible || w && w.visible || A && A.visible) && (P && P.visible || D && D.visible ||
					M && M.visible) ? (v.visible = !0, v.play()) : (v.visible = !1, v.stop()))
		}
	}, e.prototype.checkLeftSuit = function() {
		for (var t = (this.model.leftArr.length, []), e = this.model.godEquipsHash.get(this.Index), i = 0; i < e.length; ++
			i) {
			var n = e[i],
				a = "";
			this.model.getGodEquipSideByPos(n.pos) == EmunGodEquipSide.left && (a = this.model.getLevelById(n.itemID)), "" !=
				a && t.push(a)
		}
		var o = {};
		for (i = 0; i < t.length; ++i) {
			var a = t[i];
			o[a] ? o[a] = o[a] + 1 : o[a] = 1
		}
		for (i = 0; i < this._gridDict.length; ++i) {
			var r = this.getPart(i),
				s = this._gridDict.get(r);
			if (s && this.model.leftArr.indexOf(s.part) > -1) {
				var a = this.model.getLevelById(s.itemId);
				o[a] > 1 ? s.isHasSuit = !0 : s.isHasSuit = !1
			}
		}
	}, e.prototype.checkRightSuit = function() {
		for (var t = (this.model.rightArr.length, []), e = this.model.godEquipsHash.get(this.Index), i = 0; i < e.length; ++
			i) {
			var n = e[i],
				a = "";
			this.model.getGodEquipSideByPos(n.pos) == EmunGodEquipSide.right && (a = this.model.getLevelById(n.itemID)), "" !=
				a && t.push(a)
		}
		var o = {};
		for (i = 0; i < t.length; ++i) {
			var a = t[i];
			o[a] ? o[a] = o[a] + 1 : o[a] = 1
		}
		for (i = 0; i < this._gridDict.length; ++i) {
			var r = this.getPart(i),
				s = this._gridDict.get(r);
			if (s && this.model.rightArr.indexOf(s.part) > -1) {
				var a = this.model.getLevelById(s.itemId);
				o[a] > 1 ? s.isHasSuit = !0 : s.isHasSuit = !1
			}
		}
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI + 5e3 : 1 == t ? t = EnumEquipType.TOU_KUI + 5e3 : 2 == t ? t =
			EnumEquipType.YI_FU + 5e3 : 3 == t ? t = EnumEquipType.XIANG_LIAN + 5e3 : 4 == t ? t = EnumEquipType.SHOU_ZHUO +
			5e3 : 5 == t ? t = EnumEquipType.YAO_DAI + 5e3 : 6 == t ? t = EnumEquipType.JIE_ZHI + 5e3 : 7 == t && (t =
				EnumEquipType.XIE_ZI + 5e3), t
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.curSelectImg && (this.curSelectImg.visible = !1),
			this._dispatcher.removeAllListeners(), Guide.getGuide().hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		this._selectBgDict && (this._selectBgDict.dispose(), this._selectBgDict = null), this.lightEffDict && (this.lightEffDict
			.dispose(), this.lightEffDict = null), this.curSelectImg && (this.curSelectImg = null), this.roleEff && (this.roleEff
			.dispose(), this.roleEff = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(NewGodEquipView.prototype, "NewGodEquipView");
var ReincarnationEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._equipIndex = 200, e.Index = 1, e.currItemID = 0, e._equipcousuArr = [7101101, 7101201, 7101301, 7101401,
				7101501, 7101601, 7101701, 7101801
			], e.euiSkinName = "ReincarnationEquipViewSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e,
				ResPathUtil.getImgPath("role/rolereinbg", "", ".jpg"), 0, -5), e.bgimg.height = 782), e.init(), e.getgod.textFlow =
			HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取轮回装备")), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridDict = new HashObject;
		for (var t = 0; 8 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.isShowJobImg = !1, e.x = this["gridbg" + t]
				.x, e.y = this["gridbg" + t].y, e.isShowTip = !1, this.addChild(e), this._gridDict.put(e.part, e)
		}
		this.commonGrid = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.commonGrid.x = 284, this.commonGrid
			.y = 173, this.commonGrid.isShowDesc = !1, this.addChild(this.commonGrid)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), e && (this.Index = e), this.addEvent(), this.refreSurView(), this.refresh()
	}, e.prototype.refreSurView = function() {
		this.addAvatarUI();
		var t = App.data.wearEquipCenter.getWearObj(this.roleData.roleIndex);
		for (var e in t) this.onWear(t[e]);
		0 == App.data.characterCenter.isShowSurface && (this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			4)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(5)), this.showSurface(this.roleData
			.surfaceManager.getShowSerfaceIdBySerfaceType(16)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			1, 1)))
	}, e.prototype.showSurface = function(t) {
		if (-1 != t) {
			var e = App.config.q_surfaceContainer.getDataBean(t);
			if (e && this._avatar) {
				var i = e.q_scene_show_id,
					n = e.q_type;
				e.q_child_type;
				1 == n ? this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 10, i) : 4 == n ? (1 == e.q_head_hide ?
						this._avatar.removePart(AvatarPartType.HEAD) : this.showSurface(this.roleData.surfaceManager.getShowSurfaceByType(
							3, 4)), this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, i)) : 5 == n && this
					._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, i)
			}
		}
	}, e.prototype.onWear = function(t) {
		var e = t.getDataBean();
		if (e) {
			var i = e.q_sex == EnumRole.COMMON || e.q_sex == this.roleData.sex,
				n = e.q_job == EnumRole.COMMON || e.q_job == this.roleData.job;
			if (i && n) {
				var a, o = (this._gridDict.get(t.position), this.roleData.sex);
				null != e && (a = e.q_equip_resource, t.position == EnumEquipType.WU_QI ? ("" != this.roleData.chengzhuWeapon &&
						(a = this.roleData.chengzhuWeapon), this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, o, a)) :
					t.position == EnumEquipType.YI_FU && this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, o, a))
			}
		}
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.Index = t.roleIndex, this.refreSurView(), this.refresh()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
			PlayerAttributeEvent.LUNHUIRESULT, this.refresh, this), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUISTARRESULT,
			this.refresh, this), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUIZHUHUNRESULT, this.refresh,
			this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getgodClick, this, this.getgod);
		for (var t = 0; 8 > t; t++) {
			var e = this._gridDict.get(this.getPart(t));
			e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.iconClick, this, e)
		}
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.shengxingClick, this, this.shengxing), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.zhuhunClick, this, this.zhuhun), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.zhuangbeiClick, this, this.shengjibtn1)
	}, e.prototype.getgodClick = function(t) {
		App.panel.openPanel(19, this._equipcousuArr[this.getPartIndex(this._equipIndex)])
	}, e.prototype.zhuangbeiClick = function(t) {
		var e = App.data.bagItemDataCenter.getHeightLunhui(this.currItemID, this._equipIndex, this.roleData.job);
		"0" == e ? App.panel.openPanel(19, this._equipcousuArr[this.getPartIndex(this._equipIndex)]) :
			CharacterUICommandSender.sendC2S_LunHUiEquipWearableMessage(this.roleData.roleIndex, e, this._equipIndex)
	}, e.prototype.refresh = function() {
		this.itemgroup.visible = this.selectimg.visible = !1;
		var t = App.data.characterCenter.lunhuiEquipHash.get(this.Index);
		App.data.characterCenter.lunhuiEquipRedPoint(this.Index);
		for (var e = App.data.characterCenter._lunhuiEquipRedHash, i = 0; 8 > i; i++) {
			var n = this.getPart(i),
				a = this._gridDict.get(n);
			a && (a.setData(100001), a.setData(null), a.setRedDot(e.get(n)))
		}
		if (t)
			for (var o = 0; o < t.length; o++)
				if (t[o]) {
					var r = this._gridDict.get(t[o].pos);
					null != r && r.setData(t[o].LunHuiSuitId)
				} this.refreView(this._gridDict.get(this._equipIndex)), this.showFigh(App.data.characterCenter.getAllLunhuiFight(
			this.Index))
	}, e.prototype.refreView = function(t) {
		if (this.selectimg.visible = !0, this.selectimg.x = t.x - 8, this.selectimg.y = t.y - 8, this.currItemID = t.itemId,
			0 == t.itemId) this._avatar.visible = !0, this.commonGrid.setData(t.itemId), this.equipname.text = "", this.itemgroup
			.visible = !1, this.zhuangbeigroup.visible = !0;
		else {
			this._avatar.visible = !1;
			var e = App.config.q_equipContainer.getDataBean(t.itemId),
				i = App.data.characterCenter.lunhuiEquipHash.get(this.Index);
			this.commonGrid.setData(t.itemId), this.equipname.text = "" + GameUtil.getItemConfigData(t.itemId).q_name, this.equipname
				.textColor = GameUtil.getItemNameColor(t.itemId), this.itemgroup.visible = !0, this.zhuangbeigroup.visible = !1;
			var n = new BaseAttributeDataBean;
			n.convertAndAdd(e.q_add_attribute_client), this.desc0.text = "攻击:" + n.dcMax, this.desc1.text = "物防:" + n.acMax,
				this.desc2.text = "魔防:" + n.macMax, this.desc3.text = "血量:" + n.maxHp;
			for (var a = void 0, o = 0; o < i.length; o++)
				if (i[o].LunHuiSuitId == t.itemId) {
					a = App.config.q_samsara_starContainer.getDataBean(i[o].poslevel);
					for (var r = 1; 13 >= r; r++) r <= a.q_star_lv ? this["star" + r].source = "common1_star_light_png" : this[
						"star" + r].source = "common1_star_an_png";
					break
				}
		}
	}, e.prototype.showNewSurfer = function(t, e) {}, e.prototype.showFigh = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, t)
	}, e.prototype.shengxingClick = function(t) {
		App.panel.openPanel(2001, {
			id: this._gridDict.get(this._equipIndex).itemId,
			index: this.Index
		})
	}, e.prototype.zhuhunClick = function(t) {
		App.panel.openPanel(2002, {
			id: this._gridDict.get(this._equipIndex).itemId,
			index: this.Index
		})
	}, e.prototype.iconClick = function(t) {
		var e = t.currentTarget;
		this._equipIndex = e.part, this.refreView(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearAvatar()
	}, e.prototype.clearAvatar = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, e.prototype.addAvatarUI = function() {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.touchEnabled = !1, this._avatar.touchChildren = !
			1, this._avatar.x = 330, this._avatar.y = 330, this.rolegroup.addChild(this._avatar));
		var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
		this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t), this._avatar.changePlayerRolePartResource(
			AvatarPartType.WEAPON, this.roleData.sex, t)
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.Index)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI + 200 : 1 == t ? t = EnumEquipType.TOU_KUI + 200 : 2 == t ? t =
			EnumEquipType.YI_FU + 200 : 3 == t ? t = EnumEquipType.XIANG_LIAN + 200 : 4 == t ? t = EnumEquipType.SHOU_ZHUO +
			200 : 5 == t ? t = EnumEquipType.YAO_DAI + 200 : 6 == t ? t = EnumEquipType.JIE_ZHI + 200 : 7 == t && (t =
				EnumEquipType.XIE_ZI + 200), t
	}, e.prototype.getPartIndex = function(t) {
		return t == EnumEquipType.WU_QI + 200 ? t = 0 : t == EnumEquipType.TOU_KUI + 200 ? t = 1 : t == EnumEquipType.YI_FU +
			200 ? t = 2 : t == EnumEquipType.XIANG_LIAN + 200 ? t = 3 : t == EnumEquipType.SHOU_ZHUO + 200 ? t = 4 : t ==
			EnumEquipType.YAO_DAI + 200 ? t = 5 : t == EnumEquipType.JIE_ZHI + 200 ? t = 6 : t == EnumEquipType.XIE_ZI + 200 &&
			(t = 7), t
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ReincarnationEquipView.prototype, "ReincarnationEquipView");
var ReincarnationShengXingView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Index = 1, e.itemid = 0, e.pos = 200, e.stararr = [3, 6, 9, 13], e.canBol = !1, e.euiSkinName =
			"ReincarnationShengXingViewSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath(
				"reincarnation/ks_bg", "", ".jpg"))), e.init(), e.getgod.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline(
				"获取升星石")), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.x = 220, this.grid.y = 167, this
			.grid.isShowDesc = !1, this.addChild(this.grid)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._obj = e, this.grid.setData(this._obj.id), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.btnOnClick, this, this.btn), this._dispatcher.addEventListener(
			PlayerAttributeEvent.LUNHUISTARRESULT, this.refreView1, this), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.getgodClick, this, this.getgod), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUISTARFALSERESULT,
			this.showfailView, this), this.refreView()
	}, e.prototype.getgodClick = function(t) {
		App.panel.openPanel(19, EnumItemId.STAR_UP)
	}, e.prototype.showfailView = function() {
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("panel", "shibai"), 280, 320), this.refreView()
	}, e.prototype.refreView1 = function() {
		App.dispatcher.dispatchEvent(EventType.ShowSuccess, "", 500, SuccessEffect.STAR), this.refreView()
	}, e.prototype.refreView = function() {
		var t, e = App.data.characterCenter.lunhuiEquipHash.get(this._obj.index),
			i = App.config.q_itemContainer.getDataBean(this._obj.id),
			n = 0;
		e.length >= 8 && (n = 13);
		for (var a = 0; a < e.length; a++) {
			if (e[a].LunHuiSuitId == this._obj.id) {
				this.pos = e[a].pos, t = App.config.q_samsara_starContainer.getDataBean(e[a].poslevel);
				for (var o = 1; 13 >= o; o++) o <= t.q_star_lv ? this["star" + o].source = "common1_star_light_png" : this["star" +
					o].source = "common1_star_an_png"
			}
			e[a].poslevel % 100 < n && (n = e[a].poslevel % 100)
		}
		this.equipname.text = i.q_name, this.equipname.textColor = GameUtil.getItemNameColor(i.q_id);
		var r = App.config.q_samsara_star_masterContainer.list,
			s = "";
		if (r)
			for (var a = 0; a < r.length; a++) s = n >= this.stararr[a] ? s + "<font color='0xf8f3b7'>" + r[a].q_skill_desc +
				"</font><br>" : s + r[a].q_skill_desc + "<br>";
		this.desc.textFlow = HtmlUtil.getHtmlStr(s);
		var h = new BaseAttributeDataBean;
		if (h.convertAndAdd(t.q_add_attribute), this.attrtext.text = h.getStrByBaseAttributeBean(h), t.q_next_id > 0) {
			var l = App.config.q_samsara_starContainer.getDataBean(t.q_next_id),
				p = new BaseAttributeDataBean;
			p.convertAndAdd(l.q_add_attribute), this.attrtextnext.text = p.getStrByBaseAttributeBean(p)
		} else this.attrtextnext.text = "MAX";
		var c = StringUtil.JsonParse(t.q_num),
			_ = App.data.bagItemDataCenter.getItemCount(c[0].id),
			d = 15938355;
		this.canBol = !1, _ >= c[0].num && (d = 2863402, this.canBol = !0), this.xiaohaotext.textFlow = HtmlUtil.getHtmlStr(
			"消耗<font color='0xffb258'>升星石</font>:<font color='" + d + "'>" + _ + "</font>/" + c[0].num)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.btnOnClick = function(t) {
		this.canBol ? "MAX" == this.attrtextnext.text ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">星级已达上限</font>") : CharacterUICommandSender.sendC2S_LunHUiEquiplevel(this._obj.index, this._obj.id, this.pos) :
			App.panel.openPanel(19, EnumItemId.STAR_UP)
	}, e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.grid && (this.grid.dispose(), this.grid = null), t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ReincarnationShengXingView.prototype, "ReincarnationShengXingView");
var ReincarnationView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.effectArr = [], e.lightArr = [], e.currid = 0, e.currLevel = 0, e.canUp = !0, e.euiSkinName =
			"ReincarnationViewSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e.bggroup, e, ResPathUtil.getImgPath(
				"reincarnation/bj", "", ".jpg"), 0, 56)), e.lightArr = [e.img0, e.img1, e.img2, e.img3, e.img4, e.img5, e.img6, e.img7],
			e.effectArr = [e.effect0, e.effect1, e.effect2, e.effect3, e.effect4, e.effect5, e.effect6, e.effect7], e._roleEffect =
			EffectUtils.showCEffect(e, e.bggroup, ResPathUtil.getMenuEffect("reincarnation", "bagua"), 322, 379, e._roleEffect),
			e.huoquLab.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取轮回业力")), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this.showEfffect(), this.fightPower.y = 95, this.showView(!1)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUILEVEL, this.showView, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onBtnClick, this, this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.ongetClick, this, this.huoquLab), this._dispatcher.addEventListener(EventType.MY_METEM, this.showGetEffect,
			this)
	}, e.prototype.ongetClick = function(t) {
		App.panel.openPanel(21, 12)
	}, e.prototype.onBtnClick = function(t) {
		this.canUp ? CharacterUICommandSender.sendC2S_LunHUiLevelUP() : App.panel.openPanel(21, 12)
	}, e.prototype.showView = function(t) {
		if (void 0 === t && (t = !0), this.currid = App.data.characterCenter.lunhuiLevel, 0 == this.currid) {
			this.gongji.text = "攻击:0", this.shengming.text = "生命:0", this.wufang.text = "物防:0", this.mofang.text = "魔防:0",
				this.shensheng.text = "神圣:0";
			var e = App.config.q_samsaraContainer.getDataBean(101),
				i = new BaseAttributeDataBean;
			i.convertAndAdd(e.q_ability), this.gongji0.text = "" + i.scMax, this.shengming0.text = "" + i.maxHp, this.wufang0.text =
				"" + i.acMax, this.mofang0.text = "" + i.macMax, this.shensheng0.text = "" + i.holyAtk, this.fightPower.setValue(
					0);
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.LUNHUIEXP),
				a = e.q_need_exp,
				o = a > n ? 15938355 : 2863402;
			this.canUp = a > n ? !1 : !0, this.cost_txt.textFlow = HtmlUtil.getHtmlStr("轮回业力：" + HtmlUtil.formatColor(n + "",
				o) + "/" + a);
			for (var r = 0; r < this.effectArr.length; r++) this.effectArr[r].visible = !1, this.lightArr[r].visible = !1;
			this.icon1 = UIMaker.getCImage(this, this, ResPathUtil.getResImage(e.q_jie_show, "lunhui"), 57, 188, !1, this.icon1),
				this.icon2 = UIMaker.getCImage(this, this, ResPathUtil.getResImage(e.q_lv_show, "lunhui"), 57, 286, !1, this.icon2)
		} else {
			var s = App.config.q_samsaraContainer.getDataBean(this.currid),
				i = new BaseAttributeDataBean;
			i.convertAndAdd(s.q_ability), this.gongji.text = "攻击:" + i.scMax, this.shengming.text = "生命:" + i.maxHp, this.wufang
				.text = "物防:" + i.acMax, this.mofang.text = "魔防:" + i.macMax, this.shensheng.text = "神圣:" + i.holyAtk;
			var e = App.config.q_samsaraContainer.getDataBean(s.q_next_id);
			this.fightPower.setValue(FightPowerUtil.getFightPower([s.q_ability]));
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.LUNHUIEXP),
				a = s.q_need_exp,
				o = a > n ? 15938355 : 2863402;
			if (this.canUp = a > n ? !1 : !0, this.cost_txt.textFlow = HtmlUtil.getHtmlStr("轮回业力：" + HtmlUtil.formatColor(n +
					"", o) + "/" + a), e) {
				var i = new BaseAttributeDataBean;
				i.convertAndAdd(e.q_ability), this.gongji0.text = "" + i.scMax, this.shengming0.text = "" + i.maxHp, this.wufang0
					.text = "" + i.acMax, this.mofang0.text = "" + i.macMax, this.shensheng0.text = "" + i.holyAtk
			} else {
				var h = App.data.currencyDataCenter.getMoney(EnumMoney.LUNHUIEXP);
				this.cost_txt.text = "轮回业力：" + h, this.gongji0.text = "", this.shengming0.text = "", this.wufang0.text = "", this
					.mofang0.text = "", this.shensheng0.text = ""
			}
			for (var r = 0; r < this.effectArr.length; r++) this.effectArr[r].visible = s.q_level > r, this.lightArr[r].visible =
				s.q_level > r;
			if (t && this.currLevel < App.data.characterCenter.lunhuiLevel)
				if (0 == s.q_level) EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("rexue", "daojingjinjie"),
					320, 390), EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("panel", "jinjiechenggong"), 320,
					390);
				else {
					var l = s.q_level - 1;
					this.currEffect = EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("reincarnation", "baozha"),
						this.lightArr[l].x + 32, this.lightArr[l].y + 29)
				} this.currLevel = App.data.characterCenter.lunhuiLevel, this.icon1 = UIMaker.getCImage(this, this, ResPathUtil.getResImage(
				s.q_jie_show, "lunhui"), 57, 188, !1, this.icon1), this.icon2 = UIMaker.getCImage(this, this, ResPathUtil.getResImage(
				s.q_lv_show, "lunhui"), 57, 286, !1, this.icon2), this.showGetEffect()
		}
	}, e.prototype.showEfffect = function() {
		for (var t = 0; t < this.effectArr.length; t++) this.effectArr[t] = EffectUtils.showCEffect(this, this.bggroup,
			ResPathUtil.getMenuEffect("reincarnation", "baguaitem"), this.lightArr[t].x + 32, this.lightArr[t].y + 29)
	}, e.prototype.showGetEffect = function() {
		this.clearLabelEff();
		var t = !1;
		App.data.characterCenter.lunhuiCount > 0 ? t = !0 : (App.data.bagItemDataCenter.getItemRemainNum(EnumItemId.LUNHUI_DAN) >
				0 && App.data.bagItemDataCenter.getItemCount(EnumItemId.LUNHUI_DAN) > 0 || App.data.bagItemDataCenter.getItemRemainNum(
					EnumItemId.LUNHUI_Super_DAN) > 0 && App.data.bagItemDataCenter.getItemCount(EnumItemId.LUNHUI_Super_DAN) > 0) &&
			(t = !0), t ? this._labelEff = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelsix"),
				544, 835) : this.clearLabelEff()
	}, e.prototype.clearLabelEff = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.hide = function() {
		if (this.effectArr)
			for (var e = 0; e < this.effectArr.length; e++) this.effectArr[e].stop(), this.effectArr[e].dispose(), this.effectArr[
				e] = null;
		this.currEffect && (this.currEffect.stop(), this.currEffect.dispose(), this.currEffect = null), t.prototype.hide.call(
			this)
	}, e.prototype.dispose = function() {
		this.icon1 && (UIMaker.putToPool(this.icon1), this.icon1 = null), this.icon2 && (UIMaker.putToPool(this.icon2),
				this.icon2 = null), this.bgimg && (UIMaker.putToPool(this.bgimg), this.bgimg = null), this._roleEffect && this._roleEffect
			.dispose(), this._roleEffect = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ReincarnationView.prototype, "ReincarnationView");
var ReincarnationZhuhunView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.pos = 200, e.euiSkinName = "ReincarnationZhuHunViewSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e
				.bggroup, e, ResPathUtil.getImgPath("reincarnation/ks_bg", "", ".jpg"))), e._gridDict = new HashObject, e.init(),
			e.getgod.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取轮回装备")), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.x = 220, this.grid.y = 167, this
			.grid.isShowDesc = !1, this.addChild(this.grid);
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.isShowJobImg = !1, e.x = 370 * (t % 2) + 40, e.y = 80 + 260 * Math.floor(
				t / 2), e.isShowTip = !1, this.addChild(e), this._gridDict.put(t, e)
		}
		this.barMask = new egret.Rectangle(0, 0, 450, 15), this.bar.mask = this.barMask
	}, e.prototype.btnOnClick = function(t) {
		for (var e = [], i = 0; i < this._gridDict.length; i++) this._gridDict.get(i).data && e.push(this._gridDict.get(i).data
			.id);
		0 == e.length ? App.panel.openPanel(19, this._obj.id) : CharacterUICommandSender.sendC2S_LunHUiEquipZhuHun(this._obj
			.index, e, this.pos)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnOnClick, this,
				this.levelupbtn), this._dispatcher.addEventListener(PlayerAttributeEvent.LUNHUIZHUHUNRESULT, this.refreView, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.getgodClick, this, this.getgod), this._obj = e,
			this.grid.setData(this._obj.id), this.refreView()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.getgodClick = function(t) {
		App.panel.openPanel(19, this._obj.id)
	}, e.prototype.refreView = function() {
		var t = App.data.characterCenter.lunhuiEquipHash.get(this._obj.index),
			e = App.config.q_itemContainer.getDataBean(this._obj.id);
		this.equipname.text = e.q_name, this.equipname.textColor = GameUtil.getItemNameColor(e.q_id);
		for (var i, n = 0, a = 0; a < t.length; a++) t[a].LunHuiSuitId == this._obj.id && (this.pos = t[a].pos, i = App.config
			.q_samsara_soulContainer.getDataBean(t[a].posZhuHunlevel), n = t[a].posZhuHunexp);
		this.exptext.textFlow = HtmlUtil.getHtmlStr(n + "/" + i.q_need_exp), this.barMask.x = n / i.q_need_exp * 450 - 450,
			this.bar.mask = this.barMask, this.desc.textFlow = HtmlUtil.getHtmlStr(i.q_desc);
		for (var o = App.data.bagItemDataCenter.getAllJobKind(this._obj.id, this.pos, App.global.roles.getRoleInfoByIndex(
				this._obj.index).job), r = 0; r < this._gridDict.length; r++) o.length > r ? this._gridDict.get(r).setData(o[r]) :
			(this._gridDict.get(r).setData(null), this._gridDict.get(r).setGradeBg(GridUtil.getGridGradeBg(-1)))
	}, e.prototype.dispose = function() {
		if (this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(e).dispose();
			this._gridDict.dispose()
		}
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.grid && (this.grid.dispose(), this.grid = null), t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ReincarnationZhuhunView.prototype, "ReincarnationZhuhunView");
var RoleEquipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.roleIndex = 1, e.mabiItemId = 3013701, e.hushenItemId = 3013601, e.jinGuzhouItemId = 3013901, e.yuxianpingItemId =
			3013801, e.euiSkinName = "RoleEquipSkin", e.initGrid(), e
	}
	return __extends(e, t), e.prototype.initGrid = function() {
		this._gridDict = new HashObject, this._forgeHash = new HashObject, this._forgeZZHash = new HashObject, this._normalEquipPostions = [];
		for (var t = 0; 12 > t; t++) {
			this._normalEquipPostions.push(this.getPart(t));
			var e = GridUtil.getGrid(EquipGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.setGradeBg(GridUtil.getGridGradeBg(-1)), e.part = this.getPart(t), e.place = EnumGrid.CHAR, e.filters = [], e.setqianghua(
					0), e.setzhuzao(0), e.icon.visible = !0, e.touchEnabled = !0, e.touchChildren = !1, e.gridBg.touchEnabled = !1,
				8 > t ? (e.x = this["group" + t].x, e.y = this["group" + t].y) : (e.icon.visible = !1, e.isShowTip = !1, 8 == t ?
					(e.x = this.jgzGroup.x, e.y = this.jgzGroup.y) : 9 == t ? (e.x = this.yxpGroup.x, e.y = this.yxpGroup.y) : 10 ==
					t ? (e.x = this.mabigroup.x, e.y = this.mabigroup.y) : 11 == t && (e.x = this.hushengroup.x, e.y = this.hushengroup
						.y)), e.isShowJobImg = !1, this.equipView.addChild(e), this._gridDict.put(e.part, e)
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this,
				ResPathUtil.getImgPath("role/roleequipbg", "", ".jpg"), 0, -3)), e && (this.roleIndex = e), this.addEvent(), this
			.geiforgedata(), this.refresh(), App.timer.doTimeOnce(this, 100, this.resizeGuide), this.hideAllSurfaceGuide(),
			this.updateFightNum()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.XQClick, this, this.xqbtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onWearClick, this, this.onWearBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.checkClick,
				this, this.checkbtn), this._dispatcher.addEventListener(SurfaceEvent.SURFACEEVENT_HIDESURFACE, this.refresh, this),
			this._dispatcher.addEventListener(EventType.WEAR_LIST_REFRESH, this.refWEARClick, this), this._dispatcher.addEventListener(
				EventType.WEAR_LIST_REFRESH_ALL, this.refWEARClickAll, this), this._dispatcher.addEventListener(EventType.EventTypeFightChange,
				this.updateFightNum, this), this._dispatcher.addEventListener(PlayerAttributeEvent.TejieREF, this.teJieHandle,
				this), this._dispatcher.addEventListener(ItemEvent.ADD, this.ItemChange, this), this._dispatcher.addEventListener(
				ItemEvent.CHANGE, this.ItemChange, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.ItemChange,
				this), this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resizeGuide, this), this._dispatcher.addEventListener(
				PlayerAttributeEvent.UPDATE_JGZYXP_TIME, this.updateJGZYXP, this)
	}, e.prototype.checkClick = function(t) {
		this.hidesurfaceGuide(this.checkbtn), CharacterUICommandSender.sendC2S_HideAllSurfaceMessage(this.checkbtn.selected ?
			1 : 0)
	}, e.prototype.ItemChange = function(t, e) {
		void 0 === e && (e = 0)
	}, e.prototype.resizeGuide = function() {
		if (App.data.taskCenter.getThreadTaskShowGuide(2)) {
			var t = Config.SCREEN_WIDTH - this.onWearBtn.width >> 1;
			this.guide.show("一键换装", Guide.LEFT, t + 320, 783, this.onWearBtn, !0, t, 745)
		}
	}, e.prototype.hideAllSurfaceGuide = function() {
		RoleMainView.isshowsurfaceguild && this.surguide.show("点击隐藏时装", Guide.RIGHT, -223, 18, this.checkbtn, !1), App.global
			.funcOpen.isFunctionOpen(68) ? (this.checkbtn.selected = App.data.characterCenter.isShowSurface, this.checkbtn.visible = !
				0) : this.checkbtn.visible = !1
	}, e.prototype.updateFightNum = function(t) {
		var e = App.data.characterCenter.fightHash.get(this.roleData.roleIndex);
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ROLE_CHANGE_FIGHTPOWER, e)
	}, e.prototype.refWEARClickAll = function() {
		EffectUtils.showOnceEffect(this, this.equipView, ResPathUtil.getMenuEffect("panel", "equipup"), 291, 418), this.showzidongClick()
	}, e.prototype.refWEARClick = function(t, e) {
		var i = new ItemData(t);
		this.playEffect(e);
		var n = this._gridDict.get(e);
		n.setData(i), n.setqianghua(null == this._forgeHash.get(n.part) ? 0 : this._forgeHash.get(n.part)), n.setzhuzao(
				null == this._forgeZZHash.get(n.part) ? 0 : this._forgeZZHash.get(n.part)), this.showNewSurfer(i, e), this._dispatcher
			.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, n), n.touchEnabled = !1, n.touchChildren = !
			0, n.gridBg.touchEnabled = !0
	}, e.prototype.showNewSurfer = function(t, e) {
		e == EnumEquipType.WU_QI ? this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, t.getDataBean()
			.q_equip_resource) : e == EnumEquipType.YI_FU && this._avatar.changePlayerRolePartResource(AvatarPartType.BODY,
			this.roleData.sex, t.getDataBean().q_equip_resource), 0 == App.data.characterCenter.isShowSurface && (this.showSurface(
			this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(4)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			5)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(16)))
	}, e.prototype.playEffect = function(t) {
		this.hideGuide(this.autoweargroup, 205, 460);
		var e = App.thing.create(CPlayOnceEffect, "RoleMainView", !0);
		e.url = ResPathUtil.getMenuEffect("forge", "forge"), e.x = this._gridDict.get(t).x + 40, e.y = this._gridDict.get(t)
			.y + 40, e.addParent(this.equipView), e.play()
	}, Object.defineProperty(e.prototype, "surguide", {
		get: function() {
			return null == this._surguide && (this._surguide = Guide.getGuide()), this._surguide
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hidesurfaceGuide = function(t) {
		RoleMainView.isshowsurfaceguild = !1, this._surguide && (this._surguide.hide(), this._surguide = null)
	}, e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this.addChild(t), t.x = e, t.y = i)
	}, e.prototype.geiforgedata = function() {
		for (var t = App.data.forgeCenter.forgeList(this.roleIndex), e = 0; e < t.length; e++) this._forgeHash.put(t[e].pos,
			t[e].level);
		for (var i = App.data.forgeCenter.forgeList(this.roleIndex, ForgeType.Cast), n = 0; n < i.length; n++) this._forgeZZHash
			.put(i[n].pos, i[n].level)
	}, e.prototype.addgridevent = function() {
		for (var t = 0; t < this._gridDict.length; t++) {
			var e = this._gridDict.get(this.getPart(t));
			10 == t || 11 == t ? (10 == t ? this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openmabi, this,
						e) : this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openhushen, this, e), e.touchEnabled = !
					1, e.touchChildren = !0, e.gridBg.touchEnabled = !0) : 8 == t || 9 == t ? (8 == t ? this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.openJGZ, this, e) : this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.openYXP, this, e), e.touchEnabled = !1, e.touchChildren = !0, e.gridBg.touchEnabled = !0) : 0 == e.itemId ?
				(e.touchEnabled = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, e)) :
				(this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.openChangeEquip, this, e), e.touchEnabled = !
					1, e.touchChildren = !0, e.gridBg.touchEnabled = !0)
		}
	}, e.prototype.openChangeEquip = function(t) {
		var e = t.$currentTarget;
		RoleMainView.roleSelectEquipKind = e.part, App.panel.openPanel(24, App.data.bagItemDataCenter.getAllCanChangeEquips(
			e.part))
	}, e.prototype.XQClick = function(t) {
		App.panel.openPanel(25, this.roleData), t.stopImmediatePropagation()
	}, e.prototype.showzidongClick = function() {
		App.data.characterCenter.showredpos(this.roleData, !0), this.showRedDot(), this.autoweargroup.visible ? this.showEff() :
			this._effBG && (this._effBG.stop(), this._effBG.visible = !1)
	}, e.prototype.showEff = function() {
		this._effBG ? (this._effBG.play(), this._effBG.visible = !0, this._effBG.x = 90, this._effBG.y = 34) : this._effBG =
			EffectUtils.showCEffect(this, this.autoweargroup, ResPathUtil.getMenuEffect("rexue", "btneffect"), 90, 34)
	}, e.prototype.showRedDot = function() {
		var t = App.data.characterCenter._canreplHash,
			e = !1;
		if (t)
			for (var i = 0; i < this._gridDict.length; i++) this._gridDict.get(this.getPart(i)).setRedDot(null == t.get(this.getPart(
				i)) ? !1 : t.get(this.getPart(i))), e || (e = null == t.get(this.getPart(i)) ? !1 : t.get(this.getPart(i)));
		this.autoweargroup.visible = e
	}, e.prototype.onWearClick = function() {
		App.data.taskCenter.getThreadTaskShowGuide(2) && (this._guide.hide(), this._guide = null, App.dispatcher.dispatchEvent(
			EventType.BACKGUIDE));
		for (var t, e, i, n = this._normalEquipPostions.length, a = new HashMap, o = 0; n > o; o++)
			if (t = this._normalEquipPostions[o], e = App.data.wearEquipCenter.getRoleWearData(t, this.roleData.roleIndex), i =
				App.data.bagItemDataCenter.getBagPositionEquipList(t), 0 != i.length) {
				var r = new Array;
				e && r.push(e);
				for (var s = 0; s < i.length; s++)
					if (!a.has(i[s])) {
						var h = App.global.itemUse.isMatchBaseCondition(i[s], !1, !0, this.roleData);
						h && r.push(i[s])
					} var l = void 0;
				if (r.length > 1) {
					r.sort(function(t, e) {
						var i = App.config.q_equipContainer.getDataBean(t.itemId),
							n = App.config.q_equipContainer.getDataBean(e.itemId);
						return i.q_score > n.q_score ? 1 : -1
					});
					var p = r[r.length - 1];
					l = p
				} else 1 == r.length && (l = r[0]);
				e && e.itemId == l.itemId || l && a.put(l, t)
			} if (a.length > 0) {
			var c = [];
			a.foEach(function(t, e) {
				c.push(LongUtil.fromString(t.id))
			}, this), WearEquipCommandSender.sendC2S_WearEquipOneKeyMessage(c, this.roleIndex), App.sound.playSound(
				EnumSoundId.WEAR_EQUIP, 0, 1 / .3)
		} else Notice.showMousePosMessage("没有合适的装备可以穿戴！")
	}, e.prototype.refreshRoleData = function(t) {
		App.global.characterData.selectindex1 = this.roleIndex = t.roleIndex, this.updateFightNum(), this.clearhash(), this
			.geiforgedata(), this.refresh()
	}, e.prototype.refresh = function() {
		this.addAvatarUI();
		for (var t = this._gridDict.length, e = 0; t > e; e++) {
			var i = this.getPart(e),
				n = this._gridDict.get(i);
			n && (n.setData(100001), n.setData(null), n.setqianghua(0), n.setzhuzao(0))
		}
		var a = App.data.wearEquipCenter.getWearObj(this.roleData.roleIndex);
		for (var o in a) this.onWear(a[o]);
		this.showWing(), 0 == App.data.characterCenter.isShowSurface && (this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			4)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(5)), this.showSurface(this.roleData
			.surfaceManager.getShowSerfaceIdBySerfaceType(16)), this.showSurface(this.roleData.surfaceManager.getShowSerfaceIdBySerfaceType(
			1, 1))), this.addgridevent(), this.showzidongClick(), this.teJieHandle(), this.updateJGZYXP()
	}, e.prototype.showWing = function() {
		var t = this.roleData.wingID;
		if (t > 0) {
			var e = App.config.q_surfaceContainer.getDataBean(t),
				i = e.q_scene_show_id;
			this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 10, i)
		} else this._avatar.removePart(AvatarPartType.WING)
	}, e.prototype.onWear = function(t) {
		var e = t.getDataBean();
		if (e) {
			var i = e.q_sex == EnumRole.COMMON || e.q_sex == this.roleData.sex,
				n = e.q_job == EnumRole.COMMON || e.q_job == this.roleData.job;
			if (i && n) {
				var a = this._gridDict.get(t.position);
				null != a && (a.setData(t), a.setqianghua(null == this._forgeHash.get(a.part) ? 0 : this._forgeHash.get(a.part)),
					a.setzhuzao(null == this._forgeZZHash.get(a.part) ? 0 : this._forgeZZHash.get(a.part)));
				var o, r = this.roleData.sex;
				null != e && (o = e.q_equip_resource, t.position == EnumEquipType.WU_QI ? ("" != this.roleData.chengzhuWeapon &&
						(o = this.roleData.chengzhuWeapon), this._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, r, o)) :
					t.position == EnumEquipType.YI_FU && this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, r, o))
			}
		}
	}, e.prototype.addAvatarUI = function() {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.setWingPos(-45), this._avatar.touchEnabled = !
			1, this._avatar.touchChildren = !1, this.avatarGroup.addChild(this._avatar));
		var t = EnumRole.getDefaultBody(this.roleData.job, this.roleData.sex);
		this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, t)
	}, e.prototype.showSurface = function(t) {
		if (-1 != t) {
			var e = App.config.q_surfaceContainer.getDataBean(t);
			if (e && this._avatar) {
				var i = e.q_scene_show_id,
					n = e.q_type;
				e.q_child_type;
				1 == n ? this._avatar.changePlayerRolePartResource(AvatarPartType.WING, 10, i) : 4 == n ? (1 == e.q_head_hide ?
						this._avatar.removePart(AvatarPartType.HEAD) : this.showSurface(this.roleData.surfaceManager.getShowSurfaceByType(
							3, 4)), this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, this.roleData.sex, i)) : 5 == n && this
					._avatar.changePlayerRolePartResource(AvatarPartType.WEAPON, this.roleData.sex, i)
			}
		}
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this.roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		t.prototype.hide.call(this), this.hideGuide(this.autoweargroup, 205, 460), this.hidesurfaceGuide(this.checkbtn),
			this.clearAvatar(), this.clearEffect(), this.clearMabiEffect(), this.clearJGZYXPEffect()
	}, e.prototype.clearEffect = function() {
		this._effBG && (this._effBG.stop(), this._effBG.dispose(), this._effBG = null)
	}, e.prototype.clearAvatar = function() {
		this._avatar && (this._avatar.parent && this._avatar.parent.removeChild(this._avatar), this._avatar.dispose(), this
			._avatar = null)
	}, e.prototype.clearhash = function() {
		this._forgeZZHash && (this._forgeZZHash = new HashObject), this._forgeHash && (this._forgeHash = new HashObject)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._gridDict) {
			for (var e = 0; e < this._gridDict.length; e++) this._gridDict.get(this.getPart(e)).dispose();
			this._gridDict.dispose()
		}
		this._forgeZZHash && this._forgeZZHash.dispose(), this._forgeHash && this._forgeHash.dispose(), t.prototype.dispose
			.call(this)
	}, e.prototype.getPart = function(t) {
		return 0 == t ? t = EnumEquipType.WU_QI : 1 == t ? t = EnumEquipType.TOU_KUI : 2 == t ? t = EnumEquipType.YI_FU : 3 ==
			t ? t = EnumEquipType.XIANG_LIAN : 4 == t ? t = EnumEquipType.SHOU_ZHUO : 5 == t ? t = EnumEquipType.YAO_DAI : 6 ==
			t ? t = EnumEquipType.JIE_ZHI : 7 == t ? t = EnumEquipType.XIE_ZI : 8 == t ? t = EnumEquipType.MABI : 9 == t ? t =
			EnumEquipType.HUSHEN : 10 == t ? t = EnumEquipType.SHALU_XIANJIE : 11 == t ? t = EnumEquipType.HUSHEN_MOJIE : 12 ==
			t ? t = EnumEquipType.BAO_SHI : 13 == t && (t = EnumEquipType.HUN_ZHU), t
	}, e.prototype.teJieHandle = function() {
		var t = App.data.characterCenter._tejieHash.get(this.roleIndex),
			e = this._gridDict.get(EnumEquipType.SHALU_XIANJIE),
			i = this._gridDict.get(EnumEquipType.HUSHEN_MOJIE);
		if (this._mabiEffect || (this._mabiEffect = EffectUtils.showCEffect(this, e, ResPathUtil.getMenuEffect("rexue",
				"mabi"), 38, 45), this._mabiEffect.scaleX = .3, this._mabiEffect.scaleY = .3), this._hushenEffect || (this._hushenEffect =
				EffectUtils.showCEffect(this, i, ResPathUtil.getMenuEffect("rexue", "hushen1"), 38, 38), this._hushenEffect.scaleX =
				.33, this._hushenEffect.scaleY = .33), e.filters = FilterUtil.FILTER_GRAY, i.filters = FilterUtil.FILTER_GRAY, e.setData(
				this.mabiItemId), i.setData(this.hushenItemId), t && t.length > 0)
			for (var n = 0; n < t.length; n++) 1 == t[n].index && (t[n] ? (e.setData(t[n].itemid), e.filters = []) : e.setData(
				this.mabiItemId)), 2 == t[n].index && (t[n] ? (i.setData(t[n].itemid), i.filters = []) : i.setData(this.hushenItemId));
		e.icon.visible = !1, i.icon.visible = !1;
		var a = App.data.characterCenter.getFuseEquip(e.itemId);
		if (a) {
			var o = App.data.characterCenter.getFuseEquip(a.q_equip_next_id);
			if (o) {
				var r = StringUtil.JsonParse(o.q_consume);
				App.data.bagItemDataCenter.getItemCount(this.mabiItemId) >= r[0].num ? UIMaker.showPoint(this.mabiRedgroup, this,
					!0) : UIMaker.showPoint(this.mabiRedgroup, this, !1)
			} else UIMaker.showPoint(this.mabiRedgroup, this, !1)
		}
		var s = App.data.characterCenter.getFuseEquip(i.itemId),
			h = App.data.characterCenter.getFuseEquip(s.q_equip_next_id);
		if (h) {
			var r = StringUtil.JsonParse(h.q_consume);
			App.data.bagItemDataCenter.getItemCount(this.hushenItemId) >= r[0].num ? UIMaker.showPoint(this.hushenRedgroup,
				this, !0) : UIMaker.showPoint(this.hushenRedgroup, this, !1)
		} else UIMaker.showPoint(this.hushenRedgroup, this, !1)
	}, e.prototype.openmabi = function(t) {
		var e = this._gridDict.get(EnumEquipType.SHALU_XIANJIE),
			i = App.data.characterCenter.getFuseEquip(e.itemId),
			n = App.data.characterCenter.getFuseEquip(i.q_equip_next_id);
		App.panel.openPanel(26, [e.itemId, null == n ? 0 : n.q_id, this.roleIndex])
	}, e.prototype.openhushen = function(t) {
		var e = this._gridDict.get(EnumEquipType.HUSHEN_MOJIE),
			i = App.data.characterCenter.getFuseEquip(e.itemId),
			n = App.data.characterCenter.getFuseEquip(i.q_equip_next_id);
		App.panel.openPanel(26, [e.itemId, null == n ? 0 : n.q_id, this.roleIndex])
	}, e.prototype.clearMabiEffect = function() {
		this._mabiEffect && (this._mabiEffect.stop(), this._mabiEffect.dispose(), this._mabiEffect = null), this._hushenEffect &&
			(this._hushenEffect.stop(), this._hushenEffect.dispose(), this._hushenEffect = null)
	}, e.prototype.updateJGZYXP = function() {
		var t = this._gridDict.get(EnumEquipType.MABI),
			e = this._gridDict.get(EnumEquipType.HUSHEN);
		t.setData(this.jinGuzhouItemId), e.setData(this.yuxianpingItemId), this._jinGuzhouEffect || (this._jinGuzhouEffect =
			EffectUtils.showCEffect(this, t, ResPathUtil.getMenuEffect("rexue", "jinguzhou"), 38, 45), this._jinGuzhouEffect.scaleX =
			.35, this._jinGuzhouEffect.scaleY = .35), this._yuxianpingEffect || (this._yuxianpingEffect = EffectUtils.showCEffect(
				this, e, ResPathUtil.getMenuEffect("rexue", "yuxianping"), 38, 55), this._yuxianpingEffect.scaleX = .35, this._yuxianpingEffect
			.scaleY = .35);
		var i = this.roleData.hoopCharmTime - ServerTime.getServerTime();
		i > 0 ? (t.icon.visible = !1, this._jinGuzhouEffect.play(), this._jinGuzhouEffect.visible = !0) : (t.icon.visible = !
				0, this._jinGuzhouEffect.stop(), this._jinGuzhouEffect.visible = !1), t.filters = i > 0 ? [] : FilterUtil.FILTER_GRAY,
			this.roleData.jadeFairyBottleTime > ServerTime.getServerTime() ? (e.icon.visible = !1, this._yuxianpingEffect.play(),
				this._yuxianpingEffect.visible = !0) : (e.icon.visible = !0, this._yuxianpingEffect.stop(), this._yuxianpingEffect
				.visible = !1), e.filters = this.roleData.jadeFairyBottleTime > ServerTime.getServerTime() ? [] : FilterUtil.FILTER_GRAY,
			UIMaker.showPoint(this.jgzRedgroup, this, App.data.characterCenter.getJGZPoint(this.roleIndex)), UIMaker.showPoint(
				this.yxpRedgroup, this, App.data.characterCenter.getYXPPoint(this.roleIndex))
	}, e.prototype.openJGZ = function() {
		var t = this._gridDict.get(EnumEquipType.MABI);
		App.panel.openPanel(26, [t.itemId, 0, this.roleIndex])
	}, e.prototype.openYXP = function() {
		var t = this._gridDict.get(EnumEquipType.HUSHEN);
		App.panel.openPanel(26, [t.itemId, 0, this.roleIndex])
	}, e.prototype.clearJGZYXPEffect = function() {
		this._jinGuzhouEffect && (this._jinGuzhouEffect.stop(), this._jinGuzhouEffect.dispose(), this._jinGuzhouEffect =
			null), this._yuxianpingEffect && (this._yuxianpingEffect.stop(), this._yuxianpingEffect.dispose(), this._yuxianpingEffect =
			null)
	}, e
}(ViewBase);
__reflect(RoleEquipView.prototype, "RoleEquipView");
var RoleHejiPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new RoleHejiView, this._bgImg = UIMaker.getImage(this, RoleHejiView, ResPathUtil.getImgPath("commonBg"),
				35, 120, !0), this._windowView = new WindowMain, this._btnClose = this._windowView.close_btn, this.addChild(this._windowView),
			this._windowView.showRoleList(!1), this._windowView.imgTitle.source = "", this._windowView.viewContainer.addChild(
				this._bgImg), this._windowView.viewContainer.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._windowView.show(), this._view.show()
	}, e.prototype.hide = function() {
		this._windowView.hide(), this._view.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._windowView.dispose(), this._windowView = null, this._view.dispose(), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RoleHejiPanel.prototype, "RoleHejiPanel");
var RoleHejiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.GeffectArr = [], e.ShowHeJiEffect = function(t) {
			var i = {
				1: {
					x: 320,
					y: 260
				},
				2: {
					x: 418,
					y: 305
				},
				3: {
					x: 465,
					y: 405
				},
				4: {
					x: 425,
					y: 510
				},
				5: {
					x: 320,
					y: 550
				},
				6: {
					x: 215,
					y: 510
				},
				7: {
					x: 180,
					y: 405
				},
				8: {
					x: 215,
					y: 295
				}
			};
			e.GeffectArr.map(function(t) {
				t.visible = !1
			});
			var n = EffectUtils.showCEffect(e, e, ResPathUtil.getMenuEffect("heji", "gossip" + t), i[t].x, i[t].y);
			e.GeffectArr.push(n)
		}, e.ShowInitText = function() {
			e.hejiCenter.hejiHash.foEach(function(t, i) {
				0 != i.id && (e._posHash.get(i.pos).lal.text = GameUtil.getItemConfigData(i.id).q_name)
			}, e)
		}, e.NumberMapping = function(t) {
			var e = {
				0: 1,
				1: 2,
				5: 3,
				3: 4,
				8: 5,
				7: 6,
				13: 7,
				12: 8
			};
			return e[t]
		}, e._cimgArr = [], e.euiSkinName = "RoleHejiSkin", e.init(), e.y = 5, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._cimgArr = [this.iconWuQi, this.iconYaoDai, this.iconYiFu, this.iconXiangLian, this.iconHuWan, this.iconJieZhiLeft,
				this.iconXieZi, this.iconTouBu, this.heji_skillicon
			], this._posHash = new HashMap, this._posHash.put(EnumEquipType.WU_QI, {
				bg: this.bgWuQi,
				icon: this.iconWuQi,
				lal: this.jlNum0,
				id: 1000001
			}), this._posHash.put(EnumEquipType.TOU_KUI, {
				bg: this.bgTouBu,
				icon: this.iconTouBu,
				lal: this.jlNum7,
				id: 1007001
			}), this._posHash.put(EnumEquipType.YI_FU, {
				bg: this.bgYiFu,
				icon: this.iconYiFu,
				lal: this.jlNum1,
				id: 1001001
			}), this._posHash.put(EnumEquipType.XIANG_LIAN, {
				bg: this.bgXiangLian,
				icon: this.iconXiangLian,
				lal: this.jlNum8,
				id: 1008001
			}), this._posHash.put(EnumEquipType.SHOU_ZHUO, {
				bg: this.bgHuWan,
				icon: this.iconHuWan,
				lal: this.jlNum3,
				id: 1003001
			}), this._posHash.put(EnumEquipType.YAO_DAI, {
				bg: this.bgYaoDai,
				icon: this.iconYaoDai,
				lal: this.jlNum13,
				id: 1013001
			}), this._posHash.put(EnumEquipType.JIE_ZHI, {
				bg: this.bgJieZhiLeft,
				icon: this.iconJieZhiLeft,
				lal: this.jlNum5,
				id: 1005001
			}), this._posHash.put(EnumEquipType.XIE_ZI, {
				bg: this.bgXieZi,
				icon: this.iconXieZi,
				lal: this.jlNum12,
				id: 1012001
			}), this.taozhuang.visible = !0, this.heji_group.visible = !1, this.taozhuang.btn_up.source = ResPathUtil.getImgPath(
				"btn_5_0", "tazhuang"), this.taozhuang.btn_down.source = ResPathUtil.getImgPath("btn_5_1", "tazhuang"), App.tip.addTip(
				this.taozhuang, new TipData(10)), this._fightPowerBitmap = new FightPower, this._fightPowerBitmap.setValue(0),
			this.common.addChild(this._fightPowerBitmap), this._fightPowerBitmap.y = 80, this._fightPowerBitmap.x = 156, this.attrBgImg
			.y = this.attrBgImg.y - 2, this.red_group.visible = !0, EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
				"heji", "gossip"), 315, 400)
	}, e.prototype.hide = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearLabelEff(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		App.tip.removeTip(this.heji_skill_gridbg), App.tip.removeTip(this.taozhuang), this._fightPowerBitmap.dispose();
		for (var e, i = 0; 8 > i; i++) e = this._cimgArr[i], e && e.dispose();
		this.GeffectArr = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath(
				"role/img_hejibg01_public", "", ".jpg"), 0, 0)), this._dispatcher.addEventListener(ItemEvent.ADD, this.onItemChange,
				this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onItemChange, this), this._dispatcher.addEventListener(
				ForgeEvent.HEJI_RESULT, this.onHejiResult, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onSelectEquip, this, this.jinglian_bg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnForgeClick,
				this, this.btnForge), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLalGetItemClick, this,
				this.lalGetItem), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.showSuiPian, this), this.refreshForgeGrid(),
			this.selectPos(this.hejiCenter.getHejiMinLevelPos()), this.heji_skillicon.source = ResPathUtil.getIcon(GameUtil.getSkillConfigDataById(
				this.hejiCenter.getTzSkillId()).q_small_icon + "", "skill/80", ".jpg"), this.canUpLvPos(), this.showSuiPian(),
			this.ShowInitText()
	}, e.prototype.onItemChange = function(t, e) {
		void 0 === e && (e = 0);
		for (var i, n = t.length, a = 0; n > a; a++)
			if (i = t[a], i.itemId == EnumItemId.HEJI) return this.updateNeedItem(), void this.canUpLvPos();
		this.showSuiPian()
	}, e.prototype.showSuiPian = function(t) {
		void 0 === t && (t = null), this.clearLabelEff(), this.hejiCenter.setCanDessProp();
		var e = this.hejiCenter.getCanDessProp();
		e.length > 0 ? (this.lalGetItem.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("分解道具")), this._labelEff =
			EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "labelfour"), 495, 844)) : (this.lalGetItem
			.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取道具")), this.clearLabelEff())
	}, e.prototype.clearLabelEff = function() {
		this._labelEff && (this._labelEff.stop(), this._labelEff.dispose(), this._labelEff = null)
	}, e.prototype.canUpLvPos = function() {
		for (var t, e = 0; 8 > e; e++) t = this["red" + this.hejiCenter.posArr[e]], t.visible = this.hejiCenter.posShowRed(
			this.hejiCenter.posArr[e]);
		App.global.redPoint.redPointDispatchEvent(114)
	}, e.prototype.refreshForgeGrid = function() {
		var t = this;
		this._posHash.foEach(function(e, i) {
			t.refreshOneEquip(e, i)
		}, this)
	}, e.prototype.refreshOneEquip = function(t, e) {
		var i = e.icon,
			n = e.bg;
		i.width = i.height = 64;
		var a, o = e.lal;
		if (a = this.hejiCenter.hejiHash.get(t), a.id > 0) {
			o.visible = !0, o.text = GameUtil.getItemConfigData(e.id).q_name, i.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(
				a.id).q_tiny_icon, EnumImageType.ITEM_80);
			var r = GridUtil.getSizeGridGradeBg(n.width, GameUtil.getItemConfigData(a.id).q_default);
			n.source != r && (n.source = r), i.filters = []
		} else {
			var s = GameUtil.getItemConfigData(e.id).q_tiny_icon;
			i.source = ResPathUtil.getIcon(s.substr(0, s.length - 1) + "1", EnumImageType.ITEM_80), n.source =
				"common1_grid_white_76_png", i.filters = FilterUtil.FILTER_GRAY
		}
	}, e.prototype.onSelectEquip = function(t) {
		if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			this.selectPos(Number(e.name))
		}
	}, e.prototype.selectPos = function(t) {
		if (t >= 0) {
			this._selectedPos = t, this.setVis(!0);
			var e = this.jinglian_bg.getChildByName(t + "");
			this.selBorder.x = e.x - 9, this.selBorder.y = e.y + 60, this.selBorder.visible = !0, this.refreshOther()
		} else this.setVis(!1), this.selBorder.visible = !1;
		this.ShowHeJiEffect(this.NumberMapping(t))
	}, e.prototype.refreshOther = function() {
		var t = this.hejiCenter.hejiHash.get(this._selectedPos),
			e = this.hejiCenter.getPosBestEquip(t);
		this.btnForge.enabled = !0, t.id > 0 ? (this._posHash.get(this._selectedPos).lal.text = GameUtil.getItemConfigData(
			t.id).q_name, App.config.q_heraldryContainer.hasDataBean(1e6 + 1e3 * t.pos + t.lv + 1) ? (this.setVis(!0), e ? (
			this.btnForge.label = "更 换", this.xiaohaogroup.visible = !1) : (this.btnForge.label = "升 级", this.xiaohaogroup.visible = !
			0)) : (this.setVis(!1), this.btnForge.label = "已满级", this.btnForge.enabled = !1)) : e ? (this.btnForge.label =
			"穿 戴", this.setVis(!1)) : (this.btnForge.label = "合 成", this.setVis(!0)), this.updateNeedItem(), this.updateAttr()
	}, e.prototype.setVis = function(t) {
		this.lalXiaoHao.visible = t, this.imgJinBi.visible = t, this.lalJinBi.visible = t, this.imgsmall.visible = t
	}, e.prototype.onLalGetItemClick = function(t) {
		var e = t.currentTarget;
		if ("获取道具" == e.text) PanelOpenManager.openPanel(19, this._posHash.get(this._selectedPos).id);
		else {
			App.data.bagItemDataCenter.fenjiTYPE = 34;
			var i = this.hejiCenter.getCanDessProp();
			PanelOpenManager.openPanel(27, i)
		}
	}, e.prototype.onHejiResult = function() {
		var t = this.hejiCenter.hejiHash.get(this._selectedPos);
		this.refreshOneEquip(t.pos, this._posHash.get(t.pos)), this.refreshOther(), this.canUpLvPos(), this.heji_skillicon.source =
			ResPathUtil.getIcon(GameUtil.getSkillConfigDataById(this.hejiCenter.getTzSkillId()).q_small_icon + "", "skill/80",
				".jpg"), this.hejiCenter.setCanDessProp()
	}, e.prototype.onBtnForgeClick = function(t) {
		var e = this.hejiCenter.hejiHash.get(this._selectedPos),
			i = this.hejiCenter.getPosBestEquip(e);
		if (i) CharacterUICommandSender.sendC2S_MergeAttackWearMessage(i.id);
		else if (e.lv <= this.hejiCenter.hejiHash.get(this.hejiCenter.getHejiMinLevelPos()).lv) {
			var n = this.hejiCenter.hejiHash.get(this._selectedPos),
				a = GameUtil.getHeraldryData(n.pos, n.lv + 1);
			if (a) {
				var o = StringUtil.JsonParse(a.q_cost),
					r = o[0].id,
					s = o[0].num;
				App.data.bagItemDataCenter.getItemCount(r) >= s ? CharacterUICommandSender.sendC2S_MergeAttackUpMessage(1e6 + 1e3 *
					n.pos + n.lv + 1) : App.panel.openPanel(19, r)
			}
		} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">请确认所有灵台聚灵都达到" + GameUtil.getItemConfigData(
			e.id).q_name.split("·")[0] + "</font>")
	}, e.prototype.refreshAll = function() {
		this.lalField0.text = this.lalField1.text = this.lalField2.text = this.lalField3.text = "", this._fightPowerBitmap.setValue(
			this.hejiCenter.getFightPower());
		var t = this.hejiCenter.getAllAttr(this._selectedPos);
		if (t) {
			this._attrStrArr = t.getKeyArray();
			for (var e = 0; e < t.length; e++) 2 > e && null != t.get(this._attrStrArr[e]) && (this["lalField" + e].text =
				this._attrStrArr[e] + (0 == this.hejiCenter.hejiHash.get(this._selectedPos).id ? "0" : t.get(this._attrStrArr[e]))
			)
		} else {
			this._attrStrArr = ["攻击:", "物防:", "魔防:", "生命:"];
			for (var e = 0; e < this._attrStrArr.length; e++) this["lalField" + e].text = this._attrStrArr[e] + "0"
		}
	}, e.prototype.updateAttr = function() {
		this.refreshAll();
		var t = this.hejiCenter.hejiHash.get(this._selectedPos);
		if (t) {
			var e = void 0;
			if (t.pos >= 0 && t.id >= 0 && App.config.q_heraldryContainer.hasDataBean(1e6 + 1e3 * t.pos + t.lv + 1) && (e =
					GameUtil.getHeraldryData(t.pos, t.lv + 1)), e) {
				var i = this._attrStrArr.length,
					n = 0,
					a = void 0,
					o = void 0;
				t.id > 0 && (o = this.hejiCenter.getAllAddAttrStr([GameUtil.getHeraldryDataById(t.id).q_attribute_client]));
				for (var r = this.hejiCenter.getAllAddAttrStr([e.q_attribute_client]), s = 0; i > s; s++) n = 0, r.has(this._attrStrArr[
						s]) && (n = o ? r.get(this._attrStrArr[s]) - o.get(this._attrStrArr[s]) : r.get(this._attrStrArr[s])), n > 0 &&
					(a = this["lalField" + s], a.textFlow = HtmlUtil.getHtmlStr(a.text + "<font color='#35ea35'> →" + (Number(a.text
						.split(":")[1]) + n) + "</font>"))
			} else this.setVis(!1)
		}
	}, e.prototype.updateNeedItem = function() {
		var t = this.hejiCenter.hejiHash.get(this._selectedPos),
			e = GameUtil.getHeraldryData(t.pos, t.lv + 1);
		if (e) {
			var i = StringUtil.JsonParse(e.q_cost),
				n = i[0].id,
				a = i[0].num;
			this._itemnum = a, this._itemid = n, this.lalJinBi.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(n, a) + "/" +
					a), this.imgJinBi.x = this.lalXiaoHao.x + this.lalXiaoHao.width, this.lalJinBi.x = this.imgsmall.x + this.imgsmall
				.width + 2
		} else this.setVis(!1)
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#f33333'>" + n + "</font>"
	}, Object.defineProperty(e.prototype, "hejiCenter", {
		get: function() {
			return App.data.characterCenter.hejiEquipCenter
		},
		enumerable: !0,
		configurable: !0
	}), e
}(RoleHejiUI);
__reflect(RoleHejiView.prototype, "RoleHejiView");
var RingActivePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._ringNamePre = "SpecialRing_YC_title_png", e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("RingActiveSkin"), this.addChildAt(this._view, 0),
			this.imgRingName = this._view.imgRingName, this._view.imgBg.touchEnabled = !1
	}, e.prototype.updatePanel = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = App.data.getRingDataCenter().getRingGotID();
		this.imgRingName.source = this._ringNamePre + i, this._lightEffect = EffectUtils.showCEffect(this, this,
				ResPathUtil.getMenuEffect("function", "light"), 310, 230, this._lightEffect), this._upEffect = EffectUtils.showCEffect(
				this, this, ResPathUtil.getMenuEffect("function", "up"), 310, 60, this._upEffect), this._downEffect = EffectUtils
			.showCEffect(this, this, ResPathUtil.getMenuEffect("function", "down"), 310, 720, this._downEffect);
		var n = ResPathUtil.getMenuEffect("specialring", "ring" + i + "/1_0");
		this._effRing = EffectUtils.showCEffect(this, this._view, n, 322, 420, this._effRing)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.clearEff(), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		this.disposeEff(), t.prototype.dispose.call(this)
	}, e.prototype.clearEff = function() {
		this._upEffect.clear(), this._downEffect.clear(), this._lightEffect.clear(), this._effRing.clear()
	}, e.prototype.disposeEff = function() {
		this._upEffect.dispose(), this._downEffect.dispose(), this._lightEffect.dispose(), this._effRing.dispose()
	}, e.prototype.onBtnActive = function(t) {}, e
}(BasePanel);
__reflect(RingActivePanel.prototype, "RingActivePanel");
var RingDetailInfoPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._detailWindow = new WindowSecond, this._detailWindow.setTitle(
			"titleview_zhuangbei_png"), this._powerWindow = new WindowSecond, this._powerWindow.setTitle(
			"titleview_zhuangbei_png"), this._godLevelWindow = new WindowSecond, this._godLevelWindow.setTitle(
			"titleview_zhuangbei_png"), this.addChild(this._detailWindow), this.addChild(this._powerWindow), this.addChild(
			this._godLevelWindow)
	}, e.prototype.updatePanel = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RingDetailInfoPanel.prototype, "RingDetailInfoPanel");
var RingLevelPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._detailWindow = new WindowSecond, this._detailWindow.setTitle(
			"titleview_zhuangbei_png"), this._powerWindow = new WindowSecond, this._powerWindow.setTitle(
			"titleview_zhuangbei_png"), this._godLevelWindow = new WindowSecond, this._godLevelWindow.setTitle(
			"titleview_zhuangbei_png"), this.addChild(this._detailWindow), this.addChild(this._powerWindow), this.addChild(
			this._godLevelWindow)
	}, e.prototype.updatePanel = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._dispatcher.removeAllListeners()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RingLevelPanel.prototype, "RingLevelPanel");
var RingSkillPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RingSkillPanel.prototype, "RingSkillPanel");
var RingYinJiPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(RingYinJiPanel.prototype, "RingYinJiPanel");
var SurfaceClothesView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.surType = 4, e
	}
	return __extends(e, t), e
}(SurfaceCommonView);
__reflect(SurfaceClothesView.prototype, "SurfaceClothesView");
var SurfaceCommonRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "SurfaceCommonRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this), this._dispatcher.addEventListener(EventType.SURFACE_UPDATE, this.onSurfaceUpdate, this)
	}, e.prototype.onSurfaceUpdate = function(t, e) {
		var i = App.config.q_surfaceContainer.getDataBean(t);
		!i || 5 != i.q_type && 4 != i.q_type && 1 != i.q_type && 2 != i.q_type && 6 != i.q_type || this._surfaceBean.q_id ==
			t && 3 == e && this.dataChanged()
	}, e.prototype.onTouch = function(t) {
		if (null != this._surfaceBean) {
			for (var e = 0; e < this.parent.numChildren; e++) this.parent.getChildAt(e).select_img.visible = !1;
			this.select_img.visible = !0
		}
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.clear = function() {
		this.icon_img && this.icon_img.dispose(), this.icon_img.filters = null, t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		this._surfaceBean = this.data, this.icon_img.source = ResPathUtil.getIcon(this._surfaceBean.q_show_id,
			EnumImageType.ITEM_80), this.name_txt.text = this._surfaceBean.q_name, this.lv_txt.text = "1级";
		var t = App.global.roles.getRoleInfoByIndex(App.data.surfaceCenter.roleIndex);
		this.red.visible = App.data.surfaceCenter.surfaceCanjh(this._surfaceBean.q_id, t), 1 == t.surfaceManager.hasSerface(
			this._surfaceBean.q_id) ? this.icon_img.filters = null : this.icon_img.filters = FilterUtil.FILTER_GRAY;
		var e = this.parent;
		e.selectedIndex == this.itemIndex ? this.select_img.visible = !0 : this.select_img.visible = !1, this._surfaceBean.q_lock ?
			(this.locked.visible = !0, this.touchEnabled = !1, this.touchChildren = !1, this.red.visible = !1, this.name_txt.text =
				"敬请期待", this.icon_img.visible = !1) : (this.locked.visible = !1, this.touchEnabled = !0, this.touchChildren = !0,
				this.icon_img.visible = !0)
	}, e
}(ItemRenderer);
__reflect(SurfaceCommonRender.prototype, "SurfaceCommonRender");
var EquipUpStarSuitTip = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e._maxLv = 15, e.leftmargin = 113, e.rightmargin = 15, e._typeArrNum = [1, 10, 5, 1, 1, 1], e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("WingGodTZSkin"), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - this._view.width >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		var e = t.data.type;
		this._view.nextSuit_img.source = this._view.currSuit_img.source = ResPathUtil.getImgPath("tip" + t.data.type,
			"tazhuang");
		var i, n;
		e == EnumEquipMaster.HEJI ? n = App.data.characterCenter.hejiEquipCenter.currTzId : (i = App.data.characterCenter.getMinForgeLevel(
			e), i /= this._typeArrNum[e], i = parseInt(i.toString()), n = 1e5 * e + i * this._typeArrNum[e]);
		var a, o;
		if (this._view.group0.visible = !0, App.config.q_equip_masterContainer.hasDataBean(n) && GameUtil.getEquipMasterBean(
				n).q_suit_name.length > 0) {
			this.update(GameUtil.getEquipMasterBean(n), e), this._view.jihuo.source = "common1_state2_png";
			var r = n + this._typeArrNum[e];
			if (this._maxLv = this.getMaxlv(e), App.config.q_equip_masterContainer.hasDataBean(r)) {
				a = GameUtil.getEquipMasterBean(r), this._view.jihuoname0.text = a.q_suit_name, e == EnumEquipMaster.HEJI ? (this
						._view.tiaojian0.y = this._view.tiaojian.y + 30, o = "激活条件：" + a.q_equip_icon_male) : (this._view.tiaojian0.y =
						this._view.tiaojian.y, o = "激活条件：全身" + EnumEquipMaster.nameArr[e] + "达到" + a.q_level), this._view.bg0.height =
					this._view.tiaojian0.y + 30;
				var s = this.formatStringToHtml(a.q_add_attribute_client);
				this._view.currshuxing1.text = s[0], this._view.currshuxing2.text = s[1], this._view.currshuxing3.text = s[2],
					this._view.currshuxing4.text = s[3], this._view.tiaojian0.text = o, a.q_equip_icon_female.length > 0 && (this._view
						.currshuxing3.text = this._view.currshuxing3.text + "\n" + a.q_equip_icon_female), this._view.jihuo1.source =
					"common1_state1_png"
			} else this._view.jihuo.source = "common1_state3_png", this._view.group0.visible = !1
		} else {
			var r = n + this._typeArrNum[e];
			App.config.q_equip_masterContainer.hasDataBean(r) && this.update(GameUtil.getEquipMasterBean(r), e, 1), this._view
				.jihuo.source = "common1_state1_png", this._view.group0.visible = !1
		}
		0 == this._view.group0.visible ? this._view.y = Config.SCREEN_HEIGHT - 208 >> 1 : this._view.y = Config.SCREEN_HEIGHT -
			398 >> 1
	}, e.prototype.update = function(t, e, i) {
		void 0 === i && (i = 0);
		var n;
		this._view.jihuoname.text = t.q_suit_name, n = e == EnumEquipMaster.HEJI ? "激活条件：" + t.q_equip_icon_male :
			"激活条件：全身" + EnumEquipMaster.nameArr[e] + "达到" + t.q_level, this._view.tiaojian.text = n;
		var a = this.formatStringToHtml(t.q_add_attribute_client);
		this._view.shuxing1.text = a[0], this._view.shuxing2.text = a[1], this._view.shuxing3.text = a[2], this._view.shuxing4
			.text = a[3], this._view.tiaojian.visible = !0, t.q_equip_icon_female.length > 0 && 1 != i && (this._view.tiaojian
				.visible = !1, this._view.shuxing3.textFlow = HtmlUtil.getHtmlStr(this._view.shuxing3.text +
					"\n<font color='#FC0AD9'>" + t.q_equip_icon_female + "</font>"))
	}, e.prototype.getLabel = function(t, e) {
		void 0 === e && (e = null);
		var i = new egret.TextField;
		return i.size = 18, i.textFlow = HtmlUtil.getHtmlStr(t), i.textColor = e, i.fontFamily = Style.FONT, i.stroke =
			Style.stroke, this._view.addChild(i), i
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.characterData
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.formatStringToHtml = function(t, e) {
		void 0 === e && (e = 0), t = t.replace("[", ""), t = t.replace("]", "");
		var i = t.split(",");
		return i
	}, e.prototype.getMaxlv = function(t) {
		for (var e = 0, i = App.config.q_equip_masterContainer.list, n = i.length, a = 0; n > a; a++) t == i[a].q_type && (
			e = this._typeArrNum[a]);
		return t == EnumEquipMaster.HEJI && (e += 59), e
	}, e
}(TipStyleBase);
__reflect(EquipUpStarSuitTip.prototype, "EquipUpStarSuitTip");
var SurfaceLevelUPViewPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("SurfaceLevelUPViewSkin"), this.addChild(this._view), this._hLayout = new eui.HorizontalLayout,
			this._hLayout.gap = 30, this._hLayout.horizontalAlign = egret.HorizontalAlign.CENTER, this._hLayout.verticalAlign =
			egret.VerticalAlign.MIDDLE, this._vLayout = new eui.VerticalLayout, this._vLayout.gap = 30, this._vLayout.horizontalAlign =
			egret.HorizontalAlign.CENTER, this._vLayout.verticalAlign = egret.VerticalAlign.MIDDLE, this._item = new ItemGrid,
			this._view.addChild(this._item), this._item.x = this._view.itemBg.x, this._item.y = this._view.itemBg.y
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(ItemEvent.ADD, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.REMOVE,
			this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onUpdate, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onLevelUP, this, this._view.btnLvUpAll2)
	}, e.prototype.onUpdate = function(t, e) {
		void 0 === e && (e = 0), this.refresh()
	}, e.prototype.refresh = function() {}, e.prototype.onRecover = function(t) {
		for (var e = [], i = 0; i < App.data.guildCenter.cangkuSelect.length; i++) {
			var n = App.data.guildCenter.cangkuSelect[i];
			n && n.data && n.data.int64Id && e.push(n.data.int64Id)
		}
		GuildCommandSender.sendDonateMessage(e), App.data.guildCenter.cangkuSelect = []
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addListeners(), this.refresh();
		var i = App.config.q_equip_fuseContainer.getDataBean("");
		i.q_equip_next_id, i.q_consume;
		App.config.q_itemContainer.getDataBean(""), App.config.q_surfaceContainer.getDataBean(""), App.config.q_surface_componentContainer
			.getDataBean("")
	}, e.prototype.setItem = function() {
		this._item.setData(1e5)
	}, e.prototype.updateAttributes = function() {
		return this._currBean ? void 0 : (this._view.text0.text = "", void(this._view.text1.text = ""))
	}, e.prototype.onLevelUP = function() {}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._item && (this._view.removeChild(this._item), this._item.dispose(), this._item = null), this._view = null,
			this._hLayout = null, this._vLayout = null, this._equipNum = 0, this.timeOut && (egret.clearTimeout(this.timeOut),
				this.timeOut = 0), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(SurfaceLevelUPViewPanel.prototype, "SurfaceLevelUPViewPanel");
var SurfaceMainPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("角色,武器,翅膀,称号"), this.registerSubPanel(0, SurfaceClothesView, null, -1, !0,
			!0), this.registerSubPanel(1, SurfaceWeaponView, null, -1, !0, !0), this.registerSubPanel(2, SurfaceWingView,
			null, -1, !0, !0)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.roleSelectedHandler,
			this)
	}, e.prototype.roleSelectedHandler = function(t) {
		var e = t;
		App.data.surfaceCenter.roleIndex = e.roleIndex
	}, e.prototype.tabSelectHandler = function(e) {
		t.prototype.tabSelectHandler.call(this, e)
	}, e.prototype.hide = function() {
		App.data.surfaceCenter.roleIndex = 1, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(SurfaceMainPanel.prototype, "SurfaceMainPanel");
var SurfaceTitlePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._roleIndex = 1, e._currSurBeanArr = [], e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowMain, this.addChild(this.window), this._btnClose = this.window.close_btn, this.window.imgTitle
			.source = "titleview_zhuangban_png", this.window.showRoleList(!1), this.window.showFightPower(!1), this.window.imgBottom
			.visible = !1;
		var t = new eui.Label;
		t.size = 20, t.text = "无论是否穿戴，属性全部生效", t.textColor = 3533365, t.width = 640, t.textAlign = egret.HorizontalAlign.CENTER,
			t.verticalAlign = egret.VerticalAlign.MIDDLE, t.y = 80, this.addChild(t), this._bg = UIMaker.getImage(this.window.viewContainer,
				e, ResPathUtil.getImgPath("bg_019", "", ".jpg"), 0, 55), this._currList = new VScrollPanel(610, 774,
				SurfaceTitleRender, 0), this._currList.x = 20, this._currList.y = 105, this._currList.list.allowMultipleSelection = !
			0, this.addChild(this._currList)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.window.show(), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2,
			this.onChangeRole, this), this.initCurrBeanArr()
	}, e.prototype.initCurrBeanArr = function() {
		var t = App.config.q_surfaceContainer.list,
			e = t.length;
		this._currSurBeanArr = [];
		for (var i = 0; e > i; i++) 2 == t[i].q_type && 3 == t[i].q_child_type && this._currSurBeanArr.push(t[i]);
		this._currList.dataProvider = this._currSurBeanArr.sort(App.data.surfaceCenter.sortSurface1)
	}, e.prototype.onChangeRole = function(t) {
		if (t) {
			var e = t;
			this._roleIndex = e.roleIndex
		} else this._roleIndex = 1
	}, Object.defineProperty(e.prototype, "roleData", {
		get: function() {
			return App.global.roles.getRoleInfoByIndex(this._roleIndex)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this.window.hide(), this._currList.removeAll(), this._roleIndex = 1, t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.window.dispose(), window = null, this._currList.dispose(), this._currList = null, t.prototype.dispose.call(
			this)
	}, e
}(BasePanel);
__reflect(SurfaceTitlePanel.prototype, "SurfaceTitlePanel");
var SurfaceTitleRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "SurfaceTitleSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		this._effect && this._effect.dispose(), this._effect = null
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchMake,
			this, this.makebtn), this._dispatcher.addEventListener(EventType.SURFACE_UPDATE, this.onSurfaceUpdate, this)
	}, e.prototype.onSurfaceUpdate = function(t, e) {
		if (this._surfaceBean = this.data, this._surfaceBean.q_id == t) switch (e) {
			case 0:
				this.makebtn.label = "穿 戴";
				break;
			case 1:
				this.makebtn.label = "脱 下";
				break;
			case 2:
				break;
			case 3:
				this.makebtn.label = "穿 戴";
				break;
			case 4:
		}
	}, e.prototype.onTouchMake = function(t) {
		this._surfaceBean = this.data, "脱 下" == this.makebtn.label ? CharacterUICommandSender.hideSerface(this._surfaceBean
			.q_id, App.data.surfaceCenter.roleIndex) : "穿 戴" == this.makebtn.label ? CharacterUICommandSender.showSerface(
			this._surfaceBean.q_id, App.data.surfaceCenter.roleIndex) : CharacterUICommandSender.activeSurface(this._surfaceBean
			.q_id, App.data.surfaceCenter.roleIndex)
	}, e.prototype.dataChanged = function() {
		this._surfaceBean = this.data, this._effect || (this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getTitleEffect(
				this._surfaceBean.q_scene_show_id), this.icon_img.x + 140, this.icon_img.y + 65, this._effect)), this._effect.url =
			ResPathUtil.getTitleEffect(this._surfaceBean.q_scene_show_id);
		var t = App.global.roles.getRoleInfoByIndex(App.global.characterData.selectindex),
			e = t.surfaceManager.hasSerface(this._surfaceBean.q_id);
		e ? (1 == t.surfaceManager.getSerfaceIsShow(this._surfaceBean.q_id) ? this.makebtn.label = "脱 下" : this.makebtn.label =
			"穿 戴", this.makebtn.visible = !0, this.have_txt.visible = !1) : (this.makebtn.visible = !1, this.have_txt.visible = !
			0);
		var i = App.config.q_surface_componentContainer.getDataBean(this._surfaceBean.q_id);
		i && (this.have_txt.text = i.q_tips_desc, this.getAttr(i.q_attribute, GameUtil.getQualityColor(i.q_quality, !1)))
	}, e.prototype.getAttr = function(t, e, i) {
		void 0 === t && (t = ""), void 0 === e && (e = "#b19c79"), void 0 === i && (i = 0), t = t.replace("[", ""), t = t.replace(
			"]", "");
		for (var n, a = t.split(","), o = a.length, r = "", s = [], h = 0; 4 > h; h++) n = this["lalField" + (h + i)], o >
			h ? (t = a[h], t = t.replace("上限", ""), r = t.slice(t.indexOf(":") + 1), t = t.replace(r, "<font color=" + e + ">" +
				r + "</font>"), s.push(t), n.textFlow = HtmlUtil.getHtmlStr(t), n.visible = !0) : (n.visible = !1, n.text = "")
	}, e
}(ItemRenderer);
__reflect(SurfaceTitleRender.prototype, "SurfaceTitleRender");
var SurfaceWeaponView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.surType = 5, e
	}
	return __extends(e, t), e
}(SurfaceCommonView);
__reflect(SurfaceWeaponView.prototype, "SurfaceWeaponView");
var SurfaceWingView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.surType = 1, e
	}
	return __extends(e, t), e
}(SurfaceCommonView);
__reflect(SurfaceWingView.prototype, "SurfaceWingView");
var ShabakCzRewardView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ShbakCzRewardSkin", e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i, n) {
		var a = ItemUtil.getRewardDataList(n, !0);
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, a.length, 120 / (a.length - 1)), this._gridLayer
			.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]);
		var o = 4 - a.length > 0 ? 0 : 6;
		this._gridLayer.moveTo(40 * (4 - a.length) + o, 0, this.item_group), this.title_txt.text = t, this.des_txt.textFlow =
			HtmlUtil.getHtmlStr(e), i > 0 ? (this._actid = i, this.ok_btn.visible = !0) : this.ok_btn.visible = !1, this._gridLayer
			.dataProvider = a
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.okClick, this,
			this.ok_btn)
	}, e.prototype.okClick = function(t) {
		App.global.characterData.guildId == App.data.castleWarCenter.castleData.castleGuildId ? 1 == App.data.activityCenter
			.getData(this._actid).playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(this._actid) : Notice.showMousePosMessage(
				"<font color=" + Notice.MIDDLE_COLOR_2 + ">你已领取过该奖励</font>") : Notice.showMousePosMessage("<font color=" + Notice
				.MIDDLE_COLOR_2 + ">只有皇城帮会成员可领取</font>")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), this.parent && this.parent.removeChild(this),
			t.prototype.dispose.call(this)
	}, e
}(ShabakCzRewardUI);
__reflect(ShabakCzRewardView.prototype, "ShabakCzRewardView");
var ShabakMainPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ShowToggleBtn = function() {
			e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "up", e._view.guildBoss.currentState =
				"up", e._view.guildShop.currentState = "up", e._view.guildFight.currentState = "down", e._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildFight), e._dispatcher.addEventListener(egret.TouchEvent
					.TOUCH_TAP, e.OpenJumpView, e, e._view.guildBoss), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView,
					e, e._view.guildShop), e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildLiangong),
				e._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, e.OpenJumpView, e, e._view.guildCangku), e._view.guildBoss_red
				.visible = App.data.guildCenter.guildBossRed(), App.data.castleWarCenter.dayRewardShow() || App.data.castleWarCenter
				.shabakShow() ? e._view.guildFight_red.visible = !0 : e._view.guildFight_red.visible = !1, e._view.guildShop_red.visible = !
				1
		}, e.OpenJumpView = function(t) {
			var i = t.target;
			switch (i.label) {
				case "帮会仓库":
					if (!App.global.funcOpen.isFunctionOpen(209, "", !0)) return;
					break;
				case "练功房":
					if (!App.global.funcOpen.isFunctionOpen(208, "", !0)) return
			}
			switch (e._view.guildBoss.currentState = "up", e._view.guildFight.currentState = "up", e._view.guildShop.currentState =
				"up", e._view.guildLiangong.currentState = "up", e._view.guildCangku.currentState = "up", i.currentState = "down",
				i.label) {
				case "帮会战":
					App.panel.isShowing(47) || App.panel.openPanel(47);
					break;
				case "帮会BOSS":
					App.panel.isShowing(201) || App.panel.openPanel(201);
					break;
				case "帮会商店":
					App.panel.isShowing(110) || App.panel.openPanel(110);
					break;
				case "帮会仓库":
					App.panel.isShowing(84) || App.panel.openPanel(84);
					break;
				case "练功房":
					App.panel.isShowing(83) || App.panel.openPanel(83)
			}
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ShabakPanelSkin"), this._windowView = new WindowMain, this.addChild(this._windowView),
			this._btnClose = this._windowView.close_btn, this._windowView.showRoleList(!1), this._windowView.showFightPower(!1),
			this._windowView.imgTitle.source = "titleview_shachengzhengba_png", this._windowView.viewContainer.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._windowView.show(), CastleWarCommandSender.askCountryStructureInfo(), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this._view.ernter_btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this._view.hzreward_btn), this._dispatcher.addEventListener(egret
				.TouchEvent.TOUCH_TAP, this.onTouch, this, this._view.guildreward_btn), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTouch, this, this._view.dayreward_btn), this._dispatcher.addEventListener(CastleWarEvent.REFRESH,
				this.onUpdate, this), App.layer.panelLayer.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchLayer, this),
			this._view.red_dayreward.visible = App.data.castleWarCenter.dayRewardShow(), this._view.red_enter.visible = App.data
			.castleWarCenter.shabakShow(), this.onUpdate();
		var i = App.data.activityCenter.getListBean(601),
			n = i[0].bean;
		this.createCzReward("会长奖励", n.q_info, 0, n.q_show_rewards), this.ShowToggleBtn()
	}, e.prototype.onUpdate = function() {
		var t = this.castleWarCenter.getData(EnumCastleWarType.CASTLE_WAR);
		t.guildOwnerinfo ? (t.guildOwnerinfo.appearance.clothSurfaceId > 0 ? this.addAvatarUI(t.guildOwnerinfo.appearance.job,
				t.guildOwnerinfo.appearance.sex, t.guildOwnerinfo.appearance.clothSurfaceId) : this.addAvatarUI(t.guildOwnerinfo
				.appearance.job, t.guildOwnerinfo.appearance.sex, t.guildOwnerinfo.appearance.clothingmodid), this._view.playername_txt
			.text = t.guildOwnerinfo.playername, this._view.guildname_txt.text = t.guildName) : (this._view.playername_txt.text =
			"暂无帮会霸主", this._view.guildname_txt.text = "暂无帮会占领");
		for (var e = App.data.activityCenter.getListBean(1), i = e.length, n = 0; i > n; n++)
			if (8 == e[n].bean.q_function_type) {
				var a = new Date(1e3 * t.siegeTime);
				1 == e[n].activityStates ? this._view.opentime_txt.text = "已开启" : this._view.opentime_txt.text = StringUtil.formatToTime_V11(
					t.siegeTime) + "(星期" + StringUtil.getWeekDay(a.getDay()) + ")" + e[n].bean.q_info;
				break
			}
	}, e.prototype.addAvatarUI = function(t, e, i) {
		void 0 === e && (e = 1), void 0 === i && (i = 0), null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar
			.touchEnabled = !1, this._avatar.touchChildren = !1, this._avatar.x = 98, this._avatar.y = 150, this._view.roleAvtar_group
			.addChild(this._avatar));
		var n = EnumRole.getDefaultBody(t, e);
		App.config.q_itemContainer.hasDataBean(i) && "" != App.config.q_itemContainer.getDataBean(i).q_equip_resource ? n =
			App.config.q_itemContainer.getDataBean(i).q_equip_resource : App.config.q_surfaceContainer.hasDataBean(i) && "" !=
			App.config.q_surfaceContainer.getDataBean(i).q_scene_show_id && (n = App.config.q_surfaceContainer.getDataBean(i).q_scene_show_id),
			this._avatar.changePlayerRolePartResource(AvatarPartType.BODY, e, n), this._avatar.changePlayerRolePartResource(
				AvatarPartType.WEAPON, e, "szwq005"), this._avatar.changeTitle(ResPathUtil.getTitleEffect("sanjiebazhu"))
	}, e.prototype.onTouch = function(t) {
		switch (t.currentTarget) {
			case this._view.ernter_btn:
				var e = App.data.castleWarCenter.castleData.id;
				1 == App.data.activityCenter.getData(e).activityStates ? (ActivityCommandSender.sendC2S_JoinActivityMessage(e),
					this._view.red_enter.visible = !1) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
					">活动尚未开启</font>");
				break;
			case this._view.hzreward_btn:
				var i = App.data.activityCenter.getListBean(601),
					n = i[0].bean;
				this.createCzReward("会长奖励", n.q_info, 0, n.q_show_rewards);
				break;
			case this._view.guildreward_btn:
				PanelOpenManager.openPanel(48);
				break;
			case this._view.dayreward_btn:
				var a = App.data.activityCenter.getListBean(600),
					o = a[0].bean;
				this.createCzReward("每日奖励", o.q_info, o.q_id, o.q_show_rewards), this._view.red_dayreward.visible = !1
		}
	}, e.prototype.onTouchLayer = function(t) {
		t.target != this._view.dayreward_btn && t.target != this._view.hzreward_btn && t.target.parent != this._shabakCzRewardView &&
			this._shabakCzRewardView && (this._shabakCzRewardView.visible = !1)
	}, e.prototype.createCzReward = function(t, e, i, n) {
		this._shabakCzRewardView && this._shabakCzRewardView.dispose(), this._shabakCzRewardView = null, this._shabakCzRewardView ||
			(this._shabakCzRewardView = new ShabakCzRewardView, this._view.addChild(this._shabakCzRewardView), this._shabakCzRewardView
				.x = 55, this._shabakCzRewardView.y = 228, this._shabakCzRewardView.show()), this._shabakCzRewardView.visible = !
			0, this._shabakCzRewardView.init(t, e, i, n)
	}, Object.defineProperty(e.prototype, "castleWarCenter", {
		get: function() {
			return App.data.castleWarCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.hide = function() {
		this._windowView.hide(), this._shabakCzRewardView && this._shabakCzRewardView.hide(), App.layer.panelLayer.removeEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onTouchLayer, this), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._windowView && this._windowView.dispose(), this._windowView = null, this._avatar && this._avatar.dispose(),
			this._avatar = null, this._shabakCzRewardView && this._shabakCzRewardView.dispose(), this._shabakCzRewardView =
			null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(ShabakMainPanel.prototype, "ShabakMainPanel");
var ShabakOneRankPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("个人奖励,个人排行"), this.registerSubPanel(0, ShabakOneRankRewardView,
			"titleview_shachengzhengba_png", -1, !1, !1, null, null, !1), this.registerSubPanel(1, ShabakOneRankView,
			"titleview_shachengzhengba_png")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.panel.openPanel(47)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(ShabakOneRankPanel.prototype, "ShabakOneRankPanel");
var ShabakOneRankRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ShabakRankRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (this.playername_txt.text = t.name, "" != t.expandMap) {
			var e = StringUtil.JsonParse(t.expandMap);
			this.guildname_txt.text = e.guildName
		}
		this.score_txt.text = t.starNum + "", this.rank_txt.visible = !1;
		var i = this.itemIndex + 1;
		switch (i) {
			case 1:
				this.rank_img.source = "common1_paihang_1_png";
				break;
			case 2:
				this.rank_img.source = "common1_paihang_2_png";
				break;
			case 3:
				this.rank_img.source = "common1_paihang_3_png";
				break;
			default:
				this.rank_img.source = "", this.rank_txt.visible = !0, this.rank_txt.text = i + ""
		}
	}, e
}(ItemRenderer);
__reflect(ShabakOneRankRender.prototype, "ShabakOneRankRender");
var ShabakOneRankRewardRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ShabakRankRewardRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {}, e.prototype.dataChanged = function() {
		for (var t, e, i, n, a, o = this.data, r = StringUtil.JsonParse(o.bean.q_show_rewards), s = r.length, h = 0; 3 > h; h++)
			i = this["grid_img" + h], n = this["icon_img" + h], t = this["itemnum_txt" + h], e = this["name_txt" + h], h >= s ?
			i.visible = n.visible = t.visible = e.visible = !1 : (i.visible = n.visible = t.visible = e.visible = !0, a =
				GameUtil.getItemConfigData(r[h].id), i.source = GridUtil.getGridGradeBg(a.q_default), n.source = ResPathUtil.getIcon(
					a.q_tiny_icon, EnumImageType.ITEM_80), n.width = n.height = 60, r[h].num >= 1e4 ? t.text = r[h].num / 1e4 + "万" :
				t.text = r[h].num + "", e.text = a.q_name, e.textColor = GameUtil.getItemNameColor(r[h].id));
		var l = this.itemIndex + 1;
		switch (this.rank_bg1.visible = !0, this.rank_txt.visible = !1, l) {
			case 1:
				this.rank_bg1.source = "shabak_rank_bg1_png";
				break;
			case 2:
				this.rank_bg1.source = "shabak_rank_bg2_png";
				break;
			case 3:
				this.rank_bg1.source = "shabak_rank_bg3_png";
				break;
			default:
				this.rank_bg1.visible = !1, this.rank_txt.visible = !0, this.rank_txt.text = o.bean.q_info
		}
	}, e
}(ItemRenderer);
__reflect(ShabakOneRankRewardRender.prototype, "ShabakOneRankRewardRender");
var ShabakOneRankRewardView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ShabakOneRankRewardViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._currList = new VScrollPanel(604, 648, ShabakOneRankRewardRender, 10), this.reward_group.addChild(this._currList)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refresh()
	}, e.prototype.refresh = function() {
		var t = App.data.activityCenter.getListBean(602);
		this._currList.dataProvider = t, t = App.data.activityCenter.getListBean(603);
		for (var e, i, n, a, o, r, s = t.length, h = 0; 5 > h; h++) a = this["grid_img" + h], o = this["icon_img" + h], i =
			this["title_txt" + h], n = this["name_txt" + h], h >= s ? a.visible = o.visible = i.visible = n.visible = !1 : (e =
				StringUtil.JsonParse(t[h].bean.q_show_rewards), r = GameUtil.getItemConfigData(e[0].id), a.visible = o.visible =
				i.visible = n.visible = !0, a.source = GridUtil.getGridGradeBg(r.q_default), a.width = 60, a.height = 60, o.source =
				ResPathUtil.getIcon(r.q_tiny_icon, EnumImageType.ITEM_80), i.text = t[h].bean.q_sort + "积分", n.text = r.q_name, n
				.textColor = GameUtil.getItemNameColor(e[0].id))
	}, e.prototype.hide = function() {
		this._currList.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._currList.dispose(), this._currList = null, t.prototype.dispose.call(this)
	}, e
}(ShabakOneRankRewardViewUI);
__reflect(ShabakOneRankRewardView.prototype, "ShabakOneRankRewardView", ["IView", "IDispose"]);
var ShabakOneRankView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ShabakOneRankViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._currList = new VScrollPanel(604, 628, ShabakOneRankRender, 0), this.rank_group.addChild(this._currList)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), RankListCommandSender.getRankListInfo(0, EnumRankType.SHENLU_RANK, 1), this._dispatcher
			.addEventListener(EventType.RANK_LIST_REFRESH, this.changePageData, this)
	}, e.prototype.changePageData = function(t) {
		if (this._currList.dataProvider = t.rankInfoVec, t.rankInfoVec && t.rankInfoVec.length > 0 ? this.kongbaitishi.visible = !
			1 : this.kongbaitishi.visible = !0, t.myRank >= 0 && t.myRank < t.rankInfoVec.length) {
			var e = t.rankInfoVec[t.myRank];
			StringUtil.JsonParse(e.expandMap);
			this.score_txt.text = e.starNum + "", this.rank_txt.text = t.myRank + 1 + ""
		} else this.rank_txt.text = "未上榜", this.score_txt.text = "未上榜";
		this.guildname_txt1.text = App.data.guildNameCenter.getGuildName(App.global.characterData.guildId), this.playername_txt
			.text = App.global.characterData.name
	}, e.prototype.hide = function() {
		this._currList.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._currList.dispose(), this._currList = null, t.prototype.dispose.call(this)
	}, e
}(ShabakOneRankViewUI);
__reflect(ShabakOneRankView.prototype, "ShabakOneRankView", ["IView", "IDispose"]);
var ShabakWarFightTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._hpBarW = 239, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = UIMaker.createViewBase("ShabakWarFightPanelSkin"), this.addChild(this._view),
			this._view.x = Config.SCREEN_WIDTH - this.width >> 1
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), App.panel.removePanel(47), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.scorerewardGridCilck, this, this._view.reward_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.touchbtn, this, this._view.incity_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchbtn,
				this, this._view.citydoor_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchbtn, this,
				this._view.palace_btn), this._dispatcher.addEventListener(EventType.SELECT_PLAYER, this.showHeadSelected, this),
			this._dispatcher.addEventListener(CastleWarEvent.UPDATE_KILLER_RANK, this.refrshEndTime, this), this._dispatcher.addEventListener(
				CastleWarEvent.REFRESH_MY_SCORE, this.refrshCurrReward, this), this._dispatcher.addEventListener(EventType.CHANGE_MAP_FINISH,
				this.changeMap, this), this._dispatcher.addEventListener(EventType.CHANGE_MAP_FINISH, this.changeMap, this), this
			._dispatcher.addEventListener(ActivityEvent.SUCCESS_JOIN, this.onSuccessjoin, this), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.onRefeshAct, this), this.changeMap(), this.showHeadSelected(), this.refrshEndTime(),
			this.refrshCurrReward(), this._view.group_btn.y = Config.SCREEN_HEIGHT - 310
	}, e.prototype.onRefeshAct = function(t) {
		603 == t && this.refrshCurrReward()
	}, e.prototype.changeMap = function(t) {
		this._view.transtime_img.visible = !1, this._view.transtime_txt.visible = !1, this._view.incity_btn.visible = !1,
			this._view.citydoor_btn.visible = !1, this._view.palace_btn.visible = !1, App.global.characterData.mapId ==
			ShabakMapId.citydoor ? this._view.incity_btn.visible = !0 : App.global.characterData.mapId == ShabakMapId.incity ?
			(this._view.citydoor_btn.visible = !0, this._view.palace_btn.visible = !0) : App.global.characterData.mapId ==
			ShabakMapId.palace && (this._view.incity_btn.visible = !0)
	}, e.prototype.showHeadSelected = function(t) {
		void 0 === t && (t = null)
	}, e.prototype.onSuccessjoin = function(t) {
		t == this._currId && ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([this._currId])
	}, e.prototype.refrshCurrReward = function(t) {
		void 0 === t && (t = 0);
		var e, i = App.data.activityCenter.getList(603, !1),
			n = i.length;
		this._view.red_img.visible = !1;
		for (var a = 0; n > a; a++) {
			if (1 == i[a].playerStates) {
				e = i[a], this._view.red_img.visible = !0;
				break
			}
			if (2 == i[a].playerStates) {
				e = i[a];
				break
			}
		}
		e ? this._view.score_txt.text = App.data.castleWarCenter.castleData.myscore + "/" + e.bean.q_sort : (e = i[n - 1],
			this._view.score_txt.text = "已经领取全部奖励"), this._currId = e.bean.q_id
	}, e.prototype.refrshEndTime = function() {
		var t = this.castleWarCenter.getData(EnumCastleWarType.CASTLE_WAR);
		if (null != t.warImmediateInfo.holderGuildName && "" != t.warImmediateInfo.holderGuildName ? this._view.currguild_txt
			.textFlow = HtmlUtil.getHtmlStr("当前占领帮会:<font color='#2bb12a'>" + t.warImmediateInfo.holderGuildName + "</font>") :
			this._view.currguild_txt.textFlow = HtmlUtil.getHtmlStr("当前占领帮会:<font color='#2bb12a'>无</font>"), App.timer.serverTimeEnd(
				this, this.onTimerEnd, t.siegeTime + t.pkTotalTime), 1 == t.warImmediateInfo.timerState) {
			var e = t.maxDefendTime - t.warImmediateInfo.holdertime;
			App.timer.serverTimeEndCount(this, this.onEndTimer, e), this.onTimer(e)
		} else App.timer.clearTimer(this.onTimer, this), this._view.endtime_txt1.textFlow = HtmlUtil.getHtmlStr(
			"提前占领倒计时:<font color='#2bb12a'>无</font>")
	}, e.prototype.onEndTimer = function(t) {
		this.onTimer(t.spuleTime)
	}, e.prototype.onTimer = function(t) {
		this._endTime < t && (t = this._endTime), this._view.endtime_txt1.textFlow = HtmlUtil.getHtmlStr(
			"提前占领倒计时:<font color='#2bb12a'>" + StringUtil.convertTime(t) + "</font>"), 0 >= t && (App.timer.clearTimer(this.onTimer,
			this), this._view.endtime_txt1.textFlow = HtmlUtil.getHtmlStr("提前占领倒计时:<font color='#2bb12a'>已结束</font>"))
	}, e.prototype.onTimerEnd = function(t) {
		t.spuleTime >= 0 ? (this._endTime = t.spuleTime, this._view.endtime_txt.textFlow = HtmlUtil.getHtmlStr(
			"距离攻城结束:<font color='#2bb12a'>" + StringUtil.convertTime(t.spuleTime) + "</font>")) : App.timer.clearTimer(this.onTimerEnd,
			this)
	}, e.prototype.scorerewardGridCilck = function(t) {
		void 0 != this._currId && ActivityCommandSender.sendC2S_JoinActivityMessage(this._currId)
	}, e.prototype.touchbtn = function(t) {
		switch (this._view.transtime_img.visible = !1, this._view.transtime_txt.visible = !1, t.currentTarget) {
			case this._view.citydoor_btn:
				this._currtransType = 0;
				break;
			case this._view.incity_btn:
				this._currtransType = 1;
				break;
			case this._view.palace_btn:
				this._currtransType = 2
		}
		this.moveToPoint()
	}, e.prototype.moveToPoint = function() {
		for (var t, e = App.data.zoneCenter.zoneID, i = App.global.roles.roleList, n = i.length, a = 0; n > a; a++)
			if (0 == i[a].getIsDead()) {
				t = i[a];
				break
			} var o, r, s = StringUtil.JsonParse(GameUtil.getGlobalConfigData(246).q_string_value);
		if (0 == this._currtransType) o = s[2].x, r = s[2].y;
		else if (2 == this._currtransType) o = s[1].x, r = s[1].y;
		else {
			s.length;
			s[0].zoneid == e ? (o = s[0].x, r = s[0].y) : (o = s[3].x, r = s[3].y)
		}
		var h = h5_engine.MapVO.getCenterPoint(o, r);
		if (t.pixel_x == h.x && t.pixel_y == h.y) return void this.onEnterFrame();
		var l = SearchToPointVO.getVO();
		l.finishHandler = new FunctionVO(this.onEnterFrame, this), l.search(t, h.x, h.y, "onMoveToMapPosition"), t.ai.reset(),
			this.makeTransEffect(h.x, h.y)
	}, e.prototype.makeTransEffect = function(t, e) {}, e.prototype.onEnterFrame = function() {
		(6 != App.data.guildCenter.myGuildInfo.guildType || 2 != this._currtransType) && CastleWarCommandSender.askCountrySiegeSelect(
			0, this._currtransType)
	}, e.prototype.onTransforTimer = function() {}, Object.defineProperty(e.prototype, "castleWarCenter", {
		get: function() {
			return App.data.castleWarCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.exit = function() {
		App.timer.clearTimer(this.onTimerEnd, this), App.timer.clearTimer(this.onTimer, this), App.timer.clearTimer(this.onTransforTimer,
			this), this._view.transtime_img.visible = !1, this._view.transtime_txt.visible = !1, t.prototype.exit.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 654
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BaseZone);
__reflect(ShabakWarFightTrack.prototype, "ShabakWarFightTrack");
var ShabakMapId;
! function(t) {
	t[t.incity = 10019] = "incity", t[t.citydoor = 10018] = "citydoor", t[t.palace = 10005] = "palace"
}(ShabakMapId || (ShabakMapId = {}));
var ShenluHdView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		this._seletedIndex = 1, t.prototype.show.call(this, e)
	}, e
}(ShenluView);
__reflect(ShenluHdView.prototype, "ShenluHdView");
var ShenluHzView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		this._seletedIndex = 3, t.prototype.show.call(this, e)
	}, e
}(ShenluView);
__reflect(ShenluHzView.prototype, "ShenluHzView");
var ShenluPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("血符,护盾,战旗,魂珠,玉佩"), this.registerSubPanel(0, ShenluXfView,
				"titleview_xuefu_png", 157, !0, !0), this.registerSubPanel(1, ShenluHdView, "titleview_hudun_png", 158, !0, !0),
			this.registerSubPanel(2, ShenluZqView, "titleview_zhanqi_png", 159, !0, !0), this.registerSubPanel(3, ShenluHzView,
				"titleview_hunzhu_png", 160, !0, !0), this.registerSubPanel(4, ShenluYpView, "titleview_yupei_png", 161, !0, !0)
	}, e
}(TabPanel);
__reflect(ShenluPanel.prototype, "ShenluPanel");
var ShenLuType;
! function(t) {
	t[t.XUFU = 0] = "XUFU", t[t.HUDUN = 1] = "HUDUN", t[t.ZHANQI = 2] = "ZHANQI", t[t.HUNZHU = 3] = "HUNZHU", t[t.YUPEI =
		4] = "YUPEI"
}(ShenLuType || (ShenLuType = {}));
var FaBaoEquipTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("FaBaoEquipSkin"), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.setGradeBg(GridUtil.getGridGradeBg(-1)), this._grid.x = 0, this._grid.y = 0, this._view.gridGroup.addChild(
				this._grid), this._grid.isShowTip = !1, this._grid.isShowDesc = !1;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t), this.addChild(this._view);
		var e = new eui.HorizontalLayout;
		e.gap = 0, this._view.starGroup.layout = e
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = App.stage.stageWidth - this._view.width >> 1, this._view.y = App.stage
			.stageHeight - this._view.imgScale9Grid.height - 60 >> 1
	}, e.prototype.show = function(t) {
		this._view.starGroup.removeChildren();
		var e, i = 0;
		TypeUtil.isNumber(t.data) ? i = t.data : (e = t.data, i = e.itemId, this._equipData = t.data);
		var n = GameUtil.getItemConfigData(i);
		if (n) {
			var a = GameUtil.getItemNameColor(i, !0);
			this._view.lblName.textColor = a, this._view.lblName.text = n.q_name + (Config.isDebug ? "_" + i : ""), this._grid
				.setData(i);
			var o = GameUtil.getEquipConfigData(i);
			if (this.showFigh(o.q_score), this._view.thebg.source = "common1_equipbg_png" + n.q_default, o) {
				o.q_xingj > 0 ? this._view.lbStarLv.text = "" : this._view.lbStarLv.text = "0级";
				for (var r = 0; r < o.q_xingj; r++) {
					var s = new eui.Image;
					s.source = "common1_star_light_png", s.width = s.height = 30, this._view.starGroup.addChild(s)
				}
				this._view.lblLvl.text = n.q_zhuanshen + "阶";
				var h = new BaseAttributeDataBean;
				h.convertAndAdd(o.q_add_attribute_client), this._view.txtPro.text = h.getStrByBaseAttributeBean(h), h = new BaseAttributeDataBean,
					h.convertAndAdd(o.q_add_1), this._view.txtPro0.text = h.getStrByBaseAttributeBean(h);
				var l = 1e6 + 100 * n.q_zhuanshen + Math.floor(o.q_kind % 100 / 2) + o.q_kind % 2,
					p = App.config.q_equip_masterContainer.getDataBean(l),
					c = "#ff0000",
					_ = "（未激活）",
					d = "<font color=" + c + ">" + _ + "</font>";
				p && (this._view.txtPro1.textFlow = HtmlUtil.getHtmlStr(p.q_equip_icon_female + d))
			}
			"" == this._view.txtPro0.text ? this._view.group2.visible = !1 : this._view.group2.visible = !0, "" == this._view.txtPro1
				.text ? this._view.group3.visible = !1 : this._view.group3.visible = !0
		}
		this._view.group2.y = this._view.group1.y + this._view.txtPro.y + this._view.txtPro.height + 20, this._view.group3.y =
			"" == this._view.txtPro0.text ? this._view.group2.y : this._view.group2.y + this._view.txtPro0.y + this._view.txtPro0
			.height + 20, this._view.imgScale9Grid.height = 20 + this._view.group3.y + this._view.txtPro1.y + this._view.txtPro1
			.height + ("" == this._view.txtPro1.text ? -36 : 20), this._view.icon2.y = this._view.icon1.y = this._view.imgScale9Grid
			.height, this._view.group10.y = this._view.imgScale9Grid.y + this._view.imgScale9Grid.height + 10, this.resize()
	}, e.prototype.showFigh = function(t) {
		var e = t;
		this._fightBmp ? this._fightBmp.setValue(e) : (this._fightBmp = new FightPower, this._fightBmp.bg.source = "", this
			._fightBmp._effect.visible = !1, this._fightBmp.setValue(e), this._view.groupFight.addChild(this._fightBmp))
	}, e.prototype.hide = function() {
		this._grid.setData(null), this._dispatcher.removeAllListeners()
	}, e
}(TipStyleBase);
__reflect(FaBaoEquipTip.prototype, "FaBaoEquipTip");
var ShenluXfView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		this._seletedIndex = 0, t.prototype.show.call(this, e)
	}, e
}(ShenluView);
__reflect(ShenluXfView.prototype, "ShenluXfView");
var ShenluYpView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		this._seletedIndex = 4, t.prototype.show.call(this, e)
	}, e
}(ShenluView);
__reflect(ShenluYpView.prototype, "ShenluYpView");
var ShenluZqView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this)
	}, e.prototype.show = function(e) {
		this._seletedIndex = 2, t.prototype.show.call(this, e)
	}, e
}(ShenluView);
__reflect(ShenluZqView.prototype, "ShenluZqView");
var MeridianView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.lineArr = [], e.lightArr = [], e.effectArr = [], e.Index = 1, e.btnState = 0, e._lightIndex = 0, e.euiSkinName =
			"MeridianSkin", e.init(), e._lvNum = new NumberLevel, e._lvNum.init("j", "common1_imglonghun_", 25, 25, 5, -3, "10",
				"100"), e._lvNum.moveTo(71, 319, e), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.lineArr = [this.line0, this.line1, this.line2, this.line3, this.line4, this.line5, this.line6, this.line7,
			this.line8
		], this.lightArr = [this.light0, this.light1, this.light2, this.light3, this.light4, this.light5, this.light6,
			this.light7, this.light8, this.light9
		], this.effectArr = [this.effect0, this.effect1, this.effect2, this.effect3, this.effect4, this.effect5, this.effect6,
			this.effect7, this.effect8, this.effect9
		]
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this,
			ResPathUtil.getImgPath("jingmaibg", "", ".jpg"))), this.addEvent(), this.showEfffect(), this.Index = 1;
		var i = App.data.skillCenter.meriHash.get(this.Index);
		i ? this.refreshView(i, 0) : this.refreshView(0, 0)
	}, e.prototype.showEfffect = function() {
		for (var t = 0; t < this.effectArr.length; t++) this.effectArr[t] = EffectUtils.showCEffect(this, this.lightgroup,
			ResPathUtil.getMenuEffect("panel", "meridiancrile"), this.lightArr[t].x + 18, this.lightArr[t].y + 18)
	}, e.prototype.showOneEffect = function(t, e, i) {
		EffectUtils.showOnceEffect(this, t, ResPathUtil.getMenuEffect("panel", "meridianbegin"), e, i)
	}, e.prototype.refreshView = function(t, e) {
		if (void 0 === e && (e = 1), 0 == t) {
			this.currtext.text = "攻击  0\n物防  0\n魔防  0\n生命  0", this.showNextLevelView(t + 1), this.fightPower.setValue(0),
				this.titletext.text = "神庭穴", this._lvNum.setValue(0, 1);
			var i = "",
				n = App.data.bagItemDataCenter.getItemCount(24);
			i = n >= 1 ? "<font color='0x2bb12a'>" : "<font color='0xf33333'>", this.numtext.textFlow = HtmlUtil.getHtmlStr(i +
				App.data.bagItemDataCenter.getItemCount(EnumItemId.JINGMAI) + "</font>/1");
			for (var a = 0; a < this.lightArr.length; a++) this.lightArr[a].source = "meridian_jingmai_04_png", this.effectArr[
				a].visible = !1;
			for (var o = 0; o < this.lineArr.length; o++) this.lineArr[o].source = "meridian_jingmai_06_png";
			this.btnState = 1, this.checkButtonShow()
		} else if (1 == e) {
			var r = App.config.q_meridianContainer.getDataBean(t);
			0 == r.q_lv ? (EffectUtils.showSuccessEffect(this, this, 310, 360), this.showCurrLevelView(t), this.showNextLevelView(
				t + 1)) : (10 == this._lightIndex || this.showOneEffect(this.lightgroup, this.lightArr[this._lightIndex].x + 18,
				this.lightArr[this._lightIndex].y + 18), App.timer.doFrameOnce(this, 1, this.callLater, [t]))
		} else this.showCurrLevelView(t), this.showNextLevelView(t + 1)
	}, e.prototype.callLater = function(t) {
		this.showCurrLevelView(t), this.showNextLevelView(t + 1)
	}, e.prototype.refreshRoleData = function(t) {
		this.Index = t.roleIndex;
		var e = App.data.skillCenter.meriHash.get(this.Index);
		e ? this.refreshView(e, 0) : this.refreshView(0, 0)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onUpClick, this, this.canUpBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onUpClick, this, this.autoUpBtn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_BEGIN, this.onBegin, this, this.canUpBtn), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_END, this.onEnd, this, this.canUpBtn), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.refreshRoleData,
				this), this._dispatcher.addEventListener(SkillEvent.MERIDIAN, this.refreshView, this)
	}, e.prototype.onBegin = function(t) {
		App.timer.doTimeLoop(this, 350, this.onUpClick)
	}, e.prototype.onEnd = function(t) {
		App.timer.clearTimer(this.onUpClick, this)
	}, e.prototype.onUpClick = function(t) {
		var e = t.currentTarget.name,
			i = "oneKey" == e ? 1 : 0,
			n = App.data.skillCenter.meriHash.get(this.Index);
		if (n) {
			var a = App.config.q_meridianContainer.getDataBean(n);
			if ("" == a.q_num) SkillCommandSender.sendC2s_MeridianLevelup(this.Index, i);
			else {
				var o = StringUtil.JsonParse(a.q_num),
					r = App.data.bagItemDataCenter.getItemCount(o[0].id);
				r >= o[0].num ? SkillCommandSender.sendC2s_MeridianLevelup(this.Index, i) : (App.timer.clearTimer(this.onUpClick,
					this), App.panel.openPanel(19, o[0].id))
			}
		} else {
			var r = App.data.bagItemDataCenter.getItemCount(EnumItemId.JINGMAI);
			r >= 1 ? SkillCommandSender.sendC2s_MeridianLevelup(this.Index, i) : (App.timer.clearTimer(this.onUpClick, this),
				App.panel.openPanel(19, EnumItemId.JINGMAI))
		}
		App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3)
	}, e.prototype.showCurrLevelView = function(t) {
		var e = App.config.q_meridianContainer.getDataBean(t),
			i = new BaseAttributeDataBean;
		i.convert(e.q_add_attribute), this.currtext.text = i.getStrByBaseAttributeBean(i), this.titletext.text = e.q_name,
			this._lvNum.setValue(e.q_class, 1), this._lightIndex = e.q_lv, 10 == e.q_lv ? (this.canUpBtn.label = "进 阶", this.jiejintext
				.visible = !0, this.textgroup.visible = !1, this.btnState = 0) : (this.canUpBtn.label = "冲 脉", this.textgroup.visible = !
				0, this.jiejintext.visible = !1, this.btnState = 1), this.checkButtonShow();
		var n, a = 0,
			o = "";
		if ("" == e.q_num);
		else {
			n = StringUtil.JsonParse(e.q_num);
			var r = App.data.bagItemDataCenter.getItemCount(n[0].id);
			o = r >= n[0].num ? "<font color='0x2bb12a'>" : "<font color='0xf33333'>", a = n[0].num
		}
		this.numtext.textFlow = HtmlUtil.getHtmlStr(o + App.data.bagItemDataCenter.getItemCount(EnumItemId.JINGMAI) +
			"</font>/" + a), this.fightPower.setValue(FightPowerUtil.getFightPower([e.q_add_attribute]));
		for (var s = this.effectArr.length, h = 0; s > h; h++) h < e.q_lv ? this.effectArr[h].visible = !0 : this.effectArr[
			h].visible = !1;
		for (var l = 0; l < this.lineArr.length; l++) l < e.q_lv - 1 ? this.lineArr[l].source = "meridian_jingmai_05_png" :
			this.lineArr[l].source = "meridian_jingmai_06_png"
	}, e.prototype.checkButtonShow = function() {
		0 == this.btnState ? (this.execGroup.x = 229, this.autoUpBtn.visible = !1) : App.global.funcOpen.isFunctionOpen(206) ?
			(this.execGroup.x = 116, this.autoUpBtn.visible = !0) : (this.execGroup.x = 229, this.autoUpBtn.visible = !1)
	}, e.prototype.showNextLevelView = function(t) {
		var e = App.config.q_meridianContainer.getDataBean(t);
		if (e) {
			var i = new BaseAttributeDataBean;
			i.convert(e.q_add_attribute), this.nexttext.text = i.getStrByBaseAttributeBean(i), this.canUpBtn.visible = !0
		} else this.nexttext.text = "", this.canUpBtn.visible = !1, this.jiejintext.visible = !1
	}, e.prototype.hide = function() {
		if (t.prototype.hide.call(this), App.timer.clearTimer(this.onUpClick, this), this.effectArr)
			for (var e = 0; e < this.effectArr.length; e++) this.effectArr[e].stop(), this.effectArr[e].dispose(), this.effectArr[
				e] = null;
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null)
	}, e.prototype.dispose = function() {
		this._lvNum && (this._lvNum.dispose(), this._lvNum = null)
	}, e
}(ViewBase);
__reflect(MeridianView.prototype, "MeridianView");
var SkillPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("技能,经脉,灵台,内功,武魂"), this.registerSubPanel(0, SkillView,
				"titleview_jineng_png", 3, !0, !1), this.registerSubPanel(1, MeridianView, "titleview_jingmai_png", 147, !0, !0),
			this.registerSubPanel(2, RoleHejiView, "titleview_zhuxian_png", 114, !1, !1), this.registerSubPanel(3,
				InsidePowerView, "titleview_neigong_png", 55, !0, !0), this.registerSubPanel(4, WeaponSoulView,
				"titleview_wuhun_png", 148, !0, !0)
	}, e
}(TabPanel);
__reflect(SkillPanel.prototype, "SkillPanel");
var InsidePowerActivate = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.xs = [62.67, 63.36, 106, 177.33, 258.02, 382.65, 463.33, 534.67, 576.67, 580], e.ys = [568.67, 467.99,
			377.35, 313.99, 274.66, 274, 313.34, 376.66, 466.67, 568.67
		], e
	}
	return __extends(e, t), e.prototype.show = function() {
		App.layer.tipLayer.addChild(this), FilterUtil.gray(App.layer.panelLayer, !0), this.eye = EffectUtils.showCEffect(
				this, this, ResPathUtil.getMenuEffect("neigong", "eyes_effect"), 320, 205, this.eye), this.eye.visible = !1, this
			.dots = [], App.timer.doTimeLoop(this, 100, this.onDot), this.stageMask = new h5_engine.GShape, this.stageMask.graphics
			.clear(), this.stageMask.graphics.beginFill(0, .01), this.stageMask.graphics.drawRect(0, 0, Config.SCREEN_WIDTH,
				Config.SCREEN_HEIGHT), this.stageMask.graphics.endFill(), this.stageMask.touchEnabled = !0, App.stage.addChild(
				this.stageMask)
	}, e.prototype.hide = function() {
		if (App.global.funcOpen.setOpenObj(55), this.eye && (this.eye.dispose(), this.eye = null), this.dots) {
			for (var t = 0; 10 > t; t++) this.dots[t].dispose();
			this.dots = null
		}
		this.parent && this.parent.removeChild(this), FilterUtil.gray(App.layer.panelLayer, !1), this.stageMask && (this.stageMask
			.graphics.clear(), this.stageMask.parent && this.stageMask.parent.removeChild(this.stageMask), this.stageMask =
			null)
	}, e.prototype.onDot = function() {
		var t = this.dots.length;
		if (t >= 10) this.onEye(), App.timer.clearTimer(this.onDot, this);
		else {
			var e = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("neigong", "fire_effect"), this.xs[t], this.ys[
				t]);
			this.dots.push(e)
		}
	}, e.prototype.onEye = function() {
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("neigong", "eye"), 320, 198), this.eye.visible = !
			0, App.timer.doTimeOnce(this, 1e3, this.onEnd)
	}, e.prototype.onEnd = function() {
		this.hide(), this.callback && (this.callback.exec(), this.callback = null)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(InsidePowerActivate.prototype, "InsidePowerActivate");
var InsidePowerEffect = function() {
	function t(t, e, i) {
		this.tag = -1, this.roleIndex = 1, this._effectObj = {}, this._rotations = [0, 67, 20, -38, -89, 31, -55, 21, 99],
			this._clicks = 0, this._rQueue = [], this._currentLv = -1, this.init = !1, this.parent = t, this._txts = e, this._callback =
			i
	}
	return t.prototype.addToQueue = function(t) {
		if (-1 == this._rQueue.indexOf(t)) {
			for (var e = -1, i = 0; i < length; i++)
				if (t % 10 != 1) {
					if (t - this._rQueue[i] == 1) {
						e = i;
						break
					}
				} else if (this._rQueue[i] == this.tag) {
				e = i;
				break
			} - 1 != e ? this._rQueue.splice(e, 0, t) : this._rQueue.push(t), App.timer.doTimeLoop(this, 300, this.onCalllater,
				null, !1)
		}
	}, t.prototype.addSuccessToQueue = function() {
		for (var t = this._rQueue.length, e = -1, i = 0; t > i; i++)
			if (this._rQueue[i] % 10 == 0 && (t - 1 > i && this._rQueue[i + 1] != this.tag || i == t - 1)) {
				e = i;
				break
			} - 1 != e ? this._rQueue.splice(e, 0, this.tag) : this._rQueue.push(this.tag)
	}, t.prototype.onCalllater = function() {
		if (this._rQueue.length > 0) {
			var t = this._rQueue.shift();
			if (t == this.tag && this._currentLv % 10 == 0) this.showBallEffect(0), App.timer.clearTimer(this.showBallEffect,
				this), App.timer.doTimeOnce(this, 75, this.showUpSuccess, null, !1), this._rQueue.length > 0 && (this._currentLv =
				this._rQueue[0]), this._callback.exec(this._currentLv);
			else {
				var e = t % 10;
				0 == e && 0 == App.global.characterData.autoSettingData.inside_up[this.roleIndex] && (e = 10), this.init ? (this.showBoomEffect(
						t), App.timer.doTimeOnce(this, 120, this.showBallEffect, [e], !1)) : this.showBallEffect(e), this._currentLv =
					t, this._callback.exec(t, 10 == e)
			}
			this.init ? this.showCenterEffect() : this.init = !0
		}
	}, t.prototype.showBallEffect = function(t) {
		for (var e, i = 0; 10 > i; i++) this._txts[i].visible = t > i, e = this._effectObj[i], t > i ? (null == e && (e =
				EffectUtils.showCEffect(this, this.parent, ResPathUtil.getMenuEffect("neigong", "fire_effect"), this._txts[i].x +
					this._txts[i].width / 2, this._txts[i].y + this._txts[i].height / 2), this._effectObj[i] = e), e.play(), e.visible = !
			0) : e && (e.stop(), e.visible = !1)
	}, t.prototype.showBoomEffect = function(t) {
		var e = t % 10 - 1;
		e >= 0 && e < this._txts.length && EffectUtils.showOnceEffect(this, this.parent, ResPathUtil.getMenuEffect(
			"neigong", "dot_effect"), this._txts[e].x + this._txts[e].width / 2, this._txts[e].y + this._txts[e].height / 2)
	}, t.prototype.showCenterEffect = function() {
		var t = EffectUtils.showOnceEffect(this, this.parent, ResPathUtil.getMenuEffect("neigong", "boom_effect"), 325, 430);
		t.degrees = this._rotations[this._clicks % 9], this._clicks++
	}, t.prototype.showUpSuccess = function() {
		EffectUtils.showSuccessEffect(this.parent, this, 320, 413)
	}, t.prototype.clear = function() {
		App.timer.clearTimer(this.showBallEffect, this), App.timer.clearTimer(this.onCalllater, this), App.timer.clearTimer(
			this.showUpSuccess, this)
	}, t.prototype.dispose = function() {
		this.clear();
		for (var t in this._effectObj) this._effectObj[t].dispose(), delete this._effectObj[t];
		this._callback = null, this.parent = null
	}, t
}();
__reflect(InsidePowerEffect.prototype, "InsidePowerEffect");
var SkillItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._lock = !1, e.skinName = "SkillItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._grid = GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.move(13, 18, this), this._grid
			.isShowTip = !1, this.imgSelected.visible = 0 == this.itemIndex
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(SkillEvent.CHANGE, this.onSkillLvUp, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onLvUp, this, this.btnLvUp)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.onSkillLvUp = function(t) {
		t.skillId == this._bean.q_skillID && EffectUtils.showOnceEffect("SkillItemRender", this, ResPathUtil.getMenuEffect(
			"skill", "2_0"), 53, 53)
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, this._skillData = App.data.skillCenter.getSkill(this._bean.q_skillID), null == this._skillData ?
			(this.lv_txt.visible = !1, this.filters = FilterUtil.FILTER_GRAY) : (this.lv_txt.visible = !0, this.lv_txt.text =
				"Lv" + (this._skillData.level > 0 ? this._skillData.level : 1), this.filters = null, this._bean = this._skillData
				.bean);
		var t = Config.isDebug ? this._bean.q_skillID_q_grade + "" : "";
		this.name_txt.text = this._bean.q_skillName.split("_")[0] + t, this.cost_txt.text = this._bean.q_neednum_gold + "",
			this.cost_txt.textColor = this._bean.q_neednum_gold > App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI) ?
			15938355 : 2863402, this.desc_txt.textFlow = HtmlUtil.getHtmlStr(this._bean.q_tips_desc), this._grid.setData(this._bean
				.q_skillID);
		var e = (App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI), App.global.characterData);
		e && (0 == this._bean.q_next_skillID_q_grade ? (this.btnLvUp.label = "满 级", this.btnLvUp.enabled = !1) : e.level <
			this._bean.q_needgrade ? (this.btnLvUp.label = this._bean.q_needgrade + "级可升", this.btnLvUp.enabled = !0) : e.zhuanSheng <
			this._bean.q_zuans_lv ? (this.btnLvUp.label = this._bean.q_zuans_lv + "转可升", this.btnLvUp.enabled = !0) : (this.btnLvUp
				.label = "升 级", this.btnLvUp.enabled = !0), FilterUtil.gray(this.btnLvUp, !this.btnLvUp.enabled))
	}, e.prototype.onTouch = function(t) {
		if (null != this._skillData) {
			for (var e = 0; e < this.parent.numChildren; e++) this.parent.getChildAt(e).imgSelected.visible = !1;
			this.imgSelected.visible = !0
		}
	}, e.prototype.onLvUp = function(t) {
		if (App.data.skillCenter.isCanUp(this._bean.q_skillID, !0))
			for (var e = App.global.roles.roleList, i = 0; i < e.length; i++) e[i] && e[i].job == this._bean.q_skill_job && (
				EffectUtils.showOnceEffect("SkillItemRender", this, ResPathUtil.getMenuEffect("skill", "1_0"), this.btnLvUp.x +
					this.btnLvUp.width / 2, this.btnLvUp.y + this.btnLvUp.height / 2), SkillCommandSender.sendC2S_LevelUpOneSkillMessage(
					[this._bean.q_skillID], e[i].roleIndex), App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3))
	}, e
}(ItemRenderer);
__reflect(SkillItemRender.prototype, "SkillItemRender");
var InsidePowerView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentLv = -1, e._clicks = 0, e._roleIndex = -1, e._init = !1, e._moneyEnough = !0, e.euiSkinName =
			"InsidePowerSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._txts = [this.txt0, this.txt1, this.txt2, this.txt3, this.txt4, this.txt5, this.txt6, this.txt7, this.txt8,
				this.txt9
			], this._effect = new InsidePowerEffect(this, this._txts, new FunctionVO(this.setContent, this)), this._lvNum =
			new NumberLevel, this._lvNum.moveTo(12, 26, this.groupLv);
		var t;
		t || (t = UIMaker.getCImage(null, this, null, 235, 347)), this.groupMain.addChild(t), t.url = ResPathUtil.getImgPath(
			"center", "inside", ".png")
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), null == this._bg && (this._bg = UIMaker.getCImage(null, this, null, 0, 56)), this.groupMain
			.addChildAt(this._bg, 0), this._bg.url = ResPathUtil.getImgPath("neigong_01", "inside", ".jpg"), this._dispatcher.addEventListener(
				EventType.MY_INSIDE_POWER, this.onInsideUpdate, this), this._dispatcher.addEventListener(EventType.INSIDE_POWER_LV_UP,
				this.onInsideUp, this), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.onChangeRole, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.autoUpBtn), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_BEGIN, this.onBegin, this, this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd,
				this, this.btn), this.fightPower && (this.fightPower.y = 610);
		for (var i = App.global.roles.roleList, n = 0; n < i.length; n++) CharacterUICommandSender.sendC2S_InsidePowerExpMessage(
			EnumCharacterType.NG_IMMEDI_UPDATE, i[n].roleIndex);
		this._roleIndex = 1, this._effect.roleIndex = this._roleIndex, App.data.skillCenter.insidePower.redpoint = !0, this
			.onInsideUpdate(this._roleIndex), App.global.funcOpen.isFunctionOpen(207) ? (this.execGroup.x = 116, this.autoUpBtn
				.visible = !0) : (this.execGroup.x = 229, this.autoUpBtn.visible = !1)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), null != this._bg && this._bg.clear(), this._effect.clear(), this._effect.init = !1,
			this._clicks = 0, this._init = !1, App.timer.clearTimer(this.onClick, this), SetupmenuSender.sendC2S_SetAutoMenuStatusMessage()
	}, e.prototype.onBegin = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, this.stage), App.timer.doTimeLoop(
			this, 200, this.onClick)
	}, e.prototype.onEnd = function(t) {
		this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_END, this.onEnd, this, this.stage), App.timer.clearTimer(
			this.onClick, this)
	}, e.prototype.onChangeRole = function(t) {
		SetupmenuSender.sendC2S_SetAutoMenuStatusMessage(), this._roleIndex = t.roleIndex, this._effect.init = !1, this._effect
			.roleIndex = this._roleIndex, this.onInsideUpdate(this._roleIndex)
	}, e.prototype.onInsideUpdate = function(t) {
		if (this._roleIndex == t) {
			var e = App.data.skillCenter.insidePower.getCurrentBean(t);
			null != e && (App.global.redPoint.redPointDispatchEvent(115), this.setContent(e.q_level), this._effect.clear(),
				this._effect.addToQueue(e.q_level), this._currentLv = e.q_level, this._clicks = 0)
		}
	}, e.prototype.onInsideUp = function(t, e) {
		this._roleIndex == t && (this._effect.addToQueue(e), this._currentLv = e, this._clicks = 0)
	}, e.prototype.setContent = function(t, e) {
		void 0 === e && (e = !1);
		var i = App.config.q_internalstrengthContainer.getDataBean(1e3 * t + 1);
		if (null != i) {
			this.num_txt.text = i.q_internalforce + "", this.recovery_txt.text = i.q_restorestrength + "";
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI),
				a = StringUtil.JsonParse(i.q_consumption)[0].num,
				o = a > n ? 15938355 : 2863402;
			this.cost_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(n + "", o) + "/" + a), this._moneyEnough = n >=
				a;
			var r = App.config.q_internalstrengthContainer.getDataBean(i.q_nextid),
				s = 0;
			e ? (this.btn.label = "进 阶", this.btn.enabled = !0, FilterUtil.gray(this.btn, !1), s = Math.floor(i.q_level / 10),
					this.groupCost.visible = !1) : (this.btn.label = "修 炼", this.groupCost.visible = !0, s = r ? Math.floor(i.q_level /
					10) + 1 : Math.floor(i.q_level / 10)), null != r ? (this.num_txt2.text = r.q_internalforce + "", this.arrow1.visible = !
					0, this.recovery_txt2.text = r.q_restorestrength + "", this.arrow2.visible = !0, this.btn.enabled = !0,
					FilterUtil.gray(this.btn, !1)) : (this.arrow1.visible = !1, this.num_txt2.text = "", this.recovery_txt2.text =
					"", this.arrow2.visible = !1, this.groupCost.visible = !1, this.btn.label = "已满级", this.btn.enabled = !1,
					FilterUtil.gray(this.btn, !0)), this.groupCost.x = this.execGroup.width - this.groupCost.width >> 1, this.fightPower &&
				this.fightPower.setValue(i.q_fightpower), App.timer.doFrameOnce(this, 3, this.onLater, [s])
		}
	}, e.prototype.onLater = function(t) {
		this._lvNum.setValue(t), 20 > t ? this._lvNum.y = (this.groupLv.height - this._lvNum.height >> 1) - 40 : this._lvNum
			.y = (this.groupLv.height - this._lvNum.height >> 1) - 35
	}, e.prototype.onClick = function(t) {
		void 0 === t && (t = null);
		var e = t.currentTarget.name,
			i = "oneKey" == e ? 1 : 0;
		if ("点击激活" == this.btn.label);
		else if ("进 阶" == this.btn.label) this._effect.addSuccessToQueue(), App.global.characterData.autoSettingData.inside_up[
			this._roleIndex] = 1;
		else if (this._moneyEnough) CharacterUICommandSender.sendC2S_InsidePowerLevelupMessage(this.roleList.getRoleData().roleIndex,
			i), App.global.characterData.autoSettingData.inside_up[this._roleIndex] = 0;
		else if (App.global.funcOpen.isFunctionOpen(7, "", !0)) {
			var n = GameUtil.getShopItemConfigData(10060);
			PanelOpenManager.openBuyPanel(n, 1, 7, 0, !1)
		}
		App.sound.playSound(EnumSoundId.SKILL, 0, 1 / .3)
	}, e.prototype.dispose = function() {
		null != this._bg && this._bg.dispose(), this._bg = null, this._roleEffect && this._roleEffect.dispose(), this._roleEffect =
			null, this._effect && this._effect.dispose(), this._effect = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(InsidePowerView.prototype, "InsidePowerView");
var SkillView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "SkillViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(620, 585, SkillItemRender, 2), this._vscroller.move(20, 183, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(SkillEvent.ADD, this.onUpdate, this), this._dispatcher
			.addEventListener(SkillEvent.CHANGE, this.onUpdate, this), this._dispatcher.addEventListener(SkillEvent.REFRESH,
				this.onUpdate, this), this._dispatcher.addEventListener(RoleListView.ROLE_SELECT2, this.onChangeRole, this), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onLvUp, this, this.btnLvUpAll), this._dispatcher.addEventListener(
				MoneyEvent.CHANGE, this.onMoneyChange, this), this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resizeGuide,
				this), this.onUpdate(), this.resizeGuide()
	}, e.prototype.resizeGuide = function() {
		if (App.data.taskCenter.getThreadTaskShowGuide(3)) {
			var t = Config.SCREEN_WIDTH - this.btnLvUpAll.width >> 1;
			this.guide.show("点击升级技能", Guide.RIGHT, t - 150, this.btnLvUpAll.y + 40, this.btnLvUpAll, !0, t, this.btnLvUpAll.y)
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.hideGuide(this.btnLvUpAll, 229, 806), this._vscroller.removeAll(), this._role =
			null
	}, e.prototype.onMoneyChange = function(t, e) {
		t == EnumMoney.JIN_BI && this.onUpdate()
	}, e.prototype.onUpdate = function(t) {
		this._role = this.roleList.getRoleData(), this._vscroller.dataProvider = App.data.skillCenter.getJobSkillList(this._role
			.job)
	}, e.prototype.onChangeRole = function(t) {
		this._role = t, this._vscroller && (this._vscroller.viewport && (this._vscroller.stopAnimation(), this._vscroller.viewport
			.scrollV = 0), this._vscroller.dataProvider = App.data.skillCenter.getJobSkillList(this._role.job))
	}, e.prototype.onLvUp = function(t) {
		this.hideGuide(this.btnLvUpAll, 229, 806);
		var e = App.data.skillCenter.getJobLvUpIDs(this._role.job, !0);
		e.length > 0 && (SkillCommandSender.sendC2S_LevelUpOneSkillMessage(e, this._role.roleIndex), App.sound.playSound(
			EnumSoundId.SKILL, 0, 1 / .3))
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.dispose(), this._vscroller = null), this._role = null, t.prototype.dispose.call(
			this)
	}, e.prototype.hideGuide = function(t, e, i) {
		this._guide && (this._guide.hide(), this._guide = null, this.addChild(t), t.x = e, t.y = i, App.dispatcher.dispatchEvent(
			EventType.BACKGUIDE))
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(SkillView.prototype, "SkillView");
var WeaponSoulCenter = function() {
	function t() {
		this._currTzObj = [], this._tzArrObj = [], this.roleindex = 1
	}
	return t.prototype.tempData = function() {}, t.prototype.showGridRed = function(t) {
		var e = App.config.q_ma_soulContainer.getDataBean(t),
			i = StringUtil.JsonParse(e.q_ma_things);
		return App.data.bagItemDataCenter.getItemCount(i[0].id) >= i[0].num ? !0 : !1
	}, t.prototype.showPosRed = function(t, e) {
		void 0 === e && (e = -1);
		var i; - 1 == e ? (e = this.roleindex, i = this.getPosList(t)) : i = this.getPosList(t, e);
		for (var n = i.length, a = !1, o = 0; n > o; o++)
			if (a = this.showGridRed(i[o]), 1 == a) return !0;
		return !1
	}, t.prototype.showRoleRed = function(t) {
		for (var e = !1, i = 1; 7 > i; i++)
			if (e = this.showPosRed(i, t), 1 == e) return !0;
		return !1
	}, t.prototype.showRed = function() {
		for (var t = !1, e = App.global.roles.roleList.length, i = 1; e > i; i++)
			if (t = this.showRoleRed(i), 1 == t) return !0;
		return !1
	}, t.prototype.showSurfacetype = function() {
		var t = StringUtil.JsonParse(GameUtil.getGlobalConfigData(252).q_string_value),
			e = App.global.roles.getRoleInfoByIndex(this.roleindex).surfaceManager.getShowSerfaceIdBySerfaceType(16);
		if (0 == e) return 0;
		for (var i = 7, n = 1; i > n; n++)
			if (e == t[n]) return t[n];
		return 0
	}, t.prototype.hasSurfacetype = function(t) {
		var e = StringUtil.JsonParse(GameUtil.getGlobalConfigData(252).q_string_value);
		return App.global.roles.getRoleInfoByIndex(this.roleindex).surfaceManager.hasSerface(e[t])
	}, t.prototype.refreshPosId = function(t) {
		for (var e, i = App.config.q_ma_soulContainer.getDataBean(t.soulId), n = this.getPosList(i.q_ma_soul_taye_id, t.index),
				a = n.length, o = 0; a > o; o++)
			if (e = App.config.q_ma_soulContainer.getDataBean(n[o]), e.q_ma_soul_taye_id == i.q_ma_soul_taye_id && e.q_ma_place_id ==
				i.q_ma_place_id) {
				n[o] = t.soulId;
				break
			} App.dispatcher.dispatchEvent(SkillEvent.WEAPONSOULUP, t.soulId)
	}, t.prototype.getPosList = function(t, e) {
		void 0 === e && (e = -1), -1 == e && (e = this.roleindex);
		var i = [];
		if (!App.global.roles.getRoleInfoByIndex(e)) return i;
		for (var n, a = App.global.roles.getRoleInfoByIndex(e).weaponSoulList, o = a.length, r = 0; o > r; r++)
			if (n = a[r], n.id == t) return n.soulPosIdList;
		return i.length <= 0 ? this.getInitDataArr(t) : i
	}, t.prototype.getInitDataArr = function(t) {
		var e = 4;
		e = 1 == t ? 4 : 2 == t || 3 == t ? 6 : 8;
		for (var i, n = [], a = 1; e + 1 > a; a++) i = 1e4 * t + 1e3 * a, App.config.q_ma_soulContainer.hasDataBean(i) && n
			.push(1e4 * t + 1e3 * a);
		return n
	}, t.prototype.getZeroBean = function(t, e) {
		return App.config.q_ma_soulContainer.getDataBean(1e4 * t + 1e3 * e + 1)
	}, t.prototype.posCanMake = function(t) {
		for (var e, i = this.getPosList(t), n = i.length, a = 0; n > a; a++) {
			if (e = App.config.q_ma_soulContainer.getDataBean(i[a]), !e) return !1;
			if (0 == e.q_class && 0 == e.q_ma_level) return !1
		}
		return !0
	}, t.prototype.getPosMinId = function(t) {
		for (var e, i, n = this.getPosList(t), a = 0, o = n.length, r = 0; o > r; r++) 0 == r ? a = n[r] : (e = App.config.q_ma_soulContainer
			.getDataBean(n[r]), i = App.config.q_ma_soulContainer.getDataBean(a), e.q_ma_level + 10 * e.q_class < i.q_ma_level +
			10 * i.q_class && (a = n[r]));
		return a
	}, t.prototype.getAllAttr = function() {
		for (var t, e, i = [], n = [], a = 1; 7 > a; a++) {
			n = this.getPosList(a), e = n.length;
			for (var o = 0; e > o; o++) t = App.config.q_ma_soulContainer.getDataBean(n[o]), t && i.push(t.q_ma_attribute)
		}
		var r = this.getAllAddAttrStr(i);
		return r
	}, t.prototype.getPosAttr = function(t) {
		for (var e, i = this.getPosList(t), n = [], a = i.length, o = 0; a > o; o++) e = App.config.q_ma_soulContainer.getDataBean(
			i[o]), e && n.push(e.q_ma_attribute);
		var r = this.getAllAddAttrStr(n);
		return r
	}, t.prototype.getAllAddAttrStr = function(t) {
		for (var e = t.length, i = "", n = [], a = [], o = 0; e > o; o++) i = t[o], i = i.replace("[", ""), i = i.replace(
			"]", ""), n = i.split(","), a.push(n);
		for (var r, s, h, l = new HashObject, o = 0; e > o; o++) {
			n = a[o], r = n.length;
			for (var p = 0; r > p; p++) i = n[p], s = i.slice(0, i.indexOf(":") + 1), s = s.replace("物攻上限:", "攻击:"), s = s.replace(
				"物防上限:", "物防:"), s = s.replace("魔防上限:", "魔防:"), s = s.replace("生命上限:", "生命:"), h = parseInt(i.slice(i.indexOf(
				":") + 1)), 1 == l.has(s) ? l.put(s, l.get(s) + h) : l.put(s, h)
		}
		return l
	}, t.prototype.posFightNumStr = function(t) {
		for (var e, i = this.getPosList(t), n = [], a = i.length, o = 0; a > o; o++) e = App.config.q_ma_soulContainer.getDataBean(
			i[o]), e && n.push(e.q_ma_attribute);
		return FightPowerUtil.getFightPower(n)
	}, t.prototype.allFightNumStr = function() {
		for (var t = 0, e = 1; 7 > e; e++) t += this.posFightNumStr(e);
		return t
	}, t.prototype.posEquipMasterId = function(t) {
		var e, i = [];
		if (!this._tzArrObj || !this._tzArrObj[t]) {
			var n = App.config.q_equip_masterContainer.list;
			e = n.length;
			for (var a = 0; e > a; a++) n[a].q_type == EnumEquipMaster.BIN_HUN && (this._tzArrObj[n[a].q_rank] || (i = [],
				this._tzArrObj[n[a].q_rank] = i), i = this._tzArrObj[n[a].q_rank], i.push(n[a]));
			for (var o = 1; 6 >= o; o++) i = this._tzArrObj[o], i.sort(this.sortFunc), this._currTzObj[o] = i[0].q_id
		}
		var r, s = 0,
			h = App.config.q_ma_soulContainer.getDataBean(this.getPosMinId(t));
		h && (r = 0 == h.q_class ? 1e5 * EnumEquipMaster.BIN_HUN + 1e3 * t + h.q_ma_level + 10 * h.q_class : 1e5 *
			EnumEquipMaster.BIN_HUN + 1e3 * t + 10 * h.q_class), i = this._tzArrObj[t], e = i.length;
		for (var a = 0; e > a; a++)
			if (r < i[a].q_id) return 0 == a ? 0 : i[a - 1].q_id;
		return s
	}, t.prototype.sortFunc = function(t, e) {
		return t.q_id < e.q_id ? -1 : 1
	}, t
}();
__reflect(WeaponSoulCenter.prototype, "WeaponSoulCenter");
var WeaponSoulGriditem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._id = 0, e._pos = 1, e._type = 1, e.euiSkinName = "ItemGridSkin", e.show(), e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i, n) {
		void 0 === n && (n = !0), this._id = t, this._pos = i, this._type = e;
		var a = App.config.q_ma_soulContainer.getDataBean(this._id);
		this.red_img.visible = !1, a || (a = App.data.weaponSoulCenter().getZeroBean(e, i)), 1 == n && (this.red_img.visible =
				App.data.weaponSoulCenter().showGridRed(this._id)), 0 == a.q_class && 0 == a.q_ma_level ? (this.con_group.filters =
				FilterUtil.FILTER_GRAY, this.bg_img.source = "common1_grid_white_76_png") : (this.con_group.filters = null, this.bg_img
				.source = "weaponSoul_wuhun_04_png"), this.icon_img.source = ResPathUtil.getIcon(a.q_icon, EnumImageType.ITEM_80),
			this.name_txt.text = a.q_ma_place_name, this.lv_txt.text = a.q_ma_level + 10 * a.q_class + ""
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(72, this._id)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.icon_img && this.icon_img.dispose(), this.parent && this.parent.removeChild(this), t.prototype.dispose.call(
			this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this)
	}, e
}(ViewBase);
__reflect(WeaponSoulGriditem.prototype, "WeaponSoulGriditem");
var WeaponSoulItem = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i._type = 1, i._type = e;
		var n = App.data.weaponSoulCenter(),
			a = n.getPosList(i._type),
			o = a.length;
		return 4 == o ? i.euiSkinName = "WeaponSoulFourItemSkin" : 6 == o ? i.euiSkinName = "WeaponSoulSixItemSkin" : i.euiSkinName =
			"WeaponSoulEightItemSkin", i.init(), i
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = App.data.weaponSoulCenter(),
			e = t.getPosList(this._type),
			i = e.length;
		this._weaponSoulGridItemArr = [];
		for (var n, a, o, r, s = 0; i > s; s++) {
			if (a = this["line_img" + s], o = this["ball_img" + s], !o) return;
			r = App.config.q_ma_soulContainer.getDataBean(e[s]), 0 == r.q_class && 0 == r.q_ma_level ? o.filters = a.filters =
				FilterUtil.FILTER_GRAY : o.filters = a.filters = null, n = new WeaponSoulGriditem, n.init(e[s], this._type, s + 1),
				this.addChild(n), s % 2 == 0 ? n.x = a.x - 70 : n.x = a.x + a.width - 10, s == i - 2 && i > 4 ? n.y = a.y - 3 : n
				.y = a.y - 35
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._weaponSoulGridItemArr)
			for (var e = void 0, i = void 0, n = 0; i > n; n++) e = this._weaponSoulGridItemArr[n], e.dispose(), e = null;
		this._weaponSoulGridItemArr = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e)
	}, e
}(ViewBase);
__reflect(WeaponSoulItem.prototype, "WeaponSoulItem");
var WeaponSoulItemPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._attrStrArr = ["攻击:", "物防:", "魔防:", "生命:"], e._type = 1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("WeaponSoulItemPanelSkin"), this.addChild(this._view), this._vscroller = new VScrollPanel(
				200, 425, WeaponSoulItemRender), this._vscroller.move(215, 42, this._view.con_item), this._skillGrid = GridUtil.getGrid(
				SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._skillGrid.move(75, 50, this._view.attrBgImg.parent), this._fightPower =
			new FightPower, this.addChild(this._fightPower), this._fightPower.x = 156, this._fightPower.y = 35, this._returnBtnEft =
			new CEffect, this._returnBtnEft.url = ResPathUtil.getMenuEffect("main", "returnbtn"), this._returnBtnEft.setTo(
				46.5, 40), this._returnBtnEft.addParent(this._view.btnClose), this._returnBtnEft.play()
	}, e.prototype.refresh = function() {
		var t = App.data.weaponSoulCenter(),
			e = t.getPosAttr(this._type);
		if (e)
			for (var i = 0; 4 > i; i++) e.has(this._attrStrArr[i]) ? this._view["lalField" + i].text = this._attrStrArr[i] + e
				.get(this._attrStrArr[i]) : this._view["lalField" + i].text = this._attrStrArr[i] + "0";
		else
			for (var i = 0; 4 > i; i++) this._view["lalField" + i].text = this._attrStrArr[i] + "0";
		var n = t.getPosMinId(this._type);
		this._vscroller.dataProvider = [n];
		var a = t.posEquipMasterId(this._type);
		if (0 == a) a = t._currTzObj[this._type], this._view.wear_btn.label = "穿 戴";
		else {
			var o = StringUtil.JsonParse(GameUtil.getGlobalConfigData(252).q_string_value);
			this._view.wear_btn.visible = !0, 0 == t.showSurfacetype() ? this._view.wear_btn.label = "穿 戴" : t.showSurfacetype() ==
				o[this._type] ? this._view.wear_btn.label = "取 消" : t.hasSurfacetype(this._type) ? this._view.wear_btn.label =
				"更 换" : this._view.wear_btn.label = "穿 戴"
		}
		var r = App.config.q_equip_masterContainer.getDataBean(a),
			s = GameUtil.getSkillConfigDataById(Number(r.q_suit_skill));
		this._view.skilldes_txt.text = s.q_tips_desc, this._view.skillname_txt.text = s.q_skillName, this._skillGrid.setData(
			s.q_skillID);
		var h = [];
		h.id = a, h.type = this._type, App.tip.addTip(this._skillGrid, new TipData(14, h)), this._weaponSoulItem && this._weaponSoulItem
			.dispose(), this._weaponSoulItem = new WeaponSoulItem(this._type), this._view.con_item.addChild(this._weaponSoulItem),
			this._fightPower.setValue(t.posFightNumStr(this._type))
	}, e.prototype.onTouch = function(t) {
		var e = App.data.weaponSoulCenter().posEquipMasterId(this._type);
		0 == e ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">请先激活所有部位</font>") : "取 消" == this._view
			.wear_btn.label ? (SkillCommandSender.sendC2S_MaSoulUseMessage(2, App.data.weaponSoulCenter().roleindex, this._type),
				this._view.wear_btn.label = "穿 戴") : (SkillCommandSender.sendC2S_MaSoulUseMessage(1, App.data.weaponSoulCenter().roleindex,
				this._type), this._view.wear_btn.label = "取 消")
	}, e.prototype.onTouchBack = function(t) {
		App.panel.removePanel(71), App.panel.removePanel(72)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this._type = e, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
				this, this._view.wear_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBack, this,
				this._view.groupClick), this._dispatcher.addEventListener(SkillEvent.WEAPONSOULUP, this.onLvUp, this), this._dispatcher
			.addEventListener(SkillEvent.WEAPONSOULUSE, this.onUse, this), this.refresh()
	}, e.prototype.onUse = function() {
		var t = App.data.weaponSoulCenter().getPosMinId(this._type);
		this._vscroller.dataProvider = [t]
	}, e.prototype.onLvUp = function(t) {
		this.refresh()
	}, e.prototype.hide = function() {
		App.tip.removeTip(this._skillGrid), this._weaponSoulItem && this._weaponSoulItem.hide(), this._vscroller.removeAll(),
			t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._weaponSoulItem && this._weaponSoulItem.dispose(), this._fightPower && this._fightPower.dispose(), this._fightPower =
			null, this._returnBtnEft.dispose(), this._returnBtnEft = null, this._vscroller.dispose(), this._vscroller = null,
			t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WeaponSoulItemPanel.prototype, "WeaponSoulItemPanel");
var WeaponSoulItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WeaponSoulRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this)
	}, e.prototype.onRemoveStage = function(e) {
		this._effect && (this._effect.dispose(), this._effect = null), t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = App.config.q_ma_soulContainer.getDataBean(this.data);
		t || (t = App.data.weaponSoulCenter().getZeroBean(this.itemIndex + 1, 1)), this._type = t.q_ma_soul_taye_id;
		var e = App.data.weaponSoulCenter(),
			i = ResPathUtil.getMenuEffect("weaponSoul", "weaponsoul_" + this._type);
		this._effect || (this._effect = EffectUtils.showCEffect(this, this, i, 80, 195, this._effect)), this._effect.url !=
			i && (this._effect.url = i);
		var n = e.posEquipMasterId(this._type);
		0 == n ? (n = e._currTzObj[this._type], this._effect.view.filters = FilterUtil.FILTER_GRAY) : this._effect.view.filters =
			null;
		var a = App.config.q_equip_masterContainer.getDataBean(n);
		this.name_txt.text = a.q_suit_name;
		var o = StringUtil.JsonParse(GameUtil.getGlobalConfigData(252).q_string_value);
		e.showSurfacetype() == o[this._type] ? this.make_img.visible = !0 : this.make_img.visible = !1;
		var r = this.parent;
		this.red_img.visible = !1, r.dataProvider.length > 1 && (this.red_img.visible = e.showPosRed(this._type))
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(71, this._type)
	}, e
}(ItemRenderer);
__reflect(WeaponSoulItemRender.prototype, "WeaponSoulItemRender");
var WeaponSoulUpPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("WeaponSoulPosUpSkin"), this._windowView = new WindowSecond, this._btnClose =
			this._windowView.close_btn, this._windowView.title_txt.text = "武魂升级", this._windowView.setHeight(660), this.addChild(
				this._windowView), this._windowView.viewContainer.addChild(this._view), this._view.txt_getitem.textFlow =
			HtmlUtil.getHtmlStr("<font color='#00ff00'><u>获取途径</u></font>")
	}, e.prototype.refresh = function() {
		var t = App.config.q_ma_soulContainer.getDataBean(this._id);
		if (t) {
			this._view.name_txt.text = t.q_ma_place_name, this._view.needitem_group.visible = this._view.ball_group.visible =
				this._view.icon_img.visible = this._view.suo_img.visible = this._view.uplv_group.visible = this._view.upJie_group
				.visible = this._view.jh_group.visible = !1;
			var e = StringUtil.JsonParse(t.q_ma_things);
			this._itemId = e[0].id, this._itemNum = e[0].num, this._view.itemicon_img.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(
					e[0].id).q_tiny_icon, EnumImageType.ITEM_80), this._view.itemname_txt.text = GameUtil.getItemConfigData(e[0].id)
				.q_name, this._view.itemnum_txt.textFlow = HtmlUtil.getHtmlStr(this.updateMyMoney(this._itemId, this._itemNum) +
					"/" + this._itemNum);
			var i = new BaseAttributeDataBean;
			if (i.convertAndAdd(t.q_ma_attribute), 0 == t.q_class && 0 == t.q_ma_level) this._view.wear_btn.label = "激 活",
				this._windowView.title_txt.text = "武魂激活", this._view.jh_group.visible = !0, i.convertAndAdd(App.config.q_ma_soulContainer
					.getDataBean(t.q_next_id).q_ma_attribute), this._view.lalField5.text = i.getStrByBaseAttributeBean(i), this._view
				.needitem_group.visible = this._view.suo_img.visible = !0, this._view.needitem_group.x = 76;
			else {
				this._view.ball_group.visible = !0, this._view.icon_img.visible = !0;
				for (var n = void 0, a = void 0, o = 0; 10 > o; o++) n = this._view["line_img" + o], a = this._view["ball_img" +
					o], a && (n.visible = !1, a.filters = FilterUtil.FILTER_GRAY, t.q_ma_level > o && (n.visible = !0, a.filters =
					null));
				if (10 == t.q_ma_level) this._view.wear_btn.label = "突 破", this._windowView.title_txt.text = "武魂突破", this._view.needitem_group
					.visible = this._view.upJie_group.visible = !0, this._view.needitem_group.x = 283, this._view.lalField2.text =
					10 * (t.q_class + 2) + "\n" + i.getStrByBaseAttributeBean1(i), this._view.lalField3.text = "突破等级上限  " + 10 * (t.q_class +
						1), this._view.lalField4.text = i.getStrByBaseAttributeBean(i);
				else {
					this._view.wear_btn.label = "炼 化", this._windowView.title_txt.text = "武魂炼化", this._view.uplv_group.visible = !0,
						this._view.lalField0.text = "等级  " + (t.q_ma_level + 10 * t.q_class) + "\n" + i.getStrByBaseAttributeBean(i);
					var r = new BaseAttributeDataBean;
					r.convertAndAdd(App.config.q_ma_soulContainer.getDataBean(t.q_next_id).q_ma_attribute), this._view.lalField1.text =
						t.q_ma_level + 1 + 10 * t.q_class + "\n" + r.getStrByBaseAttributeBean1(r), this._view.lalJinBi.textFlow =
						HtmlUtil.getHtmlStr(this.updateMyMoney(this._itemId, this._itemNum) + "/" + this._itemNum)
				}
			}
		}
	}, e.prototype.updateMyMoney = function(t, e) {
		void 0 === e && (e = 0);
		var i, n = App.data.bagItemDataCenter.getItemCount(t);
		return i = n >= e ? "<font color='#35ea35'>" + n + "</font>" : "<font color='#F33333'>" + n + "</font>"
	}, e.prototype.onTouch = function(t) {
		if (this._itemId > 0) {
			var e = App.data.bagItemDataCenter.getItemCount(this._itemId);
			e >= this._itemNum ? SkillCommandSender.sendC2S_MaSoulPosUpMessage(App.data.weaponSoulCenter().roleindex, this._id) :
				this.onGetItem()
		}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), this._id = e, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this._view.wear_btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetItem, this,
			this._view.txt_getitem), this._dispatcher.addEventListener(SkillEvent.WEAPONSOULUP, this.onLvUp, this), this.refresh()
	}, e.prototype.onGetItem = function() {
		App.panel.openPanel(19, this._itemId)
	}, e.prototype.onLvUp = function(t) {
		this._id = t, this.refresh()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._view.itemicon_img.dispose(), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 528
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 660
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WeaponSoulUpPanel.prototype, "WeaponSoulUpPanel");
var WeaponSoulView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._attrStrArr = ["攻击:", "物防:", "魔防:", "生命:"], e.euiSkinName = "WeaponSoulPanelSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(485, 434, WeaponSoulItemRender, -22, null, 2), this._vscroller.move(1, 0, this.con_item)
	}, e.prototype.refresh = function() {
		var t = App.data.weaponSoulCenter(),
			e = t.getAllAttr();
		if (e)
			for (var i = 0; 4 > i; i++) e.has(this._attrStrArr[i]) ? this["lalField" + i].text = this._attrStrArr[i] + e.get(
				this._attrStrArr[i]) : this["lalField" + i].text = this._attrStrArr[i] + "0";
		else
			for (var i = 0; 4 > i; i++) this["lalField" + i].text = this._attrStrArr[i] + "0";
		for (var n = [], i = 1; 7 > i; i++) n.push(t.getPosMinId(i));
		this._vscroller.dataProvider = n, this.fightPower.setValue(t.allFightNumStr())
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), App.data.weaponSoulCenter().roleindex = this.roleList.getRoleData().roleIndex, this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onpreBtnClick, this, this.preBtn), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onnextBtnClick, this, this.nextBtn), this._dispatcher.addEventListener(
				RoleListView.ROLE_SELECT2, this.roleSelectedHandler, this), this._dispatcher.addEventListener(SkillEvent.WEAPONSOULUP,
				this.onLvUp, this), this._dispatcher.addEventListener(SkillEvent.WEAPONSOULUSE, this.onUse, this), this.refresh()
	}, e.prototype.onUse = function() {
		for (var t = [], e = App.data.weaponSoulCenter(), i = 1; 7 > i; i++) t.push(e.getPosMinId(i));
		this._vscroller.dataProvider = t
	}, e.prototype.onpreBtnClick = function() {
		this._vscroller.viewport && (this._vscroller.viewport.scrollH = 0)
	}, e.prototype.onnextBtnClick = function() {
		this._vscroller.viewport && (this._vscroller.viewport.scrollH = this._vscroller.viewport.contentWidth - this._vscroller
			.width)
	}, e.prototype.onLvUp = function(t) {
		this.refresh()
	}, e.prototype.roleSelectedHandler = function(t) {
		var e = t;
		App.data.weaponSoulCenter().roleindex = e.roleIndex, this.refresh()
	}, e
}(ViewBase);
__reflect(WeaponSoulView.prototype, "WeaponSoulView");
var SystemSetPanel = function(t) {
	function e() {
		var i = t.call(this) || this;
		return i.ShieldAll = function() {
			i._view.check_shieldAll.selected;
			i.changeAll(), i.ShieldOtherPlayer(), i.ShieldSkillEffect(), i.ShieldDress()
		}, i.HitPosChange = function(t, e, n) {
			var a = i.globalToLocal(t.stageX, t.stageY);
			e && n && (e.x = a.x, n.width = e.x - 11)
		}, i.changeBGM = function(t) {
			i.offsetBGM = t.stageX - i._view.move_bgm.x, i._view.move_bgm_touch.addEventListener(egret.TouchEvent.TOUCH_MOVE,
				i.MoveBGM, i), i.ControScroll(eui.ScrollPolicy.OFF), i.HitPosChange(t, i._view.move_bgm, i._view.bar_bgm)
		}, i.ReMoveBgmListener = function() {
			i._view.move_bgm_touch.removeEventListener(egret.TouchEvent.TOUCH_MOVE, i.MoveBGM, i), i.ControScroll(eui.ScrollPolicy
				.ON)
		}, i.MoveBGM = function(t) {
			var e = t.stageX - i.offsetBGM;
			e > 491 && (e = 491), 20 > e && (e = 20);
			var n = i._view.bar_bgm.width;
			i._view.bar_bgm.width = n - (i._view.move_bgm.x - e), i._view.move_bgm.x = e;
			var a = e / 491;
			App.sound.bgmVolume = Math.floor(100 * a) / 100
		}, i.changeSound = function(t) {
			i.offsetSound = t.stageX - i._view.move_sound.x, i._view.move_sound_touch.addEventListener(egret.TouchEvent.TOUCH_MOVE,
				i.MoveSound, i), i.ControScroll(eui.ScrollPolicy.OFF), i.HitPosChange(t, i._view.move_sound, i._view.bar_sound)
		}, i.MoveSound = function(t) {
			var e = t.stageX - i.offsetSound;
			e > 491 && (e = 491), 20 > e && (e = 20);
			var n = i._view.bar_sound.width;
			i._view.bar_sound.width = n - (i._view.move_sound.x - e), i._view.move_sound.x = e;
			var a = e / 491;
			App.sound.effectVolume = Math.floor(100 * a) / 100
		}, i.ReMoveSoundListener = function() {
			i._view.move_sound_touch.removeEventListener(egret.TouchEvent.TOUCH_MOVE, i.MoveSound, i), i.ControScroll(eui.ScrollPolicy
				.ON)
		}, i.ControScroll = function(t) {
			var e = i._view.getChildAt(0);
			egret.is(e, "eui.Scroller") && (e.scrollPolicyV = t)
		}, i.changeAll = function() {
			i._view.check_shieldOtherPlayer.selected = i._view.check_shieldSkill.selected = i._view.check_shieldDress.selected =
				i._view.check_shieldAll.selected, i.updateHideData()
		}, i.changeAny = function() {
			var t = (i._view.check_shieldAll.selected, i._view.check_shieldOtherPlayer.selected),
				e = i._view.check_shieldSkill.selected,
				n = i._view.check_shieldDress.selected;
			i._view.check_shieldAll.selected = t && e && n, i.updateHideData()
		}, i.ShieldOtherPlayer = function() {
			i.changeAny();
			var t = App.global.mapModule.mapAvatarModel;
			t.hideData.hide_allPlayer = t.hideData.checkOther, t.HideAvatar(t.hideData)
		}, i.ShieldSkillEffect = function() {
			i.changeAny();
			var t = App.global.mapModule.mapAvatarModel;
			t.hideData.hide_skillEffect = t.hideData.checkSkill
		}, i.ShieldDress = function() {
			i.changeAny(), e.updateShow()
		}, i
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowSecond, this.addChild(this._window), this._view = UIMaker.createViewBase(
				"SystemSetPanelSkin"), this._window.viewContainer.addChild(this._view), this._window.setHeight(600), this._window
			.setTitle("设置"), this._btnClose = this._window.close_btn, this._view.btn.label = App.platform.agent ==
			EnumPlatform.GAME_37WAN ? "切换账号" : "退出账号", this._view.auto.visible = !1, this._window.groupClick.visible = !1
	}, e.prototype.show = function(e) {
		this._autoData = App.global.characterData.autoSettingData, 0 == this._autoData.init && App.data.autoRobotCenter.saveAutoData(),
			t.prototype.show.call(this, e), this.addEvent(), this.onRefresh(), this._view.btn.visible = Config.isNeedExitGameBtn,
			this.viewSetting(), App.platform.agent == EnumPlatform.GAME_HUDIEHUDONG || App.platform.agent == EnumPlatform.GAME_AIWEIYOU ?
			(this._view.check_bgm.enabled = !1, this._view.yinxiao.enabled = !1) : (this._view.check_bgm.enabled = !0, this._view
				.yinxiao.enabled = !0)
	}, e.prototype.viewSetting = function() {
		this._view.pingbi.selected = 0 == App.data.autoRobotCenter.pingbiBol, this._view.liuchang.selected = 1 == App.data.autoRobotCenter
			.pingbiBol;
		var t = 491 * App.sound.bgmVolume;
		20 > t && (t = 20), this._view.move_bgm.x = Math.floor(100 * t) / 100, this._view.bar_bgm.width = this._view.move_bgm
			.x - 11;
		var e = 491 * App.sound.effectVolume;
		20 > e && (e = 20), this._view.move_sound.x = Math.floor(100 * e) / 100, this._view.bar_sound.width = this._view.move_sound
			.x - 11
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectyinxiao, this, this._view.yinxiao), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectBGM, this, this._view.check_bgm), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_BEGIN, this.changeBGM, this, this._view.move_bgm_touch), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_END, this.ReMoveBgmListener, this, this._view.move_bgm_touch), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_RELEASE_OUTSIDE, this.ReMoveBgmListener, this, this._view.move_bgm_touch), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.changeSound, this, this._view.move_sound_touch), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_END, this.ReMoveSoundListener, this, this._view.move_sound_touch), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_RELEASE_OUTSIDE, this.ReMoveSoundListener, this, this._view.move_sound_touch),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectzhenpin, this, this._view.zhenpin), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selectauto, this, this._view.auto), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.selectautoClick, this, this._view.autoClick), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.pingbiClick, this, this._view.pingbi), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.liuchangClick, this, this._view.liuchang), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.btnClick, this, this._view.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ShieldOtherPlayer,
				this, this._view.check_shieldOtherPlayer), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ShieldSkillEffect,
				this, this._view.check_shieldSkill), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ShieldDress,
				this, this._view.check_shieldDress), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.ShieldAll,
				this, this._view.check_shieldAll)
	}, e.prototype.onRefresh = function() {
		0 == this._autoData.isAutoClickHeji ? (this._view.auto.selected = !1, this._view.autoClick.selected = !1) : 1 ==
			this._autoData.isAutoClickHeji ? (this._view.auto.selected = !1, this._view.autoClick.selected = !0) : 2 == this._autoData
			.isAutoClickHeji && (this._view.auto.selected = !0, this._view.autoClick.selected = !1), this._view.yinxiao.selected =
			this._autoData.isCloseSound, this._view.check_bgm.selected = this._autoData.isCloseBgm, this._view.zhenpin.selected =
			this._autoData.isZhenPin, this._view.check_shieldOtherPlayer.selected = App.global.mapModule.mapAvatarModel.hideData
			.checkOther, this._view.check_shieldSkill.selected = App.global.mapModule.mapAvatarModel.hideData.checkSkill, this
			._view.check_shieldDress.selected = App.global.mapModule.mapAvatarModel.hideData.checkDress, this._view.check_shieldAll
			.selected = App.global.mapModule.mapAvatarModel.hideData.checkAll, 0 == this._view.autoClick.selected && App.data.taskCenter
			.getThreadTaskShowGuide(17) && Guide.getGuide().show("点击勾选", Guide.LEFT, this._view.liuchang.x + 490 - 238, this._view
				.liuchang.y - 62 + 140, this)
	}, e.prototype.updateHideData = function() {
		var t = App.global.mapModule.mapAvatarModel;
		t.hideData.checkAll = this._view.check_shieldAll.selected, t.hideData.checkOther = this._view.check_shieldOtherPlayer
			.selected, t.hideData.checkSkill = this._view.check_shieldSkill.selected, t.hideData.checkDress = this._view.check_shieldDress
			.selected, App.data.autoRobotCenter.saveAutoData()
	}, e.updateShow = function() {
		var t = App.global.mapModule.mapAvatarModel,
			e = App.global.roles.roleList,
			i = ["4_0", "5_0", "1_1"];
		if (t.hideData.checkDress)
			for (var n = 0; n < e.length; n++) App.global.roles.getRoleInfoByIndex(e[n].roleIndex).surfaceManager.hideSurface(
				i, 0);
		else
			for (var n = 0; n < e.length; n++) App.global.roles.getRoleInfoByIndex(e[n].roleIndex).surfaceManager.hideSurface(
				i, -1);
		t.hideData.checkDress ? App.global.mapModule.mapAvatarModel.updateShowOrHideDress(i, 0) : App.global.mapModule.mapAvatarModel
			.updateShowOrHideDress(i, -1), App.dispatcher.dispatchEvent(SurfaceEvent.SURFACEEVENT_HIDESURFACE)
	}, e.prototype.liuchangClick = function(t) {
		this._view.liuchang.selected ? (App.data.autoRobotCenter.pingbiBol = 1, App.data.taskCenter.getThreadTaskShowGuide(
			17) && Guide.getGuide().hide()) : App.data.autoRobotCenter.pingbiBol = 0, this.viewSetting(), App.dispatcher.dispatchEvent(
			EventType.PINGBIAll)
	}, e.prototype.pingbiClick = function(t) {
		this._view.pingbi.selected ? App.data.autoRobotCenter.pingbiBol = 0 : App.data.autoRobotCenter.pingbiBol = 1, this.viewSetting(),
			App.dispatcher.dispatchEvent(EventType.PINGBIAll)
	}, e.prototype.btnClick = function(t) {
		App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_LOG_UP, 5)
	}, e.prototype.selectyinxiao = function(t) {
		this._autoData.isCloseSound = this._view.yinxiao.selected, App.sound.isCloseSound = this._autoData.isCloseSound
	}, e.prototype.selectBGM = function(t) {
		this._autoData.isCloseBgm = this._view.check_bgm.selected, App.sound.isCloseBgm = this._autoData.isCloseBgm
	}, e.prototype.selectzhenpin = function(t) {
		this._autoData.isZhenPin = this._view.zhenpin.selected
	}, e.prototype.selectautoClick = function(t) {
		App.data.moonCardCenter.isCardVip() ? 1 == this._view.autoClick.selected ? this.hejiClick(1) : this.hejiClick(0) :
			(this.hejiClick(0), this._view.autoClick.selected = !1, Alert.show("激活月卡后可自动释放合击", "提示", "确定|取消", this.onAlert,
				this)), Guide.getGuide().hide()
	}, e.prototype.hejiClick = function(t) {
		void 0 === t && (t = 0), 0 == t ? this._autoData.isAutoHeji = !1 : (1 == t ? this._view.auto.selected = !1 : this._view
			.autoClick.selected = !1, this._autoData.isAutoHeji = !0), this._autoData.isAutoClickHeji = t
	}, e.prototype.selectauto = function(t) {
		App.data.moonCardCenter.isCardVip() && 1 == this._view.auto.selected ? this.hejiClick(2) : this._view.auto.selected = !
			1, App.data.moonCardCenter.isCardVip() || Alert.show("激活月卡后可自动释放超级合击", "提示", "确定|取消", this.onAlert, this)
	}, e.prototype.onAlert = function() {
		App.global.funcOpen.isFunctionOpen(140) && App.panel.openPanel(60, {
			selectedIndex: 2
		})
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.data.taskCenter.getThreadTaskShowGuide(17) && (App.global.characterData.autoSettingData
				.isAutoClickHeji = 1), App.data.taskCenter.getThreadTaskShowGuide(17) && Guide.getGuide().hide(), this._dispatcher
			.removeAllListeners(), App.data.autoRobotCenter.saveAutoData(), App.dispatcher.dispatchEvent(EventType.SYSTENSET_RESLUT)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 600
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this.offsetBGM = null, this.offsetSound = null, this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(SystemSetPanel.prototype, "SystemSetPanel");
var HotBloodBuyPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityid = 88001, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TanbaoBuyPanelSkin"), this.addChild(this._view), this._gridLayer = new GridContainer(
			EnumGridStyle.GRID_STYLE_NORMAL, 5, 22, 46), this._gridLayer.getController().layerGapY += 15, this._gridLayer.initLayers(
			[GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]
		), this._gridLayer.useScroller(500, 530), this._gridLayer.moveTo(25, 75, this._view);
		var t = (EnumMoney.getName(EnumMoney.YUAN_BAO), App.config.q_globalContainer.getDataBean(297).q_string_value),
			e = this.cutStr(t, "{");
		e = this.cutStr(e, "}"), e = e.replace(/"(\w+)":/g, "$1:");
		var i = e.split(",");
		this.yuanbaoArr = [], this.countArr = [];
		for (var n = 0; n < i.length; n++) {
			var a = i[n].split(":");
			this.yuanbaoArr.push(a[1]), this.countArr.push(a[0])
		}
		this._view.icon1.source = "tanbao_xunchong_png", this.setWidthAndHeight(528, 683)
	}, e.prototype.cutStr = function(t, e) {
		var i, n = t.indexOf(e);
		if (-1 != n) {
			i = "";
			for (var a = 0; n > a; a++) i += t.charAt(a);
			for (var o = n + e.length; o < t.length; o++) i += t.charAt(o)
		}
		return i
	}, e.prototype.showItemRender = function(t, e) {
		var i = new ItemData;
		i.itemId = e.itemId, i.count = e.count, t.setData(i), t.isShowDesc = !1
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.refreshView(), this.addEvent()
	}, e.prototype.setData = function(t) {
		this.refreshView()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(TanbaoItemCenter.ADD_MYINFO, this.refreshView, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.buyHandler, this, this._view.get_btn)
	}, e.prototype.refreshView = function() {
		var t = App.config.q_globalContainer.getDataBean(296).q_int_value;
		this._gridLayer.dataProvider = App.data.tanbaoCenter.hotbloodInfoList, App.data.tanbaoCenter.hotbloodInfoList && (
			App.data.tanbaoCenter.hotbloodInfoList.length > 2 ? (this._type = this.countArr[1], this._view.countTF0.text = "" +
				this.yuanbaoArr[1], App.data.bagItemDataCenter.getItemCount(t) >= this.countArr[1] ? this._view.countTF1.textFlow =
				HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(t) + "</font>/" + this.countArr[
					1] + ")") : this._view.countTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter
					.getItemCount(t) + "</font>/" + this.countArr[1] + ")")) : (this._type = this.countArr[0], this._view.countTF0.text =
				"" + this.yuanbaoArr[0], App.data.bagItemDataCenter.getItemCount(t) >= this.countArr[0] ? this._view.countTF1.textFlow =
				HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(t) + "</font>/" + this.countArr[
					0] + ")") : this._view.countTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter
					.getItemCount(t) + "</font>/" + this.countArr[0] + ")")), this._view.get_btn.label = "热血" + this._type + "次",
			this._gridLayer.dataProvider = App.data.tanbaoCenter.hotbloodInfoList)
	}, e.prototype.buyHandler = function(t) {
		ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, Number(this._type))
	}, e.prototype.dispose = function() {
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = void 0), this.yuanbaoArr = null, this.countArr =
			null, this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(HotBloodBuyPanel.prototype, "HotBloodBuyPanel");
var HotBloodTanbaoPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._tempBoo = !1, e.activityid = 88001, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TanBaoPanelSkin"), this.addChild(this._view), this._btnClose = this._view.btn_close,
			this._moneyBar = new MoneyBar, this._moneyBar.moveTo(181, 60, this), this._moneyBar.showBg(!1);
		var t = (EnumMoney.getName(EnumMoney.YUAN_BAO), App.config.q_globalContainer.getDataBean(297).q_string_value),
			e = this.cutStr(t, "{");
		e = this.cutStr(e, "}"), e = e.replace(/"(\w+)":/g, "$1:");
		var i = e.split(",");
		this.yuanbaoArr = [], this.countArr = [];
		for (var n = 0; n < i.length; n++) {
			var a = i[n].split(":");
			this.yuanbaoArr.push(a[1]), this.countArr.push(a[0])
		}
		var o = "",
			r = GameUtil.getItemConfigData(App.config.q_globalContainer.getDataBean(296).q_int_value);
		null != r && (o = "（" + r.q_name.split("_")[0] + "×1）"), this._view.oneTF.text = this.yuanbaoArr[0] + "", this._view
			.tenTF.text = this.yuanbaoArr[1] + "", this.onLingpaiChange(), this._gridList = new Array;
		for (var s, h = new egret.Rectangle(0, 0, 69, 69), l = new egret.Rectangle(0, 0, 52, 52), p = [
				[282, 108],
				[385, 148],
				[417, 244],
				[385, 344],
				[282, 382],
				[179, 344],
				[143, 244],
				[179, 148]
			], c = 0; 8 > c; c++) s = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(s), s.x =
			p[c][0], s.y = p[c][1], this._gridList.push(s), s.isShowDesc = !1;
		h.width = 107, h.height = 107, l.width = 90, l.height = 90, this._longZhuGrid = GridUtil.getGrid(ItemGrid,
				EnumGridStyle.GRID_STYLE_NORMAL), this._longZhuGrid.x = 3, this._longZhuGrid.y = 1, this._longZhuGrid.isShowDesc = !
			1, this._longZhuGrid.setBgVisible(!1), this._longZhuGrid.setIconSize(h, l), this._view.effectGroup.addChild(this._longZhuGrid),
			this._gridList.push(this._longZhuGrid), this._msgContent = new VScrollPanel(621, 138, TanbaoItem, 1), this._view.scroller1
			.addChild(this._msgContent), this._view.desc2.visible = this._view.red_vip.visible = this._view.storeBtn.visible = !
			1, this._view.oneBtn.label = "破天一次", this._view.tenBtn.label = "破天十次", this._view.desc1.text = "破天记录:", this._view
			.icon1.source = "tanbao_xunchong_png", this._view.icon2.source = "tanbao_xunchong_png", this._view.titleimg.source =
			"tanbao_icon_237_png"
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._moneyBar.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.oneBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.tenBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.storeBtn), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_INFO, this.updateInfo, this), this._dispatcher
			.addEventListener(TanbaoItemCenter.LOAD_SHOW, this.updateShow, this), this._dispatcher.addEventListener(
				TanbaoItemCenter.ADD_MYINFO, this.updateAllInfo, this), this._dispatcher.addEventListener(TanbaoItemCenter.ADD_TOTALINFO,
				this.updateAllInfo, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_UPDATE, this.onAdd, this), this._dispatcher
			.addEventListener(ItemEvent.UPDATE, this.onLingpaiChange, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_REMOVE,
				this.adjustDepotBtnEffect, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_TIDY, this.adjustDepotBtnEffect,
				this), this._dispatcher.addEventListener(ItemEvent.ADD, this.adjustBtnEffect, this), this._dispatcher.addEventListener(
				ItemEvent.REMOVE, this.adjustBtnEffect, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.adjustBtnEffect,
				this);
		this._gridList.length;
		this.onLingpaiChange(), this.updateInfo(), this.updateShow(), this.adjustDepotBtnEffect(), TanbaoCommandSender.sendC2S_TreasureHuntInfoMessage(
			3)
	}, e.prototype.checkJiaoBiao = function() {}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar.hide(), this._tempBoo = !1
	}, e.prototype.cutStr = function(t, e) {
		var i, n = t.indexOf(e);
		if (-1 != n) {
			i = "";
			for (var a = 0; n > a; a++) i += t.charAt(a);
			for (var o = n + e.length; o < t.length; o++) i += t.charAt(o)
		}
		return i
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.storeBtn:
				PanelOpenManager.openPanel(11);
				break;
			case this._view.oneBtn:
				this._tempBoo = !0;
				var e = this.yuanbaoArr[0];
				App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= e ? ActivityCommandSender.sendC2S_JoinActivityMessage(
					this.activityid) : PanelOpenManager.openChargePanel(0, !0);
				break;
			case this._view.tenBtn:
				this._tempBoo = !0;
				var e = this.yuanbaoArr[1];
				App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= e ? ActivityCommandSender.sendC2S_JoinActivityMessage(
					this.activityid, 10) : PanelOpenManager.openChargePanel(0, !0)
		}
	}, e.prototype.checkItemAndBuy = function(t) {
		var e, i = App.config.q_globalContainer.getDataBean(296).q_int_value,
			n = GameUtil.getItemConfigData(i),
			a = (App.data.mallCenter.getItemShopBean(n.q_id, EnumMoney.YUAN_BAO), App.data.bagItemDataCenter.getItemCount(i)),
			o = this.countArr[t],
			r = a - o,
			s = EnumMoney.getName(EnumMoney.YUAN_BAO),
			h = 0;
		return 0 > r && Alert.instance.showBoo ? (h = this.yuanbaoArr[t], e = "是否消耗" + h + s + "购买物品" + n.q_name.split("_")[
			0] + "*" + this.countArr[t], void Alert.show(e, "提示", Alert.DEFAULT_BTN_LABEL, this.alertCallBack, this, t, !1,
			!0, !0, !0, !0)) : (this._tempBoo = !0, void TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(Number(this.countArr[
			t])))
	}, e.prototype.alertCallBack = function(t) {
		this._tempBoo = !0, TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(Number(this.countArr[t.data]))
	}, e.prototype.adjustBtnEffect = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = 0), this.onLingpaiChange(t)
	}, e.prototype.updateInfo = function() {
		if (this.updateAllInfo(), this._tempBoo)
			if (App.panel.isShowing(2010)) {
				var t = App.panel.getPanel(2010);
				t.setData(null)
			} else PanelOpenManager.openPanel(2010)
	}, e.prototype.updateAllInfo = function() {
		var t = App.data.tanbaoCenter.hotBloodInfoList;
		if (null != t) {
			for (var e = void 0, i = t.length, n = [], a = 0; i > a; a++) e = GameUtil.getItemConfigData(t[a].itemModelId),
				null != e && n.push(t[a]);
			this._msgContent.dataProvider = n, this.scrollBottom()
		}
	}, e.prototype.scrollBottom = function() {
		this._msgContent.validateDisplayList(), this._msgContent.validateNow(), this._msgContent.viewport.contentHeight >
			138 && this._msgContent.viewport && (this._msgContent.viewport.scrollV = this._msgContent.viewport.contentHeight -
				138)
	}, e.prototype.updateShow = function() {
		var t = App.data.tanbaoCenter.hotBloodshowItemList;
		if (null != t) {
			var e = t.length;
			e = Math.min(e, 9);
			for (var i = 0; e > i; i++) this._gridList[i].setData(t[i])
		}
	}, e.prototype.onLingpaiChange = function(t) {
		void 0 === t && (t = null);
		var e = App.config.q_globalContainer.getDataBean(296).q_int_value,
			i = GameUtil.getItemConfigData(e);
		null != i && (App.data.bagItemDataCenter.getItemCount(e) >= 1 ? this._view.costTF1.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(e) + "</font>/" + this.countArr[0] + ")") :
			this._view.costTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter.getItemCount(
				e) + "</font>/" + this.countArr[0] + ")"), App.data.bagItemDataCenter.getItemCount(e) >= 10 ? this._view.costTF0
			.textFlow = HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(e) +
				"</font>/" + this.countArr[1] + ")") : this._view.costTF0.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#f33333'>" + App.data.bagItemDataCenter.getItemCount(e) + "</font>/" + this.countArr[1] + ")"))
	}, e.prototype.adjustDepotBtnEffect = function() {
		this.checkJiaoBiao()
	}, e.prototype.createEffect = function(t, e, i) {
		var n = new CEffect;
		return n.url = ResPathUtil.getMenuEffect("xunbao", i), n.x = t, n.y = e, n
	}, e.prototype.onAdd = function(t) {
		this.adjustDepotBtnEffect(), this.checkJiaoBiao()
	}, e.prototype.dispose = function() {
		if (this._gridList) {
			for (var e = 0; e < this._gridList.length; e++) this._gridList[e].dispose();
			this._gridList = null
		}
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._msgContent && (this._msgContent.parent &&
				this._msgContent.parent.removeChild(this._msgContent), this._msgContent.dispose(), this._msgContent = null), this
			._longZhuGrid && (this._longZhuGrid.dispose(), this._longZhuGrid = null), this._view && (this._view.dispose(),
				this._view = null), this.yuanbaoArr = null, this.countArr = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(HotBloodTanbaoPanel.prototype, "HotBloodTanbaoPanel");
var HotBloodTanbaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityid = 88001, e.euiSkinName = "XunBaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("xunbao_b01", "xunbao", ".jpg"), 0, 60), this.addChildAt(
				this._bg, 0), this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("tanbao", "title"),
				320, 77), this._bestItem = new TanBaoBestItem, UIMaker.moveTo(this._bestItem, 320, 252, this), this._bestView =
			new TanBaoBestView, UIMaker.moveTo(this._bestView, 0, 110, this), this._log = new TanBaoLogView, UIMaker.moveTo(
				this._log, 0, 0, this.groupLog), this.addChild(this.imgBest), this.btn_depot.visible = this.red_depot.visible =
			this.imgBest.visible = !1, this.btn_one.label = "热血一次", this.btn_ten.label = "热血十次", this.ten_img.source = this.one_img
			.source = "tanbao_xunchong_png"
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_SHOW, this.onBest, this),
			this._dispatcher.addEventListener(ItemEvent.ADD, this.onChangeCost, this), this._dispatcher.addEventListener(
				ItemEvent.REMOVE, this.onChangeCost, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onChangeCost,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOne, this, this.btn_one), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTen, this, this.btn_ten), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onOpenDepot, this, this.btn_depot), this._log.show(3), this.onChangeCost()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._log.hide(), this._bestItem.hide(), this._bestView.hide()
	}, e.prototype.onBest = function() {
		var t = App.data.tanbaoCenter.hotBloodshowItemList;
		if (t) {
			var e = t.concat();
			e.shift(), this._bestItem.show(t[0].itemId), this._bestView.show(e)
		}
	}, e.prototype.onDepot = function() {
		this.red_depot.visible = !App.data.tanbaoCenter.isEmpty()
	}, e.prototype.onChangeCost = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = App.data.bagItemDataCenter.getItemCount(EnumItemId.HOTBLOODTANBAO);
		this.one_txt.text = App.data.tanbaoCenter.getCosthotblood(1) + "", this.ten_txt.text = App.data.tanbaoCenter.getCosthotblood(
			10) + "", this.all_one_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i + "", i >= 1 ? 3533365 :
			15938355) + "/1)"), this.all_ten_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i + "", i >= 10 ?
			3533365 : 15938355) + "/10)")
	}, e.prototype.onTouchOne = function(t) {
		this.go(1)
	}, e.prototype.onTouchTen = function(t) {
		this.go(10)
	}, e.prototype.go = function(t) {
		var e = App.data.bagItemDataCenter.getItemCount(EnumItemId.HOTBLOODTANBAO);
		if (t > e && Alert.instance.showBoo) {
			var i = ItemUtil.getItemName(EnumItemId.HOTBLOODTANBAO);
			Alert.show("是否消耗" + App.data.tanbaoCenter.getCosthotblood(t) + "元宝购买物品" + i + "*" + t, "提示", Alert.DEFAULT_BTN_LABEL,
				this.alertCallBack, this, t, !1, !0, !0, !0, !0)
		} else ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, t)
	}, e.prototype.alertCallBack = function(t) {
		var e = t.data;
		App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= App.data.tanbaoCenter.getCosthotblood(e) ?
			ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, e) : PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.onOpenDepot = function(t) {
		PanelOpenManager.openPanel(11)
	}, e.prototype.dispose = function() {
		this._bestView && (this._bestView.dispose(), this._bestView = null), this._bestItem && (this._bestItem.dispose(),
			this._bestItem = null), this._log && (this._log.dispose(), this._log = null), this._effect && (this._effect.dispose(),
			this._effect = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(HotBloodTanbaoView.prototype, "HotBloodTanbaoView");
var LuckTanbaoPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._tempBoo = !1, e.activityid = 81001, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TanBaoPanelSkin"), this.addChild(this._view), this._btnClose = this._view.btn_close,
			this._moneyBar = new MoneyBar, this._moneyBar.moveTo(181, 60, this), this._moneyBar.showBg(!1);
		var t = (EnumMoney.getName(EnumMoney.YUAN_BAO), App.config.q_globalContainer.getDataBean(294).q_string_value),
			e = this.cutStr(t, "{");
		e = this.cutStr(e, "}"), e = e.replace(/"(\w+)":/g, "$1:");
		var i = e.split(",");
		this.yuanbaoArr = [], this.countArr = [];
		for (var n = 0; n < i.length; n++) {
			var a = i[n].split(":");
			this.yuanbaoArr.push(a[1]), this.countArr.push(a[0])
		}
		var o = "",
			r = GameUtil.getItemConfigData(App.config.q_globalContainer.getDataBean(293).q_int_value);
		null != r && (o = "（" + r.q_name.split("_")[0] + "×1）"), this._view.oneTF.text = this.yuanbaoArr[0] + "", this._view
			.tenTF.text = this.yuanbaoArr[1] + "", this.onLingpaiChange(), this._gridList = new Array;
		for (var s, h = new egret.Rectangle(0, 0, 69, 69), l = new egret.Rectangle(0, 0, 52, 52), p = [
				[282, 108],
				[385, 148],
				[417, 244],
				[385, 344],
				[282, 382],
				[179, 344],
				[143, 244],
				[179, 148]
			], c = 0; 8 > c; c++) s = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._view.addChild(s), s.x =
			p[c][0], s.y = p[c][1], this._gridList.push(s), s.isShowDesc = !1;
		h.width = 107, h.height = 107, l.width = 90, l.height = 90, this._longZhuGrid = GridUtil.getGrid(ItemGrid,
				EnumGridStyle.GRID_STYLE_NORMAL), this._longZhuGrid.x = 3, this._longZhuGrid.y = 1, this._longZhuGrid.isShowDesc = !
			1, this._longZhuGrid.setBgVisible(!1), this._longZhuGrid.setIconSize(h, l), this._view.effectGroup.addChild(this._longZhuGrid),
			this._gridList.push(this._longZhuGrid), this._msgContent = new VScrollPanel(621, 138, TanbaoItem, 1), this._view.scroller1
			.addChild(this._msgContent), this._view.desc2.visible = this._view.red_vip.visible = this._view.storeBtn.visible = !
			1, this._view.oneBtn.label = "寻宠一次", this._view.tenBtn.label = "寻宠十次", this._view.desc1.text = "寻宠记录:", this._view
			.icon1.source = "tanbao_xunchong_png", this._view.icon2.source = "tanbao_xunchong_png", this._view.titleimg.source =
			"tanbao_icon_237_png"
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._moneyBar.show(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this._view.oneBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.tenBtn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view
				.storeBtn), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_INFO, this.updateInfo, this), this._dispatcher
			.addEventListener(TanbaoItemCenter.LOAD_SHOW, this.updateShow, this), this._dispatcher.addEventListener(
				TanbaoItemCenter.ADD_MYINFO, this.updateAllInfo, this), this._dispatcher.addEventListener(TanbaoItemCenter.ADD_TOTALINFO,
				this.updateAllInfo, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_UPDATE, this.onAdd, this), this._dispatcher
			.addEventListener(ItemEvent.UPDATE, this.onLingpaiChange, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_REMOVE,
				this.adjustDepotBtnEffect, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_TIDY, this.adjustDepotBtnEffect,
				this), this._dispatcher.addEventListener(ItemEvent.ADD, this.adjustBtnEffect, this), this._dispatcher.addEventListener(
				ItemEvent.REMOVE, this.adjustBtnEffect, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.adjustBtnEffect,
				this);
		this._gridList.length;
		this.onLingpaiChange(), this.updateInfo(), this.updateShow(), this.adjustDepotBtnEffect(), TanbaoCommandSender.sendC2S_TreasureHuntInfoMessage(
			2)
	}, e.prototype.checkJiaoBiao = function() {}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._moneyBar.hide(), this._tempBoo = !1
	}, e.prototype.cutStr = function(t, e) {
		var i, n = t.indexOf(e);
		if (-1 != n) {
			i = "";
			for (var a = 0; n > a; a++) i += t.charAt(a);
			for (var o = n + e.length; o < t.length; o++) i += t.charAt(o)
		}
		return i
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this._view.storeBtn:
				PanelOpenManager.openPanel(11);
				break;
			case this._view.oneBtn:
				this._tempBoo = !0;
				var e = this.yuanbaoArr[0];
				App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= e ? ActivityCommandSender.sendC2S_JoinActivityMessage(
					this.activityid) : PanelOpenManager.openChargePanel(0, !0);
				break;
			case this._view.tenBtn:
				this._tempBoo = !0;
				var e = this.yuanbaoArr[1];
				App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= e ? ActivityCommandSender.sendC2S_JoinActivityMessage(
					this.activityid, 10) : PanelOpenManager.openChargePanel(0, !0)
		}
	}, e.prototype.checkItemAndBuy = function(t) {
		var e, i = App.config.q_globalContainer.getDataBean(293).q_int_value,
			n = GameUtil.getItemConfigData(i),
			a = (App.data.mallCenter.getItemShopBean(n.q_id, EnumMoney.YUAN_BAO), App.data.bagItemDataCenter.getItemCount(i)),
			o = this.countArr[t],
			r = a - o,
			s = EnumMoney.getName(EnumMoney.YUAN_BAO),
			h = 0;
		return 0 > r && Alert.instance.showBoo ? (h = this.yuanbaoArr[t], e = "是否消耗" + h + s + "购买物品" + n.q_name.split("_")[
			0] + "*" + this.countArr[t], void Alert.show(e, "提示", Alert.DEFAULT_BTN_LABEL, this.alertCallBack, this, t, !1,
			!0, !0, !0, !0)) : (this._tempBoo = !0, void TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(Number(this.countArr[
			t])))
	}, e.prototype.alertCallBack = function(t) {
		this._tempBoo = !0, TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(Number(this.countArr[t.data]))
	}, e.prototype.adjustBtnEffect = function(t, e) {
		void 0 === t && (t = null), void 0 === e && (e = 0), this.onLingpaiChange(t)
	}, e.prototype.updateInfo = function() {
		if (this.updateAllInfo(), this._tempBoo)
			if (App.panel.isShowing(2006)) {
				var t = App.panel.getPanel(2006);
				t.setData(null)
			} else PanelOpenManager.openPanel(2006)
	}, e.prototype.updateAllInfo = function() {
		var t = App.data.tanbaoCenter.warpetallInfoList;
		if (null != t) {
			for (var e = void 0, i = t.length, n = [], a = 0; i > a; a++) e = GameUtil.getItemConfigData(t[a].itemModelId),
				null != e && n.push(t[a]);
			this._msgContent.dataProvider = n, this.scrollBottom()
		}
	}, e.prototype.scrollBottom = function() {
		this._msgContent.validateDisplayList(), this._msgContent.validateNow(), this._msgContent.viewport.contentHeight >
			138 && this._msgContent.viewport && (this._msgContent.viewport.scrollV = this._msgContent.viewport.contentHeight -
				138)
	}, e.prototype.updateShow = function() {
		var t = App.data.tanbaoCenter.warpetshowItemList;
		if (null != t) {
			var e = t.length;
			e = Math.min(e, 9);
			for (var i = 0; e > i; i++) this._gridList[i].setData(t[i])
		}
	}, e.prototype.onLingpaiChange = function(t) {
		void 0 === t && (t = null);
		var e = App.config.q_globalContainer.getDataBean(293).q_int_value,
			i = GameUtil.getItemConfigData(e);
		null != i && (App.data.bagItemDataCenter.getItemCount(e) >= 1 ? this._view.costTF1.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(e) + "</font>/" + this.countArr[0] + ")") :
			this._view.costTF1.textFlow = HtmlUtil.getHtmlStr("<font color='#f33333'>" + App.data.bagItemDataCenter.getItemCount(
				e) + "</font>/" + this.countArr[0] + ")"), App.data.bagItemDataCenter.getItemCount(e) >= 10 ? this._view.costTF0
			.textFlow = HtmlUtil.getHtmlStr("<font color='#07e130'>" + App.data.bagItemDataCenter.getItemCount(e) +
				"</font>/" + this.countArr[1] + ")") : this._view.costTF0.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#f33333'>" + App.data.bagItemDataCenter.getItemCount(e) + "</font>/" + this.countArr[1] + ")"))
	}, e.prototype.adjustDepotBtnEffect = function() {
		this.checkJiaoBiao()
	}, e.prototype.createEffect = function(t, e, i) {
		var n = new CEffect;
		return n.url = ResPathUtil.getMenuEffect("xunbao", i), n.x = t, n.y = e, n
	}, e.prototype.onAdd = function(t) {
		this.adjustDepotBtnEffect(), this.checkJiaoBiao()
	}, e.prototype.dispose = function() {
		if (this._gridList) {
			for (var e = 0; e < this._gridList.length; e++) this._gridList[e].dispose();
			this._gridList = null
		}
		this._moneyBar && (this._moneyBar.dispose(), this._moneyBar = null), this._msgContent && (this._msgContent.parent &&
				this._msgContent.parent.removeChild(this._msgContent), this._msgContent.dispose(), this._msgContent = null), this
			._longZhuGrid && (this._longZhuGrid.dispose(), this._longZhuGrid = null), this._view && (this._view.dispose(),
				this._view = null), this.yuanbaoArr = null, this.countArr = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(LuckTanbaoPanel.prototype, "LuckTanbaoPanel");
var LuckTanbaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.activityid = 81001, e.euiSkinName = "XunBaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("xunbao_b01", "xunbao", ".jpg"), 0, 60), this.addChildAt(
				this._bg, 0), this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("tanbao", "title"),
				320, 77), this._bestItem = new TanBaoBestItem, UIMaker.moveTo(this._bestItem, 320, 252, this), this._bestView =
			new TanBaoBestView, UIMaker.moveTo(this._bestView, 0, 110, this), this._log = new TanBaoLogView, UIMaker.moveTo(
				this._log, 0, 0, this.groupLog), this.addChild(this.imgBest), this.btn_depot.visible = this.red_depot.visible =
			this.imgBest.visible = !1, this.btn_one.label = "寻宠一次", this.btn_ten.label = "寻宠十次", this.ten_img.source = this.one_img
			.source = "tanbao_xunchong_png"
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_SHOW, this.onBest, this),
			this._dispatcher.addEventListener(ItemEvent.ADD, this.onChangeCost, this), this._dispatcher.addEventListener(
				ItemEvent.REMOVE, this.onChangeCost, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onChangeCost,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOne, this, this.btn_one), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTen, this, this.btn_ten), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onOpenDepot, this, this.btn_depot), this._log.show(2), this.onChangeCost()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._log.hide(), this._bestItem.hide(), this._bestView.hide()
	}, e.prototype.onBest = function() {
		var t = App.data.tanbaoCenter.warpetshowItemList;
		if (t) {
			var e = t.concat();
			e.shift(), this._bestItem.show(t[0].itemId), this._bestView.show(e)
		}
	}, e.prototype.onDepot = function() {
		this.red_depot.visible = !App.data.tanbaoCenter.isEmpty()
	}, e.prototype.onChangeCost = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = App.data.bagItemDataCenter.getItemCount(EnumItemId.LUCKTANBAO);
		this.one_txt.text = App.data.tanbaoCenter.getCosttanbao(1) + "", this.ten_txt.text = App.data.tanbaoCenter.getCosttanbao(
			10) + "", this.all_one_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i + "", i >= 1 ? 3533365 :
			15938355) + "/1)"), this.all_ten_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i + "", i >= 10 ?
			3533365 : 15938355) + "/10)")
	}, e.prototype.onTouchOne = function(t) {
		this.go(1)
	}, e.prototype.onTouchTen = function(t) {
		this.go(10)
	}, e.prototype.go = function(t) {
		var e = App.data.bagItemDataCenter.getItemCount(EnumItemId.LUCKTANBAO);
		if (t > e && Alert.instance.showBoo) {
			var i = ItemUtil.getItemName(EnumItemId.LUCKTANBAO);
			Alert.show("是否消耗" + App.data.tanbaoCenter.getCosttanbao(t) + "元宝购买物品" + i + "*" + t, "提示", Alert.DEFAULT_BTN_LABEL,
				this.alertCallBack, this, t, !1, !0, !0, !0, !0)
		} else ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, t)
	}, e.prototype.alertCallBack = function(t) {
		var e = t.data;
		App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= App.data.tanbaoCenter.getCosttanbao(e) ?
			ActivityCommandSender.sendC2S_JoinActivityMessage(this.activityid, e) : PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.onOpenDepot = function(t) {
		PanelOpenManager.openPanel(11)
	}, e.prototype.dispose = function() {
		this._bestView && (this._bestView.dispose(), this._bestView = null), this._bestItem && (this._bestItem.dispose(),
			this._bestItem = null), this._log && (this._log.dispose(), this._log = null), this._effect && (this._effect.dispose(),
			this._effect = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(LuckTanbaoView.prototype, "LuckTanbaoView");
var TanbaoDepotPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this.window = new WindowSecond, this.addChild(this.window), this._view = UIMaker.createViewBase(
				"TanbaoDepotPanelSkin"), this.window.viewContainer.addChild(this._view), this.window.setTitle("仓库"), this.window.height =
			725, this._btnClose = this.window.close_btn, this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
				5, 22, 46), this._gridLayer.getController().layerGapY += 15, this._gridLayer.initLayers([GridLayout.BG,
				GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this._gridLayer.useScroller(500, 530), this._gridLayer.moveTo(25, 75, this.window.viewContainer), this.setWidthAndHeight(
				528, 683)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ItemEvent.TANBAO_LOAD, this.loadData, this), this
			._dispatcher.addEventListener(ItemEvent.TANBAO_UPDATE, this.onAdd, this), this._dispatcher.addEventListener(
				ItemEvent.TANBAO_REMOVE, this.onUpdate, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
				.onClick, this, this._view.get_btn), ItemCommandSender.sendGetItemsMessage(4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer && this._gridLayer.clear(), this.window && this.window.hide()
	}, e.prototype.onClick = function(t) {
		if (App.data.tanbaoCenter.count > 0) {
			if (PanelOpenManager.openBagFullAlert()) return;
			TanbaoCommandSender.sendC2S_TreasureHuntStoreExtractMessage()
		} else Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">仓库空空如也，无法领取物品</font>")
	}, e.prototype.loadData = function(t) {
		var e = App.data.tanbaoCenter.getList();
		this._gridLayer.dataProvider = e, e.length > 0 ? this._view.kongbaitishi.visible = !1 : this._view.kongbaitishi.visible = !
			0
	}, e.prototype.onAdd = function(t) {
		this.loadData()
	}, e.prototype.onUpdate = function() {
		this.loadData()
	}, e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), this._gridLayer && (this._gridLayer.dispose(), this._gridLayer =
			null), this.window && (this.window.dispose(), this.window = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(TanbaoDepotPanel.prototype, "TanbaoDepotPanel");
var TanbaoItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.width = 376, this.height = 24
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), null == this._msgLabel && (this._msgLabel = new eui.Label, this._msgLabel.fontFamily =
			Style.FONT, this._msgLabel.size = 18, this._msgLabel.width = 376, this._msgLabel.height = 18, this._msgLabel.multiline = !
			1, this._msgLabel.textColor = 16315319, this._msgLabel.y = 3, this.addChild(this._msgLabel))
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.clear()
	}, e.prototype.dataChanged = function() {
		var t, e = GameUtil.getItemConfigData(this.data.itemModelId),
			i = GameUtil.getItemNameColor(e.q_id, !1);
		ItemUtil.isEquip(e.q_id) ? (t = new TipData(4), t.data = e.q_id) : ItemUtil.isWarpet(e.q_id) ? (t = new TipData(19),
				t.data = e.q_id) : (t = new TipData(2), t.data = e.q_id), App.tip.addTip(this._msgLabel, t), this._msgLabel.textFlow =
			HtmlUtil.getHtmlStr("<font color='#2bb12a'>" + this.data.playerName +
				"</font><font color='#e5cb73'> 获得：</font><a href='event:" + e.q_id + "'><u><font color='" + i + "'>" + e.q_name.split(
					"_")[0] + "</font></u></a>")
	}, e.prototype.clear = function() {
		App.tip.removeTip(this._msgLabel)
	}, e
}(ItemRenderer);
__reflect(TanbaoItem.prototype, "TanbaoItem");
var TanbaoShopItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._sellId = -1, e.wearItemId = -1, e.skinName = "TanbaoShopItemSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(ItemEvent.UPDATE_SHOP_ITEM, this.onUpdateItem, this, this)
	}, e.prototype.createChildren = function() {
		this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.x = 20, this._grid.y = 5, this
			.addChild(this._grid), this._grid.isShowDesc = !1
	}, e.prototype.dataChanged = function() {
		this.refresh(this.data)
	}, e.prototype.refresh = function(t) {
		void 0 === t && (t = null), this._info = t;
		var e = GameUtil.getItemConfigData(this._info.q_itemModelId);
		null != e && (this.name_txt.text = e.q_name.split("_")[0], this.name_txt.textColor = GameUtil.getItemNameColor(e.q_id));
		var i;
		i = App.data.tanbaoShopCenter.getShopItemInfo(this._info.q_id), this._sellId = i.sellId, this.lv_txt.text = "";
		var n, a = !1;
		this._info.q_times_limit_type > 0 && this._info.q_times > 0 && (i && i.remainNum >= 0 && (this.lv_txt.text = "剩余：" +
				i.remainNum + "个   ", n = i.remainNum), 0 == n && (a = !0)), this._info.q_limit_metemneedlv > 0 ? this.lv_txt.text +=
			"转生" + this._info.q_limit_metemneedlv + "可兑换" : this._info.q_limit_lv > 0 && (this.lv_txt.text += this._info.q_limit_lv +
				"级可兑换");
		var o = new ItemData;
		o.itemId = t.q_itemModelId, o.isbind = 1 == t.q_bind, o.islock = 1 == t.q_isLockItem, this._grid.setData(o);
		var r, s, h = "消耗：";
		if (this.wearItemId = 0, this.bagItems = [], this._info.q_cosumeequip > 0) this.wearItemId = this._info.q_cosumeequip,
			e = GameUtil.getItemConfigData(this.wearItemId), null != e && (h += "<font color='" + GameUtil.getItemNameColor(
				this.wearItemId, !1) + "'>" + e.q_name.split("_")[0] + "</font>", h += " + ");
		else if (null != this._info.q_consume && "" != this._info.q_consume) {
			var l = StringUtil.JsonParse(this._info.q_consume);
			if (null != l) {
				for (r = 0; r < l.length; r++) s = Number(l[r].id), e = GameUtil.getItemConfigData(s), null != e && (this.bagItems
					.push(s), h += "<font color='" + GameUtil.getItemNameColor(s, !1) + "'>" + e.q_name.split("_")[0] + "</font>");
				h += " + "
			}
		}
		if (h += this._info.q_price + EnumMoney.getName(EnumMoney.TANBAO_JIFEN), this.content_txt.textFlow = HtmlUtil.getHtmlStr(
				h), App.data.currencyDataCenter.getMoney(EnumMoney.TANBAO_JIFEN) >= this._info.q_price) {
			var p = !0;
			if (this.wearItemId > 0) {
				var c = GameUtil.getEquipConfigData(this.wearItemId);
				p = c ? null != App.data.wearEquipCenter.getRoleWearData(c.q_kind, App.global.characterData.roleIndex) : !1
			} else
				for (r = 0; r < this.bagItems.length; r++)
					if (App.data.bagItemDataCenter.getItemCount(this.bagItems[r], !0) < 1) {
						p = !1;
						break
					} a ? (this.btn.label = "已售完", this.btn.enabled = !1) : p ? (this.btn.label = "兑换", this.btn.enabled = !0, this._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNeedOpenBuy, this, this.btn)) : (this.btn.label = "材料不足",
				this.btn.enabled = !1)
		} else this.btn.label = "积分不足", this.btn.enabled = !1
	}, e.prototype.onNeedOpenBuy = function() {
		1 == this._info.q_open_buy || this.onDuihuan()
	}, e.prototype.onDuihuan = function() {
		null != this._info
	}, e.prototype.onUpdateItem = function(t, e) {
		if (3 == t && this._sellId == e.sellId) {
			var i = GameUtil.getShopItemConfigData(e.sellId);
			this.refresh(i)
		}
	}, e
}(ItemRenderer);
__reflect(TanbaoShopItemRender.prototype, "TanbaoShopItemRender");
var TanbaoShopPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._page = -1, e._playing = !1, e._speed = .5, e.flag = !0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TanbaoShopPanelSkin"), this.addChild(this._view), this._shoplist = new VScrollPanel(
				600, 300, TanbaoShopItemRender, 2), this._shoplist.move(20, 140), this.addChild(this._shoplist), this._tabBar =
			new TabBar([this._view.tab1, this._view.tab2, this._view.tab3, this._view.tab4, this._view.tab5]), App.tip.addTip(
				this._view.desc_txt, new TipData(1, [GameUtil.getTipDesc(91).q_tipDesc])), this._view.duihuan_btn.textFlow =
			HtmlUtil.getHtmlStr("<u>" + this._view.duihuan_btn.text + "</u>"), this._view.jifen_btn.textFlow = HtmlUtil.getHtmlStr(
				"<u>" + this._view.jifen_btn.text + "</u>"), this._view.desc_txt.textFlow = HtmlUtil.getHtmlStr("<u>" + this._view
				.desc_txt.text + "</u>"), this._txt1 = new eui.Label, this._txt1.size = 18, this._txt1.x = 0, this._txt1.y = 20,
			this._txt1.width = 314, this._view.item_group.addChild(this._txt1), this._txt2 = new eui.Label, this._txt2.size =
			18, this._txt2.x = 0, this._txt2.width = 314, this._view.item_group.addChild(this._txt2), this._view.scroller.scrollPolicyV =
			"off"
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), this._tabBar.selectedIndex = 0, this.updateInfo()
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view.jifen_btn), this._dispatcher
			.addEventListener(egret.TextEvent.LINK, this.onLink, this, this._txt1), this._dispatcher.addEventListener(egret.TextEvent
				.LINK, this.onLink, this, this._txt2), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.onMoneyChange,
				this)
	}, e.prototype.onLink = function(t) {
		var e = GameUtil.getItemConfigData(Number(t.text));
		null != e && (null == this._tip && (this._tip = new TipData), this._tip.type = 1 == e.q_type ? 4 : 2)
	}, e.prototype.onClick = function(t) {
		App.panel.isShowing(8) ? PanelOpenManager.openPanel(8, null, !1) : PanelOpenManager.openPanel(8)
	}, e.prototype.onMoneyChange = function(t, e) {
		void 0 === e && (e = 0), t == EnumMoney.TANBAO_JIFEN && (this._view.jifen_txt.text = "" + App.data.currencyDataCenter
			.getMoney(EnumMoney.TANBAO_JIFEN))
	}, e.prototype.updateInfo = function() {
		this._view.jifen_txt.text = "" + App.data.currencyDataCenter.getMoney(EnumMoney.TANBAO_JIFEN)
	}, e.prototype.onEnterFrame = function(t) {
		this.flag ? (this._txt1.y -= this._speed, this._txt2.y = this._txt1.y + this._txt1.height) : (this._txt2.y -= this._speed,
				this._txt1.y = this._txt2.y + this._txt2.height), this._txt1.y <= -this._txt1.height && (this.flag = !1), this._txt2
			.y <= -this._txt2.height && (this.flag = !0)
	}, e.prototype.play = function() {
		this._playing || (this._playing = !0, this._dispatcher.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame,
			this, this))
	}, e.prototype.stop = function() {
		this._playing && (this._playing = !1, this._dispatcher.removeEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame,
			this, this))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._tabBar.selectedIndex = -1, this._tabBar.clear(), this._shoplist.removeAll()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 654
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 780
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._tabBar && (this._tabBar.clear(), this._tabBar = null), t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(TanbaoShopPanel.prototype, "TanbaoShopPanel");
var TanBaoBestItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(t, e) {
		void 0 === e && (e = !1);
		var i = App.config.q_itemContainer.getDataBean(t);
		if (null != i) {
			if (e) {
				var n = ResPathUtil.getMenuEffect("tanbao", "best_light");
				this._light = EffectUtils.showCEffect(this, this, n, 0, 33, this._light, e, 1, 0, 2, 2)
			}
			var a = ResPathUtil.getMenuEffect("tanbao", "best");
			if (this._effect = EffectUtils.showCEffect(this, this, a, 0, 0, this._effect), a = ResPathUtil.getMenuEffect(
					"item", i.q_effect + "_" + EnumGridStyle.DEFAULT_SIZE), this._border = EffectUtils.showCEffect(this, this, a, 0,
					40, this._border), a = ResPathUtil.getIcon(i.q_tiny_icon, "item/80"), this._icon = UIMaker.getCImage(this, this,
					a, -EnumGridStyle.DEFAULT_SIZE / 2 + 5, -EnumGridStyle.DEFAULT_SIZE / 2 + 5 + 40, !0, this._icon), e) {
				var o = ResPathUtil.getMenuEffect("tanbao", "dragon");
				EffectUtils.showOnceEffect("TanBaoBestItem", this, o, 0, 33)
			}
			App.tip.addTip(this._icon, new TipData(ItemUtil.getItemTipType(t), t))
		}
	}, e.prototype.hide = function() {
		App.tip.removeTip(this._icon), this._effect && this._effect.stop(), this._border && this._border.stop(), this._boom &&
			this._boom.stop(), this._light && this._light.stop(), this._icon && this._icon.clear()
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._border && (this._border.dispose(), this._border =
			null), this._light && (this._light.dispose(), this._light = null), this._boom && (this._boom.dispose(), this._boom =
			null), this._icon && (UIMaker.putToPool(this._icon), this._icon = null), this.parent && this.parent.removeChild(
			this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(TanBaoBestItem.prototype, "TanBaoBestItem");
var TanBaoBestView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._gridList = [], e._gridList2 = [], e._gap = 51, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.touchEnabled = !1, this.mask = new egret.Rectangle(0, 0, 640, 388);
		for (var t, e = 0; 4 > e; e++) t = new GridContainer(EnumGridStyle.GRID_STYLE_TANBAO, 1, 38, this._gap), t.initLayers(
				[GridLayout.Special, GridLayout.BG, GridLayout.ICON, GridLayout.JOB]), t.getController().specialParams = {
				url: "tanbao_xunbai_b11_png",
				x: -3,
				y: -8,
				w: 72,
				h: 86
			}, 2 > e ? t.moveTo(105 * e + 30, 34, this) : t.moveTo(105 * (e - 2) + 407 + 30, 34, this), this._gridList.push(t),
			t = new GridContainer(EnumGridStyle.GRID_STYLE_TANBAO, 1, 38, this._gap), t.initLayers([GridLayout.Special,
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB
			]), t.getController().specialParams = {
				url: "tanbao_xunbai_b11_png",
				x: -3,
				y: -8,
				w: 72,
				h: 86
			}, 2 > e ? t.moveTo(105 * e + 30, 34, this) : t.moveTo(105 * (e - 2) + 407 + 30, 34, this), this._gridList2.push(t)
	}, e.prototype.show = function(t) {
		for (var e = t.concat(), i = Math.floor(e.length / 4), n = 0; 4 > n; n++) this._gridList[n].dataProvider = e.slice(
				n * i, n * i + i), this._gridList2[n].dataProvider = e.slice(n * i, n * i + i), this._gridList[n].y = 34, n % 2 ==
			0 ? this._gridList2[n].y = this._gridList[n].y + this._gridList[n].height + this._gap : this._gridList2[n].y =
			this._gridList[n].y - this._gridList[n].height - this._gap, App.timer.doFrameLoop(this, 2, this.onTimer)
	}, e.prototype.hide = function() {
		for (var t = 0; 4 > t; t++) this._gridList[t].clear(), this._gridList2[t].clear();
		App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onTimer = function() {
		for (var t = 0; 4 > t; t++) t % 2 == 0 ? (this._gridList[t].y -= 1, this._gridList2[t].y -= 1, this._gridList[t].y <
			-this._gridList[t].height - 50 && (this._gridList[t].y = this._gridList2[t].y + this._gridList2[t].height + this._gap),
			this._gridList2[t].y < -this._gridList[t].height - 50 && (this._gridList2[t].y = this._gridList[t].y + this._gridList[
				t].height + this._gap)) : (this._gridList[t].y += 1, this._gridList2[t].y += 1, this._gridList[t].y > 388 && (
				this._gridList[t].y = this._gridList2[t].y - this._gridList2[t].height - this._gap), this._gridList2[t].y > 388 &&
			(this._gridList2[t].y = this._gridList[t].y - this._gridList[t].height - this._gap))
	}, e.prototype.dispose = function() {
		if (this._gridList) {
			for (var t = 0; 4 > t; t++) this._gridList[t].dispose(), this._gridList2[t].dispose();
			this._gridList = null, this._gridList2 = null
		}
		parent && this.parent.removeChild(this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(TanBaoBestView.prototype, "TanBaoBestView");
var TanBaoLogItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.width = 500, this.height = 24
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), null == this._txt && (this._txt = UIMaker.getTextField(this, this, 0, 0, 500,
			20, 15059827)), this._txt.touchEnabled = !0, this._txt.textAlign = egret.HorizontalAlign.LEFT
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.clear()
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (null != t) {
			var e = t.itemModelId,
				i = t.playerName,
				n = GameUtil.getItemConfigData(this.data.itemModelId);
			if (null != n) {
				var a = n.q_name.split("_")[0],
					o = GameUtil.getItemNameColor(e, !0);
				this._txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(i, 3653362) + " 人品大爆发获得：" + HtmlUtil.formatUnderline(
					HtmlUtil.formatColor(a, o)));
				var r = new TipData;
				r.data = n.q_id, r.type = ItemUtil.getItemTipType(e), App.tip.addTip(this._txt, r)
			}
		}
	}, e.prototype.clear = function() {
		App.tip.removeTip(this._txt)
	}, e
}(ItemRenderer);
__reflect(TanBaoLogItem.prototype, "TanBaoLogItem");
var TanBaoLogView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._dispatcher = new DispatcherRegister, e.type = 1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(600, 158, TanBaoLogItem, 10), this.addChild(this._vscroller)
	}, e.prototype.show = function(t) {
		void 0 === t && (t = 1), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_INFO, this.onUpdateLog, this),
			this._dispatcher.addEventListener(TanbaoItemCenter.ADD_TOTALINFO, this.onUpdateLog, this), this._dispatcher.addEventListener(
				TanbaoItemCenter.ADD_MYINFO, this.onUpdateLog, this), this.type = t, TanbaoCommandSender.sendC2S_TreasureHuntInfoMessage(
				t)
	}, e.prototype.hide = function() {
		this._vscroller.removeAll(), this._dispatcher.removeAllListeners()
	}, e.prototype.onUpdateLog = function() {
		1 == this.type ? this._vscroller.dataProvider = App.data.tanbaoCenter.allInfoList : 2 == this.type ? this._vscroller
			.dataProvider = App.data.tanbaoCenter.warpetallInfoList : 3 == this.type && (this._vscroller.dataProvider = App.data
				.tanbaoCenter.hotBloodInfoList), this._vscroller.validateDisplayList(), this._vscroller.validateNow(), this._vscroller
			.viewport.contentHeight > this._vscroller.height && (this._vscroller.viewport.scrollV = this._vscroller.viewport.contentHeight -
				this._vscroller.height)
	}, e.prototype.dispose = function() {
		this._dispatcher && this._dispatcher.dispose(), this._dispatcher = null, this._vscroller && this._vscroller.dispose(),
			this._vscroller = null, this.parent && this.parent.removeChild(this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(TanBaoLogView.prototype, "TanBaoLogView");
var TanBaoResultEffect = function() {
	function t() {
		this._times = 10, this._gapH = 80, this._type = 1, this.init()
	}
	return t.prototype.init = function() {
		this._view = new TanBaoResultView, this._view.callback = new FunctionVO(this.clear, this), this._gridLayer = new GridContainer(
				EnumGridStyle.GRID_STYLE_NORMAL, BagItemCenter.COL, 32, 47), this._gridLayer.initLayers([GridLayout.Special,
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT, GridLayout.TEXT_BOTTOM
			]), this._gridLayer.getLayer(GridLayout.TEXT_BOTTOM).y += 4, this._gridLayer.useScroller(600, 400), this._gridLayer
			.getController().layerGapY += 5, this._gridLayer.getController().specialParams = {
				url: "tanbao_xunbai_b11_png",
				x: -3,
				y: -10,
				w: 82,
				h: 99
			}, App.dispatcher.addEventListener(TanbaoItemCenter.ADD_MYINFO, this.onMine, this), App.dispatcher.addEventListener(
				EventType.STGAE_RESIZE, this.resize, this)
	}, t.prototype.resize = function() {
		this._run && this._run.setTo(Config.SCREEN_WIDTH >> 1, Config.SCREEN_HEIGHT >> 1)
	}, t.prototype.onMine = function(t) {
		if (this.clear(), this._type = t, this._dataProvider = App.data.tanbaoCenter.getResultList(t), null != this._dataProvider) {
			var e = this._dataProvider.length;
			this._times = e > 2 ? e > 20 ? 100 : 10 : 1, this._gapH = this._times > 1 ? 0 : 80, 100 == this._times && this._dataProvider
				.sort(this.sortFunc), App.layer.panelLayer.addChild(this._view), this._gridLayer.moveTo(66, 305 + this._gapH,
					this._view.groupGrid), this._gridLayer.dataProvider = this._dataProvider, this._gridLayer.visible = !1, this.start()
		}
	}, t.prototype.start = function() {
		this.run(10 == this._times || 100 == this._times)
	}, t.prototype.run = function(t) {
		if (t && !TanBaoResultView.jump) {
			var e = ResPathUtil.getMenuEffect("tanbao", "run");
			this._run = EffectUtils.showCEffect(this, App.layer.panelLayer, e, Config.SCREEN_WIDTH >> 1, Config.SCREEN_HEIGHT >>
				1, this._run, !0, 1, 0, 1.28, 1.28), this._run.lastFrameHanderCallBack = new FunctionVO(this.result, this)
		} else App.timer.doFrameOnce(this, 3, this.result)
	}, t.prototype.result = function() {
		if (this._run && (this._run.dispose(), this._run = null), this._view.show({
				num: this._times,
				type: this._type
			}), this._gridLayer.visible = !0, 100 != this._times) {
			for (var t = 0; t < this._dataProvider.length; t++) {
				var e = this._gridLayer.getRenderData(t);
				e.setUiComponentVisible(!1)
			}
			this._boomIndex = 0, App.timer.doTimeLoop(this, 100, this.boom)
		} else this._view.groupBtn.visible = !0, App.timer.clearTimer(this.boom, this)
	}, t.prototype.boom = function() {
		if (this._boomIndex < this._dataProvider.length) {
			var t = ResPathUtil.getMenuEffect("tanbao", "boom");
			EffectUtils.showOnceEffect("TanBaoResultEffect", this._view.groupGrid, t, 108 * Math.floor(this._boomIndex % 5) +
				41 + 63, 123 * Math.floor(this._boomIndex / 5) + 50 + 290 + this._gapH);
			var e = this._gridLayer.getRenderData(this._boomIndex);
			if (e && (e.setUiComponentVisible(!0), e.data && !TanBaoResultView.jump)) {
				var i = App.config.q_itemContainer.getDataBean(e.data.itemId);
				99 == i.q_notice && (App.timer.doTimeOnce(this, 400, this.best, [e.data.itemId]), App.timer.clearTimer(this.boom,
					this))
			}
			this._boomIndex++
		}
		this._boomIndex >= this._dataProvider.length && (this._view.groupBtn.visible = !0, App.timer.clearTimer(this.boom,
			this))
	}, t.prototype.best = function(t) {
		this._gridLayer.visible = !1, this._view.groupBtn.visible = !1, this._view.showBest(t, new FunctionVO(this.bestCallback,
			this))
	}, t.prototype.bestCallback = function() {
		this._gridLayer.visible = !0, App.timer.doTimeLoop(this, 100, this.boom)
	}, t.prototype.clear = function() {
		App.timer.clearTimer(this.boom, this), App.timer.clearTimer(this.best, this), App.timer.clearTimer(this.result,
			this), this._view && (this._view.clear(), this._view.remove()), this._gridLayer && (this._gridLayer.stopScroller(),
			this._gridLayer.clear()), this._run && (this._run.dispose(), this._run = null)
	}, t.prototype.sortFunc = function(t, e) {
		return t.getDataBean().q_default > e.getDataBean().q_default ? -1 : 1
	}, t
}();
__reflect(TanBaoResultEffect.prototype, "TanBaoResultEffect");
var TanBaoResultView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._type = 1, e.euiSkinName = "TanBaoResultSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this._bg && (this._bg = new h5_engine.GShape, this._bg.graphics.clear(), this._bg.graphics.beginFill(0, .9),
			this._bg.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this._bg.graphics.endFill(), this._bg
			.touchEnabled = !0, this.addChildAt(this._bg, 0)), this._best = new TanBaoBestItem, this.groupMain.visible = !1
	}, e.prototype.show = function(i) {
		t.prototype.show.call(this, i), this._num = i.num, this._type = i.type;
		var n = this._num > 1 ? this._num > 10 ? "100" : "十" : "一";
		1 == i.type ? (this.btn_continue.label = "寻宝" + n + "次", this.icon_img.source = "tanbao_juanzhou_png") : 2 == i.type ?
			(this.btn_continue.label = "寻宠" + n + "次", this.icon_img.source = "tanbao_xunchong_png") : 3 == i.type && (this.btn_continue
				.label = "热血" + n + "次", this.icon_img.source = "tanbao_xunchong_png"), this._dispatcher.addEventListener(
				ItemEvent.ADD, this.onChangeCost, this), this._dispatcher.addEventListener(ItemEvent.REMOVE, this.onChangeCost,
				this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onChangeCost, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onContinue, this, this.btn_continue), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onSure, this, this.btn_sure), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
				.onBest, this, this.btn_best), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onJump, this,
				this.jump_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onNoJump, this, this.noJump_img),
			this.groupMain.visible = !0, this.groupBtn.visible = !1, this.groupBest.visible = !1, this.jump_img.visible = e.jump,
			this.noJump_img.visible = !e.jump, this.groupJump.visible = 100 != this._num, this.groupBtn.y = 100 != this._num ?
			677 : 700, this.onChangeCost(), this._dispatcher.addEventListener(EventType.STGAE_RESIZE, this.resize, this), this
			.resize()
	}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - this.width >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this.groupBtn.visible = !0, this.groupMain.visible = !1
	}, e.prototype.showBest = function(t, e) {
		this._bestCallback = e, this.imgCongratulate.visible = !1, this.groupBest.visible = !0, this._best.show(t, !0),
			UIMaker.moveTo(this._best, 112, 240, this.groupBest)
	}, e.prototype.onChangeCost = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = EnumItemId.TANBAO,
			n = 0;
		1 == this._type ? (i = EnumItemId.TANBAO, n = App.data.tanbaoCenter.getCost(this._num)) : 2 == this._type ? (i =
			EnumItemId.LUCKTANBAO, n = App.data.tanbaoCenter.getCosttanbao(this._num)) : 3 == this._type && (i = EnumItemId.HOTBLOODTANBAO,
			n = App.data.tanbaoCenter.getCosttanbao(this._num));
		var a = App.data.bagItemDataCenter.getItemCount(i);
		this.ten_txt.text = n + "", this.all_ten_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(a + "", a >= this._num ?
			3533365 : 15938355) + "/" + this._num + ")")
	}, e.prototype.onJump = function(t) {
		void 0 === t && (t = null), e.jump = !1, this.jump_img.visible = !1, this.noJump_img.visible = !0
	}, e.prototype.onNoJump = function(t) {
		void 0 === t && (t = null), e.jump = !0, this.jump_img.visible = !0, this.noJump_img.visible = !1
	}, e.prototype.onSure = function(t) {
		this.callback && this.callback.exec()
	}, e.prototype.onBest = function(t) {
		this._best.parent && this._best.parent.removeChild(this._best), this.imgCongratulate.visible = !0, this.groupBest.visible = !
			1, this._bestCallback && this._bestCallback.exec()
	}, e.prototype.onContinue = function(t) {
		var e = this._num,
			i = EnumItemId.TANBAO;
		1 == this._type ? i = EnumItemId.TANBAO : 2 == this._type ? i = EnumItemId.LUCKTANBAO : 3 == this._type && (i =
			EnumItemId.HOTBLOODTANBAO);
		var n = App.data.bagItemDataCenter.getItemCount(i);
		if (e > n && Alert.instance.showBoo) {
			var a = ItemUtil.getItemName(i),
				o = 0;
			1 == this._type ? o = App.data.tanbaoCenter.getCost(e) : 2 == this._type ? o = App.data.tanbaoCenter.getCosttanbao(
				e) : 3 == this._type && (o = App.data.tanbaoCenter.getCosttanbao(e)), Alert.show("是否消耗" + o + "元宝购买物品" + a + "*" +
				e, "提示", Alert.DEFAULT_BTN_LABEL, this.alertCallBack, this, e, !1, !0, !0, !0, !0)
		} else this.goXunbao(e)
	}, e.prototype.goXunbao = function(t) {
		1 == this._type ? TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(t) : 2 == this._type ?
			ActivityCommandSender.sendC2S_JoinActivityMessage(81001, t) : 3 == this._type && ActivityCommandSender.sendC2S_JoinActivityMessage(
				88001, t)
	}, e.prototype.alertCallBack = function(t) {
		var e = t.data,
			i = 0;
		1 == this._type ? i = App.data.tanbaoCenter.getCost(e) : 2 == this._type ? i = App.data.tanbaoCenter.getCosttanbao(
			e) : 3 == this._type && (i = App.data.tanbaoCenter.getCosthotblood(e)), App.data.currencyDataCenter.getMoney(
			EnumMoney.YUAN_BAO) >= i ? this.goXunbao(e) : PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.clear = function() {
		this.groupMain.visible = !1
	}, e.prototype.dispose = function() {
		this._bestCallback = null, this._bg && (this._bg.graphics.clear(), this._bg = null), this._best && (this._best.dispose(),
			this._best = null), t.prototype.dispose.call(this)
	}, e.jump = !1, e
}(ViewBase);
__reflect(TanBaoResultView.prototype, "TanBaoResultView");
var TanBaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "TanBaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("xunbao_b01", "xunbao", ".jpg"), 0, 60), this.addChildAt(
				this._bg, 0), this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("tanbao", "title"),
				320, 77), this._bestItem = new TanBaoBestItem, UIMaker.moveTo(this._bestItem, 320, 252, this), this._bestView =
			new TanBaoBestView, UIMaker.moveTo(this._bestView, 0, 110, this), this._log = new TanBaoLogView, UIMaker.moveTo(
				this._log, 0, 0, this.groupLog), this.addChild(this.imgBest), this.gl_lb.textFlow = new Array({
				text: "概率说明",
				style: {
					underline: !0
				}
			})
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), App.tip.addTip(this.gl_lb, new TipData(1, [App.config.q_tipContainer.getDataBean(
				181).q_tipDesc, "概率说明"])), this._dispatcher.addEventListener(TanbaoItemCenter.LOAD_SHOW, this.onBest, this), this
			._dispatcher.addEventListener(ItemEvent.ADD, this.onChangeCost, this), this._dispatcher.addEventListener(ItemEvent
				.REMOVE, this.onChangeCost, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onChangeCost, this),
			this._dispatcher.addEventListener(ItemEvent.TANBAO_UPDATE, this.onDepot, this), this._dispatcher.addEventListener(
				ItemEvent.TANBAO_REMOVE, this.onDepot, this), this._dispatcher.addEventListener(ItemEvent.TANBAO_LOAD, this.onDepot,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchOne, this, this.btn_one), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchTen, this, this.btn_ten), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouchHundred, this, this.btn_hundred), this._dispatcher.addEventListener(egret
				.TouchEvent.TOUCH_TAP, this.onOpenDepot, this, this.btn_depot), this._log.show(), this.onChangeCost(),
			ItemCommandSender.sendGetItemsMessage(4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.tip.removeTip(this.gl_lb), this._log.hide(), this._bestItem.hide(), this._bestView
			.hide()
	}, e.prototype.onBest = function() {
		var t = App.data.tanbaoCenter.showItemList;
		if (t) {
			var e = t.concat();
			e.shift(), this._bestItem.show(t[0].itemId), this._bestView.show(e)
		}
	}, e.prototype.onDepot = function() {
		this.red_depot.visible = !App.data.tanbaoCenter.isEmpty()
	}, e.prototype.onChangeCost = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = App.data.bagItemDataCenter.getItemCount(EnumItemId.TANBAO);
		this.one_txt.text = App.data.tanbaoCenter.getCost(1) + "", this.ten_txt.text = App.data.tanbaoCenter.getCost(10) +
			"", this.hundred_txt.text = App.data.tanbaoCenter.getCost(100) + "", this.all_one_txt.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatColor(i + "", i >= 1 ? 3533365 : 15938355) + "/1)"), this.all_ten_txt.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatColor(i + "", i >= 10 ? 3533365 : 15938355) + "/10)"), this.all_hundred_txt.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatColor(i + "", i >= 100 ? 3533365 : 15938355) + "/100)")
	}, e.prototype.onTouchOne = function(t) {
		this.go(1)
	}, e.prototype.onTouchTen = function(t) {
		this.go(10)
	}, e.prototype.onTouchHundred = function(t) {
		this.go(100)
	}, e.prototype.go = function(t) {
		var e = App.data.bagItemDataCenter.getItemCount(EnumItemId.TANBAO);
		if (t > e && Alert.instance.showBoo) {
			var i = ItemUtil.getItemName(EnumItemId.TANBAO);
			Alert.show("是否消耗" + App.data.tanbaoCenter.getCost(t) + "元宝购买物品" + i + "*" + t, "提示", Alert.DEFAULT_BTN_LABEL, this
				.alertCallBack, this, t, !1, !0, !0, !0, !0)
		} else TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(t)
	}, e.prototype.alertCallBack = function(t) {
		var e = t.data;
		App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >= App.data.tanbaoCenter.getCost(e) ? TanbaoCommandSender.sendC2S_TreasureHuntActionMessage(
			e) : PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.onOpenDepot = function(t) {
		PanelOpenManager.openPanel(11)
	}, e.prototype.dispose = function() {
		this._bestView && (this._bestView.dispose(), this._bestView = null), this._bestItem && (this._bestItem.dispose(),
			this._bestItem = null), this._log && (this._log.dispose(), this._log = null), this._effect && (this._effect.dispose(),
			this._effect = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TanBaoView.prototype, "TanBaoView");
var BeginGamePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._viewWidth = 640, e._viewHeight = 386, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("BeginGameSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this), App.timer.doTimeOnce(this, 1e4, this.onBegin), this._dispatcher.addEventListener(egret
			.TouchEvent.TOUCH_TAP, this.onBegin, this, this._view.btnBegin), this._dispatcher.addEventListener(egret.TouchEvent
			.TOUCH_TAP, this.onBegin, this, App.stage)
	}, e.prototype.hide = function() {
		App.data.taskCenter.isAutoTask = !0, App.timer.clearTimer(this.onBegin, this), App.dispatcher.dispatchEvent(
			TaskEvent.TASK_AUTO_RUN_NEXT_STEP), t.prototype.hide.call(this), this.dispose()
	}, e.prototype.onBegin = function(t) {
		this.onClose()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 380
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(BeginGamePanel.prototype, "BeginGamePanel");
var TaskDaobaoPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("daobaozei")), this._bg.touchEnabled = !0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this._bg)
	}, e.prototype.onTouch = function(t) {
		App.panel.openPanel(112), App.panel.removePanel(113), App.panel.removePanel(4)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.onTouchStage = function(t) {}, e.prototype.dispose = function() {
		this._bg && (this._bg.dispose(), this._bg = null), t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 596
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 389
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(TaskDaobaoPanel.prototype, "TaskDaobaoPanel");
var TaskLimitPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new TaskLimitView, this.addChild(this._view), this.scaleX = 0, this.scaleY = 0
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.show(e), TweenLite.to(this, .25, {
			scaleX: 1,
			scaleY: 1
		})
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.hide()
	}, e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(TaskLimitPanel.prototype, "TaskLimitPanel");
var TaskLimitView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._flag = !1, e._isAct = !1, e.euiSkinName = "TaskLimitSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5, 20, 20), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(128, 450, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.btn), this._isAct = e && 67 == e.enterID;
		var i = "bg4599";
		this._isAct ? (i = "xsmc_a01", this.refreshAct()) : (this._taskData = App.data.taskCenter.limitData, this.refresh()),
			this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath(i, "tasksecret"), 0, 174, !1, this._bg), this.addChildAt(
				this._bg, 0)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._taskData = null, this._bg.clear(), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.refreshAct = function() {
		var t = 6001,
			e = App.config.q_activitiesContainer.getDataBean(t);
		if (null != e) {
			this._gridLayer.dataProvider = ItemUtil.getRewardDataList(e.q_show_rewards), this.icon.source =
				"tasksecret_50_png";
			var i = App.data.activityCenter.getData(t);
			if (null != i && i.extendMap) {
				var n = JSON.parse(i.extendMap);
				n.endtime ? App.timer.serverTimeEnd(this, this.onTimer, n.endtime) : (this.time_txt.text = StringUtil.convertTime(
					0), App.timer.clearTimer(this.onTimer, this))
			}
		}
	}, e.prototype.refresh = function() {
		if (null != this._taskData) {
			var t = App.config.q_gift_taskContainer.getDataBean(this._taskData.taskID);
			if (null != t) {
				this._gridLayer.dataProvider = ItemUtil.getRewardDataList(t.q_tesk_rewards_show), this._taskData.otherVarMapObj &&
					this._taskData.otherVarMapObj.endtime ? App.timer.serverTimeEnd(this, this.onTimer, this._taskData.otherVarMapObj
						.endtime) : (this.time_txt.text = StringUtil.convertTime(0), App.timer.clearTimer(this.onTimer, this));
				var e = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO),
					i = t.q_price;
				this._flag = e >= i, this.icon.source = "tasksecret_" + i + "_png"
			}
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime >= 0 ? this.time_txt.text = StringUtil.convertTime_4(t.spuleTime) : (App.panel.removePanel(82), App.timer
			.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		if (this._isAct) {
			var e = 6001,
				i = App.config.q_activitiesContainer.getDataBean(e);
			App.platform.pay("" + i.q_desc, "魔宠礼包", "", 50, new FunctionVO(this.succClick, this), new FunctionVO(this.failClick,
				this), new FunctionVO(this.canelClick, this))
		} else {
			var i = App.config.q_gift_taskContainer.getDataBean(this._taskData.taskID),
				n = App.config.q_recharge_shopContainer.getDataBean(i.q_recharge_shop_id);
			App.platform.pay("" + n.q_id, "限时礼包", "" + i.q_task_des, n.q_rmb_num, new FunctionVO(this.succClick, this), new FunctionVO(
				this.failClick, this), new FunctionVO(this.canelClick, this))
		}
	}, e.prototype.succClick = function(t) {
		this.btn.touchEnabled = this.btn.touchChildren = !1, Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">充值成功</font>"), App.panel.openPanel(115, this._gridLayer.dataProvider), App.panel.removePanel(82)
	}, e.prototype.failClick = function(t) {
		this.btn.touchEnabled = this.btn.touchChildren = !0, Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">充值失败</font>")
	}, e.prototype.canelClick = function(t) {
		this.btn.touchEnabled = this.btn.touchChildren = !0
	}, e.prototype.dispose = function() {
		this._taskData = null, this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), UIMaker.putToPool(
			this._bg), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TaskLimitView.prototype, "TaskLimitView");
var TaskNpcPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispacher = new DispatcherRegister, this._view = UIMaker.createViewBase("TaskNpcSkin"), this.addChild(this._view),
			this._gridContent = new LayoutContainer(ItemGrid, 100, 100, 5, new FunctionVO(this.itemRender, this)), this._gridContent
			.x = 25, this._gridContent.y = 230, this.addChild(this._gridContent)
	}, e.prototype.show = function(t) {
		this._data = t, this.update(), this.x = -5, this.y = Config.SCREEN_HEIGHT - 700, this.container.addChild(this),
			this._dispacher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGet, this, this._view.btnGet), App.timer.serverTimeEnd(
				this, this.onTimeCount, ServerTime.getServerTime() + 3)
	}, e.prototype.onTimeCount = function(t) {
		var e = t.spuleTime,
			i = "<font color=#00ff00>" + e + "</font>后自动提交";
		this._view.txtTime.textFlow = HtmlUtil.getHtmlStr(i), 0 >= e && this.onGet()
	}, e.prototype.onGet = function(t) {
		App.timer.clearTimer(this.onTimeCount, this), TaskCommandSender.sendFinishTask(this._data.taskID, this._data.taskType),
			this.remove()
	}, e.prototype.itemRender = function(t, e) {
		var i = new ItemData;
		i.itemId = e.itemID, i.count = e.itemNum, t.setData(i)
	}, e.prototype.update = function() {
		var t = GameUtil.getNpcConfigData(this._data.taskFinishID);
		t && (this._view.txtNpcName.text = t.q_name), this._view.txtNpcInfo.text = this._data.taskDes, -1 == this._data.taskState ||
			(0 == this._data.taskState ? (this._view.btnGet.enabled = !1, this._view.btnGet.label = "接取任务") : 1 == this._data.taskState ?
				(this._view.btnGet.enabled = !1, this._view.btnGet.label = "领取奖励") : 2 == this._data.taskState && (this._view.btnGet
					.enabled = !0, this._view.btnGet.label = "领取奖励")), this._gridContent.dataProvider = this._data.taskReward
	}, Object.defineProperty(e.prototype, "container", {
		get: function() {
			return App.layer.moduleLayer
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.remove = function() {
		this.parent && this.parent.removeChild(this), this._dispacher.removeAllListeners(), this._gridContent.clear()
	}, e
}(h5_engine.GSprite);
__reflect(TaskNpcPanel.prototype, "TaskNpcPanel");
var TaskSecretView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "TaskSecretSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5, 20, 20), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(243, 456, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn), this._taskData = e, this.refresh(), null == this._bg ? (this._bg = UIMaker.getCImage(null, this,
				ResPathUtil.getImgPath("hongfu_01", "tasksecret"), -60, 75), this.addChildAt(this._bg, 0)) : this._bg.url =
			ResPathUtil.getImgPath("hongfu_01", "tasksecret")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._taskData = null, this._bg.clear()
	}, e.prototype.refresh = function() {
		if (null != this._taskData) {
			var t = App.config.q_hide_taskContainer.getDataBean(this._taskData.taskID);
			if (null != t) {
				if (this._gridLayer.dataProvider = ItemUtil.getRewardDataList(t.q_tesk_rewards), 50001 == t.q_id) {
					var e = this.getAreaList();
					this.num_txt.text = e[Math.floor(Math.random() * e.length)] + ""
				} else this.num_txt.text = "";
				this.imgDesc.source = "tasksecret_" + t.q_task_des + "_png"
			}
		}
	}, e.prototype.onTouch = function(t) {
		TaskCommandSender.sendFinishTask(this._taskData.taskID, this._taskData.taskType), App.global.operate.flyToBag(this._gridLayer
			.getIconList(), this), App.panel.removePanel(68)
	}, e.prototype.getAreaList = function() {
		var t = ServerTime.serverOpenZoneTime,
			e = ServerTime.getServerTime(),
			i = [];
		e - t > 3600 ? (i[0] = 50, i[1] = 288) : (i[0] = 288, i[1] = 588);
		for (var n = [], a = i[0]; a <= i[1]; a++)(a % 10 == 0 || a % 10 == 8 || a % 10 == Math.floor(a % 100 / 10)) && n.push(
			a);
		return n
	}, e.prototype.dispose = function() {
		this._taskData = null, this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), UIMaker.putToPool(
			this._bg), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TaskSecretView.prototype, "TaskSecretView");
var TaskShowEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._index = 0, e.width = 150, e.height = 150, e
	}
	return __extends(e, t), e.prototype.play = function(t, e) {
		void 0 === t && (t = 1), void 0 === e && (e = null), this._callback = e, 1 == t ? this.playGift() : 2 == t && this.playBox(),
			this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.end, this)
	}, e.prototype.playGift = function() {
		var t = EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("task", "gift1"), 0, 0);
		t.finishCallBackFun = new FunctionVO(this.next, this)
	}, e.prototype.next = function() {
		this._gift2 = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("task", "gift2"), 0, 0, this._gift2),
			this._gift2.stop(), this._gift2.visible = !1, this._gift2.lastFrameHanderCallBack = null, this._gift3 =
			EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("task", "gift3"), 0, 0, this._gift3), this._gift3.lastFrameHanderCallBack =
			new FunctionVO(this.next2, this), this._gift3.visible = !0, this._gift3.restart(), this._gift3.play(), this._index =
			0
	}, e.prototype.next2 = function() {
		this._index++, this._index % 2 == 0 && (this._gift3.stop(), this._gift3.visible = !1, this._gift2.restart(), this._gift2
			.play(), this._gift2.visible = !0, this._gift2.lastFrameHanderCallBack = new FunctionVO(this.next, this))
	}, e.prototype.playBox = function() {
		this._box = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("task", "box"), 0, .6 * -Config.SCREEN_HEIGHT,
			this._box), this._box.degrees = 0, TweenLite.killTweensOf(this._box), TweenLite.killTweensOf(this._box.view);
		var t = .05,
			e = 3 * t;
		TweenLite.to(this._box, e, {
			y: 0,
			ease: Linear.easeOut
		});
		var i = t;
		TweenLite.to(this._box, i, {
			delay: e,
			y: -10,
			ease: Linear.easeOut
		}), TweenLite.to(this._box, i, {
			delay: e,
			degrees: -5
		});
		var n = t;
		TweenLite.to(this._box, n, {
			delay: e + i,
			y: 0,
			ease: Linear.easeOut
		}), TweenLite.to(this._box, n, {
			delay: e + i,
			degrees: 0
		});
		var a = t;
		TweenLite.to(this._box, a, {
			delay: e + i + n,
			y: -5,
			ease: Linear.easeOut
		}), TweenLite.to(this._box, a, {
			delay: e + i + n,
			degrees: 4
		});
		var o = t;
		TweenLite.to(this._box, o, {
			delay: e + i + n + a,
			y: 0,
			ease: Linear.easeOut
		}), TweenLite.to(this._box, o, {
			delay: e + i + n + a,
			degrees: 0
		}), App.timer.doTimeLoop(this, 2e3, this.yoyo)
	}, e.prototype.yoyo = function() {
		if (this._box) {
			var t = .05,
				e = 16,
				i = t;
			TweenLite.to(this._box, i, {
				degrees: e
			});
			var n = t;
			TweenLite.to(this._box, n, {
				delay: i,
				degrees: 0
			});
			var a = t;
			TweenLite.to(this._box, a, {
				delay: i + n,
				degrees: -e
			});
			var o = t;
			TweenLite.to(this._box, o, {
				delay: i + n + a,
				degrees: 0
			});
			var r = t;
			TweenLite.to(this._box, r, {
				delay: i + n + a + o,
				degrees: e / 2
			});
			var s = t;
			TweenLite.to(this._box, s, {
				delay: i + n + a + o + r,
				degrees: 0
			});
			var h = t;
			TweenLite.to(this._box, h, {
				delay: i + n + a + o + r + s,
				degrees: -e / 2
			});
			var l = t;
			TweenLite.to(this._box, l, {
				delay: i + n + a + o + r + s + h,
				degrees: 0
			})
		}
	}, e.prototype.end = function() {
		App.timer.clearTimer(this.yoyo, this), this._gift2 && (this._gift2.dispose(), this._gift2 = null), this._gift3 && (
				this._gift3.dispose(), this._gift3 = null), this._box && (TweenLite.killTweensOf(this._box), TweenLite.killTweensOf(
				this._box.view), this._box.dispose(), this._box = null), this.parent && this.parent.removeChild(this), this._callback &&
			(this._callback.exec(), this._callback = null)
	}, e
}(eui.Group);
__reflect(TaskShowEffect.prototype, "TaskShowEffect");
var TaskTalkView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.AutoClose = function() {
			App.timer.doTimeOnce(e, 1e4, function() {
				App.panel.removePanel(109)
			})
		}, e.euiSkinName = "TaskTalkSkin", e._npc = UIMaker.getCImage(null, e, null, -9, -160), e.location.addChildAt(e._npc,
			1), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		if (t.prototype.show.call(this, e), this.AutoClose(), e.taskid) {
			var i = App.config.q_taskModelContainer.getDataBean(e.taskid);
			if (null == i) return;
			this.name_txt.text = i.q_npc_name, this.desc_txt.text = i.q_task_des3, this._npc.url = ResPathUtil.getResImage(i.q_task_pos,
					"task"), i.q_music && App.sound.playSound(i.q_music), App.data.taskCenter.talk || (App.data.taskCenter.talk = !0,
					FullScreenMask.ins.setMaskAlpha(FullScreen.Panel, .01)), this.location.y = Config.SCREEN_HEIGHT - 330, this._dispatcher
				.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this)
		} else {
			var n = e[0],
				a = e[1];
			this.name_txt.text = n.name, this.desc_txt.text = n.talk, this._npc.url = ResPathUtil.getResImage(n.headId, "task"),
				this.location.y = Config.SCREEN_HEIGHT - 330, n.time && App.timer.doTimeOnce(this, n.time, function() {
					App.panel.removePanel(109), a.exec()
				})
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._npc && this._npc.clear(), FullScreenMask.ins.resetMaskAlpha(FullScreen.Panel)
	}, e.prototype.onTouch = function(t) {
		App.panel.removePanel(109)
	}, e.prototype.dispose = function() {
		this._npc && this._npc.dispose(), this._npc = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TaskTalkView.prototype, "TaskTalkView");
var Sprite = egret.Sprite,
	TaskTrackPanel = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._type = 0, e._vObj = {}, e.init(), e.addEvents(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._cfg = App.config.q_taskModelContainer, this._center = App.data.taskCenter, this._dispatcher = new DispatcherRegister,
				this._view = UIMaker.createViewBase("TaskTrackSkin"), this.addChild(this._view), this._view.touchEnabled = !0,
				this._effCon = new Sprite, this._effCon.x = 207, this._effCon.y = this.height + 5, this.addChild(this._effCon)
		}, e.prototype.addEvents = function() {
			this._dispatcher.addEventListener(TaskEvent.UPDATETASKTRACK, this.onUpdatePanel, this), this._dispatcher.addEventListener(
					egret.TouchEvent.TOUCH_TAP, this.onClick, this, this._view), this._dispatcher.addEventListener(ZoneEvent.ENTER_ZONE,
					this.checkShow, this), this._dispatcher.addEventListener(ZoneEvent.FINISH_ZONE, this.onFinishZone, this), this._dispatcher
				.addEventListener(EventType.SHOW_HIDE_PANEL, this.showbackBtn, this), this._dispatcher.addEventListener(TaskEvent.TASK_FINISH,
					this.onTaskFinish, this), this._dispatcher.addEventListener(ZoneEvent.ZONE_KILLNUM, this.onZoneKillNum, this),
				this._dispatcher.addEventListener(egret.Event.RESIZE, this.onStageSize, this, App.stage), this._dispatcher.addEventListener(
					EventType.MAINPANEL_SHOWORHIDE, this.showOrHide, this)
		}, e.prototype.show = function() {
			this.parent || (this.x = Config.SCREEN_WIDTH / 2 - 159.5, this.y = Config.SCREEN_HEIGHT - 315, App.layer.moduleLayer
				.addChild(this)), this.visible = this._view.touchEnabled = !0
		}, e.prototype.onFinishZone = function(t, e, i) {
			this._taskZoneTrackPanel && this._taskZoneTrackPanel.dispose(), this._taskZoneTrackPanel = null
		}, e.prototype.onStageSize = function(t) {
			void 0 === t && (t = null), this.x = Config.SCREEN_WIDTH / 2 - 159.5, this.y = Config.SCREEN_HEIGHT - 315, this.curCfg &&
				this.showEnterBtnGuide(this.curCfg)
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this.parent && this.parent.removeChild(this), this.removeEvents(), this.curCfg =
				null
		}, e.prototype.checkShow = function(t, e) {
			e == EnumZoneType.AUTO_FIGHT_ZONE ? (this.show(), this.updateShowGuide(!0)) : (this.updateShowGuide(!1), this &&
					this.parent && this.parent.removeChild(this)), 1113 == t ? this._taskZoneTrackPanel = new TaskZoneTrackPanel :
				this._taskZoneTrackPanel && this._taskZoneTrackPanel.parent && this._taskZoneTrackPanel.parent.removeChild(this._taskZoneTrackPanel)
		}, e.prototype.removeEvents = function() {
			this._dispatcher.removeAllListeners()
		}, e.prototype.onZoneKillNum = function(t, e) {
			if (t == e && this._data && 1 == this._data.taskState) {
				var i = this._cfg.getDataBean(this._data.taskID).q_yindao;
				(9 == i || 1 == i) && this.guide.show("点击挑战关卡", Guide.RIGHT, -75, 60, this)
			}
		}, e.prototype.onTaskFinish = function(t) {
			if (t && t.taskID > 0) {
				var e = App.config.q_taskModelContainer.getDataBean(t.taskID),
					i = StringUtil.JsonParse(e.q_tesk_rewards);
				if (i)
					for (var n = i.length, a = 0; n > a; a++)
						if (i[a].id == EnumMoney.JIN_BI || i[a].id == EnumMoney.BIND_JIN_BI) {
							var o = App.panel.getFlyTarget(4),
								r = o.localToGlobal();
							return void App.global.operate.fly(ResPathUtil.getIcon(GameUtil.getItemConfigData(i[a].id).q_tiny_icon,
								EnumImageType.ITEM_80), this, this.x + 120, this.y + 20, r.x, r.y, 1)
						}
			}
		}, e.prototype.showHide = function(t, e) {
			this._vObj[e] = t;
			for (var i in this._vObj)
				if (0 == this._vObj[i]) return void this.showAll(!1);
			this.showAll(!0)
		}, e.prototype.showAll = function(t) {
			App.data.zoneCenter.type == EnumZoneType.AUTO_FIGHT_ZONE ? this.visible = t : this.visible = !1
		}, e.prototype.showOrHide = function(t) {
			this._data && this._cfg.hasDataBean(this._data.taskID) && this._cfg.getDataBean(this._data.taskID).q_next_id > 0 ?
				this.showHide(t, EventType.MAINPANEL_SHOWORHIDE) : this.showHide(!t, EventType.MAINPANEL_SHOWORHIDE)
		}, e.prototype.showbackBtn = function(t) {
			this.showHide(!t, EventType.SHOW_HIDE_PANEL), this.updateShowGuide(!t)
		}, e.prototype.updateShowGuide = function(t) {
			if (t) {
				var e = App.data.taskCenter.threadTask;
				e && this.onUpdatePanel(e)
			} else this.curCfg = null, this.hideGuide()
		}, e.prototype.onTouchTime = function() {
			this._view.touchEnabled = !0
		}, e.prototype.onClick = function(t) {
			if (0 != this._view.touchEnabled) {
				this._view.touchEnabled = !1, App.timer.doTimeOnce(this, 200, this.onTouchTime), App.data.characterCenter.isshowheji = !
					0;
				var e = this._data.taskID,
					i = this._cfg.getDataBean(e);
				if (this.curCfg = null, this.hideGuide(), 2 == this._data.taskState) {
					this._eff && (this._eff.stop(), this._eff.removeParent());
					var n = App.thing.create(CPlayOnceEffect, "TaskTrackPanel", !0),
						a = ResPathUtil.getMenuEffect("task", "task2");
					return n.url = a, n.x = -25, n.addParent(this._effCon), n.play(), void TaskCommandSender.sendFinishTask(e, 1)
				}
				if (i.q_npc_xunlu.length > 0) {
					var o = StringUtil.JsonParse(i.q_npc_xunlu),
						r = App.global.mapModule.mapMouseModel.controlRoleData,
						s = SearchToPointVO.getVO(),
						h = h5_engine.MapVO.getCenterPoint(o.x, o.y);
					return o.npcid > 0 ? (s.finishHandler = new FunctionVO(this.onNpc, this, o.npcid), s.search(r, h.x, h.y,
						"autoFight-moveToPostion")) : s.search(r, h.x, h.y, "onMoveToMapPosition"), void r.ai.reset()
				}
				var l = StringUtil.JsonParse(i.q_finish_condition_ids);
				if (7 == l[0].type) {
					var p = App.global.characterData.level,
						c = l[0].date1;
					c > p && App.panel.openPanel(300)
				} else {
					var _ = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
					if (_ && _.q_finish_zone) {
						var d = App.data.zoneCenter.guanQiaCenter.killNum,
							u = Number(StringUtil.JsonParse(_.q_finish_zone)[0].num);
						d >= u ? App.dispatcher.dispatchEvent(TaskEvent.TASK_AUTO_RUN_TIP_SHOW, this._data) : 4 == l[0].type && Notice.showMousePosMessage(
							"<font color=" + Notice.MIDDLE_COLOR_2 + ">通关关卡数量不足，请继续挑战关卡</font>")
					}
				}
				App.data.taskCenter.tryExecuteTask(i.q_panel_ID), this.showEnterBtnGuide(i)
			}
		}, e.prototype.onNpc = function(t) {
			App.global.mapModule.mapAvatarModel.clickNpc(t)
		}, e.prototype.showEnterBtnGuide = function(t) {
			var e, i = "";
			this.curCfg = t;
			var n, a;
			switch (t.q_yindao) {
				case 11:
				case 12:
					e = App.global.enterBtn.getButton(23), e && e.isPlaying && (n = e.localToGlobal().x, a = e.localToGlobal().y,
						Guide.getGuide().show("点击挑战BOSS", Guide.RIGHT, n - 215, a + 30, App.layer.guideLayer));
					break;
				case 15:
				case 13:
				case 22:
					if (e = App.global.enterBtn.getButton(10), e && e.isPlaying) {
						i = 15 == t.q_yindao ? "点击分解神装" : 22 == t.q_yindao ? "点击打造神装" : "点击激活装扮";
						var n = e.localToGlobal().x,
							a = e.localToGlobal().y;
						Guide.getGuide().show(i, Guide.LEFT, n + 270, a + 47, App.layer.guideLayer)
					}
					break;
				case 16:
				case 10:
					if (e = App.global.enterBtn.getButton(21), e && e.isPlaying) {
						var n = e.localToGlobal().x,
							a = e.localToGlobal().y;
						Guide.getGuide().show("点击打开玩法", Guide.RIGHT, n - 215, a + 30, App.layer.guideLayer)
					}
					break;
				case 14:
					if (e = App.global.enterBtn.getButton(19), e && e.isPlaying) {
						var n = e.localToGlobal().x,
							a = e.localToGlobal().y;
						Guide.getGuide().show("点击加入帮会", Guide.RIGHT, n - 212, a + 43, App.layer.guideLayer)
					}
					break;
				case 17:
					if (App.panel.isShowing(13)) this.curCfg = null;
					else {
						var o = App.global.enterBtn.getButton(103),
							r = o.parent.y + o.y + o.parent.parent.y;
						Guide.getGuide().show("设置流畅模式", Guide.LEFT, 270, r + 13, App.layer.guideLayer)
					}
			}
		}, e.prototype.onUpdatePanel = function(t) {
			if (!t || this._cfg.hasDataBean(t.taskID) && this._cfg.getDataBean(t.taskID).q_next_id <= 0) return this.removeEvents(),
				void(this.parent && this.parent.removeChild(this));
			this._data = t, this._eff && (this._eff.stop(), this._eff.removeParent());
			var e = "",
				i = t.taskID,
				n = this._cfg.getDataBean(i);
			if (!n) return this.removeEvents(), void(this.parent && this.parent.removeChild(this));
			for (var a = StringUtil.JsonParse(n.q_finish_condition_ids), o = "", r = a.length, s = 0; r > s; s++) {
				var h = a[s];
				o += this._center.getTaskDesc(n.q_task_des, h, t.otherVarMapObj.finishcount), e += n.q_task_des2
			}
			if (2 == this._data.taskState) {
				this._eff = EffectUtils.showCEffect(this, this._effCon, ResPathUtil.getMenuEffect("task", "task1"), -15, 5, this._eff),
					e = "<font color='#35ea35'>领取奖励</font>";
				var l = o.indexOf("("),
					p = o.indexOf(")") + 1;
				l > 0 && p > l ? o = o.replace(o.slice(l, p), "<font color='#35ea35'>(已完成)</font>") : o.indexOf("已完成") < 0 && (o +=
					"<font color='#35ea35'>(已完成)</font>")
			} else 1 == this._data.taskState;
			this._view.txtTaskName.textFlow = HtmlUtil.getHtmlStr(o), this._view.txtTaskDesc.textFlow = HtmlUtil.getHtmlStr(e),
				this.showGuide(n)
		}, e.prototype.playOnceeffect = function(t) {
			var e = App.thing.create(CPlayOnceEffect, "TaskTrackPanel", !0);
			e.url = ResPathUtil.getMenuEffect("task", t), e.x = 100, e.y = -35, e.addParent(this), e.play()
		}, e.prototype.showGuide = function(t) {
			if (0 != this.visible && t && t.q_yindao >= 1)
				if (2 == this._data.taskState) this.guide.show("点击完成任务", Guide.RIGHT, -75, 60, this);
				else if (App.data.taskCenter.getThreadTaskShowGuide(t.q_yindao)) {
				var e = "";
				switch (t.q_yindao) {
					case 9:
					case 1:
						var i = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
						if (i && i.q_finish_zone) {
							var n = App.data.zoneCenter.guanQiaCenter.killNum,
								a = Number(StringUtil.JsonParse(i.q_finish_zone)[0].num);
							n >= a && (e = "点击挑战关卡")
						}
						break;
					case 2:
						e = "点击穿戴装备";
						break;
					case 3:
						e = "点击升级技能";
						break;
					case 4:
						e = "点击前往熔炼";
						break;
					case 5:
						e = "点击前往强化";
						break;
					case 6:
						e = "点击激活神器";
						break;
					case 7:
						e = "点击升级内功";
						break;
					case 10:
						e = "挑战附近玩家";
						break;
					case 11:
						e = "挑战个人BOSS";
						break;
					case 12:
						e = "挑战世界BOSS";
						break;
					case 13:
						e = "点击激活装扮";
						break;
					case 14:
						e = "点击加入帮会";
						break;
					case 15:
						e = "点击分解装备";
						break;
					case 16:
						e = "点击进阶官职";
						break;
					case 17:
						e = "设置流畅模式";
						break;
					case 18:
						e = "点击任务前往";
						break;
					case 20:
						e = "点击铸造装备";
						break;
					case 21:
						e = "点击升级光翼";
						break;
					case 22:
						e = "点击打造神装"
				}
				"" != e && this.guide.show(e, Guide.RIGHT, -75, 60, this)
			}
		}, e.prototype.hideGuide = function() {
			this._guide && (this._guide.hide(), this._guide = null)
		}, Object.defineProperty(e.prototype, "guide", {
			get: function() {
				return null == this._guide && (this._guide = Guide.getGuide()), this._guide
			},
			enumerable: !0,
			configurable: !0
		}), e
	}(h5_engine.GSprite);
__reflect(TaskTrackPanel.prototype, "TaskTrackPanel");
var TaskZoneTrackPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ZoneCountSkin", e.groupTime.visible = !1, e.num_txt.visible = !1, e.killbg_img.source =
			"shabakTaskZone_png", App.layer.panelLayer.addChild(e), e.x = Config.SCREEN_WIDTH - e.width >> 1, e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(TaskZoneTrackPanel.prototype, "TaskZoneTrackPanel");
var TreasureDataCenter = function() {
	function t() {
		this.treasureByRole = {}
	}
	return t.prototype.parseInfo = function(t) {
		this.parseData(t.index, t.baowuId, t.baowuExp)
	}, t.prototype.updataGradeUpInfo = function(t) {
		this.parseData(t.index, t.baowuId, t.baowuExp)
	}, t.prototype.parseData = function(t, e, i) {
		var n = this.treasureByRole[t];
		n || (this.treasureByRole[t] = n = {}), e > n.curTreasureId, n.curTreasureId = e, n.curExp = i, App.dispatcher.dispatchEvent(
			EnumEvent.EVENT_TREASURE)
	}, t.prototype.getTreasureRedPoint = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0; e > i; i++);
		return !1
	}, t.prototype.getTresureRoleRedPoint = function(t) {
		return this.treasureByRole[t], !1
	}, t.prototype.getAllTreasure = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0, n = 0; e > n; n++);
		return i
	}, t
}();
__reflect(TreasureDataCenter.prototype, "TreasureDataCenter");
var TreasureContainerExpend = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.objMaxStar = {}, e.maxClass = 0, e.xattr = {}, e.costObj = {}, e
	}
	return __extends(e, t), e.prototype.onFinish = function(t, e, i) {
		this.configName = t;
		for (var n, a, o = e, r = o.length, s = 0; r > s; s++) {
			n = o[s], a = DataConfigUtils.instance.build(this.configName, n, i, new Q_treasureBean), this.map[a.q_id] = a,
				this.maxClass = a.q_class > this.maxClass ? a.q_class : this.maxClass;
			var h = this.objMaxStar[a.q_class] || 0;
			this.objMaxStar[a.q_class] = h < a.q_Star ? a.q_Star : h;
			var l = new BaseAttributeDataBean;
			l.convert(a.q_add_attribute), this.xattr[a.q_id] = l, a.q_num && (this.costObj[a.q_id] = StringUtil.JsonParse(a.q_num)),
				this.list.push(a)
		}
	}, e
}(Q_treasureContainer);
__reflect(TreasureContainerExpend.prototype, "TreasureContainerExpend");
var TreasureSkillPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.array = [e._view.text0, e._view.text1, e._view.text2, e._view.text3, e._view.text4, e._view.text5, e._view.text6,
			e._view.text7
		], e.arrayname = [e._view.name0, e._view.name1, e._view.name2, e._view.name3, e._view.name4, e._view.name5, e._view
			.name6, e._view.name7
		], e.arraytitle = [e._view.title0, e._view.title1, e._view.title2, e._view.title3, e._view.title4, e._view.title5,
			e._view.title6, e._view.title7
		], e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("TreasureSkillTipSkin"), this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e,
			n = 1,
			a = 247;
		i && (n = i[0], a = i[1]);
		for (var o = GameUtil.getGlobalConfigData(a), r = StringUtil.JsonParse(o.q_string_value), s = 0; s < r.length; s++)
			this.array[s].textFlow = HtmlUtil.getHtmlStr(GameUtil.getSkillConfigDataById(r[s].id).q_tips_desc), this.arrayname[
				s].textFlow = HtmlUtil.getHtmlStr(GameUtil.getSkillConfigDataById(r[s].id).q_skillName + ":"), this.arraytitle[s]
			.textFlow = HtmlUtil.getHtmlStr(r[s].jihuo + "阶激活"), n >= r[s].jihuo ? (this.array[s].textColor = 2863402, this.arrayname[
				s].textColor = 2863402, this.arraytitle[s].textColor = 2863402) : (this.array[s].textColor = 11639929, this.arrayname[
				s].textColor = 11639929, this.arraytitle[s].textColor = 11639929);
		this._view.group1.y = this._view.group0.y + this._view.group0.height + 20, this._view.group2.y = this._view.group1.y +
			this._view.group1.height + 20, this._view.group3.y = this._view.group2.y + this._view.group2.height + 20, this._view
			.group4.y = this._view.group3.y + this._view.group3.height + 20, this._view.group5.y = this._view.group4.y + this._view
			.group4.height + 20, this._view.group6.y = this._view.group5.y + this._view.group5.height + 20, this._view.group7.y =
			this._view.group6.y + this._view.group6.height + 20
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._view && (this._view = null)
	}, e
}(BasePanel);
__reflect(TreasureSkillPanel.prototype, "TreasureSkillPanel");
var TreasureCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {}, e.prototype.onS2C_treasureInfo = function(t) {
		App.data.getTreasureCenter().parseInfo(t)
	}, e.prototype.onS2C_treasureAward = function(t) {
		var e = App.data.getTreasureCenter();
		e.updataGradeUpInfo(t)
	}, e
}(BaseConnectionRegister);
__reflect(TreasureCommandRegister.prototype, "TreasureCommandRegister");
var TreasureCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendTreasureInfo = function(t) {}, e.sendUpGradeTreasuer = function(t) {}, e
}(BaseConnectionSender);
__reflect(TreasureCommandSender.prototype, "TreasureCommandSender");
var WarpetBusinessmanView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetBusinessmanSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(503, 116, WarpetTalentComposeRender, 30, void 0, 2), this._vscroller.move(0, 0,
			this.group_grid), this._vscroller.scrollPolicyV = eui.ScrollPolicy.OFF, this._gridHash = new HashObject;
		for (var t, e = 0; 5 > e; e++) 4 > e ? (t = this["img_add" + e], this._gridHash.put(e, this.createGrid(t.x - 6, t.y -
			6))) : this._gridHash.put(e, this.createGrid(282, 348))
	}, e.prototype.createGrid = function(t, e) {
		var i = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
		return i.x = t, i.y = e, this.addChild(i), i.isShowTip = !1, i.touchEnabled = !1, i.touchChildren = !1, i.touchThrough = !
			0, i
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this.txt_des.textFlow = HtmlUtil.getHtmlStr(GameUtil.getTipDesc(
			179).q_tipDesc), this.refrshDataHash();
		for (var i = this._gridHash.getValueArray(), n = 0; 4 > n; n++) i[n].setData(null), i[n].touchEnabled = !1, i[n].touchChildren = !
			1, i[n].touchThrough = !0;
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAddClick, this, this.img_add0), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAddClick, this, this.img_add1), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onAddClick, this, this.img_add2), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onAddClick, this, this.img_add3), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onComposeClick, this, this.btn), this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP, this.selecdRender,
				this, this._vscroller.list), this._dispatcher.addEventListener(WarpetEvent.WARPET_JINGPO_COMPOSE, this.composeReslt,
				this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._dataHash.dispose(), this._dataHash = null
	}, e.prototype.selecdRender = function(t) {
		for (var e, i = this.getCurrDe(), n = 0; 4 > n; n++)
			if (e = this._gridHash.get(n), !e.data) return void(-1 == i || i == GameUtil.getItemConfigData(this._currDataArr[
				this._vscroller.list.selectedIndex].itemId).q_default ? this.onSetGridData(e, this._currDataArr[this._vscroller
				.list.selectedIndex]) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">请放入相同品阶的精魄！</font>"));
		Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">点击已选择的精魄卸下</font>")
	}, e.prototype.refrshDataHash = function() {
		this._dataHash = new HashObject;
		for (var t = App.data.bagItemDataCenter.getPropItemList(667), e = t.length, i = 0; e > i; i++) this._dataHash.put(t[
			i].id, t[i]);
		this.refreshRender()
	}, e.prototype.refreshRender = function() {
		var t = this._dataHash.getValueArray(),
			e = t.length;
		this._currDataArr = [];
		for (var i = 0; e > i; i++) t[i] && this._currDataArr.push(t[i]);
		this._vscroller.dataProvider = this._currDataArr.sort(this.sortDataArr)
	}, e.prototype.sortDataArr = function(t, e) {
		return GameUtil.getItemConfigData(t.itemId).q_default > GameUtil.getItemConfigData(e.itemId).q_default ? 1 : -1
	}, e.prototype.composeReslt = function(t) {
		for (var e, i = 0; 5 > i; i++) e = this._gridHash.get(i), 4 == i ? e.setData(t) : e.setData(null);
		this.refrshDataHash()
	}, e.prototype.onComposeClick = function(t) {
		for (var e, i = [], n = 0; 4 > n; n++) {
			if (e = this._gridHash.get(n), !e.data) return void Notice.showMousePosMessage("请先选择符合融合的材料！");
			i.push(e.data.id)
		}
		WarpetCommandSender.sendC2S_WarPetTalnetBookFuseMessage(i, 1)
	}, e.prototype.onAddClick = function(t) {
		var e = t.currentTarget,
			i = this._gridHash.get(Number(e.name));
		if (i.data) this.onSetGridData(i, i.data);
		else {
			for (var n = this._currDataArr, a = n.length, o = this.getCurrDe(), r = 0; a > r; r++)
				if (n[r] && (-1 == o || o == GameUtil.getItemConfigData(n[r].itemId).q_default)) return void this.onSetGridData(i,
					n[r]);
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有对应品阶的精魄可放入！</font>")
		}
	}, e.prototype.onRefreshCenterGrid = function() {
		for (var t, e = this._gridHash.get(4), i = 0; 4 > i; i++)
			if (t = this._gridHash.get(i), null == t.data) return void e.setData(null)
	}, e.prototype.getCurrDe = function() {
		for (var t, e = 0; 4 > e; e++)
			if (t = this._gridHash.get(e), t.data) return GameUtil.getItemConfigData(t.data.itemId).q_default;
		return -1
	}, e.prototype.onSetGridData = function(t, e) {
		if (void 0 === e && (e = null), t)
			if (!t.data && e) {
				var i = new ItemData;
				i.itemId = e.itemId, i.count = 1, i.id = e.id, t.setData(i), e.count--, e.count <= 0 && this._dataHash.put(e.id,
					null), this.refreshRender()
			} else if (t.setData(null), e) {
			var i = this._dataHash.get(e.id);
			i ? i.count++ : (i = new ItemData, i.itemId = e.itemId, i.count = 1, i.id = e.id), this._dataHash.put(e.id, i),
				this.refreshRender()
		}
		this.onRefreshCenterGrid()
	}, e.prototype.dispose = function() {
		for (var e = this._gridHash.getValueArray(), i = 0; 5 > i; i++) e[i].dispose(), e[i] = null;
		this._vscroller.dispose(), this._vscroller = null, this._gridHash.dispose(), this._gridHash = null, t.prototype.dispose
			.call(this)
	}, e
}(ViewBase);
__reflect(WarpetBusinessmanView.prototype, "WarpetBusinessmanView");
var WarpetChoosePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._id = 200, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowSecond, this.addChild(this._window), this._window.setTitle(
				"魔宠"), this._window.height = 742, this._view = new WarpetChooseView, this._window.viewContainer.addChild(this._view),
			this._btnClose = this._window.close_btn, this._vscroller = new VScrollPanel(520, 565, WarpetChooseRender), this._vscroller
			.move(4, 50, this._window.viewContainer)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._window.show(), this._vscroller.dataProvider = App.data
			.warpetCenter.getWarpetDataList(), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this._view.btn_get)
	}, e.prototype.onClick = function(t) {
		App.panel.openPanel(19, this._id)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._window.hide()
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._vscroller.dispose(), this._vscroller = null, this._view.dispose(),
			this._view = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 700
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WarpetChoosePanel.prototype, "WarpetChoosePanel");
var WarpetChooseView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetChooseSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(WarpetChooseView.prototype, "WarpetChooseView");
var WarpetDetailPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._view = new WarpetDetailView, this.addChild(this._view)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._view.show(e)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._view.hide()
	}, e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 394
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 505
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WarpetDetailPanel.prototype, "WarpetDetailPanel");
var WarpetMallPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._window = new WindowActivity, this.addChild(this._window), this._btnClose = this._window.btnClose, this.titleImage =
			this._window.imgTitle, this.viewContainer = this._window.viewContainer, this.tab = this._window.showTab(
				"珍品兑换,精魄兑换"), this.registerSubPanel(0, WarpetMallView, "wapetbusiness_title_cwsr_png", -1), this.registerSubPanel(
				1, WarpetBusinessmanView, "wapetbusiness_title_cwsr_png", -1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._window.show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._window.hide()
	}, e.prototype.dispose = function() {
		this._window && this._window.dispose(), this._window = null, t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(WarpetMallPanel.prototype, "WarpetMallPanel");
var WarpetMallRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.icon.visible = !1, e.icon2.visible = !0, e
	}
	return __extends(e, t), e
}(AbyssMallRender);
__reflect(WarpetMallRender.prototype, "WarpetMallRender");
var WarpetMallView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(502, 550, WarpetMallRender, 3), this._vscroller.move(69, 214, this), this._bg =
			UIMaker.getCImage(this, this, ResPathUtil.getImgPath("bg_abyss_mall", "zone"), 66, 89), this._txt = UIMaker.getTextField(
				this, this, 170, 820, 300, 25, 3533365, 20)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ItemEvent.UPDATE_WARPET_SHOP, this.onUpdate, this),
			ShopCommandSender.sendRequestShopListMessage(16)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.onUpdate = function() {
		this._vscroller.dataProvider = App.data.warpetCenter.shopList, this._txt.text = "已拥有:" + App.data.bagItemDataCenter
			.getItemCount(EnumItemId.WARPET_EXP_DAN) + "个" + ItemUtil.getItemName(EnumItemId.WARPET_EXP_DAN)
	}, e.prototype.dispose = function() {
		this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._vscroller && (this._vscroller.dispose(), this._vscroller =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarpetMallView.prototype, "WarpetMallView");
var WarpetPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("魔宠,鲲,孵化,兽栏"), this.registerSubPanel(0, WarpetMainView,
			"titleview_mochong_png", 61, !1, !0), this.registerSubPanel(1, KunView, "titleview_kun_png", 62, !1, !0), this.registerSubPanel(
			2, WarSpiritharchingView, "titleview_fuhua_png", 63, !1, !1), this.registerSubPanel(3, WarPetStagingView,
			"titleview_shoulan_png", -1, !1, !1)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), this._dispatcher.addEventListener(WarpetEvent.WARPET_PANEL_SELECTINDEX,
				this.selectView, this), 0 == this.selectedIndex && null == App.data.warpetCenter.fightPetList[0] && null != App.data
			.warpetCenter.kunCenter.vo && (this.selectedIndex = 1)
	}, e.prototype.selectView = function(t) {
		this.selectedIndex = t
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(TabPanel);
__reflect(WarpetPanel.prototype, "WarpetPanel");
var WarPetSelectItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WarPetSelectViewSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.grid.isShowTip = !1, this.grid.isShowDesc = !
			1, this.gridgroup.addChild(this.grid)
	}, e.prototype.clear = function() {
		this.grid && (this.grid.dispose(), this.grid = null)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickBuy,
			this, this.btn), this.createChildren()
	}, e.prototype.dataChanged = function() {
		this._bean = this.data, this.grid.setData(this._bean), this.egg_name.textFlow = HtmlUtil.getHtmlStr("<font color='" +
				ItemUtil.getItemNameColor(this._bean.itemId) + "'>" + this._bean.name + "</font>"), this.egg_time.textFlow =
			HtmlUtil.getHtmlStr("" + this._bean.bean.q_describe), this._bean.itemId == EnumItemId.KUNEGG && Guide.getGuide().show(
				"选择魔宠蛋", Guide.RIGHT, this.btn.x - 180, this.btn.y + 20, this, !1, this.btn.x, this.btn.y)
	}, e.prototype.onClickBuy = function(t) {
		WarpetCommandSender.sendC2S_hatch(App.data.warpetCenter.selectHomeId, this._bean.itemId), App.panel.removePanel(
			2003)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this._dispatcher.removeAllListeners()
	}, e
}(ItemRenderer);
__reflect(WarPetSelectItem.prototype, "WarPetSelectItem");
var WarPetSelectView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._id = 200, e.euiSkinName = "WarpetChooseSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(518, 569, WarPetSelectItem, 1), this._vscroller.x = 4, this._vscroller.y = 47,
			this.addChild(this._vscroller)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
			this.btn_get), this._vscroller.dataProvider = App.data.bagItemDataCenter.getBagList(BagTag.PET_EGG, !0)
	}, e.prototype.onClick = function(t) {
		App.panel.openPanel(19, this._id)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller && this._vscroller.removeAll()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._vscroller && (this._vscroller.dispose(), this._vscroller = null)
	}, e
}(ViewBase);
__reflect(WarPetSelectView.prototype, "WarPetSelectView");
var WarPetStagingItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._selectStar = 0, e.euiSkinName = "WarPetStagingItemSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(e
			.bggroup, e, ResPathUtil.getImgPath("warpet/mochong_a03"))), null == e.cardimg && (e.cardimg = UIMaker.getCImage(e
			.cardgroup, e, ResPathUtil.getImgPath("warpet/mochong_a03"))), e._lvNum = new NumberLevel, e._lvNum.init("21",
			"warpet_mochong_", 25, 25, -8, -8), e._lvNum.moveTo(173, 9, e), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.bggroup), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSelectTouch, this, this.checkBtn),
			this._dispatcher.addEventListener(EventWarPetType.WarPetSelect, this.warPetSelect, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.img_suo)
	}, e.prototype.warPetSelect = function(t, e) {
		this._selectStar == e && -1 == this._warpetData.state && 0 == this._warpetData.isLock && (this._warpetData.selected =
			this.checkBtn.selected = this.selectgroup.visible = t), App.data.warpetCenter.selectObj.put(e, t)
	}, e.prototype.onSelectTouch = function(t) {
		this.selectimg1.visible = this.selectimg.visible = this._warpetData.selected = this.checkBtn.selected
	}, e.prototype.onTouch = function(t) {
		switch (t.currentTarget) {
			case this.bggroup:
				App.panel.openPanel(2004, this._warpetData);
				break;
			case this.img_suo:
				WarpetCommandSender.sendC2S_StateSettingMessage(this._warpetData.id, 3)
		}
	}, e.prototype.setData = function(t) {
		this._warpetData = t, t.isLock ? (this.img_suo.source = "warpet_mochong_a08_png", this.img_suo.visible = !0, this.zhuangtai_text
				.y = 36) : (this.img_suo.source = "warpet_mochong_a09_png", this.img_suo.visible = !1, this.zhuangtai_text.y = 14),
			t.state > 0 ? this.zhuangtai_text.text = "附体" : App.data.warpetCenter.fightPetList[0] && t.id == App.data.warpetCenter
			.fightPetList[0].id ? this.zhuangtai_text.text = "出战" : this.zhuangtai_text.text = "", this._selectStar = t.warpetModelBean
			.q_pet_star, this._selectStar % 2 == 1 ? this.stargroup.x = 56 : this.stargroup.x = 48, this.bgimg.url =
			ResPathUtil.getImgPath("warpet/mochong_a0" + this._selectStar), this.cardimg.url = ResPathUtil.getWarPetCardResImage(
				t.warpetModelBean.q_pet_card, "card", ".jpg"), this.name_title.text = "" + t.warpetModelBean.q_pet_name, this.name_title
			.textColor = GameUtil.getQualityColor(2 == this._selectStar ? 1 : this._selectStar), this._lvNum.setValue(t.jie, 1);
		for (var e = LongUtil.toString(t.getMaxPower()), i = e.length, n = 0; i > n; n++) this["power" + n].source =
			"warpet_mcsz_0" + e.charAt(n) + "_png", this["power" + n].visible = !0;
		for (var a = 1; 6 >= a; a++) this["star" + a].visible = a <= this._selectStar;
		this.checkBtn.selected = this.selectgroup.visible = !1;
		for (var o = App.data.warpetCenter.selectObj.getKeyArray(), r = 0; r < o.length; r++) {
			if (App.data.warpetCenter.selectObj.get(this._selectStar)) {
				this._warpetData.selected = this.checkBtn.selected = this.selectgroup.visible = !0;
				break
			}
			this._warpetData.selected = this.checkBtn.selected = this.selectgroup.visible = !1;
			break
		}
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._lvNum && (this._lvNum.dispose(), this._lvNum = null), this.cardimg && (this.cardimg.dispose(), this.cardimg =
			null), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarPetStagingItem.prototype, "WarPetStagingItem");
var WarPetStagingView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarPetStagingViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._pool = [], this._scroll = new VScrollPanel(640, 665, WarpetStatgShowItem, 0), this.groupItem.addChild(this._scroll)
	}, e.prototype.showView = function(t) {
		for (var e = t.length, i = 0, n = [], a = 0; e > a; a += 3) {
			var o = [];
			if (o.push(t[a]), a + 1 >= e) {
				n.push(o);
				break
			}
			if (o.push(t[a + 1]), a + 2 >= e) {
				n.push(o);
				break
			}
			o.push(t[a + 2]), n.push(o)
		}
		this._scroll.dataProvider = n, this.desc.text = "容量:" + App.data.warpetCenter.getWarpetDataList().length + "/250";
		for (var r = App.data.warpetCenter.getWarpetDataList(), s = r.length, h = 0; s > h; h++) 4 == r[h].warpetModelBean.q_pet_star &&
			i++;
		this.fourgroup.visible = i > 3
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.fenjieClick,
				this, this.fenjie_img), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.checkClick, this, this
				.check0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.checkClick, this, this.check1), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.checkClick, this, this.check2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.checkClick, this, this.check3), this._dispatcher.addEventListener(WarpetEvent.WARPET_REFRESH,
				this.refreView, this), this._dispatcher.addEventListener(WarpetEvent.WARPET_SUO, this.refreView, this), this._dispatcher
			.addEventListener(WarpetEvent.WARPET_UPJIEREFRESH, this.refreView, this), this.check0.selected = !1, this.check1.selected = !
			1, this.check2.selected = !1, this.check3.selected = !1, this.showView(App.data.warpetCenter.getWarpetDataList())
	}, e.prototype.refreSelectView = function() {
		var t = App.data.warpetCenter.getWarpetDataList(),
			e = [];
		if (this.check0.selected || this.check1.selected || this.check2.selected || this.check3.selected) {
			for (var i = 1 == this.check0.selected ? 1 : 0, n = 1 == this.check1.selected ? 2 : 0, a = 1 == this.check2.selected ?
					3 : 0, o = 1 == this.check3.selected ? 4 : 0, r = t.length, s = 0; r > s; s++) {
				var h = t[s].warpetModelBean.q_pet_star;
				h != i && h != n && h != a && h != o || -1 != t[s].state || 0 != t[s].isLock || e.push(t[s])
			}
			App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect, this.check0.selected, 1), App.dispatcher.dispatchEvent(
					EventWarPetType.WarPetSelect, this.check1.selected, 2), App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect,
					this.check2.selected, 3), App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect, this.check3.selected, 4),
				this.showView(e)
		} else App.data.warpetCenter.selectObj.clear(), this.showView(t)
	}, e.prototype.refreView = function() {
		this.showView(App.data.warpetCenter.getWarpetDataList())
	}, e.prototype.checkClick = function(t) {
		this.refreSelectView()
	}, e.prototype.hide = function() {
		this._scroll.removeAll(), App.data.warpetCenter.selectObj.clear(), t.prototype.hide.call(this)
	}, e.prototype.fenjieClick = function(t) {
		Alert.show("分解所有选中的魔宠", "提示", "确定|取消", this.callFunction, this)
	}, e.prototype.callFunction = function() {
		for (var t = App.data.warpetCenter.getWarpetDataList(), e = [], i = t.length, n = 0; i > n; n++) {
			var a = 1 == this.check0.selected ? 1 : 0,
				o = 1 == this.check1.selected ? 2 : 0,
				r = 1 == this.check2.selected ? 3 : 0,
				s = 1 == this.check3.selected ? 4 : 0,
				h = t[n];
			(h.warpetModelBean.q_pet_star == a || h.warpetModelBean.q_pet_star == o || h.warpetModelBean.q_pet_star == r || h.warpetModelBean
				.q_pet_star == s) && -1 == h.state && 0 == h.isLock && h.selected && e.push(LongUtil.fromString(h.id))
		}
		WarpetCommandSender.sendC2S_fenjie(e), this.check0.selected = !1, this.check1.selected = !1, this.check2.selected = !
			1, this.check3.selected = !1, App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect, this.check0.selected, 1),
			App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect, this.check1.selected, 2), App.dispatcher.dispatchEvent(
				EventWarPetType.WarPetSelect, this.check2.selected, 3), App.dispatcher.dispatchEvent(EventWarPetType.WarPetSelect,
				this.check3.selected, 4)
	}, e.prototype.dispose = function() {
		if (this._scroll && (this._scroll.dispose(), this._scroll = null), this._pool) {
			for (var e = this._pool.length, i = 0; e > i; i++) this._pool[i].dispose();
			this._pool = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.getItem = function() {
		return this._pool.length > 0 ? this._pool.shift() : new WarPetStagingItem
	}, e
}(ViewBase);
__reflect(WarPetStagingView.prototype, "WarPetStagingView");
var WarpetStatgShowItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WarpetStatgShowSkin", e
	}
	return __extends(e, t), e.prototype.clear = function() {}, e.prototype.creategrid = function() {}, e.prototype.onAddStage =
		function(e) {
			t.prototype.onAddStage.call(this, e), this._pool = []
		}, e.prototype.dataChanged = function() {
			this.arr = this.data;
			for (var t, e, i = this.arr.length; this.numChildren > 0;) e = this.removeChildAt(0), egret.is(e, "eui.Image") || (
				t = e, t.hide(), this._pool.push(t));
			for (var n = 0; i > n; n++) t = new WarPetStagingItem, t.show(), t.setData(this.arr[n]), this.addChild(t), t.x = 15 +
				204 * Math.floor(n % 3), t.y = 270 * Math.floor(n / 3)
		}, e.prototype.onRemoveStage = function(e) {
			if (t.prototype.onRemoveStage.call(this, e), this._pool) {
				for (var i = this._pool.length, n = 0; i > n; n++) this._pool[n].dispose();
				this._pool = null
			}
		}, e
}(ItemRenderer);
__reflect(WarpetStatgShowItem.prototype, "WarpetStatgShowItem");
var WarpetTalentChoosePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currIndex = 0, e._id = 135, e
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowSecond, this.addChild(this._window), this._window.setTitle(
				"天赋替换"), this._window.height = 742, this._view = new WarpetChooseView, this._window.viewContainer.addChild(this._view),
			this._view.btn_get.label = "获取天赋", this._btnClose = this._window.close_btn, this._vscroller = new VScrollPanel(520,
				565, WarpetTalentRender), this._vscroller.move(4, 50, this._window.viewContainer)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._window.show();
		var i = e;
		this._currdata = i[0], this._currIndex = i[1];
		for (var n = App.data.bagItemDataCenter.getPropItemList(666), a = new HashObject, o = 0; 10 > o; o++) this._currIndex !=
			o && this._currdata.talentList[o].itemid > 0 && a.put(GameUtil.getItemConfigData(this._currdata.talentList[o].itemid)
				.q_child_type, o);
		for (var r, s, h = [], l = n.length, o = 0; l > o; o++) s = a.get(n[o].getDataBean().q_child_type), (null == s || 0 >
			s) && (r = new WarpetTalentRenderData, r.init(n[o].id, n[o].itemId, this._currdata.id, this._currIndex), h.push(r));
		h = h.sort(this.sortDataArr), this._currdata.talentList[this._currIndex].itemid > 0 && (r = new WarpetTalentRenderData,
				r.init("0", this._currdata.talentList[this._currIndex].itemid, this._currdata.id, this._currIndex), h.unshift(r)),
			this._vscroller.dataProvider = h, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this._view.btn_get), a.dispose(), a = null
	}, e.prototype.sortDataArr = function(t, e) {
		return GameUtil.getItemConfigData(t.itemModelid).q_default > GameUtil.getItemConfigData(e.itemModelid).q_default ?
			-1 : 1
	}, e.prototype.onClick = function(t) {
		App.panel.openPanel(19, this._id)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._window.hide()
	}, e.prototype.dispose = function() {
		this._window.dispose(), this._window = null, this._vscroller.dispose(), this._vscroller = null, this._view.dispose(),
			this._view = null, t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 700
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WarpetTalentChoosePanel.prototype, "WarpetTalentChoosePanel");
var WarpetTalentRenderData = function(t) {
	function e() {
		var e = null !== t && t.apply(this, arguments) || this;
		return e.itemModelid = 0, e.itemid = "", e.index = 0, e.petid = "", e
	}
	return __extends(e, t), e.prototype.init = function(t, e, i, n) {
		this.itemid = t, this.itemModelid = e, this.index = n, this.petid = i
	}, e
}(egret.HashObject);
__reflect(WarpetTalentRenderData.prototype, "WarpetTalentRenderData");
var WarpetTalentComposePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._id = 135, e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		for (var e = this._gridHash.getValueArray(), i = 0; 4 > i; i++) e[i].dispose(), e[i] = null;
		this._bg.dispose(), this._bg = null, this._vscroller.dispose(), this._vscroller = null, this._gridHash.dispose(),
			this._gridHash = null, this._window.dispose(), this._window = null, this._view.dispose(), this._view = null, t.prototype
			.dispose.call(this)
	}, e.prototype.init = function() {
		t.prototype.init.call(this), this._window = new WindowSecond, this.addChild(this._window), this._window.setTitle(
				"天赋融合"), this._window.height = 742, this._view = new WarpetTalentComposeView, this._window.viewContainer.addChild(
				this._view), this._btnClose = this._window.close_btn, this._bg = UIMaker.getCImage(this, e, ResPathUtil.getImgPath(
				"warpet_talent_compose", "warpet", ".png"), 95, 149), this._view.addChildAt(this._bg, 0), this._vscroller = new VScrollPanel(
				503, 116, WarpetTalentComposeRender, 30, void 0, 2), this._vscroller.move(0, 0, this._view.group_grid), this._vscroller
			.scrollPolicyV = eui.ScrollPolicy.OFF, this._gridHash = new HashObject;
		for (var i, n = 0; 4 > n; n++) 3 == n ? this._gridHash.put(n, this.createGrid(225, 259)) : (i = this._view[
			"img_add" + n], this._gridHash.put(n, this.createGrid(i.x - 6, i.y - 6)));
		this._view.txt_get.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>获取天赋</u></font>")
	}, e.prototype.createGrid = function(t, e) {
		var i = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
		return i.x = t, i.y = e, this.addChild(i), i.isShowTip = !1, i.touchEnabled = !1, i.touchChildren = !1, i.touchThrough = !
			0, i
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._window.hide(), this._dataHash.dispose(), this._dataHash =
			null
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._window.show(), this._view.txt_des.textFlow =
			HtmlUtil.getHtmlStr(GameUtil.getTipDesc(178).q_tipDesc), this.refrshDataHash();
		for (var i = this._gridHash.getValueArray(), n = 0; 4 > n; n++) i[n].setData(null), i[n].touchEnabled = !1, i[n].touchChildren = !
			1, i[n].touchThrough = !0;
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetClick, this, this._view.txt_get), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onAddClick, this, this._view.img_add2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onAddClick, this, this._view.img_add1), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onAddClick, this, this._view.img_add0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onComposeClick, this, this._view.btn_compose), this._dispatcher.addEventListener(eui.ItemTapEvent.ITEM_TAP,
				this.selecdRender, this, this._vscroller.list), this._dispatcher.addEventListener(WarpetEvent.WARPET_TALENT_COMPOSE,
				this.composeReslt, this)
	}, e.prototype.selecdRender = function(t) {
		for (var e, i = this.getCurrDe(), n = 0; 3 > n; n++)
			if (e = this._gridHash.get(n), !e.data) return void(-1 == i || i == GameUtil.getItemConfigData(this._currDataArr[
				this._vscroller.list.selectedIndex].itemId).q_default ? this.onSetGridData(e, this._currDataArr[this._vscroller
				.list.selectedIndex]) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">请放入相同品阶的天赋！</font>"));
		Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">点击已选择的天赋卸下</font>")
	}, e.prototype.refrshDataHash = function() {
		this._dataHash = new HashObject;
		for (var t = App.data.bagItemDataCenter.getPropItemList(666), e = t.length, i = 0; e > i; i++) this._dataHash.put(t[
			i].id, t[i]);
		this.refreshRender()
	}, e.prototype.refreshRender = function() {
		var t = this._dataHash.getValueArray(),
			e = t.length;
		this._currDataArr = [];
		for (var i = 0; e > i; i++) t[i] && this._currDataArr.push(t[i]);
		this._vscroller.dataProvider = this._currDataArr.sort(this.sortDataArr)
	}, e.prototype.sortDataArr = function(t, e) {
		return GameUtil.getItemConfigData(t.itemId).q_default > GameUtil.getItemConfigData(e.itemId).q_default ? 1 : -1
	}, e.prototype.composeReslt = function(t) {
		for (var e, i = 0; 4 > i; i++) e = this._gridHash.get(i), 3 == i ? e.setData(t) : e.setData(null);
		this.refrshDataHash()
	}, e.prototype.onComposeClick = function(t) {
		for (var e, i = [], n = 0; 3 > n; n++) {
			if (e = this._gridHash.get(n), !e.data) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">请先选择符合融合的材料！</font>");
			i.push(e.data.id)
		}
		WarpetCommandSender.sendC2S_WarPetTalnetBookFuseMessage(i)
	}, e.prototype.onGetClick = function(t) {
		App.panel.openPanel(19, this._id)
	}, e.prototype.onAddClick = function(t) {
		var e = t.currentTarget,
			i = this._gridHash.get(Number(e.name));
		if (i.data) this.onSetGridData(i, i.data);
		else {
			for (var n = this._currDataArr, a = n.length, o = this.getCurrDe(), r = 0; a > r; r++)
				if (n[r] && (-1 == o || o == GameUtil.getItemConfigData(n[r].itemId).q_default)) return void this.onSetGridData(i,
					n[r]);
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">没有对应品阶的天赋可放入！</font>")
		}
	}, e.prototype.onRefreshCenterGrid = function() {
		for (var t, e = this._gridHash.get(3), i = 0; 3 > i; i++)
			if (t = this._gridHash.get(i), null == t.data) return void e.setData(null);
		e.setData(this._id)
	}, e.prototype.getCurrDe = function() {
		for (var t, e = 0; 3 > e; e++)
			if (t = this._gridHash.get(e), t.data) return GameUtil.getItemConfigData(t.data.itemId).q_default;
		return -1
	}, e.prototype.onSetGridData = function(t, e) {
		void 0 === e && (e = null), t && (!t.data && e ? (t.setData(e), this._dataHash.put(e.id, null), this.refreshRender()) :
			(t.setData(null), e && (this._dataHash.put(e.id, e), this.refreshRender()))), this.onRefreshCenterGrid()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 538
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 700
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BasePanel);
__reflect(WarpetTalentComposePanel.prototype, "WarpetTalentComposePanel");
var WarpetTalentComposeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetTalentComposeSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(WarpetTalentComposeView.prototype, "WarpetTalentComposeView");
var WarPetYulanView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarPetYulanViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._grid = GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._grid.move(30, 560, this), this._grid
			.isShowTip = !1, this._lvNum = new NumberLevel, this._lvNum.init("j", "warpet_mochong_c", 31, 31, -3, -3), this._lvNum
			.moveTo(26, 91, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addEvent(), e && (this.warpetData = e, this.showView())
	}, e.prototype.showView = function() {
		var t = App.config.q_warpetMouldContainer.getDataBean(this.warpetData.stateId),
			e = this.warpetData.getSkillBean();
		this.btn.visible = null == App.data.warpetCenter.fightPetList[0], this.name_text.text = t.q_pet_name, this.name_text
			.textColor = GameUtil.getQualityColor(t.q_pet_star), this.fightNum.visible = !0, this.fightNum.setValue(this.warpetData
				.getMaxPower()), this._lvNum.setValue(this.warpetData.jie, -1);
		for (var i = 1; 6 >= i; i++) this["star" + i].visible = i <= t.q_pet_star;
		if (t.q_pet_star % 2 == 1 ? this.stargroup.x = 186 : this.stargroup.x = 166, e && (this._grid.setData(e.q_skillID),
				this.skillname.text = e.q_skillName, this.desc_text.textFlow = HtmlUtil.getHtmlStr(e.q_desc), this._grid.visible = !
				0), -1 == this.warpetData.state && 0 == this.warpetData.isLock ? this.fenjieBtn.visible = !0 : this.fenjieBtn.visible = !
			1, this.warpetData.isLock ? this.suoimg.source = "warpet_mochong_suo2_png" : this.suoimg.source =
			"warpet_mochong_suo1_png", this.suoimg.visible = !0, this.arrtext.textFlow = HtmlUtil.getHtmlStr(StringUtil.getchongwuzizhi(
				this.warpetData.zizhilist)), this.addAvatarUI(this.warpetData.featureid), 2 == this.warpetData.type) {
			this.skillname.visible = !1, this.desc_text.visible = !1, this._grid.visible = !1, this.arrtext.visible = this.zizhiimg
				.visible = this.suoimg.visible = this.btn.visible = this.fenjieBtn.visible = !1;
			var n = App.config.q_warpetKunSkillContainer.list;
			this._gridList = [];
			for (var a = void 0, i = 0; i < n.length; i++) a = new KunSkillGrid(EnumGridStyle.GRID_STYLE_KUN), a.move(87 + 68 *
				(i % 5), 65 * Math.floor(i / 5) + 565, this), a.setData(n[i].q_id), this._gridList.push(a)
		}
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchGroup, this, this.groupClick), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.touchFenjie, this, this.fenjieBtn), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.chuzhan, this, this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.jiasuClick, this, this.suoimg)
	}, e.prototype.jiasuClick = function(t) {
		var e = "";
		e = this.warpetData.isLock ? "将该魔宠解锁" : "将该魔宠上锁", Alert.show(e, "提示", "确定|取消", this.jiasuoCall, this)
	}, e.prototype.jiasuoCall = function() {
		var t = 3;
		t = this.warpetData.isLock ? 3 : 2, WarpetCommandSender.sendC2S_StateSettingMessage(this.warpetData.id, t), App.panel
			.removePanel(2004)
	}, e.prototype.chuzhan = function(t) {
		WarpetCommandSender.sendC2S_StateSettingMessage(this.warpetData.id, 0), App.panel.removePanel(2004), App.dispatcher
			.dispatchEvent(WarpetEvent.WARPET_PANEL_SELECTINDEX, 0)
	}, e.prototype.touchFenjie = function(t) {
		this.warpetData.warpetModelBean.q_pet_star >= 4 ? Alert.show("分解所选中的魔宠", "提示", "确定|取消", this.callFunction, this) :
			(WarpetCommandSender.sendC2S_fenjie([LongUtil.fromString(this.warpetData.id)]), App.panel.removePanel(2004))
	}, e.prototype.callFunction = function() {
		WarpetCommandSender.sendC2S_fenjie([LongUtil.fromString(this.warpetData.id)]), App.panel.removePanel(2004)
	}, e.prototype.touchGroup = function(t) {
		App.panel.removePanel(2004)
	}, e.prototype.addAvatarUI = function(t, e) {
		void 0 === e && (e = 3), null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.x = 260, this._avatar
				.y = 385, this.addChild(this._avatar), this._avatar.aniDirType = 1, this._avatar.touchEnabled = !1, this._avatar.touchChildren = !
				1), this._avatar.visible = !0, this._avatar.dir = e, this._avatar.changeAvatarPartResource(AvatarPartType.BODY,
				ResPathUtil.getMapPetAvatarRes(t)), this.warpetData.warpetModelBean.q_pet_star > 4 && 1 == this.warpetData.type ?
			this._avatar.changeAct(AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1) : (this._avatar.changeAct(AvatarActionType
					.ACTION_TYPE_UI, !0, !0), this._avatar.dir = h5_engine.SceneType.TOP, 2 == this.warpetData.type ? this._avatar.y =
				435 : this._avatar.y = 385), this._avatar.playEndHanlder = new FunctionVO(this.endSkillAtk, this, this._avatar),
			this._avatar.play()
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_UI, !0, !0), t.dir = h5_engine.SceneType.TOP, t.playEndHanlder = null
	}, e.prototype.hide = function() {
		if (this._gridList) {
			for (var e = 0; e < this._gridList.length; e++) this._gridList[e].dispose();
			this._gridList = null
		}
		t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._lvNum && (this._lvNum.dispose(), this._lvNum = null), this._grid && GridUtil.putInPool(this._grid), this.fightNum &&
			(this.fightNum.dispose(), this.fightNum = null), this._avatar && this._avatar.dispose(), this._avatar = null, t.prototype
			.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarPetYulanView.prototype, "WarPetYulanView");
var WarSpiritharchingView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarSpirithatchingViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._pool = [], null == this._mask && (this._mask = new h5_engine.GShape, this._mask.graphics.clear(), this._mask.graphics
			.beginFill(0, .85), this._mask.graphics.drawRect(0, 0, Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT), this._mask.graphics
			.endFill(), this._mask.touchEnabled = !0, this.addChild(this._mask)), this._mask.visible = !1
	}, e.prototype.showView = function(t) {
		for (var e, i, n = t.length; this.groupItem0.numChildren > 0;) i = this.groupItem0.removeChildAt(0), egret.is(i,
			"eui.Image") || (e = i, e.hide(), this._pool.push(e));
		for (var a = n - 1; a >= 0; a--) e = this.getItem(), e.show(), e.setData(t[a]), this.groupItem0.addChild(e), e.x =
			25 + 292 * Math.floor(a % 2), e.y = 10 + 394 * Math.floor(a / 2)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EventWarPetType.WarPetEggSelect, this.onEggSelectClick,
			this), this._dispatcher.addEventListener(EventWarPetType.WarPetStags, this.showView, this), this._dispatcher.addEventListener(
			WarpetEvent.WARPET_ADD, this.addWarpet, this), this.showView(App.data.warpetCenter.fuhuahash.getKeyArray())
	}, e.prototype.addWarpet = function(t) {
		1 == t.type ? App.panel.openPanel(2004, t) : 2 == t.type && App.panel.openPanel(7005, t)
	}, e.prototype.onEggSelectClick = function(t) {
		this._dispatcher.removeEventListener(EventWarPetType.WarPetEggSelect, this.onEggSelectClick, this), this._dispatcher
			.removeEventListener(EventWarPetType.WarPetStags, this.showView, this), this._commonItem = t, this._commonItem.egggroup
			.x = this.groupItem0.x + t.x + t.egggroup.x, this._commonItem.egggroup.y = this.groupItem0.y + t.y + t.egggroup.y +
			60, this.addChild(this._commonItem.egggroup), TweenLite.to(this._commonItem.egggroup, 1, {
				x: 323,
				y: 510,
				scaleX: 1.6,
				scaleY: 1.6,
				onComplete: this.flyClick,
				onCompleteParams: [this._commonItem],
				onCompleteScope: this
			})
	}, e.prototype.flyClick = function(t) {
		if (this._mask.visible = !0, this.parent && this.parent.parent && this.parent.parent.parent) {
			var e = this.parent.parent.parent;
			e.imgTitle.visible = !1, e._moneyBar.visible = !1, e.close_btn.visible = !1
		}
		TweenLite.to(t.egggroup, .04, {
			rotation: 15,
			onComplete: this.yaohuang1,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang1 = function(t) {
		TweenLite.to(t.egggroup, .08, {
			rotation: -15,
			onComplete: this.yaohuang2,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang2 = function(t) {
		TweenLite.to(t.egggroup, .04, {
			rotation: 0,
			onComplete: this.yaohuang3,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang3 = function(t) {
		TweenLite.to(t.egggroup, .04, {
			rotation: 5,
			onComplete: this.yaohuang4,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang4 = function(t) {
		TweenLite.to(t.egggroup, .08, {
			rotation: -5,
			onComplete: this.yaohuang5,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang5 = function(t) {
		TweenLite.to(t.egggroup, .04, {
			rotation: 0,
			onComplete: this.yaohuang6,
			onCompleteParams: [t],
			onCompleteScope: this
		})
	}, e.prototype.yaohuang6 = function(t) {
		EffectUtils.showOnceEffect(this, this, ResPathUtil.getMenuEffect("warpet", "eggfuhua"), 325, 448), App.timer.doTimeOnce(
			this, 650, this.onRemove, [t])
	}, e.prototype.onRemove = function(t) {
		if (this._dispatcher.addEventListener(EventWarPetType.WarPetEggSelect, this.onEggSelectClick, this), this._dispatcher
			.addEventListener(EventWarPetType.WarPetStags, this.showView, this), WarpetCommandSender.sendC2S_hatchgetMessage(t
				.warpetid), t.clearEffect(), this._mask.visible = !1, this.parent && this.parent.parent && this.parent.parent.parent
		) {
			var e = this.parent.parent.parent;
			e.imgTitle.visible = !0, e._moneyBar.visible = !0, e.close_btn.visible = !0
		}
		App.global.redPoint.redPointDispatchEvent(63)
	}, e.prototype.hide = function() {
		this._commonItem && this._commonItem.egggroup && TweenLite.killTweensOf(this._commonItem.egggroup), App.timer.clearTimer(
			this.onRemove, this), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		if (this._pool) {
			for (var e = this._pool.length, i = 0; e > i; i++) this._pool[i].dispose();
			this._pool = null
		}
		this._mask && this._mask.parent && (this._mask.parent.removeChild(this._mask), this._mask = null), t.prototype.dispose
			.call(this)
	}, e.prototype.getItem = function() {
		return this._pool.length > 0 ? this._pool.shift() : new WarSpirithatchingItem
	}, e
}(ViewBase);
__reflect(WarSpiritharchingView.prototype, "WarSpiritharchingView");
var WarSpirithatchingItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.warpetid = -1, e.euiSkinName = "WarSpirithatchingItemSkin", null == e.bgimg && (e.bgimg = UIMaker.getCImage(
			e.bggroup, e, ResPathUtil.getImgPath("warpet/warpet_bg1"))), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.addChild(this.egggroup), this.egggroup.x = 148, this.egggroup.y = 205, this.egggroup
			.scaleX = 1, this.egggroup.scaleY = 1, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSelectClick,
				this, this.btn)
	}, e.prototype.callFunction = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.callFunction1 = function() {
		WarpetCommandSender.sendC2S_hatchunlockMessage(this.warpetid)
	}, e.prototype.onSelectClick = function(t) {
		if ("解 锁" == this.btn.label) {
			var e = 289;
			2 == this.warpetid ? e = 289 : 3 == this.warpetid ? e = 290 : 4 == this.warpetid && (e = 291);
			var i = GameUtil.getGlobalConfigData(e),
				n = i.q_string_value.split("_");
			289 == e && n ? ServerTime.openday >= LongUtil.fromString(n[0]) || App.global.characterData.vipLevel >= LongUtil.fromString(
					n[1]) ? WarpetCommandSender.sendC2S_hatchunlockMessage(this.warpetid) : Alert.show("VIP等级不足,是否前往充值?", "提示",
					"确定|取消", this.callFunction, this, null, !0) : ServerTime.openday >= LongUtil.fromString(n[0]) ?
				WarpetCommandSender.sendC2S_hatchunlockMessage(this.warpetid) : App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) >=
				LongUtil.fromString(n[1]) ? Alert.show("是否消耗" + LongUtil.fromString(n[1]) + "元宝开启", "提示", "确定|取消", this.callFunction1,
					this) : Alert.show("元宝不足,是否前往充值?", "提示", "确定|取消", this.callFunction, this, null, !0)
		} else "领 取" == this.btn.label ? App.dispatcher.dispatchEvent(EventWarPetType.WarPetEggSelect, this) : "加 速" ==
			this.btn.label ? App.panel.openPanel(2008, this.warpetid) : (App.data.warpetCenter.selectHomeId = this.warpetid,
				App.panel.openPanel(2003))
	}, e.prototype.setData = function(t) {
		this.warpetid = t;
		var e = App.data.warpetCenter.fuhuahash.get(t),
			i = 289;
		2 == this.warpetid ? i = 289 : 3 == this.warpetid ? i = 290 : 4 == this.warpetid && (i = 291);
		var n = GameUtil.getGlobalConfigData(i);
		if (this.tiaojian.textFlow = HtmlUtil.getHtmlStr(n.q_desc), this.tiaojian.visible = !1, 0 == e.state) this.btn.label =
			"解 锁", this.zhuangtai_img.source = "warpet_suo3_png", this.zhuangtai_img.visible = !0, this.title_img.source = "",
			this.reddian.visible = !1, this.tiaojian.visible = !0;
		else if (1 == e.state) this.btn.label = "选 择", this.zhuangtai_img.source = "warpet_kong_png", this.zhuangtai_img.visible = !
			0, this.title_img.source = "", App.data.bagItemDataCenter.getBagList(BagTag.PET_EGG).length > 0 ? this.reddian.visible = !
			0 : this.reddian.visible = !1;
		else if (2 == e.state) {
			0 == e.hatchingTime ? (this.btn.label = "领 取", this.reddian.visible = !0) : (this.btn.label = "加 速", this.reddian.visible = !
				1), this.zhuangtai_img.visible = !1;
			var a = App.config.q_warpetEggContainer.getDataBean(e.petEggId),
				o = App.config.q_itemContainer.getDataBean(a.q_itemid);
			null == this.effEffect && (this.effEffect = EffectUtils.showCEffect(this, this.egggroup, ResPathUtil.getMenuEffect(
				"warpet", "egg" + o.q_id), 62, 140)), this.title_img.source = "warpet_title_" + o.q_id + "_png"
		}
		0 == e.hatchingTime ? (App.timer.clearTimer(this.onTimeCount, this), this.time_text.visible = !1) : (this.time_text
				.visible = !0, App.timer.serverTimeEnd(this, this.onTimeCount, e.hatchingTime)), 1 == this.warpetid && 1 == App.data
			.bagItemDataCenter.getItemCount(EnumItemId.KUNEGG) && Guide.getGuide().show("选择栏位", Guide.LEFT, this.btn.x + 203,
				this.btn.y - 296, this.btn, !1, this.btn.x, this.btn.y)
	}, e.prototype.onTimeCount = function(t) {
		t.spuleTime > 0 ? this.time_text.text = "" + StringUtil.convertTime(t.spuleTime) : (this.time_text.visible = !1,
			this.reddian.visible = !0, this.btn.label = "领 取", App.timer.clearTimer(this.onTimeCount, this))
	}, e.prototype.clearEffect = function() {
		null != this.effEffect && (this.effEffect.stop(), this.effEffect.dispose(), this.effEffect = null)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onTimeCount, this), this.clearEffect(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._dispatcher && this._dispatcher.removeAllListeners(), App.timer.clearTimer(this.onTimeCount, this), this.clearEffect(),
			this.bgimg && (this.bgimg.dispose(), this.bgimg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarSpirithatchingItem.prototype, "WarSpirithatchingItem");
var WarpetChooseRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WarpetChooseRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_choose)
	}, e.prototype.clear = function() {
		this._gridRenderItem && this._gridRenderItem.dispose(), this._gridRenderItem = null
	}, e.prototype.onClick = function() {
		0 == App.data.warpetCenter.choosePanelState ? (WarpetCommandSender.sendC2S_StateSettingMessage(this._warpetData.id,
			0), App.panel.removePanel(8001)) : this._warpetData.jie >= 4 ? (WarpetCommandSender.sendC2S_AppendageMessage(this
			._warpetData.id, App.data.warpetCenter.headIndex), App.panel.removePanel(8001)) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">魔宠四阶可附体</font>")
	}, e.prototype.dataChanged = function() {
		this._warpetData = this.data, this._gridRenderItem || (this._gridRenderItem = new WarpetGridRenderItem, this._gridRenderItem
				.x = 5, this._gridRenderItem.y = 5, this.addChild(this._gridRenderItem)), this._gridRenderItem.refresh(this._warpetData),
			this.txt_state.visible = !1, this._warpetData.state >= 0 && (this.txt_state.visible = !0, this._warpetData.state >
				0 ? this.txt_state.text = "(附体中)" : this.txt_state.text = "(出战中)"), 0 == App.data.warpetCenter.choosePanelState ?
			this.btn_choose.label = "出 战" : this.btn_choose.label = "附 体", this.txt_allpower.text = "总战力：" + this._warpetData.getMaxPower(),
			this.txt_score.text = "(评分：" + this._warpetData.getScore() + ")"
	}, e
}(ItemRenderer);
__reflect(WarpetChooseRender.prototype, "WarpetChooseRender");
var WarpetDetailItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetDetailItemSkin", e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e.prototype.setValue = function(t) {
		this.show_img.visible = t
	}, e
}(ViewBase);
__reflect(WarpetDetailItem.prototype, "WarpetDetailItem");
var WarpetGridItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetGridSkin", e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		App.timer.clearTimer(this.onTimer, this), this._starItem && this._starItem.dispose(), this._starItem = null, this.parent &&
			this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this)
	}, e.prototype.onClick = function() {}, e.prototype.onBegin = function() {
		App.timer.doTimeOnce(this, 1e3, this.onTimer)
	}, e.prototype.onEnd = function() {
		App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.onTimer = function() {
		1 == this.suo_img.visible && (WarpetCommandSender.sendC2S_StateSettingMessage(this._data.id, 3), this.suo_img.visible = !
			1)
	}, e.prototype.refresh = function(t) {
		t && (this._starItem || (this._starItem = new WarpetStarItem, this.star_group.addChild(this._starItem)), this._starItem
			.refresh(t), this.red_img.visible = !1, this.suo_img.visible = !1)
	}, e
}(ViewBase);
__reflect(WarpetGridItem.prototype, "WarpetGridItem");
var WarpetGridRenderItem = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridItem || (this._gridItem = new WarpetGridItem, this._gridItem.y = 10, this.addChild(this._gridItem)), this
			._nameTxt || (this._nameTxt = UIMaker.getTextField(this, e, this._gridItem.width + 3, 20, 150, 20, 16769412, 20)),
			this._lvTxt || (this._lvTxt = UIMaker.getTextField(this, e, this._gridItem.width + 3, 53, 100, 20, 12420166, 18)),
			this._skillLvTxt || (this._skillLvTxt = UIMaker.getTextField(this, e, this._gridItem.width + 3, 53, 100, 20,
				12420166, 18)), this._skillLvTxt.textAlign = this._lvTxt.textAlign = this._nameTxt.textAlign = egret.HorizontalAlign
			.LEFT
	}, e.prototype.dispose = function() {
		this._gridItem && this._gridItem.dispose(), this._gridItem = null, this._nameTxt && this.removeChild(this._nameTxt),
			this._nameTxt = null, this._lvTxt && this.removeChild(this._lvTxt), this._lvTxt = null, this._skillLvTxt && this.removeChild(
				this._skillLvTxt), this._skillLvTxt = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this)
	}, e.prototype.refresh = function(t) {
		this.init(), this._gridItem.refresh(t), this._nameTxt.text = t.warpetModelBean.q_pet_name, this._lvTxt.text = t.jie +
			"阶 " + t.lv + "级", this._skillLvTxt.visible = !1
	}, e
}(ViewBase);
__reflect(WarpetGridRenderItem.prototype, "WarpetGridRenderItem");
var WarpetSkillTip = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(t) {
		null == this._view && (this._view = new WarpetSkillTipView, this.addChild(this._view), this._view.x = Config.SCREEN_WIDTH -
			this._view.width >> 1, this._view.y = Config.SCREEN_HEIGHT - this._view.height >> 1), this._view.show(t.data)
	}, e.prototype.hide = function() {
		this._view && (this._view.hide(), this._view.dispose(), this._view = null)
	}, e
}(TipStyleBase);
__reflect(WarpetSkillTip.prototype, "WarpetSkillTip");
var WarpetSkillTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "KunSkillTipSkin", e.width = 451, e.height = 206, e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e;
		this.name_txt.text = i.q_skillName, this.desc_txt.textFlow = HtmlUtil.getHtmlStr(i.q_tips_desc), this._icon =
			UIMaker.getCImage(this, this, ResPathUtil.getIcon(i.q_small_icon, "skill/80", ".jpg"), 28, 34, !1, this._icon),
			this._icon.width = 66, this._icon.height = 66
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._icon.clear()
	}, e.prototype.dispose = function() {
		this._icon && (UIMaker.putToPool(this._icon), this._icon = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarpetSkillTipView.prototype, "WarpetSkillTipView");
var WarpetStarItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetStarSkin", e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._iconCimg && this._iconCimg.dispose(), this._iconCimg = null, this.parent && this.parent.removeChild(this), t.prototype
			.dispose.call(this)
	}, e.prototype.refresh = function(t, e) {
		if (void 0 === e && (e = 0), this._data = t, this._data) {
			this.visible = !0, this._iconCimg || (this._iconCimg = new CImage, this.addChildAt(this._iconCimg, 0)), this._iconCimg
				.x = -2, this._iconCimg.y = e, this._iconCimg.url = ResPathUtil.getIcon(this._data.showBean.q_pet_show + "",
					EnumImageType.WARPET_64);
			for (var i = void 0, n = 0; 6 > n; n++) i = this["img_star" + n], n >= this._data.warpetModelBean.q_pet_star ? i.visible = !
				1 : i.visible = !0;
			this.star_group.x = 5 * (6 - this._data.warpetModelBean.q_pet_star) + 4
		} else this.visible = !1
	}, e
}(ViewBase);
__reflect(WarpetStarItem.prototype, "WarpetStarItem");
var WarpetTalentComposeRender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._gridLayout || (this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 1), this._gridLayout.initLayers(
				[GridLayout.BG, GridLayout.ICON, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT]), this._gridLayout.setShowTip(!1),
			this._gridLayout.moveTo(20, 18, this))
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		this._itemData = this.data, this._gridLayout.dataProvider = [this._itemData]
	}, e
}(ItemRenderer);
__reflect(WarpetTalentComposeRender.prototype, "WarpetTalentComposeRender");
var WarpetTalentGridItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "WarpetTalentGridSkin", e._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			e._grid.isShowTip = !1, e._grid.isShowDesc = !0, e.addChild(e._grid), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._grid.dispose(), this._grid = null, t.prototype.dispose.call(this)
	}, e.prototype.show = function() {
		t.prototype.show.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this)
	}, e.prototype.onClick = function() {}, e.prototype.refresh = function(t, e) {
		var i = GameUtil.getGlobalConfigData(307).q_string_value.split("_"),
			n = Number(i[t.index]) <= e ? !0 : !1;
		n ? (this.img_open.source = "", this.img_add.visible = !0, t.itemid > 0 ? (this._grid.setData(t.itemid), this._grid
			.touchEnabled = !1, this._grid.touchChildren = !1, this._grid.touchThrough = !0) : this._grid.setData(null)) : (
			this.img_add.visible = !1, this.img_open.source = "common1_openjie_" + i[t.index] + "_png", this._grid.setData(
				null))
	}, e.prototype.getOpen = function() {
		return this.img_add.visible
	}, e
}(ViewBase);
__reflect(WarpetTalentGridItem.prototype, "WarpetTalentGridItem");
var WarpetTalentRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "WarpetTalentRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_choose), this._gridLayout ||
			(this._gridLayout = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 1), this._gridLayout.initLayers([GridLayout.BG,
				GridLayout.ICON, GridLayout.TEXT_BOTTOM
			]), this._gridLayout.setShowTip(!1), this._gridLayout.moveTo(20, 15, this))
	}, e.prototype.clear = function() {
		this._gridLayout && (this._gridLayout.dispose(), this._gridLayout = null), t.prototype.clear.call(this)
	}, e.prototype.onClick = function() {
		WarpetCommandSender.sendC2S_WarPetChangeTalnetMessage(this._renderData.petid, this._renderData.itemid, this._renderData
			.index), App.panel.removePanel(8005)
	}, e.prototype.dataChanged = function() {
		this._renderData = this.data, "0" == this._renderData.itemid ? this.btn_choose.label = "卸下" : this.btn_choose.label =
			"替换", this.txt_des.text = GameUtil.getItemConfigData(this.data.itemModelid).q_describe;
		var t = new ItemData;
		t.id = this._renderData.itemid, t.itemId = this._renderData.itemModelid, this._gridLayout.dataProvider = [t]
	}, e
}(ItemRenderer);
__reflect(WarpetTalentRender.prototype, "WarpetTalentRender");
var KunDevourItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "KunDevourItemSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBox, this, this.imgBox),
			this._vo = e, this.updateState()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.updateState = function() {
		if (null != this._vo) {
			if (!this._vo.tag) return this.groupMain.visible = !1, void this.hide();
			this.groupMain.visible = !0, this._vo.state ? (this.btn.label = "领取", this.imgOK.visible = !0, this.time_txt.text =
				"", App.timer.clearTimer(this.onTimer, this)) : (this.btn.label = "加速", this.imgOK.visible = !1, App.timer.serverTimeEnd(
				this, this.onTimer, this._vo.endtime))
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.textFlow = HtmlUtil.getHtmlStr("吞噬消化剩余：" + HtmlUtil.formatColor(StringUtil.convertTime(
			t.spuleTime), 3533365)) : (this.btn.enabled = !0, FilterUtil.gray(this.btn, !1), this.time_txt.text = "", App.timer
			.clearTimer(this.onTimer, this))
	}, e.prototype.onTouch = function(t) {
		this._vo && this._vo.state ? WarpetCommandSender.sendC2S_getKunRewardsMessage(this._vo.index) : Alert.show("是否消耗" +
			App.data.warpetCenter.kunCenter.cost + "元宝进行加速炼化？", "提示", Alert.DEFAULT_BTN_LABEL, this.onSpeedUp, this)
	}, e.prototype.onSpeedUp = function() {
		WarpetCommandSender.sendC2S_KunRewardSpeedUpMessage(this._vo.index)
	}, e.prototype.onTouchBox = function(t) {
		App.panel.openPanel(7002, this._vo)
	}, e
}(ViewBase);
__reflect(KunDevourItem.prototype, "KunDevourItem");
var KunDevourTotalView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "KunDevourTotalSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._items = [];
		for (var t, e = 0; 4 > e; e++) t = new KunDevourItem, t.moveTo(36 + 285 * (e % 2), 66 + 352 * Math.floor(e / 2),
			this), this._items.push(t)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(WarpetEvent.KUN_REWARD_REFRESH, this.refresh,
			this), this.refresh()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this);
		for (var e = 0; 4 > e; e++) this._items[e].hide()
	}, e.prototype.refresh = function() {
		for (var t = App.data.warpetCenter.kunCenter.getRewardVoList(), e = 0; e < t.length; e++) this._items[e].show(t[e])
	}, e.prototype.dispose = function() {
		if (this._items) {
			for (var e = 0; 4 > e; e++) this._items[e].dispose();
			this._items = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(KunDevourTotalView.prototype, "KunDevourTotalView");
var KunDevourView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "KunDevourSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 4, 38, 46), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(60, 100, this), this._gridLayer2 = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 4,
			38, 46), this._gridLayer2.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.REDPOINT,
			GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer2.moveTo(60, 400, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(WarpetEvent.KUN_REWARD_REFRESH, this.updateState,
				this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGet, this, this.btn_get), this._vo =
			e, this.updateState()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer.clear(), this._gridLayer2.clear(), App.timer.clearTimer(this.onTimer,
			this)
	}, e.prototype.updateState = function() {
		var t = App.data.warpetCenter.kunCenter,
			e = t.getRewardVoList()[0];
		if (null != e) {
			this._gridLayer.dataProvider = e.bossRewards, this._gridLayer2.dataProvider = e.kunRewards, this.btn_get.enabled =
				e.state, FilterUtil.gray(this.btn_get, !this.btn_get.enabled);
			var i = e.endtime;
			i > 0 ? (this.remain_txt.visible = !0, App.timer.serverTimeEnd(this, this.onTimer, i)) : (this.remain_txt.visible = !
				1, this.time_txt.text = "", App.timer.clearTimer(this.onTimer, this))
		}
	}, e.prototype.onTimer = function(t) {
		t.spuleTime > 0 ? this.time_txt.text = StringUtil.convertTime(t.spuleTime) : (this.btn_get.enabled = !0, FilterUtil
			.gray(this.btn_get, !1), this.remain_txt.visible = !1, this.time_txt.text = "", App.timer.clearTimer(this.onTimer,
				this))
	}, e.prototype.onGet = function(t) {
		App.panel.removePanel(7002), WarpetCommandSender.sendC2S_getKunRewardsMessage()
	}, e.prototype.dispose = function() {
		this._gridLayer && this._gridLayer.dispose(), this._gridLayer = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(KunDevourView.prototype, "KunDevourView");
var KunEatingButton = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Resize = function() {
			e.moveTo(Config.SCREEN_WIDTH - 60 >> 1, Config.SCREEN_HEIGHT - 400)
		}, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._model = App.data.warpetCenter.kunCenter;
		var t = App.global.enterBtn.getInfo(65);
		t && this.setData(t), this.time_bg = UIMaker.getImage(this, this, "enterbutton_daojishi_01_png"), this.time_bg.x =
			.5 * (this.width - 77), this.time_bg.y = this.height - 3, this.time_txt = UIMaker.getTextField(this, this, 0, 0,
				this.width, 18, 3533365, 18), this.time_txt.x = 0, this.time_txt.y = this.height - 2, this._dispatcher.addEventListener(
				WarpetEvent.KUN_REWARD_REFRESH, this.onUpdate, this), this.visible = !1, KunEffect.targetFly = this
	}, e.prototype.onUpdate = function() {
		this._model.inEating();
		this.visible = this._model.inEating(), this.effect && (this.effect.dispose(), this.effect = null), this.time_txt.visible = !
			0, this.time_bg.visible = !0, this.addTimer(this._model.getEndtime())
	}, e.prototype.removeTimer = function() {
		this.time_txt.visible = !1, this.time_bg.visible = !1, this.effect = EffectUtils.showCEffect(this, this,
			ResPathUtil.getMenuEffect("main", "kun_click"), this.width / 2, this.height / 2 - 5, this.effect)
	}, e
}(EnterButton);
__reflect(KunEatingButton.prototype, "KunEatingButton");
var KunPreviewView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("kun_preview", "warpet", ".jpg"), 0, 0, !0, this._bg),
			this._bg.scale9Grid = new egret.Rectangle(0, 900, 0, 0), this._bg.height = Config.SCREEN_HEIGHT
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this,
			this);
		var i = e;
		i && this.addAvatarUI(i.featureid)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._avatar && this._avatar.dispose(), this._avatar = null
	}, e.prototype.addAvatarUI = function(t) {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.x = 245, this._avatar.y = 710, this.addChild(
				this._avatar), this._avatar.aniDirType = 1, this._avatar.dir = 0, this._avatar.touchEnabled = !1, this._avatar.touchChildren = !
			1), this._cloudy = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("warpet", "kun_cloudy"), 320,
			500, this._cloudy), this._cloudy.scaleX = 2, this._cloudy.scaleY = 2, this._avatar.changeAvatarPartResource(
			AvatarPartType.BODY, ResPathUtil.getMapPetAvatarRes(t)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_UI,
			!1, !1), this._avatar.play()
	}, e.prototype.onClose = function(t) {
		App.panel.removePanel(7005)
	}, e.prototype.dispose = function() {
		this._bg && UIMaker.putToPool(this._bg), this._bg = null, this._avatar && this._avatar.dispose(), this._avatar =
			null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(KunPreviewView.prototype, "KunPreviewView");
var KunSkillGrid = function(t) {
	function e(e) {
		return t.call(this, e) || this
	}
	return __extends(e, t), e.prototype.setData = function(t) {
		this._id = t, this._bean = App.config.q_warpetKunSkillContainer.getDataBean(t), null != this._bean && (this.icon.url =
			ResPathUtil.getIcon(this._bean.q_skill_icon, EnumImageType.WARPET_64, ".jpg"), this.icon.x = 5, this.icon.y = 5,
			this.icon.width = this.gridBgSize.width - 10, this.icon.height = this.gridBgSize.height - 10, this.gridBg.source =
			"warpet_mochong_40_png", this.gridBg.width = this.gridBgSize.width, this.gridBg.height = this.gridBgSize.height,
			App.tip.addTip(this, new TipData(17, this._bean)), this.updateState())
	}, e.prototype.updateState = function() {
		var t = App.data.warpetCenter.kunCenter.vo;
		null != t && t.jie >= this._bean.q_need_class ? FilterUtil.gray(this.icon, !1) : FilterUtil.gray(this.icon, !0)
	}, e.prototype.clear = function() {
		t.prototype.clear.call(this), FilterUtil.gray(this.icon, !1), this._id = 0, this._bean = null, this.gridBg.source =
			null, this.icon.url = null, App.tip.removeTip(this)
	}, e
}(BaseGrid);
__reflect(KunSkillGrid.prototype, "KunSkillGrid");
var KunSkillTip = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(t) {
		null == this._view && (this._view = new KunSkillTipView, this.addChild(this._view), this._view.x = Config.SCREEN_WIDTH -
			this._view.width >> 1, this._view.y = Config.SCREEN_HEIGHT - this._view.height >> 1), this._view.show(t.data)
	}, e.prototype.hide = function() {
		this._view && (this._view.hide(), this._view.dispose(), this._view = null)
	}, e
}(TipStyleBase);
__reflect(KunSkillTip.prototype, "KunSkillTip");
var KunSkillTipView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "KunSkillTipSkin", e.width = 451, e.height = 206, e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e;
		this.name_txt.text = i.q_name, this.desc_txt.textFlow = HtmlUtil.getHtmlStr(i.q_des), this.bg.height = Math.max(200,
				this.desc_txt.y + this.desc_txt.height + 13), this.left_img.y = this.right_img.y = this.bg.y + this.bg.height + 2,
			this._icon = UIMaker.getCImage(this, this, ResPathUtil.getIcon(i.q_skill_icon, EnumImageType.WARPET_64, ".jpg"),
				28, 34, !1, this._icon), this._icon.width = 66, this._icon.height = 66
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._icon.clear()
	}, e.prototype.dispose = function() {
		this._icon && (UIMaker.putToPool(this._icon), this._icon = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(KunSkillTipView.prototype, "KunSkillTipView");
var KunView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._hasReward = !1, e._max = !1, e._maxLv = 30, e.euiSkinName = "KunViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._model = App.data.warpetCenter.kunCenter, this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath(
			"mochong_44", "warpet", ".jpg"), 0, 56), this.addChildAt(this._bg, 0), this._HpBar = new HpBar, this._HpBar.setUiComponent(
			this.total_bar, null, 334, 15, this.total_txt), this._lvNum = new NumberLevel, this._lvNum.init("j",
			"warpet_mochong_c", 31, 31, -3, -3), this._lvNum.moveTo(207, 95, this);
		var t = App.config.q_warpetKunSkillContainer.list;
		this._gridList = [];
		for (var e, i = 0; i < t.length; i++) e = new KunSkillGrid(EnumGridStyle.GRID_STYLE_KUN), e.move(152 + 68 * (i % 5),
			65 * Math.floor(i / 5), this.group_detail), e.setData(t[i].q_id), this._gridList.push(e);
		this.desc_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("玩法说明"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.fightPower.y = 200, this._dispatcher.addEventListener(WarpetEvent.WARPET_UPJIEREFRESH,
				this.onJie, this), this._dispatcher.addEventListener(WarpetEvent.KUN_EAT_TUNTIANZHU, this.onAttr, this), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onUp, this, this.btn_up), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onWay, this, this.getway_txt), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTrain, this, this.btn_train), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onShowDetail, this, this.btn_tab_main), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onShowAttr,
				this, this.btn_tab_eat), App.tip.addTip(this.desc_txt, new TipData(1, [App.config.q_tipContainer.getDataBean(177)
				.q_tipDesc, "玩法说明"
			])), this.updateState(), this.onShowDetail()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), App.tip.removeTip(this.desc_txt), this._avatar && this._avatar.stop()
	}, e.prototype.onShowDetail = function() {
		this.group_detail.visible = !0, this.group_attr.visible = !1, this.img_seletedview.x = this.btn_tab_main.x - 4
	}, e.prototype.onShowAttr = function() {
		this.group_detail.visible = !1, this.group_attr.visible = !0, this.img_seletedview.x = this.btn_tab_eat.x - 4
	}, e.prototype.updateState = function() {
		this._vo = this._model.vo;
		var t = this._vo;
		if (null == t) return this.fightPower.visible = !1, this.group_main.visible = !1, void(this.none_txt.visible = !0);
		if (this.none_txt.visible = !1, this.fightPower.visible = !0, this.group_main.visible = !0, this.name_txt.text = t.showBean
			.q_pet_name, this._lvNum.setValue(t.jie, -1), this._lvNum.x = this.name_txt.x - this._lvNum.width - 7, t.jie > 20 &&
			(this._lvNum.x += 30, this.name_txt.x += 30), this.lv_txt.text = "Lv." + t.upLvBean.q_level_show + "/" + this._maxLv,
			this._HpBar.setValue(t.upLvExp, t.needExp), this.addAvatarUI(t.featureid), this.img_red_detail_tab.visible = !1, t
			.lv == this._maxLv && t.upLvExp >= t.needExp) {
			this.group_exp.visible = !1, this.group_up.visible = !0;
			var e = ItemUtil.getRewardDataList(t.upJieBean.q_class_item)[0];
			if (e) {
				var i = App.data.bagItemDataCenter.getItemCount(e.itemId),
					n = ItemUtil.getItemName(e.itemId);
				this.need_txt.text = n + "*" + e.count, this.need_txt.textColor = i < e.count ? 15938355 : 2863402, this.getway_txt
					.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("获取" + n)), this.getway_txt.visible = !0, this._itemID =
					e.itemId, this._itemNum = e.count, this.img_red_detail_tab.visible = i >= e.count
			} else this.getway_txt.visible = !1;
			this._max = 0 == t.upJieBean.q_next_pet_class
		} else this.group_exp.visible = !0, this.group_up.visible = !1;
		for (var a = 0; a < this._gridList.length; a++) this._gridList[a].updateState();
		this.onAttr()
	}, e.prototype.addAvatarUI = function(t) {
		null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.x = 320, this._avatar.y = 620, this.addChild(
				this._avatar), this._avatar.aniDirType = 1, this._avatar.dir = 0, this._avatar.touchEnabled = !1, this._avatar.touchChildren = !
			1, this._cloudy = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("warpet", "kun_cloudy"), 320, 400,
				this._cloudy), this._cloudy.scaleX = 2, this._cloudy.scaleY = 2), this._avatar.changeAvatarPartResource(
			AvatarPartType.BODY, ResPathUtil.getMapPetAvatarRes(t)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_UI,
			!1, !1), this._avatar.play()
	}, e.prototype.onAttr = function() {
		this.attr_txt.text = this._model.getDefaultAttrs(), this.add_txt.text = this._model.getOtherAttrs();
		var t = this._model.getTrainCost();
		t ? (this._trainID = t.itemId, this._trainNum = t.count, this.train_txt.text = ItemUtil.getItemName(t.itemId) + "*" +
				t.count, this.img_red.visible = this._model.getCanTrain()) : (this.img_red.visible = !1, this.train_txt.text = ""),
			this.fightPower.setValue(this._model.getFightPower()), this.img_red_eat_tab.visible = this._model.getCanTrain()
	}, e.prototype.onJie = function() {
		this.updateState()
	}, e.prototype.onUp = function(t) {
		this._max ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">已达到最大阶，进阶失败!</font>") :
			WarpetCommandSender.sendC2S_kunUpMessage()
	}, e.prototype.onTrain = function(t) {
		this._trainNum > App.data.bagItemDataCenter.getItemCount(this._trainID) ? PanelOpenManager.openPanel(19, this._trainID) :
			WarpetCommandSender.sendC2S_WarPetKunUseTunTianMessage()
	}, e.prototype.onWay = function(t) {
		PanelOpenManager.openPanel(19, this._itemID)
	}, e.prototype.dispose = function() {
		if (this._gridList) {
			for (var e = 0; e < this._gridList.length; e++) this._gridList[e].dispose();
			this._gridList = null
		}
		this._avatar && (this._avatar.dispose(), this._avatar = null), this._cloudy && (this._cloudy.dispose(), this._cloudy =
			null), this._lvNum && (this._lvNum.dispose(), this._lvNum = null), this._bg && (UIMaker.putToPool(this._bg), this
			._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(KunView.prototype, "KunView");
var WarpetDetailView = function(t) {
	function e() {
		var i = t.call(this) || this;
		i.euiSkinName = "WarpetdDetailSkin", i._bg = UIMaker.getCImage(i, e, ResPathUtil.getImgPath("ZL_k6", "warpet")), i._bg
			.scale9Grid = new egret.Rectangle(50, 50, 50, 50), i._bg.width = 394, i._bg.height = 505, i.addChildAt(i._bg, 0), i
			._itemHash = new HashObject;
		for (var n, a = 1; 6 > a; a++) {
			for (var o = [], r = 0; 10 > r; r++) n = new WarpetDetailItem, i.addChild(n), o.push(n), n.x = 15 * r + 188, n.y =
				23 * a + 146;
			i._itemHash.put(a, o)
		}
		return i._grid0 = i.createGrid(45, 40), i._grid0.setData(EnumItemId.WARPET_DETAIL_BALL_SMALL), i._grid1 = i.createGrid(
			202, 40), i._grid1.setData(EnumItemId.WARPET_DETAIL_BALL_BIG), i.txt_getitem.textFlow = HtmlUtil.getHtmlStr(
			"<font color='#00ff00'><u>获得资质丹</u></font>"), i
	}
	return __extends(e, t), e.prototype.createGrid = function(t, e) {
		var i = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
		return i.scaleY = i.scaleX = .5, i.isShowDesc = !1, i.x = t, i.y = e, this.group_up.addChild(i), i
	}, e.prototype.dispose = function() {
		this._grid0 && (this._grid0.dispose(), this._grid0 = null), this._grid1 && (this._grid1.dispose(), this._grid1 =
			null), this.parent && this.parent.removeChild(this);
		for (var e, i = 1; 6 > i; i++)
			for (var n = this._itemHash.get(i), a = 0; 10 > a; a++) e = n[a], e.dispose(), e = null;
		this._itemHash.dispose(), this._itemHash = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		var i = e;
		if (i) {
			var n = i[0];
			this._type = i[1], this.refresh(n, this._type), this.itemSeleted(App.data.bagItemDataCenter.getItemCount(
					EnumItemId.WARPET_DETAIL_BALL_BIG) > 0 ? !1 : !0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
					this.onItem0Click, this, this.txt_item0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onItem1Click,
					this, this.txt_item1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetItemClick, this,
					this.txt_getitem), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnUpClick, this, this.btn_up),
				this._dispatcher.addEventListener(WarpetEvent.WARPET_UPDETAIL, this.onUpReslut, this)
		}
	}, e.prototype.onUpReslut = function(t) {
		this.refresh(t, this._type)
	}, e.prototype.onBtnUpClick = function(t) {
		"已 满" == this.btn_up.label ? Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">该魔宠资质已满</font>") :
			App.data.bagItemDataCenter.getItemCount(this._itemId) >= 1 ? WarpetCommandSender.sendC2S_WarPetUpDetailMessage(
				this._warpetData.id, this._itemId) : App.panel.openPanel(19, this._itemId)
	}, e.prototype.onGetItemClick = function(t) {
		App.panel.openPanel(19, this._itemId)
	}, e.prototype.onItem0Click = function(t) {
		this.itemSeleted(!0)
	}, e.prototype.onItem1Click = function(t) {
		this.itemSeleted(!1)
	}, e.prototype.itemSeleted = function(t) {
		this.txt_item0.selected = t, this.txt_item1.selected = !t, this._itemId = 1 == t ? EnumItemId.WARPET_DETAIL_BALL_SMALL :
			EnumItemId.WARPET_DETAIL_BALL_BIG
	}, e.prototype.refresh = function(t, e) {
		if (t) {
			this._warpetData = t;
			for (var i, n = 0; 6 > n; n++) i = this["star" + (n + 1)], t.warpetModelBean.q_pet_star > n ? i.visible = !0 : i.visible = !
				1;
			this.name_text.text = t.name, this.name_text.textColor = GameUtil.getQualityColor(t.warpetModelBean.q_pet_star),
				this.zztext.textFlow = HtmlUtil.getHtmlStr(t.getZizhiStr());
			for (var a, o, r = 0, s = !0, h = 1; 6 > h; h++) {
				o = this._itemHash.get(h), r = t.getziZhiLv(h);
				for (var n = 0; 10 > n; n++) a = o[n], r > n ? a.setValue(!0) : (a.setValue(!1), s = !1)
			}
			0 == e ? (this.group_attr.visible = !0, this.group_up.visible = !1, this.arrtext.textFlow = HtmlUtil.getHtmlStr(t.getAttrStr())) :
				(this.group_attr.visible = !1, this.group_up.visible = !0, this.img_updes.source = 0 == s ?
					"warpet_detail_up_png" : "warpet_detail_max_png", this.btn_up.label = 0 == s ? "提 升" : "已 满", this.txt_item0.label =
					"   " + App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_DETAIL_BALL_SMALL) + "/1", this.txt_item1.label =
					"   " + App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_DETAIL_BALL_BIG) + "/1")
		}
	}, e
}(ViewBase);
__reflect(WarpetDetailView.prototype, "WarpetDetailView");
var WarpetJiasuView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.timemin = 10, e.warpetId = 1, e.yunbaoNum = 0, e.euiSkinName = "WarpetJiasuViewSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.warpetId = e;
		var i = App.data.warpetCenter.fuhuahash.get(this.warpetId);
		GameUtil.getGlobalConfigData(1);
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closeClick, this, this.groupClick), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btn1Click, this, this.btn1), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.btn2Click, this, this.btn2), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.btn3Click, this, this.btn3), 0 == i.hatchingTime ? (App.timer.clearTimer(this.onTimeCount, this), this.timetext
				.visible = !1) : (this.timetext.visible = !0, App.timer.serverTimeEnd(this, this.onTimeCount, i.hatchingTime)),
			this.lab1.textFlow = HtmlUtil.getHtmlStr(App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_JIASU_10_M) +
				"<font color='0xF8F3B7'>/1</font>"), this.lab2.textFlow = HtmlUtil.getHtmlStr(App.data.bagItemDataCenter.getItemCount(
				EnumItemId.WARPET_JIASU_60_M) + "<font color='0xF8F3B7'>/1</font>")
	}, e.prototype.btn1Click = function(t) {
		App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_JIASU_10_M) > 0 ? (WarpetCommandSender.sendC2S_quickHatchMessage(
			this.warpetId, 1), App.panel.removePanel(2008)) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">道具不足</font>")
	}, e.prototype.btn2Click = function(t) {
		App.data.bagItemDataCenter.getItemCount(EnumItemId.WARPET_JIASU_60_M) > 0 ? (WarpetCommandSender.sendC2S_quickHatchMessage(
			this.warpetId, 2), App.panel.removePanel(2008)) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">道具不足</font>")
	}, e.prototype.btn3Click = function(t) {
		this.yunbaoNum <= App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO) ? (WarpetCommandSender.sendC2S_quickHatchMessage(
			this.warpetId, 3), App.panel.removePanel(2008)) : PanelOpenManager.openChargePanel(this.yunbaoNum, !0)
	}, e.prototype.closeClick = function(t) {
		App.panel.removePanel(2008)
	}, e.prototype.onTimeCount = function(t) {
		t.spuleTime > 0 ? (this.timetext.textFlow = HtmlUtil.getHtmlStr("<font color='0xF8F3B7'>剩余孵化时间:</font>" +
				StringUtil.convertTime(t.spuleTime)), this.yunbaoNum = Math.ceil(t.spuleTime / 60) * this.timemin, this.lab3.textFlow =
			HtmlUtil.getHtmlStr("" + this.yunbaoNum)) : (this.timetext.visible = !1, this.lab3.textFlow = HtmlUtil.getHtmlStr(
			"0"), App.timer.clearTimer(this.onTimeCount, this))
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onTimeCount, this), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(WarpetJiasuView.prototype, "WarpetJiasuView");
var WarpetMainView = function(t) {
	function e() {
		var i = t.call(this) || this;
		return i._headIndex = 0, i._seletedIndex = 0, i._seletedHeadX = [-4, 91, 191, 287], i.euiSkinName =
			"WarpetMainViewSkin", i._bg = UIMaker.getCImage(i, e, ResPathUtil.getImgPath("mochong_01", "warpet", ".jpg"), 0, 56),
			i.addChildAt(i._bg, 0), i._headBg = UIMaker.getCImage(i.group_head, e, ResPathUtil.getImgPath("mochong_02",
				"warpet"), 51, 56), i.addChildAt(i._headBg, 1), i.img_seletedHead.anchorOffsetX = 50, i.img_seletedHead.anchorOffsetY =
			50, i._lvNum = new NumberLevel, i._lvNum.init("j", "warpet_mochong_c", 31, 31, -3, -3), i._lvNum.moveTo(0, 4, i.group_xp),
			i
	}
	return __extends(e, t), e.prototype.dispose = function() {
		if (this._lvNum && (this._lvNum.dispose(), this._lvNum = null), this._skillGrid && this._skillGrid.dispose(), this._skillGrid =
			null, this._uplvView && this._uplvView.dispose(), this._uplvView = null, this._talentView && this._talentView.dispose(),
			this._talentView = null, this._headItemList)
			for (var e = 0; 4 > e; e++) this._headItemList[e].dispose();
		this._headItemList = null, this._avatar && this._avatar.dispose(), this._avatar = null, this._bg.dispose(), this._bg =
			null, this._headBg.dispose(), this._headBg = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		App.timer.clearTimer(this.onRun, this), this._uplvView && this._uplvView.hide(), this._talentView && this._talentView
			.hide(), t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.fightPower.y = 200, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClick, this, this.btn_xq), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick,
				this, this.btn_change), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_change0),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_main), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_uplv), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_talent), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onClick, this, this.btn_back), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onHeadImgClick, this, this.img_head0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onHeadImgClick,
				this, this.img_head1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onHeadImgClick, this,
				this.img_head2), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onHeadImgClick, this, this.img_head3),
			this._dispatcher.addEventListener(WarpetEvent.WARPET_FIGHT, this.onStateChange, this), this._dispatcher.addEventListener(
				WarpetEvent.WARPET_FUTI, this.onStateChange, this), this._dispatcher.addEventListener(WarpetEvent.WARPET_XIUXI,
				this.onStateChange, this), this._dispatcher.addEventListener(WarpetEvent.WARPET_UPJIEREFRESH, this.onUpJie, this),
			this._dispatcher.addEventListener(WarpetEvent.WARPET_UPLVREFRESH, this.onUpJie, this), this._seletedIndex = -1,
			this._headIndex = 0, this._currData = App.data.warpetCenter.fightPetList[this._headIndex], this.img_seletedHead.x =
			this._seletedHeadX[0] + 51, App.data.warpetCenter.headIndex = this._headIndex, this.showView(0), App.timer.doFrameLoop(
				this, 1, this.onRun), this.refreshHead(), this.red_talent.visible = App.data.warpetCenter.talentRed()
	}, e.prototype.onStateChange = function(t) {
		this._currData = App.data.warpetCenter.fightPetList[this._headIndex], this.refreshHead(), this.refresh()
	}, e.prototype.onHeadImgClick = function(t) {
		void 0 === t && (t = null);
		var e = t.currentTarget,
			i = Number(e.name);
		return 1 != this._seletedIndex && 2 != this._seletedIndex || App.data.warpetCenter.fightPetList[i] ? (this._currData =
			App.data.warpetCenter.fightPetList[i], this._headIndex = i, void((2 != this._headIndex && 3 != this._headIndex ||
				App.global.funcOpen.isFunctionOpen(this._headIndex + 57, "", !0)) && (App.data.warpetCenter.headIndex = this._headIndex,
				this.img_seletedHead.x = this._seletedHeadX[this._headIndex] + 51, 0 == this._seletedIndex ? this.refresh() : 1 ==
				this._seletedIndex ? (this._uplvView.refresh(this._currData, this._seletedIndex), this.addAvatarUI()) : 2 ==
				this._seletedIndex && this._talentView.refresh(this._currData)))) : void Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">请前往详情界面更换！</font>")
	}, e.prototype.onRun = function() {
		this.img_seletedHead.rotation += 1
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this.btn_xq:
				this._currData ? App.panel.openPanel(8002, [this._currData, 0]) : Notice.showMousePosMessage("<font color=" +
					Notice.MIDDLE_COLOR_2 + ">请前往详情界面更换！</font>");
				break;
			case this.btn_change0:
			case this.btn_change:
				0 == this._headIndex ? App.data.warpetCenter.choosePanelState = 0 : App.data.warpetCenter.choosePanelState = 1,
					App.panel.openPanel(8001);
				break;
			case this.btn_main:
				this._currData = App.data.warpetCenter.fightPetList[this._headIndex], this.showView(0);
				break;
			case this.btn_uplv:
				this.showView(1);
				break;
			case this.btn_talent:
				App.global.funcOpen.isFunctionOpen(171, "", !0) && (this.red_talent.visible = !1, this.showView(2));
				break;
			case this.btn_back:
				WarpetCommandSender.sendC2S_StateSettingMessage(this._currData.id, 1)
		}
	}, e.prototype.showView = function(t) {
		if (this._seletedIndex != t) {
			if (t > 0 && !this._currData) return void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
				">没有选择可提升的魔宠</font>");
			this._seletedIndex = t, this._uplvView || (this._uplvView = new WarpetUpLvView, this.addChild(this._uplvView)),
				this._talentView || (this._talentView = new WarpetTalentview, this.addChild(this._talentView)), this._uplvView.visible = !
				1, this._talentView.visible = !1, 0 == this._seletedIndex ? (this._bg.url = ResPathUtil.getImgPath("mochong_01",
						"warpet", ".jpg"), this.setAvatarViewVis(!0), this.btn_xq.visible = this.fightPower.visible = this.group_main.visible = !
					0, this.refresh()) : 1 == this._seletedIndex ? (this._bg.url = ResPathUtil.getImgPath("mochong_01", "warpet",
						".jpg"), this.setAvatarViewVis(!0), this.btn_xq.visible = this.fightPower.visible = this.group_main.visible = !
					1, this._uplvView.visible = !0, this._uplvView.show(), this._uplvView.refresh(this._currData, this._seletedIndex)
				) : 2 == this._seletedIndex && (this._bg.url = ResPathUtil.getImgPath("warpet_talent", "warpet", ".jpg"), this.setAvatarViewVis(
						!1), this.btn_xq.visible = this.fightPower.visible = this.group_main.visible = !1, this._talentView.visible = !
					0, this._talentView.show(), this._talentView.refresh(this._currData)), this.img_seletedview.x = 137 * this._seletedIndex +
				129
		}
	}, e.prototype.setAvatarViewVis = function(t) {
		this._avatar && (this._avatar.visible = t)
	}, e.prototype.refresh = function() {
		if (0 == this._seletedIndex) {
			if (this.refreshAttr(), 0 == this._headIndex ? (this.btn_change.visible = !0, this.btn_change0.visible = !1) : (
					this.btn_change0.visible = !0, this.btn_change.visible = !1), !this._currData) return this.txt_no.visible = !0,
				0 == this._headIndex ? this.txt_no.text = "请前往日常-深渊战场获取" : this.txt_no.text = "魔宠四阶可附体", this.btn_back.visible =
				this.red.visible = this.btn_xq.visible = this.fightPower.visible = this.group_xp.visible = this.group_skill.visible = !
				1, this._avatar && (this._avatar.visible = !1), void this.fightPower.setValue(0);
			this.txt_no.visible = !1, this.btn_back.visible = this.btn_xq.visible = this.fightPower.visible = this.group_xp.visible =
				this.group_skill.visible = !0, this.fightPower.setValue(this._currData.getMaxPower()), this._lvNum.setValue(this._currData
					.jie, -1), this._lvNum.x = this.txt_name.x - this._lvNum.width - 7, this.txt_name.text = this._currData.warpetModelBean
				.q_pet_name, this.txt_name.textColor = GameUtil.getQualityColor(this._currData.warpetModelBean.q_pet_star), this.red
				.visible = App.data.warpetCenter.canUp(this._currData.id), this.img_fight.visible = !1;
			for (var t, e = 0; 6 > e; e++) t = this["img_star" + e], this._currData.warpetModelBean.q_pet_star > e ? t.visible = !
				0 : t.visible = !1;
			this.star_group.x = 19.5 * (6 - this._currData.warpetModelBean.q_pet_star) + 66, this._skillGrid || (this._skillGrid =
				GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._skillGrid.gridBg.visible = !1, this._skillGrid
				.move(3, 0, this.group_skill)), this._currData.getSkillBean() && (this._skillGrid.isShowTip = !0, this._skillGrid
				.setData(this._currData.getSkillBean().q_skillID, this._currData.getSkillBean().q_skill_level)), this.addAvatarUI()
		}
	}, e.prototype.refreshAttr = function() {
		if (!this._currData || 0 == this._headIndex) return void(this.group_attr.visible = !1);
		this.group_attr.visible = !0, this.txt_attr.textFlow = HtmlUtil.getHtmlStr(this._currData.getAttrStr(this._currData
			.upJieBean.q_add_proportion / 1e4));
		var t = App.config.q_warpetUpClassContainer.getDataBean(this._currData.upJieId + 1);
		this._currData.upJieBean.q_next_pet_class > 0 && t ? this.txt_futiadd.text = "附体加成：" + t.q_add_proportion / 100 +
			"%" : this.txt_futiadd.text = "附体加成：" + this._currData.upJieBean.q_add_proportion / 100 + "%"
	}, e.prototype.refreshHead = function() {
		if (!this._headItemList) {
			this._headItemList = [];
			for (var t = void 0, e = 0; 4 > e; e++) t = new WarpetStarItem, t.name = e.toString(), t.y = 14, 0 == e ? t.x =
				this["txt_head" + e].x - 19 : t.x = this["txt_head" + e].x - 21, this._headItemList.push(t), this.group_head.addChildAt(
					t, 0)
		}
		for (var i, n, a, o, r, e = 0; 4 > e; e++) i = App.data.warpetCenter.fightPetList[e], r = this["red" + e], i ? r.visible =
			App.data.warpetCenter.canUp(i.id) : r.visible = !1, 0 == r.visible && (r.visible = App.data.warpetCenter.talentIndexRed(
				e)), e > 0 && (n = this["img_title" + (e - 1)], a = App.global.roles.getRoleInfoByIndex(e), a ? (n.visible = !0,
				n.source = "common1_icon_" + a.job + "_png") : n.visible = !1, o = this["txt_func" + e], i ? o.visible = !1 : (o
				.visible = !0, (2 == e || 3 == e) && (2 == e ? App.global.funcOpen.isFunctionOpen(59) ? (o.source =
					"warpet_icon_234_png", o.x = 220) : (o.x = 212, o.source = "warpet_icon_236_png") : App.global.funcOpen.isFunctionOpen(
					60) ? (o.x = 314, o.source = "warpet_icon_234_png") : (o.x = 306, o.source = "warpet_icon_235_png")))), this._headItemList[
				e].refresh(i, -7)
	}, e.prototype.onUpJie = function() {
		this._currData = App.data.warpetCenter.getWarpetData(this._currData.id), this.red.visible = App.data.warpetCenter.canUp(
			this._currData.id), this.refreshHead(), this.addAvatarUI()
	}, e.prototype.addAvatarUI = function(t) {
		void 0 === t && (t = 3);
		var e = App.config.q_petContainer.getDataBean(this._currData.showBean.q_petID_q_grade).q_featureid;
		null == this._avatar && (this._avatar = new CUIShowAvatar, this.addChild(this._avatar), this._avatar.aniDirType = 1,
				this._avatar.touchEnabled = !1, this._avatar.touchChildren = !1, this._avatar.x = 320, this._avatar.y = 610),
			this._avatar.visible = !0, this._avatar.dir = t, this._avatar.changeAvatarPartResource(AvatarPartType.BODY,
				ResPathUtil.getMapPetAvatarRes(e)), this._avatar.changeAct(AvatarActionType.ACTION_TYPE_UI, !0, !0), this._avatar
			.dir = h5_engine.SceneType.TOP, this._avatar.play()
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_UI, !0, !0), this._avatar.dir = h5_engine.SceneType.TOP, t.playEndHanlder =
			null
	}, e
}(ViewBase);
__reflect(WarpetMainView.prototype, "WarpetMainView");
var WarpetTalentview = function(t) {
	function e() {
		var e = t.call(this) || this;
		e._seletedGirdIndex = 0, e._gridItemArr = [], e.euiSkinName = "WarpetTalentSkin", e._grid = GridUtil.getGrid(
				ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), e._grid.x = 281, e._grid.y = 502, e._grid.isShowTip = !1, e._grid.isShowDesc = !
			0, e.addChild(e._grid), e._gridItemArr = [];
		for (var i, n = 0; 10 > n; n++) i = new WarpetTalentGridItem, 5 > n ? (i.x = 117 * n, i.y = 0) : (i.x = 117 * (n - 5),
			i.y = 115), i.img_gridbg.name = n + "", e._gridItemArr.push(i), e.group_grid.addChild(i);
		return e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._grid.dispose(), this._grid = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onChangeClick,
				this, this.btn_change), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onComposeClick, this,
				this.btn_compose), this._dispatcher.addEventListener(WarpetEvent.WARPET_TALENT_CHOOSE, this.onChooseReslut, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGroupGridClick, this, this.group_grid)
	}, e.prototype.onGroupGridClick = function(t) {
		if (egret.is(t.target, "eui.Image")) {
			var e = t.target;
			if ("" == e.name) return;
			this.seletedGrid(Number(e.name))
		}
	}, e.prototype.onChangeClick = function(t) {
		App.panel.openPanel(8005, [this._currData, this._seletedGirdIndex])
	}, e.prototype.onComposeClick = function(t) {
		App.panel.openPanel(8006)
	}, e.prototype.refresh = function(t) {
		if (this._currData = t, this._currData) {
			for (var e = 0, i = 0, n = 0; 10 > n; n++) this.refreshOne(n), 0 >= e && this._currData.talentList[n].itemid > 0 &&
				(e = n), this._currData.talentList[n].itemid > 0 && (i += GameUtil.getItemConfigData(this._currData.talentList[n]
					.itemid).q_score);
			this.txt_score.text = i + "", this.seletedGrid(e, 1)
		}
	}, e.prototype.onChooseReslut = function(t) {
		this._currData.talentList[t.index].itemid = t.itemMid, this.refreshOne(t.index), this.seletedGrid(t.index, 1);
		for (var e = 0, i = 0; 10 > i; i++) this._currData.talentList[i].itemid > 0 && (e += GameUtil.getItemConfigData(
			this._currData.talentList[i].itemid).q_score);
		this.txt_score.text = e + ""
	}, e.prototype.refreshOne = function(t) {
		this._gridItemArr[t].refresh(this._currData.talentList[t], this._currData.jie)
	}, e.prototype.seletedGrid = function(t, e) {
		void 0 === e && (e = 0);
		var i = this._gridItemArr[t];
		return i.getOpen() ? (this._seletedGirdIndex = t, this.img_seleted.x = i.x - 9, this.img_seleted.y = i.y - 9, void(
				this._currData.talentList[t].itemid > 0 ? (this._grid.setData(this._currData.talentList[t].itemid), this.txt_des
					.text = GameUtil.getItemConfigData(this._currData.talentList[t].itemid).q_describe) : (this._grid.setData(null),
					this.txt_des.text = "", 0 == e && App.panel.openPanel(8005, [this._currData, this._seletedGirdIndex])))) : void Notice
			.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">战宠阶级不足！</font>")
	}, e
}(ViewBase);
__reflect(WarpetTalentview.prototype, "WarpetTalentview");
var WarpetUpLvView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._seletedIndex = 0, e._canUp = !0, e._needNum = 0, e._wannendJinpoId = 278, e.euiSkinName = "WarpetUplvSkin",
			e._hpbar = new HpBar, e._hpbar.setUiComponent(e.UpproImg, null, 334, 15, e.UpproLab, .2), e._lvNum = new NumberLevel,
			e._lvNum.init("j", "warpet_mochong_c", 31, 31, -3, -3), e._lvNum.moveTo(209, 190, e), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		this._lvNum && (this._lvNum.dispose(), this._lvNum = null), this._skillGrid && this._skillGrid.dispose(), this._skillGrid =
			null, this._hpbar.dispose(), this._hpbar = null, t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this,
				this.txt_getitem), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_updetail),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_skillup), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this, this.btn_uplv), this._dispatcher.addEventListener(
				WarpetEvent.WARPET_UPJIEREFRESH, this.onUpJie, this), this._dispatcher.addEventListener(WarpetEvent.WARPET_UPLVREFRESH,
				this.onUpLv, this), this._dispatcher.addEventListener(WarpetEvent.WARPET_UPDETAIL, this.onUpDetailReslut, this)
	}, e.prototype.onUpDetailReslut = function(t) {
		void 0 === t && (t = null), this.detailred.visible = App.data.warpetCenter.canUpDetail(t)
	}, e.prototype.onUpLv = function() {
		if (App.data.warpetCenter.getWarpetData(this._currData.id).lv > this._currData.lv) {
			var t = App.thing.create(CPlayOnceEffect, "WarpetUpLvView", !0);
			t.url = ResPathUtil.getMenuEffect("main", "warpetUp"), t.x = 320, t.y = 610, t.addParent(this.parent), t.play()
		}
		this._currData = App.data.warpetCenter.getWarpetData(this._currData.id), this.refresh(this._currData, this._seletedIndex)
	}, e.prototype.onUpJie = function() {
		this._currData = App.data.warpetCenter.getWarpetData(this._currData.id);
		var t = App.config.q_petContainer.getDataBean(this._currData.showBean.q_petID_q_grade).q_featureid,
			i = ResPathUtil.getAvatarPartUrl(ResPathUtil.getMapPetAvatarRes(t), AvatarActionType.ACTION_TYPE_UI, 0);
		App.dispatcher.dispatchEvent(EventType.ShowSuccess, i, 80, 0, 0);
		var n = new BaseAttributeDataBean;
		n.convert(this._currData.upLvBean.q_add_ability);
		for (var a, o = n.getStrByBaseAttributeBean2(n), r = o.split("\n"), s = r.length, h = 0; s > h; h++) a = UIMaker.getTextField(
				App.stage, e, 0, 600 - 34 * (s - h), 200, 34, 3533365, 30), a.text = r[h], a.textAlign = egret.HorizontalAlign.LEFT,
			TweenLite.to(a, .4, {
				delay: .2 + .2 * h,
				x: 250,
				y: 600 - 34 * (s - h)
			}), TweenLite.to(a, .3, {
				delay: 1 + .2 * h,
				scaleY: .1,
				alpha: 0,
				onComplete: this.removeItem,
				onCompleteParams: [a],
				onCompleteScope: this
			});
		this.onUpLv()
	}, e.prototype.removeItem = function(t) {
		t && t.parent && (TweenLite.killTweensOf(t), t.parent.removeChild(t))
	}, e.prototype.onClick = function(t) {
		switch (t.currentTarget) {
			case this.txt_getitem:
				this.openConsume();
				break;
			case this.btn_updetail:
				App.panel.openPanel(8002, [this._currData, 1]);
				break;
			case this.btn_skillup:
				break;
			case this.btn_uplv:
				if ("已满级" != this.btn_uplv.label)
					if (this._canUp) WarpetCommandSender.sendC2S_WarPetUpgradeMessage(this._currData.id);
					else if ("进 阶" == this.btn_uplv.label)
					if (App.data.bagItemDataCenter.getItemCount(this._wannendJinpoId) >= this._needNum) {
						var e = HtmlUtil.formatColor(GameUtil.getItemConfigData(Number(this.txt_getitem.name)).q_name, GameUtil.getItemNameColor(
								Number(this.txt_getitem.name))),
							i = HtmlUtil.formatColor(GameUtil.getItemConfigData(this._wannendJinpoId).q_name, GameUtil.getItemNameColor(
								this._wannendJinpoId));
						Alert.show(e + "不足！\n是否使用" + i + "替代？", "提示", "确定|取消", this.onSure, this, null, !0)
					} else this.openConsume();
				else this.openConsume()
		}
	}, e.prototype.onSure = function() {
		WarpetCommandSender.sendC2S_WarPetUpgradeMessage(this._currData.id)
	}, e.prototype.openConsume = function() {
		"" != this.txt_getitem.name && App.panel.openPanel(19, Number(this.txt_getitem.name))
	}, e.prototype.refresh = function(t, e) {
		if (t) {
			this.onUpDetailReslut(t), this._currData = t, this._seletedIndex = e, this._lvNum.setValue(this._currData.jie, -1),
				this._lvNum.x = this.txt_name.x - this._lvNum.width - 7, this.txt_name.text = this._currData.warpetModelBean.q_pet_name,
				this.txt_name.textColor = GameUtil.getQualityColor(t.warpetModelBean.q_pet_star), this.lv_txt.text = "Lv." + this
				._currData.lv + "/" + 10 * this._currData.jie;
			for (var i, n = 0; 6 > n; n++) i = this["img_star" + n], this._currData.warpetModelBean.q_pet_star > n ? i.visible = !
				0 : i.visible = !1;
			this.star_group.x = 19.5 * (6 - this._currData.warpetModelBean.q_pet_star) + 203, 1 == this._seletedIndex ? (this.group_pet
				.visible = !0, this.group_skill.visible = !1, this.refreshPet()) : (this.group_pet.visible = !1, this.group_skill
				.visible = !0, this.refreshSkill()), this.refreshAttr()
		}
	}, e.prototype.refreshSkill = function() {
		var t = this._currData.getSkillBean();
		t && (this.txt_skillname.text = t.q_skillName, this.txt_skilldes.text = t.q_desc, this.txt_skilllv.text = "Lv" + t.q_skill_level,
			this._currData.upJieBean ? this.txt_skillitem.textFlow = HtmlUtil.getHtmlStr(this.createItem(this._currData.upJieBean
				.q_class_item)) : (this.txt_skilllv.text = "Lv" + t.q_skill_level + "(已满级)", this.txt_skillitem.text = "技能已满级"),
			this._skillGrid || (this._skillGrid = GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL), this._skillGrid
				.move(0, 0, this.group_skill)), this._skillGrid.setData(t.q_skillID))
	}, e.prototype.refreshPet = function() {
		this._currData.upLvBean && this._currData.upLvBean.q_next_id > 0 ? (this.btn_uplv.label = "升 级", this._currData.lv %
			10 == 0 && this._currData.upLvExp >= this._currData.needExp ? (this.btn_uplv.label = "进 阶", this._hpbar.setValue(
				1, 1, 1), this.UpproLab.text = "Max", this.txt_petitem.textFlow = HtmlUtil.getHtmlStr(this.createItem(this._currData
				.upJieBean.q_class_item))) : (this._hpbar.setValue(this._currData.upLvExp, this._currData.needExp, 1), this.btn_uplv
				.label = "升 级", this.txt_petitem.textFlow = HtmlUtil.getHtmlStr(this.createItem(this._currData.upLvBean.q_num)))
		) : (this.btn_uplv.label = "已满级", this.txt_petitem.text = "魔宠已满级", this._hpbar.setValue(1, 1, 1), this.UpproLab.text =
			"Max")
	}, e.prototype.createItem = function(t) {
		var e, i = StringUtil.JsonParse(t),
			n = i[0].id,
			a = i[0].num,
			o = App.data.bagItemDataCenter.getItemCount(n);
		return o >= a ? (this._canUp = !0, e = GameUtil.getItemConfigData(i[0].id).q_name + " <font color='#35ea35'>" + o +
			"</font>/" + a) : (this._canUp = !1, this._needNum = a - o, e = GameUtil.getItemConfigData(i[0].id).q_name +
			" <font color='#F33333'>" + o + "</font>/" + a), this.txt_getitem.name == n + "" || (this.txt_getitem.name = n +
			"", this.txt_getitem.textFlow = HtmlUtil.getHtmlStr("<font color='#00ff00'><u>获取" + GameUtil.getItemConfigData(i[
				0].id).q_name + "</u></font>")), e
	}, e.prototype.refreshAttr = function() {
		return this._currData ? (this.group_attr.visible = !0, this.txt_nowAttr.textFlow = HtmlUtil.getHtmlStr(this._currData
			.getAttrStr(1, !1)), void("" == this._currData.nextAttrStr ? this.txt_nextAttr.text = "已满级" : this.txt_nextAttr.textFlow =
			HtmlUtil.getHtmlStr(this._currData.nextAttrStr))) : void(this.group_attr.visible = !1)
	}, e
}(ViewBase);
__reflect(WarpetUpLvView.prototype, "WarpetUpLvView");
var AchieveTimeTaskItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "XSRWItemRenderSkin", e.getthis.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往获取")),
			e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickGet,
			this, this.btn_lq), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.getthis)
	}, e.prototype.onClickGet = function(t) {
		var e = this.data;
		TaskCommandSender.sendFinishTask(e.taskID, 8), this.img_tb.visible = !0, this.red_img.visible = this.btn_lq.visible = !
			1
	}, e.prototype.onGo = function(t) {
		App.panel.removePanel(45);
		var e = this.data,
			i = App.config.q_active_taskContainer.getDataBean(e.taskID);
		App.data.taskCenter.tryExecuteTask(i.q_panel_ID)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		this.red_img.visible = this.btn_lq.visible = this.getthis.visible = this.img_tb.visible = !1, 3 == t.taskState ?
			this.img_tb.visible = !0 : 2 == t.taskState ? this.red_img.visible = this.btn_lq.visible = !0 : this.getthis.visible = !
			0;
		var e = App.config.q_active_taskContainer.getDataBean(t.taskID);
		this.txt_name.text = e.q_task_des;
		var i = StringUtil.JsonParse(e.q_tesk_rewards);
		this.icon_img.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(i[0].id).q_tiny_icon, EnumImageType.ITEM_80),
			this.icon_img.touchEnabled = !0;
		var n = App.tip.getTipData(this.icon_img);
		n ? n.data = i[0].id : App.tip.addTip(this.icon_img, new TipData(2, i[0].id));
		var a = StringUtil.JsonParse(e.q_finish_condition_ids)[0];
		this.txt_pro.text = App.data.taskCenter.getTaskDesc("{0}/{1}", a, t.otherVarMapObj.finishcount);
		var o = Number(this.txt_pro.text.slice(0, this.txt_pro.text.indexOf("/"))),
			r = Number(this.txt_pro.text.slice(this.txt_pro.text.indexOf("/") + 1)),
			s = o >= r ? 3533365 : 15938355;
		this.txt_pro.textColor = s, this.txt_pro.text = "(" + this.txt_pro.text + ")", this.txt_jie.visible = !1
	}, e.prototype.clear = function() {
		this.icon_img && (App.tip.removeTip(this.icon_img), this.icon_img.dispose()), t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(AchieveTimeTaskItemRender.prototype, "AchieveTimeTaskItemRender");
var AchieveTimeTaskPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new AchieveTimeTaskView, this._windowView = new WindowMain, this._windowView.imgBottom.visible = !1,
			this.addChild(this._windowView), this._btnClose = this._windowView.close_btn, this._windowView.showRoleList(!1),
			this._windowView.imgTitle.source = "tulongshengdian", this._windowView.viewContainer.addChild(this._view)
	}, e.prototype.addEvent = function() {}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._windowView.show(), this._view.show(), this.addEvent(),
			this._view.refreshData()
	}, e.prototype.hide = function() {
		this._windowView.hide(), this._view.hide(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._windowView && this._windowView.dispose(), this._windowView = null, this._view.dispose(), this._view = null, t
			.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(AchieveTimeTaskPanel.prototype, "AchieveTimeTaskPanel");
var AchieveTimeTaskView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AchieveTimeTaskPanelSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("bg_achieve_timetask", "", ".jpg")), this._bg.y = 61,
			this.addChildAt(this._bg, 0), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL), this.addChild(
				this._grid), this._grid.x = 282, this._grid.y = 227, this._grid.isShowEffect = !0, this._grid.isShowDesc = !1,
			this._grid.isShowCount = !1, this._vscroller1 = new VScrollPanel(615, 413, AchieveTimeTaskItemRender, 7), this._vscroller1
			.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller1.scrollPolicyV = eui.ScrollPolicy.OFF, this.con_item.addChild(
				this._vscroller1), this._vscroller2 = new VScrollPanel(615, 413, AchieveTimeTaskItemRender, 7), this._vscroller2.scrollPolicyH =
			eui.ScrollPolicy.OFF, this._vscroller2.scrollPolicyV = eui.ScrollPolicy.OFF, this._vscroller2.x = 308, this.con_item
			.addChild(this._vscroller2)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(TaskEvent.ACHIEVETIMETASK_REFRESH, this.refreshData,
			this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickGet, this, this.btn_get)
	}, e.prototype.onClickGet = function(t) {
		var e = App.data.taskCenter.getAchieveTimeTaskList(),
			i = e[e.length - 1];
		TaskCommandSender.sendFinishTask(i.taskID, 8), this.btn_get.filters = FilterUtil.FILTER_GRAY
	}, e.prototype.hide = function() {
		this._vscroller1 && this._vscroller1.removeAll(), this._vscroller2 && this._vscroller2.removeAll(), App.timer.clearTimer(
			this.timeTick, this), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this._vscroller1 && (this._vscroller1.dispose(), this._vscroller1 = null), this._vscroller2 && (this._vscroller2.dispose(),
				this._vscroller2 = null), this._grid.dispose(), this._grid = null, this._bg.dispose(), this._bg = null, t.prototype
			.dispose.call(this)
	}, e.prototype.refreshData = function() {
		var t = App.data.taskCenter.getAchieveTimeTaskList(),
			e = t[t.length - 1],
			i = (e.otherVarMapObj.endtime - ServerTime.serverTime) / 1e3;
		this.txt_time.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute("任务剩余时间：{0}", "<font color='#00ff00'>" +
				StringUtil.convertTime(i) + "</font>")), App.timer.serverTimeEndCount(this, this.timeTick, i), 2 == e.taskState ?
			this.btn_get.filters = null : this.btn_get.filters = FilterUtil.FILTER_GRAY;
		var n = App.config.q_active_taskContainer.getDataBean(e.taskID),
			a = StringUtil.JsonParse(n.q_tesk_rewards),
			o = new ItemData;
		o.itemId = a[0].id, o.count = a[0].num, this._grid.setData(o), this.txt_name.textColor = GameUtil.getItemNameColor(
			o.itemId), this.txt_name.text = GameUtil.getItemConfigData(o.itemId).q_name;
		for (var r = t.length, s = 0, h = 0; r > h; h++) 3 == t[h].taskState && s++;
		s >= t.length && (s = t.length - 1), this.txt_finishnum.text = "(" + s + "/" + (t.length - 1) + ")", this._vscroller1
			.dataProvider = t.slice(0, 4), this._vscroller2.dataProvider = t.slice(4, 8)
	}, e.prototype.timeTick = function(t) {
		t.spuleTime > 0 ? this.txt_time.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute("任务剩余时间：{0}",
			"<font color='#00ff00'>" + StringUtil.convertTime(t.spuleTime) + "</font>")) : App.timer.clearTimer(this.timeTick,
			this)
	}, e
}(ViewBase);
__reflect(AchieveTimeTaskView.prototype, "AchieveTimeTaskView");
var XSRWPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("XSRWPanelSkin"), this._windowView = new WindowMain, this._windowView.imgBottom
			.visible = !1, this.addChild(this._windowView), this._btnClose = this._windowView.close_btn, this._windowView.showRoleList(
				!1), this._windowView.imgTitle.source = "xianshirenwu", this._windowView.viewContainer.addChild(this._view);
		var t = this._view.con_item;
		this._vscroller1 = new VScrollPanel(615, 413, XSRWItemRender, 7), this._vscroller1.scrollPolicyH = eui.ScrollPolicy
			.OFF, this._vscroller1.scrollPolicyV = eui.ScrollPolicy.OFF, t.addChild(this._vscroller1), this._vscroller2 = new VScrollPanel(
				615, 413, XSRWItemRender, 7), this._vscroller2.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller2.scrollPolicyV =
			eui.ScrollPolicy.OFF, this._vscroller2.x = 308, t.addChild(this._vscroller2)
	}, e.prototype.addEvent = function() {
		App.dispatcher.addEventListener(LimitTaskEvent.LIMIT_TASK_ChANGE, this.refreshData, this)
	}, e.prototype.removeEvent = function() {
		App.dispatcher.removeEventListener(LimitTaskEvent.LIMIT_TASK_ChANGE, this.refreshData, this)
	}, e.prototype.closeHandler = function(t) {
		App.panel.removePanel(18)
	}, e.prototype.refreshData = function() {
		var t = App.data.getXSRWCenter();
		if (t.checkTime()) {
			var e = (t.limitTime - ServerTime.serverTime) / 1e3;
			this._view.txt_time.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute("任务剩余时间：{0}", "<font color='#00ff00'>" +
				StringUtil.convertTime(e) + "</font>")), App.timer.serverTimeEndCount(this, this.timeTick, e);
			var i = t.xsrwDict.getValueArray();
			i.sort(this.sortFunc), this._vscroller1.dataProvider = i.slice(0, 4), this._vscroller2.dataProvider = i.slice(4, 8)
		} else this._vscroller1.dataProvider = [], this._vscroller2.dataProvider = [], this.showDeafaultTxt()
	}, e.prototype.sortFunc = function(t, e) {
		return t.taskId > e.taskId ? 1 : -1
	}, e.prototype.timeTick = function(t) {
		t.spuleTime > 0 ? this._view.txt_time.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute("任务剩余时间：{0}",
			"<font color='#00ff00'>" + StringUtil.convertTime(t.spuleTime) + "</font>")) : (App.timer.clearTimer(this.timeTick,
			this), this.showDeafaultTxt())
	}, e.prototype.showDeafaultTxt = function() {
		this._view.txt_time.text = "没有任务，同志努力升级！！！"
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this), this._windowView.show(), XSRWCommandSender.sendXSRWLimitTimeTask(),
			this.addEvent(), this.refreshData()
	}, e.prototype.hide = function() {
		this._windowView.hide(), App.timer.clearTimer(this.timeTick, this), this.removeEvent(), this._windowView.hide(), t.prototype
			.hide.call(this), this._vscroller1.removeAll(), this._vscroller2.removeAll()
	}, e.prototype.dispose = function() {
		this._windowView && this._windowView.dispose(), this._windowView = null, this._vscroller1 && (this._vscroller1.dispose(),
				this._vscroller1 = null), this._vscroller2 && (this._vscroller2.dispose(), this._vscroller2 = null), t.prototype.dispose
			.call(this)
	}, e
}(BasePanel);
__reflect(XSRWPanel.prototype, "XSRWPanel");
var ZonePanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("材料副本,镇妖塔,取经之路"), this.registerSubPanel(0, MaterialView,
				"titleview_fuben_png", 121, !1, !1), this.registerSubPanel(1, PagodaView, "titleview_tongtianta_png", 104, !1, !1),
			this.registerSubPanel(2, RoadOfCQView, "zone_chuanqizhilu_png", 58, !1, !1)
	}, e
}(TabPanel);
__reflect(ZonePanel.prototype, "ZonePanel");
var ZoneRewardGetPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new ZoneRewardGetView, this.addChild(this._view)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._view.show(e)
	}, e.prototype.hide = function() {
		this._view.hide(), t.prototype.hide.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 460
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 627
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, e
}(BasePanel);
__reflect(ZoneRewardGetPanel.prototype, "ZoneRewardGetPanel");
var AbyssItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AbyssItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_SMALL, 1, 32, 15), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(93, 39, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.bg)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.setData = function(t) {
		this._bean = t, this.name_txt.text = t.q_duplicate_name, this.desc_txt.textFlow = HtmlUtil.getHtmlStr(t.q_tips),
			this._gridLayer.dataProvider = ItemUtil.getShowItems(t.q_show_item)
	}, e.prototype.onTouch = function(t) {
		for (var e = new Date(ServerTime.serverTime), i = e.getHours() >= 6, n = !0, a = !0, o = StringUtil.JsonParse(this._bean
				.q_open_zone), r = 0; r < o.length; r++) "openday" == o[r].type && (n = ServerTime.openday >= o[r].id), "guanka" ==
			o[r].type && (a = App.data.zoneCenter.guanQiaCenter.floor >= o[r].id);
		n ? a ? i ? ZoneCommandSender.sendC2S_ZoneIntoMessage(this._bean.q_id, this._bean.q_zone_client_type) && App.panel.removePanel(
			7e3) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">战场已关闭!</font>") : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">通关关卡数不足，无法进入副本!</font>") : Notice.showMousePosMessage("<font color=" +
			Notice.MIDDLE_COLOR_2 + ">暂未开启!</font>")
	}, e.prototype.dispose = function() {
		this._gridLayer && (this._gridLayer.dispose(), this._gridLayer = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(AbyssItem.prototype, "AbyssItem");
var GodWingTIP = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("WingGodSkillTip"), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - this._view.width >> 1, this._view.y = Config.SCREEN_HEIGHT -
			this._view.height >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		var e = GameUtil.getSkillConfigDataById(132000001);
		this._view.desc.textFlow = HtmlUtil.getHtmlStr(e.q_tips_desc);
		var i = App.data.wingGodCenter().getWingGod(App.data.wingGodCenter().selectIndex),
			n = i.length;
		if (4 == n) {
			for (var a = App.config.q_itemContainer.getDataBean(i[0].godwingID).q_level, o = 0; n > o; o++) {
				var r = App.config.q_itemContainer.getDataBean(i[o].godwingID);
				a > r.q_level && (a = r.q_level)
			}
			a >= 4 ? (this._view.jihuo.source = "common1_state2_png", this._view.tiaojian.visible = !1) : (this._view.jihuo.source =
				"common1_state1_png", this._view.tiaojian.visible = !0)
		}
	}, e
}(TipStyleBase);
__reflect(GodWingTIP.prototype, "GodWingTIP");
var AbyssMallView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(502, 550, AbyssMallRender, 3), this._vscroller.move(69, 214, this), this._bg =
			UIMaker.getCImage(this, this, ResPathUtil.getImgPath("bg_abyss_mall", "zone"), 66, 89), this._txt = UIMaker.getTextField(
				this, this, 170, 820, 300, 25, 3533365, 20)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ItemEvent.UPDATE_ABYSS_SHOP, this.onUpdate, this);
		var i = e.type;
		ShopCommandSender.sendRequestShopListMessage(i)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.onUpdate = function() {
		this._vscroller.dataProvider = App.data.zoneCenter.abyssCenter.getCurrentShopList(), this._txt.text = "已拥有:" + App.data
			.bagItemDataCenter.getItemCount(EnumItemId.ABYSS_MONEY) + "个" + ItemUtil.getItemName(EnumItemId.ABYSS_MONEY)
	}, e.prototype.dispose = function() {
		this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._vscroller && (this._vscroller.dispose(), this._vscroller =
			null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(AbyssMallView.prototype, "AbyssMallView");
var AbyssView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AbyssViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("bg_abyss", "zone", ".jpg"), 0, 60);
		var t = [35, 458, 246, 456],
			e = [676, 501, 297, 99];
		this._itemList = [];
		for (var i, n = App.data.zoneCenter.getBeanList(EnumZoneType.ABYSS), a = n.length, o = 0; a > o; o++) i = new AbyssItem,
			i.x = t[o], i.y = e[o], i.setData(n[o]), this.addChild(i), this._itemList.push(i)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.ABYSS);
		for (var i = 0; i < this._itemList.length; i++) this._itemList[i].show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this);
		for (var e = 0; e < this._itemList.length; e++) this._itemList[e].hide()
	}, e.prototype.onUpdate = function(t) {
		t != EnumZoneType.ABYSS
	}, e.prototype.dispose = function() {
		if (this._bg && (UIMaker.putToPool(this._bg), this._bg = null), this._itemList) {
			for (var e = 0; e < this._itemList.length; e++) this._itemList[e].dispose();
			this._itemList = null
		}
		t.prototype.dispose.call(this)
	}, e.prototype.resize = function() {
		FullScreenMask.ins.removeMask(FullScreen.Panel), this.GrandFather.y = 0
	}, Object.defineProperty(e.prototype, "GrandFather", {
		get: function() {
			for (var t = this;;) {
				if (egret.is(t, "BaseSinglePanel") || egret.is(t, "BasePanel")) return t;
				t = t.parent
			}
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(AbyssView.prototype, "AbyssView");
var MaterialItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._auto = 0, e._free = !1, e.FlyToBag = function() {
			App.global.operate.flyToBag([e._grid.icon], e)
		}, e.skinName = "MaterialItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(ZoneEvent.FINISH_ZONE, this.onUpdate, this),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGo, this, this.btn), null == this._grid && (
				this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL)), this._grid.move(15, 11, this)
	}, e.prototype.onUpdate = function(t, e, i) {
		this._zoneData && t == this._zoneData.id && this.dataChanged()
	}, e.prototype.dataChanged = function() {
		if (this._zoneData = this.data, null != this._zoneData) {
			if (App.data.taskCenter.getThreadTaskShowGuide(19)) {
				var t = App.config.q_taskModelContainer.getDataBean(App.data.taskCenter.getCurrThreadTaskId());
				t.q_task_des == this._zoneData.bean.q_duplicate_name && Guide.getGuide().show("挑战材料副本", Guide.RIGHT, -180, 20,
					this.btn)
			}
			this._zoneData.type == EnumZoneType.EXP ? this.expUpdate() : this.materialUpdate(), this.btn.enabled = this._zoneData
				.remainIntoNum > 0, FilterUtil.gray(this.btn, !this.btn.enabled);
			var e = this._zoneData.type;
			null == this._bg && (this._bg = UIMaker.getCImage(null, this, "", 0, 0), this._bg.height = 115, this.addChildAt(
				this._bg, 0)), this._bg.url = ResPathUtil.getImgPath("bg" + e, "zone", ".jpg")
		}
	}, e.prototype.expUpdate = function() {
		this._auto = 0, this.yuanbao.visible = !1, this.cost_txt.text = "";
		var t = this._zoneData;
		if (0 != t.remainIntoNum) this.add_txt.text = "", this.saodang_txt.text = "", this.times_txt.text = "次数:" + t.remainIntoNum +
			"次";
		else {
			var e = App.data.zoneCenter.materialCenter.getVipLv(t.addCanIntoNum);
			this.saodang_txt.text = "", e > 0 ? this.add_txt.text = "VIP" + e + "可挑战次数+1" : (this.times_txt.text = "次数：0次",
				this.add_txt.text = "")
		}!t.isgetaward && t.isfinish ? this.btn.label = "领 奖" : this.btn.label = "挑 战", t.bean.q_reward && (this._grid.setData(
			ItemUtil.getRewardDataList(t.bean.q_reward)[0]), this._grid.descTxtField.text = "大量经验")
	}, e.prototype.materialUpdate = function() {
		this.add_txt.text = "", this._free = !1;
		var t = this._zoneData;
		0 == t.alreadyIntoNum ? (this.yuanbao.visible = !1, this.saodang_txt.text = "", this.times_txt.text = "次数:" + t.canIntoNum +
			"次", this._auto = 0, this.cost_txt.text = "", this.btn.label = "挑 战", t.zonedata && t.zonedata.cansweep && 1 == t
			.zonedata.cansweep && (this.btn.label = "扫 荡", this._auto = 1, this._free = !0)) : (this.yuanbao.visible = !0,
			this.saodang_txt.text = "", this.times_txt.text = "次数:" + t.remainIntoNum + "次", t.bean.q_need_item && (this.cost_txt
				.text = StringUtil.JsonParse(t.bean.q_need_item)[0].num + ""), this._auto = 1, this.btn.label = 0 == App.global.characterData
			.vipLevel ? "挑 战" : "扫 荡"), 0 == App.global.characterData.vipLevel || 0 == t.alreadyIntoNum ? (this.cost_txt.visible = !
			1, this.yuanbao.visible = !1) : "扫 荡" == this.btn.label && App.global.characterData.vipLevel > 0 && (this.cost_txt
			.visible = !0, this.yuanbao.visible = !0), t.bean.q_show_item && this._grid.setData(ItemUtil.getRewardDataList(t.bean
			.q_reward)[0])
	}, e.prototype.onGo = function(t) {
		"领 奖" == this.btn.label ? PanelOpenManager.openPanel(59, {
				zoneid: this._zoneData.id
			}) : ZoneCommandSender.sendC2S_ZoneIntoMessage(this._zoneData.id, this._zoneData.type, this._auto, 0, !this._free) &&
			(0 == this._auto ? App.panel.removePanel(14) : this.FlyToBag())
	}, e.prototype.clear = function() {
		this._grid && (this._grid.dispose(), this._grid = null), this._bg && (UIMaker.putToPool(this._bg), this._bg = null),
			t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(MaterialItemRender.prototype, "MaterialItemRender");
var PagodaRankRander = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PagodaRankItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.dataChanged = function() {
		var t = this.data.index,
			e = this.data.vip,
			i = this.data.rankname,
			n = this.data.rankdata;
		if (3 >= t) {
			this.icon.source = "pagodaRank_icon_16" + t + "_png", this.icon.visible = !0;
			var a = [16180790, 15938355, 15090673];
			this.name_txt.textColor = this.floor_txt.textColor = a[t - 1], this.bg.source = "pagodaRank_Ranking_" + t + "_png";
			var o = new egret.Rectangle(10, 19, 6, 13);
			this.bg.scale9Grid = o, this.bg.width = 480, this.bg.height = 47, this.num_txt.text = ""
		} else {
			this.icon.visible = !1, this.num_txt.text = t + "", this.name_txt.textColor = this.floor_txt.textColor = this.num_txt
				.textColor, this.bg.source = "pagodaRank_Ranking_4_png";
			var o = new egret.Rectangle(10, 19, 6, 13);
			this.bg.scale9Grid = o, this.bg.width = 480, this.bg.height = 47
		}
		this.VIP.visible = e > 0, this.name_txt.text = i, this.floor_txt.text = n
	}, e
}(ItemRenderer);
__reflect(PagodaRankRander.prototype, "PagodaRankRander");
var RoadOfCQComposeView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RoadOfCQComposeSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 2, 158, 48), this._gridLayer.initLayers([
			GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
		]), this._gridLayer.getLayer(GridLayout.TEXT_BOTTOM).y -= 3, this._gridLayer.moveTo(28, 70, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtn0, this,
				this.btn0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtn1, this, this.btn1), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtn2, this, this.btn2), this._dispatcher.addEventListener(
				ItemEvent.ADD, this.onUpdate, this), this._dispatcher.addEventListener(ItemEvent.CHANGE, this.onUpdate, this),
			this.onUpdate()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._gridLayer && this._gridLayer.clear()
	}, e.prototype.itemAdd = function(t, e) {
		1312 == e && this.onUpdate()
	}, e.prototype.onUpdate = function() {
		var t = App.config.q_globalContainer.getDataBean(276);
		if (t) {
			var e = StringUtil.JsonParse(t.q_string_value),
				i = void 0;
			this._txt = [this.num_txt0, this.num_txt1, this.num_txt2];
			var n = 0;
			this._itemIDs = [], this._itemDatas = [];
			for (var a in e) i = new ItemData, i.itemId = Number(a), i.count = App.data.bagItemDataCenter.getItemCount(Number(
				a)), i.showCompleteCount = !0, this._txt[n].text = e[a], n++, this._itemDatas.push(i), this._itemIDs.push(Number(
				a)), i = new ItemData, i.itemId = Number(a) + 1, i.count = 1, this._itemDatas.push(i)
		}
		this._gridLayer.dataProvider = this._itemDatas
	}, e.prototype.onBtn0 = function(t) {
		this.sendMsg(this._itemIDs[0], Number(this._txt[0].text))
	}, e.prototype.onBtn1 = function(t) {
		this.sendMsg(this._itemIDs[1], Number(this._txt[1].text))
	}, e.prototype.onBtn2 = function(t) {
		this.sendMsg(this._itemIDs[2], Number(this._txt[2].text))
	}, e.prototype.sendMsg = function(t, e) {
		App.data.bagItemDataCenter.getItemCount(t) >= e ? App.global.itemUse.useItemByItemId(t) : Notice.showMousePosMessage(
			"<font color=" + Notice.MIDDLE_COLOR_2 + ">材料不足，合成失败!</font>")
	}, e.prototype.dispose = function() {
		this._itemIDs = null, this._txt = null, this._itemDatas = null, this._gridLayer && (this._gridLayer.dispose(), this
			._gridLayer = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(RoadOfCQComposeView.prototype, "RoadOfCQComposeView");
var RoadOfCQItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.cloudys = [], e.euiSkinName = "RoadOfCQItemSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.groupMain), this._icon = UIMaker.getCImage(this.groupMain, this, ResPathUtil.getImgPath(this.bean.q_id + "",
			"zone"), 12, 60, !0, this._icon)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this);
		for (var e = 0; e < this.cloudys.length; e++) TweenLite.killTweensOf(this.cloudys[e]);
		this._icon.clear()
	}, e.prototype.updateState = function() {
		var t = App.data.zoneCenter,
			e = t.getData(this.bean.q_id);
		if (null != e) {
			var i = t.roadOfCQCenter.getCurrentID();
			if (this.bean.q_id > i) this.showCloudy(), this.groupMain.visible = !1;
			else {
				this.groupMain.visible = !0;
				var n = t.roadOfCQCenter.getShowCloudy(e.id);
				if (n || this.bean.q_id != i) this.showCloudy(!1);
				else {
					for (var a = [], o = 0; o < this.cloudys.length; o++) a.push(o);
					for (var r = this.cloudys.length; r > 0;) {
						var s = Math.floor(Math.random() * r),
							h = a[s];
						a.splice(s, 1), r--;
						var l = 1 * Math.random() + 1;
						TweenLite.to(this.cloudys[h], l, {
							x: this.cloudys[h].x + 200,
							alpha: 0,
							delay: 1 * (this.cloudys.length - r) * Math.random()
						})
					}
					t.roadOfCQCenter.setShowCloudy(e.id, !0)
				}
				var p = t.roadOfCQCenter.getState(this.bean.q_id);
				0 == p ? (this.bg.visible = !1, this.bg2.visible = !0, FilterUtil.gray(this._icon, !0), this.groupDesc.visible = !
					0, this.desc_txt.text = e.bean.q_tips) : 1 == p ? (this.bg.visible = !1, this.bg2.visible = !0, FilterUtil.gray(
					this._icon, !0), this.groupDesc.visible = !1) : (this.bg.visible = !0, this.bg2.visible = !1, FilterUtil.gray(
					this._icon, !1), this.groupDesc.visible = !1)
			}
		}
	}, e.prototype.setSelected = function(t, e) {
		void 0 === e && (e = !1), this._selected = t, this._effect = EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect(
			"zone", "road"), 24, 70, this._effect, t), this._selected && e && this.exec()
	}, e.prototype.showCloudy = function(t) {
		void 0 === t && (t = !0);
		for (var e = 0; e < this.cloudys.length; e++) t ? this.cloudys[e].visible = t : TweenLite.to(this.cloudys[e], 1, {
			alpha: 0,
			delay: .3 * Math.random()
		})
	}, e.prototype.onTouch = function(t) {
		this.exec()
	}, e.prototype.exec = function() {
		this.callback && this.callback.exec(this.bean)
	}, e.prototype.dispose = function() {
		this._icon && (UIMaker.putToPool(this._icon), this._icon = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(RoadOfCQItem.prototype, "RoadOfCQItem");
var RoadOfCQRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.xs = [200, 485, 710, 800, 1050, 1210, 1330, 1620, 2120, 2400], e.ys = [82, 90, 350, 100, 320, 70, 300, 180,
			280, 160
		], e.euiSkinName = "RoadOfCQRenderSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		var t = [];
		t.push([this.cloudy0, this.cloudy1, this.cloudy2, this.cloudy9]), t.push([this.cloudy3, this.cloudy4, this.cloudy5,
			this.cloudy10
		]), t.push([this.cloudy6, this.cloudy7, this.cloudy8]), t.push([this.cloudy11, this.cloudy12, this.cloudy13]), t.push(
			[this.cloudy18, this.cloudy19, this.cloudy20, this.cloudy35, this.cloudy36, this.cloudy37]), t.push([this.cloudy14,
			this.cloudy15, this.cloudy16, this.cloudy17
		]), t.push([this.cloudy25, this.cloudy26, this.cloudy27]), t.push([this.cloudy21, this.cloudy22, this.cloudy23,
			this.cloudy24
		]), t.push([this.cloudy28, this.cloudy29, this.cloudy30]), t.push([this.cloudy31, this.cloudy32, this.cloudy33,
			this.cloudy34
		]), this._bgs = [];
		for (var e, i = 0; 4 > i; i++) e = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("map" + (i + 1), "zone",
			".jpg"), 640 * i, 0, !1), this.addChildAt(e, 0), this._bgs.push(e);
		var n = App.data.zoneCenter.roadOfCQCenter.getBeanList();
		this._itemList = [];
		for (var a, o = this.xs.length, i = 0; o > i; i++) a = new RoadOfCQItem, a.bean = n[i], a.name = "id:" + n[i].q_id,
			a.cloudys = t[i], a.x = this.xs[i], a.y = this.ys[i], this.addChild(a), this._itemList.push(a);
		this.addChild(this.groupCloudy)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e);
		for (var i = 0; i < this._itemList.length; i++) this._itemList[i].callback = this.callback, this._itemList[i].show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this);
		for (var e = 0; e < this._itemList.length; e++) this._itemList[e].hide()
	}, e.prototype.updateState = function() {
		for (var t = 0; t < this._itemList.length; t++) this._itemList[t].updateState()
	}, e.prototype.setSelectedID = function(t, e) {
		void 0 === e && (e = !1);
		for (var i, n = 0; n < this._itemList.length; n++) i = this._itemList[n].bean.q_id == t, this._itemList[n].setSelected(
			i, e), i && (this.selectedIndex = n)
	}, e.prototype.dispose = function() {
		if (this._bgs) {
			for (var e = 0; e < this._bgs.length; e++) UIMaker.putToPool(this._bgs[e]);
			this._bgs = null
		}
		if (this._itemList) {
			for (var e = 0; e < this._itemList.length; e++) this._itemList[e].dispose();
			this._itemList = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(RoadOfCQRender.prototype, "RoadOfCQRender");
var RoadOfCQView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._maxCount = 3, e.euiSkinName = "RoadOfCQSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 3, 30, 30), this._gridLayer.initLayers([
				GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM, GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(10, 41, this.groupReward), this._type = EnumZoneType.ROAD_OF_CQ, this._model = App.data
			.zoneCenter.roadOfCQCenter;
		var t = App.config.q_globalContainer.getDataBean(279);
		t && (this._maxCount = t.q_int_value), this._map = new RoadOfCQRender, this._map.x = 0, this._map.y = 0, this._map.callback =
			new FunctionVO(this.onSelected, this), this.con_bw.addChild(this._map)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(BossEvent.ZONE_REFRESH, this.bossUpdate, this),
			this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn_go), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onHeCheng, this, this.btn_hc), ZoneCommandSender.sendC2S_ZoneInfoListMessage(this._type), this._map.show()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._map.hide(), this._data = null
	}, e.prototype.onUpdate = function(t) {
		t == this._type && ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(this._type)
	}, e.prototype.bossUpdate = function(t) {
		if (t == this._type) {
			var e = App.data.zoneCenter.roadOfCQCenter.getCurrentID();
			this._map.updateState(), this._map.setSelectedID(e, !0);
			var i = this._map.xs[this._map.selectedIndex];
			this.scrollerItem.dataPushEnd(Math.floor(i / 640)), this.scrollerItem.bounces = !1, this.count_txt.text = "挑战次数:" +
				App.data.boss.getZoneCount(this._type) + "/" + this._maxCount
		}
	}, e.prototype.onSelected = function(t) {
		if (this._data && this._data.id == t.q_id) Alert.show("是否挑战 " + HtmlUtil.formatColor(t.q_duplicate_name, 16181046),
			"提示", "确定|取消", this.onTouch, this, null, !0);
		else {
			this._data = App.data.zoneCenter.getData(t.q_id), this._gridLayer.dataProvider = ItemUtil.getRewardDataList(t.q_show_item),
				this._gridLayer.moveTo(313 - this._gridLayer.width >> 1, 41), this.name_txt.text = t.q_duplicate_name, this.desc_txt
				.text = t.q_explain;
			var e = App.config.q_monsterContainer.getDataBean(Number(t.q_image));
			e && (this.boss_txt.text = "BOSS:" + e.q_name), this._map.setSelectedID(t.q_id)
		}
	}, e.prototype.onTouch = function(t) {
		var e = this._model.getState(this._data);
		if (2 == e) {
			var i = App.data.boss.getZoneCount(this._type);
			i > 0 ? ZoneCommandSender.sendC2S_ZoneIntoMessage(this._data.id, this._data.type) && App.panel.removePanel(14) :
				Notice.showMousePosMessage("进入次数不足，无法进入副本")
		} else 1 == e ? Notice.showMousePosMessage("请通关上一关卡") : Notice.showMousePosMessage("暂未开放")
	}, e.prototype.onHeCheng = function(t) {
		App.panel.openPanel(202)
	}, e.prototype.dispose = function() {
		this._map && (this._map.dispose(), this._map = null), this._gridLayer && (this._gridLayer.dispose(), this._gridLayer =
			null), this.scrollerItem && (this.scrollerItem.dispose(), this.scrollerItem = null), t.prototype.dispose.call(
			this)
	}, e
}(ViewBase);
__reflect(RoadOfCQView.prototype, "RoadOfCQView");
var ZoneFailRewardView = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.result_img.source = "fail_jiesuan_4_png", this._bg.url = ResPathUtil.getImgPath(
			"jiesuan_2", "zone")
	}, e
}(ZoneFinishView);
__reflect(ZoneFailRewardView.prototype, "ZoneFailRewardView");
var ZoneFailView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ZoneFailSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.go_btn0.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往")), this.go_btn1.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatUnderline("前往")), this.go_btn2.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往")),
			this.go_btn3.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往")), this.go_btn4.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatUnderline("前往")), this.go_btn5.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.go_btn0), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.go_btn1),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.go_btn2), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.go_btn3), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onTouch, this, this.go_btn4), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this
				.onTouch, this, this.go_btn5), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn_exit), this.updateFail(), this.visible = !0
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg.clear(), App.timer.clearTimer(this.onTimer, this), this.visible = !1
	}, e.prototype.updateFail = function() {
		this._bg = UIMaker.getCImage(null, this, ResPathUtil.getImgPath("bg_023", "zone"), 2, 17), this.addChildAt(this._bg,
			0);
		var t = App.data.activityCenter.getList(6),
			e = t.length > 0;
		this.go_btn0.visible = this.icon0.visible = this.txt0.visible = e, this.go_btn5.visible = this.icon5.visible = this
			.txt5.visible = !e, this.icon7.visible = this.go_btn4.visible = e;
		var i = 3 == App.global.roles.roleList.length;
		this.icon7.visible || (this.go_btn4.visible = this.icon4.visible = !i), this.go_btn6.visible = this.icon6.visible =
			this.txt6.visible = i;
		var n = 10;
		this.btn_exit.label = "退出(" + n + "s)", App.timer.serverTimeEndCount(this, this.onTimer, n)
	}, e.prototype.onTimer = function(t) {
		this.btn_exit.label = "退出(" + t.spuleTime + "s)", t.spuleTime <= 0 && (App.panel.removePanel(34), App.timer.clearTimer(
			this.onTimer, this), ZoneCommandSender.sendC2S_ZoneFinishMessage())
	}, e.prototype.onTouch = function(t) {
		var e = !0;
		switch (t.currentTarget) {
			case this.go_btn0:
				e = PanelOpenManager.openPanel(55);
				break;
			case this.go_btn1:
				e = PanelOpenManager.openPanel(8, null, !1, !1, 129);
				break;
			case this.go_btn2:
				e = PanelOpenManager.openPanel(6, null, !1, !1, 4);
				break;
			case this.go_btn3:
				e = PanelOpenManager.openPanel(23, {
					selectedIndex: 1
				}, !1, !1, 49);
				break;
			case this.go_btn4:
				this.icon7.visible || (e = PanelOpenManager.openPanel(20)), e = PanelOpenManager.openPanel(55);
				break;
			case this.go_btn5:
				e = PanelOpenManager.openPanel(102);
				break;
			case this.go_btn6:
				e = PanelOpenManager.openPanel(5, {
					selectedIndex: 1
				}, !1, !1, 26);
				break;
			case this.btn_exit:
				ZoneCommandSender.sendC2S_ZoneFinishMessage()
		}
		e && App.panel.removePanel(34)
	}, e.prototype.dispose = function() {
		this._bg && (this._bg.dispose(), this._bg = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ZoneFailView.prototype, "ZoneFailView");
var ZoneFinishPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._panelID = -1, e._panelIndex = -1, e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._panelID = e.panelID, this._panelIndex = e.selectedIndex, e.isfailed ? (e.isShowFailReward ?
			(null == this._failReward && (this._failReward = new ZoneFailRewardView, this._failReward.lbInfo.visible = !1,
				this.addChild(this._failReward)), this._failReward.show(e), this._fail && (this._fail.hide(), this._fail.parent &&
				this._fail.parent.removeChild(this._fail))) : (null == this._fail && (this._fail = new ZoneFailView, this.addChild(
				this._fail)), this._fail.show(e), this._failReward && (this._failReward.hide(), this._failReward.parent && this
				._failReward.parent.removeChild(this._failReward))), this._success && (this._success.hide(), this._success.parent &&
				this._success.parent.removeChild(this._success))) : (null == this._success && (this._success = new ZoneFinishView,
			this._success.lbInfo.visible = !0, this.addChild(this._success)), this._success.show(e), this._fail && (this._fail
			.hide(), this._fail.parent && this._fail.parent.removeChild(this._fail)), this._failReward && (this._failReward.hide(),
			this._failReward.parent && this._failReward.parent.removeChild(this._failReward)))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._panelID > 0 && 58 != this._panelID && App.panel.openPanel(this._panelID, {
			selectedIndex: this._panelIndex
		}), this._success && this._success.hide(), this._fail && this._fail.hide(), this._failReward && this._failReward.hide()
	}, e.prototype.onTouchStage = function(t) {}, e.prototype.resize = function() {
		this.x = Config.SCREEN_WIDTH - this.width >> 1, this.y = Config.SCREEN_HEIGHT - this.height >> 1
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._success && (this._success.dispose(), this._success = null), this._failReward &&
			(this._failReward.dispose(), this._failReward = null), this._fail && (this._fail.dispose(), this._fail = null)
	}, e
}(BasePanel);
__reflect(ZoneFinishPanel.prototype, "ZoneFinishPanel");
var GodWingTZTIP = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("WingGodTZSkin"), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - this.width >> 1, this._view.y = Config.SCREEN_HEIGHT -
			this.height >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.formatStringToHtml = function(t, e) {
		void 0 === e && (e = 0), t = t.replace("[", ""), t = t.replace("]", "");
		var i = t.split(",");
		return i
	}, e.prototype.show = function(t) {
		var e = App.data.wingGodCenter().getWingGod(App.data.wingGodCenter().selectIndex),
			i = App.data.wingGodCenter().getallGodWingtz(),
			n = e.length,
			a = i.length;
		if (4 == n) {
			this._view.group0.visible = !0;
			for (var o = App.config.q_itemContainer.getDataBean(e[0].godwingID).q_level, r = 0; n > r; r++) {
				var s = App.config.q_itemContainer.getDataBean(e[r].godwingID);
				o > s.q_level && (o = s.q_level)
			}
			for (var h = 0; a > h; h++)
				if (i[h].q_rank == o) {
					this._view.jihuo.source = "common1_state2_png", this._view.jihuoname.text = i[h].q_suit_name, this._view.tiaojian
						.text = "激活条件:" + i[h].q_equip_icon_male, this._view.tiaojian.visible = !1;
					var l = this.formatStringToHtml(i[h].q_add_attribute_client);
					if (this._view.shuxing1.text = l[0], this._view.shuxing2.text = l[1], this._view.shuxing3.text = l[2], this._view
						.shuxing4.text = l[3], a > h + 1) {
						this._view.jihuo1.source = "common1_state1_png", this._view.jihuoname0.text = i[h + 1].q_suit_name, this._view.tiaojian0
							.text = "激活条件:" + i[h + 1].q_equip_icon_male, this._view.tiaojian.visible = !1;
						var p = this.formatStringToHtml(i[h + 1].q_add_attribute_client);
						this._view.currshuxing1.text = p[0], this._view.currshuxing2.text = p[1], this._view.currshuxing3.text = p[2],
							this._view.currshuxing4.text = p[3]
					} else this._view.group0.visible = !1;
					break
				} this._view.x = Config.SCREEN_WIDTH - this.width >> 1, this._view.y = Config.SCREEN_HEIGHT - this.height >> 1
		} else {
			this._view.jihuo.source = "common1_state1_png", this._view.jihuoname.text = i[0].q_suit_name, this._view.tiaojian.text =
				"激活条件:" + i[0].q_equip_icon_male, this._view.tiaojian.visible = !0;
			var l = this.formatStringToHtml(i[0].q_add_attribute_client);
			this._view.shuxing1.text = l[0], this._view.shuxing2.text = l[1], this._view.shuxing3.text = l[2], this._view.shuxing4
				.text = l[3], this._view.group0.visible = !1, this._view.x = Config.SCREEN_WIDTH - this.width >> 1, this._view.y =
				Config.SCREEN_HEIGHT - this.height / 2 >> 1
		}
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 400
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 398
		},
		enumerable: !0,
		configurable: !0
	}), e
}(TipStyleBase);
__reflect(GodWingTZTIP.prototype, "GodWingTZTIP");
var ZoneAbyssTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = new AbyssTrackView, this.addChild(this._view)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._view.show(), App.timer.doTimeLoop(this, 1e3, this.onTimerHandler)
	}, e.prototype.onTimerHandler = function() {
		ZoneCommandSender.sendC2S_ShengYuanPlayerRankInfoMessage()
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), App.timer.clearTimer(this.onTimerHandler, this), this._view.hide()
	}, e.prototype.dispose = function() {
		this._view && (this._view.dispose(), this._view = null), t.prototype.dispose.call(this)
	}, e
}(BaseZone);
__reflect(ZoneAbyssTrack.prototype, "ZoneAbyssTrack");
var AbyssTrackView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "AbyssTrackSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMode, this,
				this.btn_mode), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onMoveToPostion, this, this.btn_go),
			this._dispatcher.addEventListener(PlayerAttributeEvent.CHANGE_PKSTATE, this.onPkChange, this), this.onPkChange()
	}, e.prototype.onPkChange = function() {
		this.btn_mode.currentState = App.global.characterData.pkState != EnumPKState.PKMODEL_ALLTHEMODE ? "down" : "up"
	}, e.prototype.onMode = function(t) {
		var e = App.global.characterData.pkState == EnumPKState.PKMODEL_ALLTHEMODE ? EnumPKState.PKMODEL_GUILDMODE :
			EnumPKState.PKMODEL_ALLTHEMODE;
		CharacterUICommandSender.sendC2S_ChangePKStateMessage(e)
	}, e.prototype.onMoveToPostion = function(t) {
		var e = App.data.zoneCenter.abyssCenter.getNpc(App.global.characterData.mapId);
		return null == e ? void Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">NPC不存在！</font>") :
			void App.dispatcher.dispatchEvent(ZoneEvent.ZONE_NPC, e.q_id)
	}, e
}(ViewBase);
__reflect(AbyssTrackView.prototype, "AbyssTrackView");
var ZoneCount = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._num = 0, e._max = 0, e.euiSkinName = "ZoneCountSkin", e.hide(), e.touchEnabled = !1, e.x = Config.SCREEN_WIDTH -
			e.width >> 1, e
	}
	return __extends(e, t), e.prototype.hide = function() {
		t.prototype.hide.call(this), this.groupTime.visible = !1, this.groupKill.visible = !1, this.bg.visible = !1, App.timer
			.clearTimer(this.onFinish, this), this.visible = !1
	}, e.prototype.setCurrentCount = function(t, e) {
		this.groupTime.visible = !1, this.groupKill.visible = !0, this.bg.visible = !0, this.visible = !0, this._num = t,
			this._max = e, this.num_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(t + "", 3533365) + "/" + e)
	}, e.prototype.showCount = function() {
		this._num++, this.num_txt.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatColor(this._num + "", 3533365) + "/" + this
			._max)
	}, e.prototype.showFinish = function(t, e, i) {
		var n = GameUtil.getZoneBean(t);
		null != n && e != EnumZoneType.AUTO_FIGHT_ZONE && e != EnumZoneType.GUAN_KA_ZONE && n.q_complete_residence > 0 && (
			void 0 == i && (i = n.q_complete_residence), i = ServerTime.getServerTime() + n.q_complete_residence, App.timer.serverTimeEnd(
				this, this.onFinish, i))
	}, e.prototype.showTime = function(t) {
		this.visible = !0, this.bg.visible = !0, this.groupTime.visible = !0, this.groupKill.visible = !1, this.time_txt.text =
			t + ""
	}, e.prototype.onFinish = function(t) {
		t.spuleTime >= 0 ? this.showTime(t.spuleTime) : (this.groupTime.visible = !1, App.timer.clearTimer(this.onFinish,
			this))
	}, e
}(ViewBase);
__reflect(ZoneCount.prototype, "ZoneCount");
var ZoneDaoBaoTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher.addEventListener(egret.Event.RESIZE, this.onStageSize, this, App.stage)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this.OnCountDown();
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		if (null != e) {
			var i = e.q_can_stay_time / 1e3;
			this.judge(i), App.timer.serverTimeEndCount(this, this.SulTime, i)
		}
	}, e.prototype.onStageSize = function(t) {
		void 0 === t && (t = null)
	}, e.prototype.SulTime = function(t) {
		t.spuleTime > 0 ? this.judge(t.spuleTime) : App.timer.clearTimer(this.SulTime, this)
	}, e.prototype.judge = function(t) {}, e.prototype.OnCountDown = function() {}, e.prototype.finish = function(e) {
		void 0 === e && (e = !1), App.data.zoneCenter.type == EnumZoneType.DAOBAO_BOSS && this.hideTime(), t.prototype.finish
			.call(this), PanelOpenManager.openZoneFinishPanel(this.zoneid, null, e)
	}, e.prototype.hideTime = function() {}, e.prototype.exit = function() {
		this.hideTime(), t.prototype.exit.call(this)
	}, e
}(BaseZone);
__reflect(ZoneDaoBaoTrack.prototype, "ZoneDaoBaoTrack");
var ZoneFightBossTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._ownerDrop = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(ZoneEvent.ZONE_BOSS_REWARD, this.onShowReward, this),
			this._dispatcher.addEventListener(EventType.DROP_ITEM, this.onDrop, this), this._ownerDrop = !1
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._ownerDrop = !1
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1)
	}, e.prototype.onShowReward = function(t) {
		for (var e, i = t.length, n = [], a = {}, o = 0; i > o; o++) e = a[t[o].itemModelId], null == e && (e = new ItemData,
			e.itemId = t[o].itemModelId, a[t[o].itemModelId] = e, n.push(e)), e.count += t[o].itemNum;
		PanelOpenManager.openZoneFinishPanel(this.zoneid, n, !1, !1)
	}, e.prototype.onDrop = function(t) {
		for (var e = App.global.characterData.personId, i = t.getValueArray(), n = i.length, a = 0; n > a; a++) i[a].ownerId ==
			e && (this._ownerDrop = !0);
		this._ownerDrop && 0 == n && ZoneCommandSender.sendC2S_ZoneFinishMessage()
	}, e
}(BaseZone);
__reflect(ZoneFightBossTrack.prototype, "ZoneFightBossTrack");
var ZoneGuanQiaBossTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._endEffect = !1, e._playing = !1, e.onRound = function(t) {
			var i = [];
			if (e._playing && t) {
				for (var n = t.length, a = void 0, o = 0; n > o; o++) a = new ItemData, a.itemId = t[o].itemModelId, a.count = t[
					o].num, i.push(a);
				0 == App.layer.panelLayer.numChildren && PanelOpenManager.openZoneFinishPanel(e.zoneid, i, !1, !0)
			}
		}, e
	}
	return __extends(e, t), e.prototype.enter = function() {
		t.prototype.enter.call(this), this._playing = !1, this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL,
			this.onDead, this), this._dispatcher.addEventListener(EventType.DROP_ITEM, this.onDrop, this), this._dispatcher.addEventListener(
			WarpetEvent.KUN_EAT, this.onEat, this), this._dispatcher.addEventListener(PlayerAttributeEvent.HP, this.onChangeHp,
			this), this._dispatcher.addEventListener(EventType.ROUND_GOODS, this.onRound, this), this._endEffect = !1
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._transEffect && this._transEffect.removeParent(), App.timer.clearTimer(this.onTimer,
			this), this._playing = !1
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1), t ? PanelOpenManager.openZoneFinishPanel(this.zoneid, null, t) : this.showWin()
	}, e.prototype.onChangeHp = function(t, e, i) {
		var n = App.global.mapModule.mapAvatarModel.getMonster(t);
		n && 0 == e && this.showWin()
	}, e.prototype.onDrop = function(t) {
		var e = t.length;
		0 == e && this.moveToPoint()
	}, e.prototype.onEat = function(t) {
		1 == t.result && this.moveToPoint()
	}, e.prototype.onDead = function() {
		App.data.zoneCenter.guanQiaCenter.auto = !1
	}, e.prototype.moveToPoint = function() {
		var t = App.data.zoneCenter.getMyZoneData();
		if (t && t.bean.q_zone_target) {
			var e = App.global.mapModule.mapMouseModel.controlRoleData,
				i = StringUtil.JsonParse(t.bean.q_zone_target);
			this._node = i;
			var n = h5_engine.MapVO.getCenterPoint(i[0], i[1]);
			if (e.pixel_x == n.x && e.pixel_y == n.y) return void this.sendExit();
			e.ai.isRuning = !1;
			var a = SearchToPointVO.getVO();
			0 == a.search(e, n.x, n.y, "onMoveToMapPosition") && (e.ai.isRuning = !0), e.ai.reset(), this.makeTransEffect(n.x,
				n.y), this._dispatcher.addEventListener(EventType.CHARACTER_UPDATE_POSITION, this.onGoToPlace, this)
		} else App.timer.doFrameLoop(this, 1, this.onTimer)
	}, e.prototype.onGoToPlace = function(t, e, i, n, a, o) {
		var r = this._node[0],
			s = this._node[1];
		r == i && s == n && (this.sendExit(), this._dispatcher.removeEventListener(EventType.CHARACTER_UPDATE_POSITION,
			this.onGoToPlace, this))
	}, e.prototype.onTimer = function() {
		this.sendExit(), App.timer.clearTimer(this.onTimer, this)
	}, e.prototype.sendExit = function() {
		for (var t = App.global.roles.roleList, e = t.length, i = 0; e > i; i++) {
			var n = t[i];
			n.ai.isRuning = !0
		}
		ZoneCommandSender.sendC2S_ZoneFinishMessage()
	}, e.prototype.makeTransEffect = function(t, e) {
		null == this._transEffect && (this._transEffect = App.global.mapModule.mapEffectModel.creatEffect(ResPathUtil.getMenuEffect(
			"chuansong", "chuansongmen"), t, e)), null == this._transEffect.parent && (this._transEffect.addParent(App.global
			.mapModule.secne.sceneEffect), this._transEffect.setTo(t, e))
	}, e.prototype.resize = function(t) {
		this._win && (this._win.x = Config.SCREEN_WIDTH - this._win.width >> 1)
	}, e.prototype.showWin = function() {
		if (!this._playing) {
			this._playing = !0, null == this._win && (this._win = UIMaker.createViewBase("GuankaSuccessSkin")), this._win.alpha =
				1, this._win.scaleX = 1, this._win.scaleY = 1, this._win.moveTo(0, 0, this), this._win.groupTxt.visible = !1;
			var t = App.data.zoneCenter.getMyZoneData().bean;
			if (this._win.exp_txt.text = StringUtil.formatNum(App.data.zoneCenter.guanQiaCenter.expPerHour, !0, !1) + "", this
				._win.money_txt.text = StringUtil.formatNum(App.data.zoneCenter.guanQiaCenter.moneyPerHour, !0, !1) + "", t.q_next_zone_id >
				0) {
				var e = App.config.q_bot_rewardContainer.getDataBean(t.q_next_zone_id);
				if (e && e.q_client_reward) {
					var i = StringUtil.JsonParse(e.q_client_reward);
					this._win.exp_txt1.text = StringUtil.formatNum(i[1].num, !0, !1), this._win.money_txt1.text = StringUtil.formatNum(
						i[0].num, !0, !1)
				}
			}
			this._effect = EffectUtils.showCEffect(this, this._win.groupEffect, ResPathUtil.getMenuEffect("zone", "5_0"), 320,
				210, this._effect), this.resize(), App.timer.doTimeOnce(this, 1600, this.onStop), App.timer.doTimeOnce(this, 400,
				this.showWinTxt), App.timer.doTimeOnce(this, 200, this.showWinRoll, [Number(t.q_duplicate_name)])
		}
	}, e.prototype.showWinTxt = function() {
		this._win.groupTxt.visible = !0
	}, e.prototype.showWinRoll = function(t) {
		null == this._roll && (this._roll = new NumberRolling), this._roll.setRollingValue(t), this._roll.moveTo(620 - this
			._roll.width >> 1, 160, this._win)
	}, e.prototype.onStop = function() {
		this._effect && this._effect.stop(), TweenLite.to(this._win, .7, {
			delay: .79,
			x: 500,
			y: 40,
			alpha: .01,
			scaleX: .1,
			scaleY: .1
		}), App.timer.doTimeOnce(this, 1e3, this.clearEffect)
	}, e.prototype.clearEffect = function() {
		this._endEffect = !0, App.timer.clearTimer(this.onStop, this), App.timer.clearTimer(this.showWinTxt, this), App.timer
			.clearTimer(this.showWinRoll, this), App.timer.clearTimer(this.clearEffect, this), this._win && (this._win.dispose(),
				this._win = null), this._roll && (this._roll.dispose(), this._roll = null), this._effect && (this._effect.dispose(),
				this._effect = null)
	}, e
}(BaseZone);
__reflect(ZoneGuanQiaBossTrack.prototype, "ZoneGuanQiaBossTrack");
var ZoneGuanQiaTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.needShowGuide = !0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("GuankaProSkin"), this.addChild(this._view), this._targetItem = new TargetItem,
			this._targetItem.parentContainer = this, this._targetItem.x = -(Config.SCREEN_WIDTH - 150), this._targetItem.y = -
			670
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchAuto, this,
				this._view.btn_auto), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onSendIntoZone, this,
				this._view.show_btn), this._dispatcher.addEventListener(EventType.MYPLAYER_KILL_MONSTER, this.onKill, this), this
			._dispatcher.addEventListener(EventType.FUNCTION_OPEN, this.functionOpen, this), this._dispatcher.addEventListener(
				TaskEvent.TASK_AUTO_RUN_TIP_SHOW, this.onShowGuide, this), this._dispatcher.addEventListener(EventType.MAINPANEL_SHOWORHIDE,
				this.showbackBtn, this), this._dispatcher.addEventListener(EventType.SHOW_HIDE_PANEL, this.onPanelOpen, this),
			App.data.zoneCenter.guanQiaCenter.into = !0, App.data.zoneCenter.guanQiaCenter.goToBoss = !1, this.onUpdateBar(),
			this.onUpdateLabel(App.data.zoneCenter.guanQiaCenter.auto), this._view.visible = App.global.funcOpen.isFunctionOpen(
				87), this._view.btn_auto.visible = App.global.funcOpen.isFunctionOpen(88), this._view.btn_auto.visible || (App.data
				.zoneCenter.guanQiaCenter.auto = !1), this._targetItem.show(this.zoneid), App.timer.doTimeLoop(this, 5e3, this.onAddKill)
	}, e.prototype.onAddKill = function() {
		App.data.zoneCenter.guanQiaCenter.killNum++, this.onUpdateBar()
	}, e.prototype.showbackBtn = function(t) {
		this.visible = t
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), App.data.zoneCenter.guanQiaCenter.into = !1, App.data.zoneCenter.guanQiaCenter.goToBoss = !
			1, App.timer.clearTimer(this.onSendIntoZone, this), App.timer.clearTimer(this.onAddKill, this)
	}, e.prototype.functionOpen = function(t) {
		87 == t ? this._view.visible = App.global.funcOpen.isFunctionOpen(87) : 88 == t && (this._view.btn_auto.visible =
			App.global.funcOpen.isFunctionOpen(88))
	}, e.prototype.onKill = function(t) {
		App.data.zoneCenter.guanQiaCenter.killNum++, App.timer.clearTimer(this.onAddKill, this), App.timer.doTimeLoop(this,
			5e3, this.onAddKill), this.onUpdateBar()
	}, e.prototype.onUpdateBar = function() {
		var t = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		if (t && t.q_finish_zone) {
			var e = App.data.zoneCenter.guanQiaCenter.killNum,
				i = Number(StringUtil.JsonParse(t.q_finish_zone)[0].num);
			if (App.data.zoneCenter.guanQiaCenter.goToBoss = e >= i, this._view.txtPer.text = e + "/" + i, this._view.progressBar
				.width = 107 * Math.min(1, e / i), this._effect = EffectUtils.showCEffect(this, this._view.groupEffect,
					ResPathUtil.getMenuEffect("main", "guanka"), 75, 53, this._effect, App.data.zoneCenter.guanQiaCenter.goToBoss),
				this._view.txtPer.visible = Config.isDebug, e >= i) {
				App.dispatcher.dispatchEvent(ZoneEvent.ZONE_KILLNUM, e, i);
				var n = App.data.taskCenter.threadTask;
				this.needShowGuide && !App.panel.isShowing(7003) && this.onShowGuide(n), this.onUpdateLabel(App.data.zoneCenter.guanQiaCenter
					.auto), App.data.zoneCenter.guanQiaCenter.goToBoss && App.data.zoneCenter.guanQiaCenter.auto && App.timer.doTimeOnce(
					this, 500, this.onSendIntoZone)
			}
		}
	}, e.prototype.onPanelOpen = function(t) {
		this.needShowGuide = !t
	}, e.prototype.onUpdateLabel = function(t) {
		this._view.btn_auto.currentState = t ? "down" : "up"
	}, e.prototype.onTouchAuto = function(t) {
		Guide.getGuide().hide(), App.data.zoneCenter.guanQiaCenter.auto = !App.data.zoneCenter.guanQiaCenter.auto, this.onUpdateLabel(
			App.data.zoneCenter.guanQiaCenter.auto)
	}, e.prototype.onSendIntoZone = function(t) {
		if (void 0 === t && (t = null), this.hideGuide(), App.data.zoneCenter.guanQiaCenter.goToBoss) {
			if (App.data.zoneCenter.guanQiaCenter.into) {
				var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
				if (e) {
					if (PanelOpenManager.openBagFullAlert()) return void this.onTouchAuto(null);
					ZoneCommandSender.sendC2S_ZoneFinishMessage(), App.global.zone.showEnterEffect(), App.data.zoneCenter.guanQiaCenter
						.into = !1
				}
			}
		} else Notice.showBottomMessage("进度未满，请继续杀怪")
	}, e.prototype.onShowGuide = function(t) {
		if (t && 1 == t.taskState && 1 == this.visible) {
			var e = App.config.q_taskModelContainer.getDataBean(t.taskID);
			if (9 == e.q_yindao && 0 == App.data.zoneCenter.guanQiaCenter.auto) this.guide.show("点击自动挑战", Guide.RIGHT, -170,
				170, this);
			else if (8 == e.q_yindao) {
				if ("点击进入关卡" == this.guide.text) return;
				this.guide.show("点击进入关卡", Guide.RIGHT, -170, 90, this)
			} else this.hideGuide()
		}
	}, e.prototype.resize = function() {
		this._targetItem.x = -(Config.SCREEN_WIDTH - 150), this.x = Config.SCREEN_WIDTH - 150, this.y = 695
	}, e.prototype.dispose = function() {
		this._view.dispose(), this._view = null, t.prototype.dispose.call(this)
	}, e.prototype.hideGuide = function() {
		this._guide && (this._guide.hide(), this._guide = null)
	}, Object.defineProperty(e.prototype, "guide", {
		get: function() {
			return null == this._guide && (this._guide = Guide.getGuide()), this._guide
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BaseZone);
__reflect(ZoneGuanQiaTrack.prototype, "ZoneGuanQiaTrack");
var ZoneGuildBossTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher.addEventListener(egret.Event.RESIZE, this.onStageSize, this, App.stage)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(ZoneEvent.ZONE_BOSS_REWARD, this.onShowReward, this),
			this.OnCountDown();
		var e = GameUtil.getZoneBean(App.data.zoneCenter.zoneID);
		if (null != e) {
			var i = e.q_can_stay_time / 1e3;
			this.judge(i), App.timer.serverTimeEndCount(this, this.SulTime, i)
		}
	}, e.prototype.onStageSize = function(t) {
		void 0 === t && (t = null), this.bg && (this.bg.x = Config.SCREEN_WIDTH - this.bg.width >> 1, this.bg.y = 520)
	}, e.prototype.SulTime = function(t) {
		t.spuleTime > 0 ? this.judge(t.spuleTime) : App.timer.clearTimer(this.SulTime, this)
	}, e.prototype.judge = function(t) {
		if (10 > t) this.bg.n0.source = "", this.bg.n1.source = "common1_sysj_" + t + "_png";
		else {
			var e = t % 10,
				i = Math.floor(t / 10);
			this.bg.n0.source = "common1_sysj_" + i + "_png", this.bg.n1.source = "common1_sysj_" + e + "_png"
		}
	}, e.prototype.OnCountDown = function() {
		this.bg = UIMaker.createViewBase("GuildBossTimeSkin"), this.bg.x = Config.SCREEN_WIDTH - this.bg.width >> 1, this.bg
			.y = 520, App.layer.zoneLayer.addChild(this.bg)
	}, e.prototype.exit = function() {
		this.bg && (App.layer.zoneLayer.removeChild(this.bg), App.timer.clearTimer(this.SulTime, this), this.bg = null), t.prototype
			.exit.call(this)
	}, e.prototype.onShowReward = function(t) {
		for (var e, i = t.length, n = [], a = {}, o = 0; i > o; o++) e = a[t[o].itemModelId], null == e && (e = new ItemData,
			e.itemId = t[o].itemModelId, a[t[o].itemModelId] = e, n.push(e)), e.count += t[o].itemNum;
		PanelOpenManager.openZoneFinishPanel(this.zoneid, n, !1)
	}, e
}(BaseZone);
__reflect(ZoneGuildBossTrack.prototype, "ZoneGuildBossTrack");
var ZoneLook = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this.btn = new eui.Image, this.addChild(this.btn), this.btn.source = "main_look_png"
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onBtnHandler, this,
			this.btn);
		var e = App.global.mapModule.mapAvatarModel;
		this.btn.source = e.hideData.checkAll ? "main_notlook_png" : "main_look_png", this.btn.visible = !0, this.updateShow()
	}, e.prototype.onBtnHandler = function(t) {
		var e = App.global.mapModule.mapAvatarModel;
		e.hideData.checkAll = !e.hideData.checkAll, e.hideData.checkAll ? this.btn.source = "main_notlook_png" : this.btn.source =
			"main_look_png", e.hideData.checkOther = e.hideData.checkSkill = e.hideData.checkDress = e.hideData.checkAll, this
			.updateShow()
	}, e.prototype.updateShow = function() {
		var t = App.global.mapModule.mapAvatarModel;
		t.hideData.hide_allPlayer = t.hideData.checkAll, t.hideData.hide_skillEffect = t.hideData.checkAll, t.HideAvatar(t.hideData),
			SystemSetPanel.updateShow()
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this.btn.visible = !1
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1)
	}, e.prototype.resize = function(t) {
		this.x = Config.SCREEN_WIDTH - 77, this.y = Config.SCREEN_HEIGHT - 350
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e
}(BaseZone);
__reflect(ZoneLook.prototype, "ZoneLook");
var ZoneMaterialTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.ShowDrops = function(t) {
			void 0 === t && (t = !1);
			for (var i = App.data.zoneCenter.getData(App.data.zoneCenter.zoneID).bean, n = JSON.parse(i.q_reward), a = [], o =
					0; o < n.length; o++) {
				var r = new ItemData;
				r.itemId = n[o].id, r.count = n[o].num, a.push(r)
			}
			t && (a = []), 0 == App.layer.panelLayer.numChildren && PanelOpenManager.openZoneFinishPanel(e.zoneid, a, t, t)
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._kill = new ZoneCount, this.addChild(this._kill), this._kill.x = (Config.SCREEN_WIDTH >> 1) - (this._kill.width >>
			1)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this);
		var e = GameUtil.getZoneBean(this.zoneid);
		if (e) {
			var i = Number(StringUtil.JsonParse(e.q_finish_zone)[0].num);
			this._kill.setCurrentCount(0, i), this._kill.visible = !0, this._dispatcher.addEventListener(EventType.MYPLAYER_KILL_MONSTER,
				this.onKill, this)
		}
	}, e.prototype.resize = function(t) {
		this._kill.x = (Config.SCREEN_WIDTH >> 1) - (this._kill.width >> 1)
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this)
	}, e.prototype.finish = function(t) {
		if (void 0 === t && (t = !1), this._kill.visible = !1, this.type == EnumZoneType.EXP && !t) {
			var e = App.data.zoneCenter.getData(this.zoneid);
			e.isgetaward || PanelOpenManager.openPanel(59, {
				zoneid: this.zoneid
			})
		}
		this.ShowDrops(t)
	}, e.prototype.onKill = function(t) {
		this._kill.showCount()
	}, e.prototype.dispose = function() {
		this._kill && (this._kill.dispose(), this._kill = null), t.prototype.dispose.call(this)
	}, e
}(BaseZone);
__reflect(ZoneMaterialTrack.prototype, "ZoneMaterialTrack");
var ZonePagodaTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		this._txt = UIMaker.getTextField(this, this, Config.SCREEN_WIDTH >> 1, 52, 106, 30, 3533365, 20), this._txt.verticalAlign =
			egret.VerticalAlign.MIDDLE
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(EventType.ROUND_GOODS, this.onRound, this), this._txt
			.text = App.data.zoneCenter.pagodaCenter.getFloor(this.zoneid) + "", null == this._img ? this._img = UIMaker.getCImage(
				this, this, ResPathUtil.getImgPath("cengshu_01", "zone"), Config.SCREEN_WIDTH >> 1, 52) : this._img.url =
			ResPathUtil.getImgPath("cengshu_01", "zone")
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._img.clear()
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1), PanelOpenManager.openPanel(14, {
			selectedIndex: 1
		}), PanelOpenManager.openZoneFinishPanel(this.zoneid, this._items, t)
	}, e.prototype.onRound = function(t) {
		if (this._items = [], t)
			for (var e = t.length, i = void 0, n = 0; e > n; n++) i = new ItemData, i.itemId = t[n].itemModelId, i.count = t[n]
				.num, this._items.push(i)
	}, e
}(BaseZone);
__reflect(ZonePagodaTrack.prototype, "ZonePagodaTrack");
var ZonePersonalBossTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._kunEat = !1, e._panelID = -1, e
	}
	return __extends(e, t), e.prototype.enter = function() {
		t.prototype.enter.call(this), this._dispatcher.addEventListener(PlayerAttributeEvent.MY_ROLE_DEAD_ALL, this.onShowFail,
			this), this._dispatcher.addEventListener(EventType.ROUND_GOODS, this.onRound, this), this._dispatcher.addEventListener(
			ZoneEvent.ZONE_BOSS_REWARD, this.onRound2, this), this._dispatcher.addEventListener(PlayerAttributeEvent.ROLE_DEAD,
			this.onKun, this), this._kunEat = !1, this._panelID = this.type == EnumZoneType.PERSONAL_BOSS ? 29 : -1
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this._kunEat = !1
	}, e.prototype.onShowFail = function() {
		PanelOpenManager.openZoneFinishPanel(this.zoneid, null, !0, !1, this._panelID)
	}, e.prototype.finish = function(t) {
		void 0 === t && (t = !1), t ? PanelOpenManager.openZoneFinishPanel(this.zoneid, null, t, !1, this._panelID) : this.type !=
			EnumZoneType.PERSONAL_BOSS || this._kunEat || (App.global.characterData.level > 80 ? PanelOpenManager.openZoneFinishPanel(
				this.zoneid, this._items, t, !1, this._panelID) : PanelOpenManager.openZoneFinishPanel(this.zoneid, this._items,
				t, !1))
	}, e.prototype.onKun = function(t) {
		var e = App.global.mapModule.mapAvatarModel.getMonster(t);
		e && 6 == e.dieType && (this._kunEat = !0)
	}, e.prototype.onRound = function(t) {
		if (this._items = [], t)
			for (var e = t.length, i = void 0, n = 0; e > n; n++) i = new ItemData, i.itemId = t[n].itemModelId, i.count = t[n]
				.num, this._items.push(i)
	}, e.prototype.onRound2 = function(t) {
		if (this._items = [], t)
			for (var e = t.length, i = void 0, n = 0; e > n; n++) i = new ItemData, i.itemId = t[n].itemModelId, i.count = t[n]
				.itemNum, this._items.push(i)
	}, e
}(BaseZone);
__reflect(ZonePersonalBossTrack.prototype, "ZonePersonalBossTrack");
var ZoneStoryTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.NextStoryGrop = function() {
			e.showSkipStory()
		}, e.showSkipStory = function() {
			if (e.skipImg) {
				if (!e.storyManager) return;
				e.storyManager.triggerByType(2, !0, 100002)
			} else e.storyManager.triggerByType(2, !1, 100002);
			var t = App.layer.storyLayer,
				i = new eui.Image;
			i.source = "common1_story_background_png", i.width = Config.SCREEN_WIDTH, i.height = 200, i.y = Config.SCREEN_HEIGHT -
				i.height, t.addChild(i), e.skipImg = new eui.Image, e.skipImg.source = "common1_skipStory_png", e.skipImg.x =
				Config.SCREEN_WIDTH - 160, e.skipImg.y = Config.SCREEN_HEIGHT - 60, t.addChild(e.skipImg), e.skipImg.addEventListener(
					egret.TouchEvent.TOUCH_TAP, e.OnSkipStory, e)
		}, e
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.enter = function() {
		t.prototype.enter.call(this), this.data.id == EnumZoneID.Thunther_Temple && (ChangeSceneAnimationHandler.StopMoving = !
			1, App.layer.mainLayer.visible = !1, App.layer.moduleLayer.visible = !1, this.storyManager = new StoryTriggerManager,
			this.storyManager.init(), App.dispatcher.addEventListener(EnumEvent.EVENT_STORY_TRANSITION, this.NextStoryGrop,
				this), this.storyManager.triggerByType(2, !0, 100001), this.showSkipStory(), App.global.roles.getRoleInfoByIndex(
				1).hideSurfaceType = [])
	}, e.prototype.OnSkipStory = function() {
		if (App.global.characterData.isJumping) Notice.showBottomMessage("跳跃中无法跳过剧情", 16711680);
		else {
			this.skipImg.visible = !1, this.skipImg.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.OnSkipStory, this),
				App.global.characterData.actionList.isRuning = !1, App.global.mapModule.mapMouseModel.controlRoleData.actionList.isRuning = !
				1, ZoneCommandSender.sendC2S_ZoneFinishMessage();
			var t = this;
			t.storyManager.getLogic(3).stopStory(), t.storyManager.getLogic(1).breakStory(), t.exit()
		}
	}, e.prototype.exit = function() {
		t.prototype.exit.call(this), this.skipImg && this.skipImg.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.OnSkipStory,
			this);
		var e = App.layer.storyLayer,
			i = [];
		e.$children.map(function(t) {
			i.push(t)
		}), i.map(function(t) {
			e.removeChild(t)
		}), this.storyManager = null
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.storyManager = null
	}, e
}(BaseZone);
__reflect(ZoneStoryTrack.prototype, "ZoneStoryTrack");
var ZoneTxdyTrack = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._peopleNum = 0, e._isBegin = !1, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("ZoneTxdiSkin"), this.addChild(this._view)
	}, e.prototype.exit = function() {
		App.timer.clearTimer(this.onTimer, this), t.prototype.exit.call(this)
	}, e.prototype.enter = function() {
		t.prototype.enter.call(this), App.panel.removePanel(36), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL,
			this.refresh, this);
		var e = 0 == App.data.crossCenter().isOpenCross ? wfid.txdy0 : wfid.txdy1;
		ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([e]), this.refresh(1)
	}, e.prototype.refresh = function(t) {
		if (1 == t) {
			var e = (App.data.zoneCenter.getMyZoneData(), 0 == App.data.crossCenter().isOpenCross ? wfid.txdy0 : wfid.txdy1),
				i = App.data.activityCenter.getData(e);
			if (i && i.extendMap) {
				var n = 0,
					a = StringUtil.JsonParse(i.extendMap);
				a.redaytime > 0 ? (n = a.redaytime, this._view.txt_label.text = "准备剩余时间：") : (n = a.pktime, this._view.txt_label.text =
					"活动剩余时间："), this._peopleNum = a.num, this._view.peopleNum_txt.text = "" + this._peopleNum, n > 0 ? (this._view.txt_time
					.text = StringUtil.converTime2(n), App.timer.serverTimeEndCount(this, this.onTimer, n)) : (App.timer.clearTimer(
					this.onTimer, this), this._view.txt_time.text = "00分00秒"), this.beginTime(n)
			}
		}
	}, e.prototype.onTimer = function(t) {
		if (t.spuleTime <= 0) {
			App.timer.clearTimer(this.onTimer, this), this._view.txt_time.text = "00分00秒";
			var e = 0 == App.data.crossCenter().isOpenCross ? wfid.txdy0 : wfid.txdy1;
			return void ActivityCommandSender.sendC2S_ActivityDetailInfosMessage([e])
		}
		this.beginTime(t.spuleTime), this._view.txt_time.text = StringUtil.converTime2(t.spuleTime)
	}, e.prototype.beginTime = function(t) {
		"准备剩余时间：" == this._view.txt_label.text && t >= 1 && 3 >= t && 0 == this._isBegin && (this._isBegin = !0, this.addNum(
			null, null, t))
	}, e.prototype.addNum = function(t, e, i) {
		i > 0 ? (null == t ? t = NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, i + "", 0, 0,
				EnumNumberSheetType.NUM_FIGHT) : t.show(i + "", 0, 0, BitmapNumberType.SKILL_HEJI_COMBO), null == e ? e =
			NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, i + "", 0, 0, EnumNumberSheetType.NUM_FIGHT) : e.show(i +
				"", 0, 0, BitmapNumberType.SKILL_HEJI_COMBO), e.x = t.x = Config.SCREEN_WIDTH - t.width >> 1, e.y = t.y = Config
			.SCREEN_HEIGHT - t.height >> 1, this.addChild(t), this.addChild(e), e.alpha = t.alpha = 1, e.scaleY = t.scaleY =
			1.5, e.scaleX = t.scaleX = 1.5, TweenLite.to(t, .88, {
				scaleX: 1,
				scaleY: 1,
				alpha: .2,
				onComplete: this.addNum,
				onCompleteParams: [t, e, i - 1],
				onCompleteScope: this
			}), TweenLite.to(e, .44, {
				scaleX: 1,
				scaleY: 1
			})) : (t && (TweenLite.killTweensOf(t), t.dispose(), t = null), e && (TweenLite.killTweensOf(e), e.dispose(), e =
			null), this.addEffect())
	}, e.prototype.addEffect = function() {
		var t = App.thing.create(CPlayOnceEffect, "ZoneWangZheTrack", !0);
		t.url = ResPathUtil.getMenuEffect("zone", "startFight"), t.x = Config.SCREEN_WIDTH - t.view.width >> 1, t.y =
			Config.SCREEN_HEIGHT - t.view.height >> 1, t.addParent(this), t.play()
	}, e
}(BaseZone);
__reflect(ZoneTxdyTrack.prototype, "ZoneTxdyTrack");
var ZoneWangZheTrack = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {}, e.prototype.enter = function() {
		if (t.prototype.enter.call(this), this.zoneid == App.data.getWangZheZBCenter().areanzoneId || App.data.zoneCenter.zoneID ==
			App.data.guildCenter.fightHzId) {
			for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				a && (a.visible = !1)
			}
			App.panel.removePanel(58), this.addNum(null, null, 3)
		}
	}, e.prototype.addNum = function(t, e, i) {
		i > 0 ? (null == t ? t = NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, i + "", 0, 0,
				EnumNumberSheetType.NUM_FIGHT) : t.show(i + "", 0, 0, BitmapNumberType.SKILL_HEJI_COMBO), null == e ? e =
			NumberBitmapCache.show(BitmapNumberType.SKILL_HEJI_COMBO, i + "", 0, 0, EnumNumberSheetType.NUM_FIGHT) : e.show(i +
				"", 0, 0, BitmapNumberType.SKILL_HEJI_COMBO), e.x = t.x = Config.SCREEN_WIDTH - t.width >> 1, e.y = t.y = Config
			.SCREEN_HEIGHT - t.height >> 1, this.addChild(t), this.addChild(e), e.alpha = t.alpha = 1, e.scaleY = t.scaleY =
			1.5, e.scaleX = t.scaleX = 1.5, TweenLite.to(t, .88, {
				scaleX: 1,
				scaleY: 1,
				alpha: .2,
				onComplete: this.addNum,
				onCompleteParams: [t, e, i - 1],
				onCompleteScope: this
			}), TweenLite.to(e, .44, {
				scaleX: 1,
				scaleY: 1
			})) : (t && (TweenLite.killTweensOf(t), t.dispose(), t = null), e && (TweenLite.killTweensOf(e), e.dispose(), e =
			null), this.addEffect())
	}, e.prototype.addEffect = function() {
		var t = App.thing.create(CPlayOnceEffect, "ZoneWangZheTrack", !0);
		t.url = ResPathUtil.getMenuEffect("zone", "startFight"), t.x = Config.SCREEN_WIDTH >> 1, t.y = Config.SCREEN_HEIGHT >>
			1, t.addParent(this), t.play()
	}, e.prototype.exit = function() {
		if (t.prototype.exit.call(this), App.panel.openPanel(36, null), App.panel.openPanel(wfid.wangzhe, null), this.zoneid ==
			App.data.getWangZheZBCenter().areanzoneId || App.data.zoneCenter.zoneID == App.data.guildCenter.fightHzId)
			for (var e = App.global.roles.roleList, i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				a && (a.visible = !0)
			}
	}, e
}(BaseZone);
__reflect(ZoneWangZheTrack.prototype, "ZoneWangZheTrack");
var MaterialView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "MaterialViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(620, 680, MaterialItemRender, 5), this._vscroller.move(20, 87, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this),
			ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.EXP), Guide.getGuide().hide()
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll()
	}, e.prototype.onUpdate = function(t) {
		t == EnumZoneType.EXP && (this._vscroller.dataProvider = App.data.zoneCenter.materialCenter.getList())
	}, e.prototype.dispose = function() {
		this._vscroller && (this._vscroller.dispose(), this._vscroller = null), t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MaterialView.prototype, "MaterialView");
var PagodaDailyRewardView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PagodaDailyViewSkin", e._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL, 5,
			35, 38), e._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM,
			GridLayout.TEXT_COUNT
		]), e._gridLayer.moveTo(70, 90, e), e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.btn);
		var i = App.data.zoneCenter.pagodaCenter.getFloor(App.data.zoneCenter.pagodaCenter.floorID),
			n = 0 == App.data.zoneCenter.pagodaCenter.dailyFlag;
		FilterUtil.gray(this.btn, !(n && i > 1)), this.btn.label = n ? "领 取" : "已领取";
		var a = e.data;
		null != a && (App.data.zoneCenter.pagodaCenter.getFloor(App.data.zoneCenter.pagodaCenter.floorID) > 1 && (a =
				GameUtil.getZoneBean(a.q_id - 1)), this._gridLayer.dataProvider = ItemUtil.getRewardDataList(a.q_daily_reward),
			this._gridLayer.moveTo(378 - this._gridLayer.width >> 1, 80))
	}, e.prototype.onTouch = function(t) {
		0 == App.data.zoneCenter.pagodaCenter.dailyFlag && (App.data.zoneCenter.pagodaCenter.getFloor(App.data.zoneCenter.pagodaCenter
				.floorID) > 1 ? (App.data.zoneCenter.pagodaCenter.dailyFlag++, FilterUtil.gray(this.btn, !0), this.btn.label =
				"已领取", ZoneCommandSender.sendC2S_TongtianDailyMessage(), App.timer.doTimeOnce(this, 500, this.onTimer)) : Notice
			.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">请先通关镇妖塔第一层</font>"))
	}, e.prototype.onTimer = function() {
		ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.PAGODA)
	}, e.prototype.dispose = function() {
		this._gridLayer.dispose(), this._gridLayer = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(PagodaDailyRewardView.prototype, "PagodaDailyRewardView");
var PagodaRankView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PagodaRankSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._vscroller = new VScrollPanel(510, 457, PagodaRankRander, 10), this._vscroller.move(20, 90, this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.onUpdate(), null == this._bg || (this._bg.url = ResPathUtil.getImgPath(
			"paihangdi", "zone"))
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._vscroller.removeAll(), this._bg && this._bg.clear()
	}, e.prototype.onUpdate = function() {
		this._vscroller.dataProvider = App.data.zoneCenter.pagodaCenter.getRankList();
		var t = App.data.zoneCenter.pagodaCenter.myRank;
		this.myrank_txt.text = t > -1 ? t + 1 + "名" : "未上榜", this.floor_txt.text = App.data.zoneCenter.pagodaCenter.getFloor(
			App.data.zoneCenter.pagodaCenter.floorID - 1) + "层"
	}, e.prototype.dispose = function() {
		this._bg.dispose(), this._bg = null, this._vscroller.dispose(), this._vscroller = null, t.prototype.dispose.call(
			this)
	}, e
}(ViewBase);
__reflect(PagodaRankView.prototype, "PagodaRankView");
var PagodaView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "PagodaViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._nameArr = [this.name_txt1, this.name_txt2, this.name_txt3, this.name_txt4, this.name_txt5], this._floorArr = [
				this.floor_txt1, this.floor_txt2, this.floor_txt3, this.floor_txt4, this.floor_txt5
			], this._numArr = [this.num_txt1, this.num_txt2, this.num_txt3, this.num_txt4, this.num_txt5], this._itemGrid =
			new ItemGrid, this._itemGrid.move(118, 456, this), this._gridLayer = new GridContainer(EnumGridStyle.GRID_STYLE_NORMAL,
				3, 8, 8), this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON, GridLayout.JOB, GridLayout.TEXT_BOTTOM,
				GridLayout.TEXT_COUNT
			]), this._gridLayer.moveTo(35, 642, this), this.btn_rank.touchEnabled = !0, this.btn_rank.textFlow = HtmlUtil.getHtmlStr(
				HtmlUtil.formatUnderline("查看排行"))
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(EventType.RANK_LIST_REFRESH, this.rankUpdate,
				this), this._dispatcher.addEventListener(ZoneEvent.ZONE_LIST_UPDATE, this.onUpdate, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onTouch, this, this.click_txt), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenRank,
				this, this.btn_rank), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenDaily, this, this.dailybox),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenDaily, this, this.get_txt),
			ZoneCommandSender.sendC2S_ZoneInfoListMessage(EnumZoneType.PAGODA), RankListCommandSender.getRankListInfo(0,
				EnumRankType.TIANGUAN_RANK, 1, 0), null == this._bg && (this._bg = UIMaker.getCImage(null, this, null, 0, 56),
				this._bg.height = 715, this.addChildAt(this._bg, 0)), this._bg.url = ResPathUtil.getImgPath("tontiantabj", "zone",
				".jpg")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg && this._bg.clear(), App.tip.removeTip(this.btn_rank), App.data.zoneCenter.pagodaCenter
			.rankInfo = null, UIMaker.showPoint(this.groupDaily, this, !1, 0, 10), this._effect && (this._effect.dispose(),
				this._effect = null)
	}, e.prototype.onOpenDaily = function(t) {
		PanelOpenManager.openPanel(61, {
			data: this._data.bean
		}), t.stopImmediatePropagation()
	}, e.prototype.onOpenRank = function(t) {
		PanelOpenManager.openPanel(38), t.stopImmediatePropagation()
	}, e.prototype.onTouch = function(t) {
		ZoneCommandSender.sendC2S_ZoneIntoMessage(App.data.zoneCenter.pagodaCenter.floorID, EnumZoneType.PAGODA) && App.panel
			.removePanel(14)
	}, e.prototype.onUpdate = function(t) {
		if (t == EnumZoneType.PAGODA) {
			for (var e = App.data.zoneCenter.pagodaCenter, i = e.getPagodaCurrentList(), n = 0; n < i.length; n++) this._numArr[
				n].text = e.getFloor(i[n].q_id) + "层";
			var a = e.floorID % 5;
			0 == a && (a = 5), this.showEffect(a);
			var o = i[a - 1];
			this.reward_txt1.text = "通关第" + e.getFloor(o.q_id) + "层奖励", this._gridLayer.dataProvider = ItemUtil.getRewardDataList(
				o.q_show_item);
			var r = e.getOnlyBean();
			this.reward_txt2.text = "通关第" + e.getFloor(r.q_id) + "层奖励", this._itemGrid.setData(ItemUtil.getRewardDataList(r.q_only_reward)[
				0]), this._data = App.data.zoneCenter.getData(o.q_id), this._data && this._data.zonedata2 && (App.data.zoneCenter
				.pagodaCenter.dailyFlag = StringUtil.JsonParse(this._data.zonedata2).hasDailyReward), UIMaker.showPoint(this.groupDaily,
				this, App.data.zoneCenter.pagodaCenter.getShowPoint(), 0, 10)
		}
	}, e.prototype.showEffect = function(t) {
		switch (t) {
			case 1:
				this.setCurrentLight(297, 570);
				break;
			case 2:
				this.setCurrentLight(297, 450);
				break;
			case 3:
				this.setCurrentLight(297, 325);
				break;
			case 4:
				this.setCurrentLight(296, 210);
				break;
			case 5:
				this.setCurrentLight(297, 92)
		}
	}, e.prototype.setCurrentLight = function(t, e) {
		this.light.x = t, this.light.y = e
	}, e.prototype.rankUpdate = function(t) {
		App.data.zoneCenter.pagodaCenter.rankInfo = t, App.data.zoneCenter.pagodaCenter.myRank = t.myRank;
		for (var e = App.data.zoneCenter.pagodaCenter.getRankList(5), i = e.length, n = 0; 5 > n; n++) i > n ? (this._nameArr[
			n].text = e[n].rankname, this._floorArr[n].text = e[n].rankdata) : (this._nameArr[n].text = "", this._floorArr[n]
			.text = "")
	}, e.prototype.dispose = function() {
		this._effect && (this._effect.dispose(), this._effect = null), this._bg && (this._bg.dispose(), this._bg = null),
			this._itemGrid && (this._itemGrid.dispose(), this._itemGrid = null), this._gridLayer && (this._gridLayer.dispose(),
				this._gridLayer = null), this._nameArr = null, this._floorArr = null, this._numArr = null, t.prototype.dispose.call(
				this)
	}, e
}(ViewBase);
__reflect(PagodaView.prototype, "PagodaView");
var ZoneExpFinishView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._flag = !1, e.euiSkinName = "ZoneExpFinishSkin", e
	}
	return __extends(e, t), e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
				this.btn_1), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn_2), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this, this.btn_3), e && (this._id = e.zoneid, this._bean =
				GameUtil.getZoneBean(this._id)), this.updateState(), this._flag = !1, null == this._bg ? (this._bg = UIMaker.getCImage(
				null, this, ResPathUtil.getImgPath("lingqu_4", "zone"), 13, 53), this.addChildAt(this._bg, 4)) : this._bg.url =
			ResPathUtil.getImgPath("lingqu_4", "zone"), null == this._bg2 ? (this._bg2 = UIMaker.getCImage(null, this,
				ResPathUtil.getImgPath("lingqu_5", "zone"), 13, 182), this.addChildAt(this._bg2, 5)) : this._bg2.url =
			ResPathUtil.getImgPath("lingqu_5", "zone"), null == this._bg3 ? (this._bg3 = UIMaker.getCImage(null, this,
				ResPathUtil.getImgPath("lingqu_6", "zone"), 13, 313), this.addChildAt(this._bg3, 6)) : this._bg3.url =
			ResPathUtil.getImgPath("lingqu_6", "zone")
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this), this._bg.clear(), this._bg2.clear(), this._bg3.clear()
	}, e.prototype.updateState = function() {
		if (null != this._bean) {
			var t = StringUtil.JsonParse(this._bean.q_reward);
			this._multiple = StringUtil.JsonParse(this._bean.q_multiple);
			var e = t[0].num;
			this.exp_txt1.text = "经验：" + e, this.exp_txt2.text = "经验：" + e * this._multiple[0], this.exp_txt3.text = "经验：" + e *
				this._multiple[1], this.cost_txt2.text = GameUtil.getZoneMultipleRewardCost(this._id, this._multiple[0])[0].count +
				"", this.cost_txt3.text = GameUtil.getZoneMultipleRewardCost(this._id, this._multiple[1])[0].count + ""
		}
	}, e.prototype.onTouch = function(t) {
		void 0 === t && (t = null);
		var e = 1,
			i = 0;
		if (t) switch (t.currentTarget) {
			case this.btn_2:
				e = this._multiple[0], i = Number(this.cost_txt2.text);
				break;
			case this.btn_3:
				e = this._multiple[1], i = Number(this.cost_txt3.text)
		}
		var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
		n >= i ? 0 == this._flag && (this._flag = !0, ZoneCommandSender.sendC2S_ZoneGetAwardMessage(this._id, 0, e), App.panel
			.removePanel(59)) : (PanelOpenManager.openChargePanel(i), Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">元宝不足，领取失败</font>"))
	}, e.prototype.dispose = function() {
		this._bean = null, this._bg && this._bg.dispose(), this._bg = null, this._bg2 && this._bg2.dispose(), this._bg2 =
			null, this._bg3 && this._bg3.dispose(), this._bg3 = null, t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(ZoneExpFinishView.prototype, "ZoneExpFinishView");
var ZoneRewardGetView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ZoneRewardGetSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._bgCimg0 = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("zoneReward_bg", "zone_reward")), this.addChildAt(
			this._bgCimg0, 0), this._bgCimg1 = UIMaker.getCImage(this, e, ResPathUtil.getImgPath("zoneReward_bg",
			"zone_reward"), 460), this.addChildAt(this._bgCimg1, 1), this._bgCimg1.scaleX = -1, this._titleCimg = UIMaker.getCImage(
			this, e, ResPathUtil.getImgPath("zoneReward_title", "zone_reward"), 152, 57), this._desCimg = UIMaker.getCImage(
			this, e, ResPathUtil.getImgPath("zoneReward_des", "zone_reward"), 36, 144), this._gridLayer = new GridContainer(
			EnumGridStyle.GRID_STYLE_NORMAL, 3, 30, 30), this._gridLayer.initLayers([GridLayout.BG, GridLayout.ICON,
			GridLayout.JOB, GridLayout.TEXT_COUNT
		]), this._gridLayer.moveTo(86, 260, this)
	}, e.prototype.dispose = function() {
		this._gridLayer.dispose(), this._gridLayer = null, this._bgCimg0.dispose(), this._bgCimg0 = null, this._bgCimg1.dispose(),
			this._bgCimg1 = null, this._titleCimg.dispose(), this._titleCimg = null, this._desCimg.dispose(), this._desCimg =
			null, this.parent && this.parent.removeChild(this), t.prototype.dispose.call(this)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onGetClick, this,
			this.get_btn), this.refresh(e)
	}, e.prototype.onGetClick = function(t) {
		App.panel.openPanel(2)
	}, e.prototype.refresh = function(t) {
		if (t) {
			var e, i, n = [],
				a = t.length;
			a > 3 && (a = 3);
			for (var o = 0; a > o; o++) egret.is(t[o], "ItemData") ? e = t[o] : (e = new ItemData, e.itemId = t[o].itemModelId,
					e.count = t[o].itemNum), i = this["name_txt" + o], i.textColor = GameUtil.getItemNameColor(e.itemId), i.text =
				GameUtil.getItemConfigData(e.itemId).q_name, n.push(e);
			this._gridLayer.dataProvider = n
		}
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 460
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 627
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(ZoneRewardGetView.prototype, "ZoneRewardGetView");
var HejiSkillTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("HejiSkillSkin"), this.addChild(this._view), this._iconImg = UIMaker.getCImage(
			this, RoleHejiView, "", 97, 303, !1)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT -
			660 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		var e, i = App.data.characterCenter.hejiEquipCenter.getTzSkillId();
		GameUtil.getSkillConfigDataById(i);
		if (App.config.q_equip_masterContainer.hasDataBean(App.data.characterCenter.hejiEquipCenter.currTzId)) {
			e = App.config.q_equip_masterContainer.getDataBean(App.data.characterCenter.hejiEquipCenter.currTzId), this._view.skilldes_txt
				.text = e.q_suit_name;
			for (var n = e.q_equip_icon_female.split(","), a = "", o = 0; o < n.length; o++) a = a + n[o] + "\n";
			this._view.skilldes2_txt.textFlow = HtmlUtil.getHtmlStr(a)
		}
		var r = App.data.characterCenter.hejiEquipCenter.hejiArr,
			s = r.length,
			h = 0;
		if (8 >= s && (this._view.hejiname0.text = "凡品·乾", this._view.hejiname1.text = "凡品·坤", this._view.hejiname7.text =
				"凡品·震", this._view.hejiname8.text = "凡品·巽", this._view.hejiname3.text = "凡品·坎", this._view.hejiname5.text =
				"凡品·离", this._view.hejiname13.text = "凡品·艮", this._view.hejiname12.text = "凡品·兑"), r && s > 0)
			for (var o = 0; s > o; o++) App.data.characterCenter.hejiEquipCenter.maxLevel == r[o].lv ? (h++, this._view.lalName2
				.text = GameUtil.getEquipConfigData(r[o].id).q_name.split("·")[0] + "聚灵(" + h + "/8)", this._view["hejiname" + r[
					o].pos].textFlow = HtmlUtil.getHtmlStr("<font color='0xb19c79'>" + GameUtil.getEquipConfigData(r[o].id).q_name +
					"</font>")) : this._view["hejiname" + r[o].pos].textFlow = HtmlUtil.getHtmlStr("<font color='0x4d4d4d'>" +
				GameUtil.getEquipConfigData(r[o].id).q_name + "</font>")
	}, e
}(TipStyleBase);
__reflect(HejiSkillTip.prototype, "HejiSkillTip");
var BaseAttributeDataBean = function() {
	function t() {
		this.contentColor = 260122, this.noContentColor = 16711680, this.acMax = 0, this.acMin = 0, this.attackSpeed = 0,
			this.comfortable = 0, this.crit = 0, this.critharmAdd = 0, this.critharmDel = 0, this.critAddDamage = 0, this.critDelDamage =
			0, this.tenacity = 0, this.dcMax = 0, this.dcMin = 0, this.expmultiple = 0, this.hit = 0, this.juck = 0, this.luck =
			0, this.macMax = 0, this.macMin = 0, this.maxHp = 0, this.maxMp = 0, this.mcMax = 0, this.mcMin = 0, this.scMax = 0,
			this.scMin = 0, this.speed = 0, this.holyAtk = 0, this.holydef = 0, this.harmAdd = 0, this.harmDel = 0, this.damageAdd =
			0, this.damageDel = 0, this.dcMinPercent = 0, this.dcMaxPercent = 0, this.mcMinPercent = 0, this.mcMaxPercent = 0,
			this.scMinPercent = 0, this.scMaxPercent = 0, this.acMinPercent = 0, this.acMaxPercent = 0, this.macMinPercent = 0,
			this.macMaxPercent = 0, this.speedPercent = 0, this.hitPercent = 0, this.comfortablePercent = 0, this.critPercent =
			0, this.critharmAddPercent = 0, this.critharmDelPercent = 0, this.tenacityPercent = 0, this.juckPercent = 0, this.maxHpPercent =
			0, this.maxMpPercent = 0, this.attackSpeedPercent = 0, this.luckPercent = 0, this.harmAddPercent = 0, this.harmDelPercent =
			0, this.damageAddPercent = 0, this.damageDelPercent = 0
	}
	return t.prototype.convert = function(e) {
			var i = this.formatToJson(e),
				n = StringUtil.JsonParse(i);
			this._keysObj = {};
			for (var a in n) this._keysObj[a] = n[a];
			for (var o in n) o == t.ACMAX ? this.acMax = Number(n[o]) : o == t.ACMIN ? this.acMin = Number(n[o]) : o == t.ATTACKSPEED ?
				this.attackSpeed = Number(n[o]) : o == t.COMFORTABLE ? this.comfortable = Number(n[o]) : o == t.CRIT ? this.crit =
				Number(n[o]) : o == t.CRITHARMADD ? this.critharmAdd = Number(n[o]) : o == t.CRITHARMDEL ? this.critharmDel =
				Number(n[o]) : o == t.TENACITY ? this.tenacity = Number(n[o]) : o == t.DCMAX ? this.dcMax = Number(n[o]) : o == t.DCMIN ?
				this.dcMin = Number(n[o]) : o == t.EXPPERCENT ? this.expmultiple = Number(n[o]) : o == t.HIT ? this.hit = Number(n[
					o]) : o == t.JUCK ? this.juck = Number(n[o]) : o == t.LUCK ? this.luck = Number(n[o]) : o == t.MACMAX ? this.macMax =
				Number(n[o]) : o == t.MACMIN ? this.macMin = Number(n[o]) : o == t.MAXHP || o == t.MAXHP1 ? this.maxHp = Number(n[
					o]) : o == t.MAXMP ? this.maxMp = Number(n[o]) : o == t.MCMAX ? this.mcMax = Number(n[o]) : o == t.MCMIN ? this.mcMin =
				Number(n[o]) : o == t.SCMAX ? this.scMax = Number(n[o]) : o == t.SCMIN ? this.scMin = Number(n[o]) : o == t.SPEED ?
				this.speed = Number(n[o]) : o == t.HOLYATTACK ? this.holyAtk = Number(n[o]) : o == t.HARMADD ? this.harmAdd =
				Number(n[o]) : o == t.HARMDEL ? this.harmDel = Number(n[o]) : o == t.DAMAGEADD ? this.damageAdd = Number(n[o]) : o ==
				t.DAMAGEDEL ? this.damageDel = Number(n[o]) : o == t.DCMINPERCENT ? this.dcMinPercent = Number(n[o]) : o == t.DCMAXPERCENT ?
				this.dcMaxPercent = Number(n[o]) : o == t.MCMINPERCENT ? this.mcMinPercent = Number(n[o]) : o == t.MCMAXPERCENT ?
				this.mcMaxPercent = Number(n[o]) : o == t.SCMINPERCENT ? this.scMinPercent = Number(n[o]) : o == t.SCMAXPERCENT ?
				this.scMaxPercent = Number(n[o]) : o == t.ACMINPERCENT ? this.acMinPercent = Number(n[o]) : o == t.ACMAXPERCENT ?
				this.acMaxPercent = Number(n[o]) : o == t.MACMINPERCENT ? this.macMinPercent = Number(n[o]) : o == t.MACMAXPERCENT ?
				this.macMaxPercent = Number(n[o]) : o == t.SPEEDPERCENT ? this.speedPercent = Number(n[o]) : o == t.HITPERCENT ?
				this.hitPercent = Number(n[o]) : o == t.COMFORTABLEPERCENT ? this.comfortablePercent = Number(n[o]) : o == t.CRITPERCENT ?
				this.critPercent = Number(n[o]) : o == t.CRITHARMADDPERCENT ? this.critharmAddPercent = Number(n[o]) : o == t.CRITHARMDELPERCENT ?
				this.critharmDelPercent = Number(n[o]) : o == t.TENACITYPERCENT ? this.tenacityPercent = Number(n[o]) : o == t.JUCKPERCENT ?
				this.juckPercent = Number(n[o]) : o == t.MAXHPPERCENT ? this.maxHpPercent = Number(n[o]) : o == t.MAXMPPERCENT ?
				this.maxMpPercent = Number(n[o]) : o == t.ATTACKSPEED ? this.attackSpeedPercent = Number(n[o]) : o == t.LUCKPERCENT ?
				this.luckPercent = Number(n[o]) : o == t.HARMADDPERCENT ? this.harmAddPercent = Number(n[o]) : o == t.HARMDELPERCENT ?
				this.harmDelPercent = Number(n[o]) : o == t.DAMAGEADDPERCENT ? this.damageAddPercent = Number(n[o]) : o == t.DAMAGEDELPERCENT ?
				this.damageDelPercent = Number(n[o]) : o == t.CRITADDDAMAGE ? this.critAddDamage = Number(n[o]) : o == t.CRITDELDAMAGE ?
				this.critDelDamage = Number(n[o]) : o == t.HOLYDEF && (this.holydef = Number(n[o]));
			return this
		}, t.prototype.formatToJson = function(t) {
			t = "{" + t.substring(1, t.length - 1) + "}";
			var e = /([{,，])\s*([0-9a-zA-Z一-龟]+)\s*:/g,
				i = t.replace(e, '$1"$2":');
			return i
		}, t.prototype.convertAndAdd = function(e, i, n) {
			void 0 === i && (i = 1), void 0 === n && (n = !1), (null == this.hasChangedList || this.hasChangedList && n) && (
				this.hasChangedList = []);
			var a = this.formatToJson(e),
				o = StringUtil.JsonParse(a);
			for (var r in o) this.hasChangedList.push(r), r == t.ACMAX ? (n && (this.acMax = 0), this.acMax += parseInt(o[r]) *
					i) : r == t.ACMIN ? (n && (this.acMin = 0), this.acMin += parseInt(o[r]) * i) : r == t.ATTACKSPEED ? (n && (this.attackSpeed =
					0), this.attackSpeed += parseInt(o[r]) * i) : r == t.COMFORTABLE ? (n && (this.comfortable = 0), this.comfortable +=
					parseInt(o[r]) * i) : r == t.CRIT ? (n && (this.crit = 0), this.crit += parseInt(o[r]) * i) : r == t.CRITHARMADD ?
				(n && (this.critharmAdd = 0), this.critharmAdd += parseInt(o[r]) * i) : r == t.CRITHARMDEL ? (n && (this.critharmDel =
					0), this.critharmDel += parseInt(o[r]) * i) : r == t.TENACITY ? (n && (this.tenacity = 0), this.tenacity +=
					parseInt(o[r]) * i) : r == t.DCMAX ? (n && (this.dcMax = 0), this.dcMax += parseInt(o[r]) * i) : r == t.DCMIN ? (
					n && (this.dcMin = 0), this.dcMin += parseInt(o[r]) * i) : r == t.EXPPERCENT ? (n && (this.expmultiple = 0), this
					.expmultiple += parseInt(o[r]) * i) : r == t.HIT ? (n && (this.hit = 0), this.hit += parseInt(o[r]) * i) : r == t
				.JUCK ? (n && (this.juck = 0), this.juck += parseInt(o[r]) * i) : r == t.LUCK ? (n && (this.luck = 0), this.luck +=
					parseInt(o[r]) * i) : r == t.MACMAX ? (n && (this.macMax = 0), this.macMax += parseInt(o[r]) * i) : r == t.MACMIN ?
				(n && (this.macMin = 0), this.macMin += parseInt(o[r]) * i) : r == t.MAXHP ? (n && (this.maxHp = 0), this.maxHp +=
					parseInt(o[r]) * i) : r == t.MAXMP ? (n && (this.maxMp = 0), this.maxMp += parseInt(o[r]) * i) : r == t.MCMAX ? (
					n && (this.mcMax = 0), this.mcMax += parseInt(o[r]) * i) : r == t.MCMIN ? (n && (this.mcMin = 0), this.mcMin +=
					parseInt(o[r]) * i) : r == t.SCMAX ? (n && (this.scMax = 0), this.scMax += parseInt(o[r]) * i) : r == t.SCMIN ? (
					n && (this.scMin = 0), this.scMin += parseInt(o[r]) * i) : r == t.SPEED ? (n && (this.speed = 0), this.speed +=
					parseInt(o[r]) * i) : r == t.HOLYATTACK ? (n && (this.holyAtk = 0), this.holyAtk += parseInt(o[r]) * i) : r == t.HARMADD ?
				(n && (this.harmAdd = 0), this.harmAdd += parseInt(o[r]) * i) : r == t.HARMDEL ? (n && (this.harmDel = 0), this.harmDel +=
					parseInt(o[r]) * i) : r == t.DAMAGEADD ? (n && (this.damageAdd = 0), this.damageAdd += parseInt(o[r]) * i) : r ==
				t.DAMAGEDEL ? (n && (this.damageDel = 0), this.damageDel += parseInt(o[r]) * i) : r == t.DCMINPERCENT ? (n && (
					this.dcMinPercent = 0), this.dcMinPercent += parseInt(o[r]) * i) : r == t.DCMAXPERCENT ? (n && (this.dcMaxPercent =
					0), this.dcMaxPercent += parseInt(o[r]) * i) : r == t.MCMINPERCENT ? (n && (this.mcMinPercent = 0), this.mcMinPercent +=
					parseInt(o[r]) * i) : r == t.MCMAXPERCENT ? (n && (this.mcMaxPercent = 0), this.mcMaxPercent += parseInt(o[r]) *
					i) : r == t.SCMINPERCENT ? (n && (this.scMinPercent = 0), this.scMinPercent += parseInt(o[r]) * i) : r == t.SCMAXPERCENT ?
				(n && (this.scMaxPercent = 0), this.scMaxPercent += parseInt(o[r]) * i) : r == t.ACMINPERCENT ? (n && (this.acMinPercent =
					0), this.acMinPercent += parseInt(o[r]) * i) : r == t.ACMAXPERCENT ? (n && (this.acMaxPercent = 0), this.acMaxPercent +=
					parseInt(o[r]) * i) : r == t.MACMINPERCENT ? (n && (this.macMinPercent = 0), this.macMinPercent += parseInt(o[r]) *
					i) : r == t.MACMAXPERCENT ? (n && (this.macMaxPercent = 0), this.macMaxPercent += parseInt(o[r]) * i) : r == t.SPEEDPERCENT ?
				(n && (this.speedPercent = 0), this.speedPercent += parseInt(o[r]) * i) : r == t.HITPERCENT ? (n && (this.hitPercent =
					0), this.hitPercent += parseInt(o[r]) * i) : r == t.COMFORTABLEPERCENT ? (n && (this.comfortablePercent = 0),
					this.comfortablePercent += parseInt(o[r]) * i) : r == t.CRITPERCENT ? (n && (this.critPercent = 0), this.critPercent +=
					parseInt(o[r]) * i) : r == t.CRITHARMADDPERCENT ? (n && (this.critharmAddPercent = 0), this.critharmAddPercent +=
					parseInt(o[r]) * i) : r == t.CRITHARMDELPERCENT ? (n && (this.critharmDelPercent = 0), this.critharmDelPercent +=
					parseInt(o[r]) * i) : r == t.TENACITYPERCENT ? (n && (this.tenacityPercent = 0), this.tenacityPercent += parseInt(
					o[r]) * i) : r == t.JUCKPERCENT ? (n && (this.juckPercent = 0), this.juckPercent += parseInt(o[r]) * i) : r == t.MAXHPPERCENT ?
				(n && (this.maxHpPercent = 0), this.maxHpPercent += parseInt(o[r]) * i) : r == t.MAXMPPERCENT ? (n && (this.maxMpPercent =
					0), this.maxMpPercent += parseInt(o[r]) * i) : r == t.ATTACKSPEED ? (n && (this.attackSpeedPercent = 0), this.attackSpeedPercent +=
					parseInt(o[r]) * i) : r == t.LUCKPERCENT ? (n && (this.luckPercent = 0), this.luckPercent += parseInt(o[r]) * i) :
				r == t.HARMADDPERCENT ? (n && (this.harmAddPercent = 0), this.harmAddPercent += parseInt(o[r]) * i) : r == t.HARMDELPERCENT ?
				(n && (this.harmDelPercent = 0), this.harmDelPercent += parseInt(o[r]) * i) : r == t.DAMAGEADDPERCENT ? (n && (
					this.damageAddPercent = 0), this.damageAddPercent += parseInt(o[r]) * i) : r == t.DAMAGEDELPERCENT ? (n && (this.damageDelPercent =
					0), this.damageDelPercent += parseInt(o[r]) * i) : r == t.CRITADDDAMAGE ? (n && (this.critAddDamage = 0), this.critAddDamage +=
					parseInt(o[r]) * i) : r == t.CRITDELDAMAGE ? (n && (this.critDelDamage = 0), this.critDelDamage += parseInt(o[r]) *
					i) : r == t.HOLYDEF && (n && (this.holydef = 0), this.holydef += parseInt(o[r]) * i);
			return this
		}, t.prototype.getStrByBaseAttributeBean = function(t, e, i, n) {
			void 0 === e && (e = "  "), void 0 === i && (i = ""), void 0 === n && (n = "\n");
			var a = "";
			return t.dcMax > 0 ? a += i + "攻击:" + t.dcMax + n : t.mcMax > 0 ? a += i + "攻击:" + t.mcMax + n : t.scMax > 0 && (a +=
					i + "攻击:" + t.scMax + n), t.acMax > 0 && (a += i + "物防:" + t.acMax + n), t.macMax > 0 && (a += i + "魔防:" + t.macMax +
					n), t.maxHp > 0 && (a += i + "生命:" + t.maxHp + n), t.maxHpPercent > 0 && (a += i + "生命比例:" + Number(.01 * t.maxHpPercent)
					.toFixed(1) + "%" + n), t.crit > 0 && (a += i + "暴击:" + t.crit + n), t.critharmAdd > 0 && (a += i + "暴击伤害:" + t.critharmAdd +
					n), t.tenacity > 0 && (a += i + "坚韧:" + t.tenacity + n), t.hit > 0 && (a += i + "命中:" + t.hit + n), t.juck > 0 &&
				(a += i + "闪避:" + t.juck + n), t.holyAtk > 0 && (a += i + "神圣攻击:" + t.holyAtk + n), t.comfortablePercent > 0 && (a +=
					i + "回血:" + t.comfortable + n), t.comfortablePercent > 0 && (a += i + "回 血 率:" + Number(.01 * t.comfortablePercent)
					.toFixed(1) + "%" + n), t.luck > 0 ? a += HtmlUtil.formatColor(i + "幸运:" + t.luck, this.contentColor) + n : t.luck <
				0 && (a += HtmlUtil.formatColor(i + "诅咒:" + t.luck, this.noContentColor) + n), a.length > 0 && (a = a.substring(0,
					a.lastIndexOf(n))), a
		}, t.prototype.getStrByBaseAttributeBean3 = function(t, e, i, n) {
			void 0 === e && (e = "  "), void 0 === i && (i = "</font>\n"), void 0 === n && (n = "0x35ea35");
			var a = "",
				o = "<font color= '" + n + "'>";
			return t.dcMax > 0 ? a += "攻击" + e + o + "+" + t.dcMax + i : t.mcMax > 0 ? a += "攻击" + e + o + "+" + t.mcMax + i :
				t.scMax > 0 && (a += "攻击" + e + o + "+" + t.scMax + i), t.acMax > 0 && (a += "物防" + e + o + "+" + t.acMax + i), t.macMax >
				0 && (a += "魔防" + e + o + "+" + t.macMax + i), t.maxHp > 0 && (a += "生命" + e + o + "+" + t.maxHp + i), t.maxHpPercent >
				0 && (a += "生命比例" + e + o + "+" + Number(.01 * t.maxHpPercent).toFixed(1) + "%" + i), t.crit > 0 && (a += "暴击" + e +
					o + "+" + Number(.01 * t.crit).toFixed(1) + "%" + i), t.critharmAdd > 0 && (a += "暴击伤害" + e + o + "+" + t.critharmAdd +
					i), t.tenacity > 0 && (a += "坚韧" + e + o + "+" + t.tenacity + i), t.hit > 0 && (a += "命中" + e + o + "+" + t.hit +
					i), t.juck > 0 && (a += "闪避" + e + o + "+" + t.juck + i), t.comfortablePercent > 0 && (a += "回血" + e + o + "+" +
					t.comfortable + i), t.comfortablePercent > 0 && (a += "回 血 率" + e + o + "+" + Number(.01 * t.comfortablePercent).toFixed(
					1) + "%" + i), t.luck > 0 ? a += HtmlUtil.formatColor("幸运" + e + o + "+" + t.luck, this.contentColor) + i : t.luck <
				0 && (a += HtmlUtil.formatColor("诅咒" + e + o + "+" + t.luck, this.noContentColor) + i), a.length > 0 && (a = a.substring(
					0, a.lastIndexOf(i))), a
		}, t.prototype.getStrByBaseAttributeBean2 = function(t, e, i) {
			void 0 === e && (e = "  "), void 0 === i && (i = "\n");
			var n = "";
			return t.dcMax > 0 ? n += "攻击" + e + "+" + t.dcMax + i : t.mcMax > 0 ? n += "攻击" + e + "+" + t.mcMax + i : t.scMax >
				0 && (n += "攻击" + e + "+" + t.scMax + i), t.acMax > 0 && (n += "物防" + e + "+" + t.acMax + i), t.macMax > 0 && (n +=
					"魔防" + e + "+" + t.macMax + i), t.maxHp > 0 && (n += "生命" + e + "+" + t.maxHp + i), t.maxHpPercent > 0 && (n +=
					"生命比例" + e + "+" + Number(.01 * t.maxHpPercent).toFixed(1) + "%" + i), t.crit > 0 && (n += "暴击" + e + "+" +
					Number(.01 * t.crit).toFixed(1) + "%" + i), t.critharmAdd > 0 && (n += "暴击伤害" + e + "+" + t.critharmAdd + i), t.tenacity >
				0 && (n += "坚韧" + e + "+" + t.tenacity + i), t.hit > 0 && (n += "命中" + e + "+" + t.hit + i), t.juck > 0 && (n +=
					"闪避" + e + "+" + t.juck + i), t.comfortablePercent > 0 && (n += "回血" + e + "+" + t.comfortable + i), t.comfortablePercent >
				0 && (n += "回 血 率" + e + "+" + Number(.01 * t.comfortablePercent).toFixed(1) + "%" + i), t.luck > 0 ? n +=
				HtmlUtil.formatColor("幸运" + e + "+" + t.luck, this.contentColor) + i : t.luck < 0 && (n += HtmlUtil.formatColor(
					"诅咒" + e + "+" + t.luck, this.noContentColor) + i), n.length > 0 && (n = n.substring(0, n.lastIndexOf(i))), n
		}, t.prototype.getStrByBaseAttributeBean1 = function(t) {
			var e = "";
			return t.dcMax > 0 ? e += t.dcMax + "\n" : t.mcMax > 0 ? e += t.mcMax + "\n" : t.scMax > 0 && (e += t.scMax + "\n"),
				t.acMax > 0 && (e += t.acMax + "\n"), t.macMax > 0 && (e += t.macMax + "\n"), t.maxHp > 0 && (e += t.maxHp + "\n"),
				t.maxHpPercent > 0 && (e += Number(.01 * t.maxHpPercent).toFixed(1) + "%\n"), t.crit > 0 && (e += Number(.01 * t.crit)
					.toFixed(1) + "%\n"), t.tenacity > 0 && (e += t.tenacity + "\n"), t.hit > 0 && (e += t.hit + "\n"), t.juck > 0 &&
				(e += t.juck + "\n"), t.comfortablePercent > 0 && (e += t.comfortable + "\n"), t.comfortablePercent > 0 && (e +=
					Number(.01 * t.comfortablePercent).toFixed(1) + "%\n"), t.luck > 0 ? e += HtmlUtil.formatColor("" + t.luck, this.contentColor) +
				"\n" : t.luck < 0 && (e += HtmlUtil.formatColor("" + t.luck, this.noContentColor) + "\n"), e.length > 0 && (e = e.substring(
					0, e.lastIndexOf("\n"))), e
		}, t.DCMIN = "物攻下限", t.DCMINPERCENT = "物攻下限比例", t.DCMAX = "物攻上限", t.DCMAXPERCENT = "物攻上限比例", t.MCMIN = "魔攻下限", t.MCMINPERCENT =
		"魔攻下限比例", t.MCMAX = "魔攻上限", t.MCMAXPERCENT = "魔攻上限比例", t.SCMIN = "道攻下限", t.SCMINPERCENT = "道攻下限比例", t.SCMAX = "道攻上限",
		t.SCMAXPERCENT = "道攻上限比例", t.ACMIN = "物防下限", t.ACMINPERCENT = "物防下限比例", t.ACMAX = "物防上限", t.ACMAXPERCENT = "物防上限比例",
		t.MACMIN = "魔防下限", t.MACMINPERCENT = "魔防下限比例", t.MACMAX = "魔防上限", t.MACMAXPERCENT = "魔防上限比例", t.HIT = "命中", t.HITPERCENT =
		"命中比例", t.COMFORTABLE = "舒适", t.COMFORTABLEPERCENT = "舒适比例", t.CRIT = "暴击", t.CRITPERCENT = "暴击比例", t.CRITHARMADD =
		"爆伤附加值", t.CRITHARMADDPERCENT = "爆伤加成比例", t.CRITHARMDEL = "爆伤减免", t.CRITHARMDELPERCENT = "爆伤减免比例", t.CRITADDDAMAGE =
		"暴击附加伤害", t.CRITDELDAMAGE = "暴击减伤", t.TENACITY = "坚韧", t.TENACITYPERCENT = "坚韧比例", t.JUCK = "闪避", t.JUCKPERCENT =
		"闪避比例", t.MAXHP = "生命上限", t.MAXHPPERCENT = "生命上限比例", t.MAXMP = "法力上限", t.MAXMPPERCENT = "法力上限比例", t.ATTACKSPEED =
		"攻击速度", t.ATTACKSPEEDPERCENT = "攻击速度比例", t.SPEED = "移动速度", t.SPEEDPERCENT = "移动速度比例", t.LUCK = "幸运", t.LUCKPERCENT =
		"幸运比例", t.EXPPERCENT = "经验比例", t.HOLYATTACK = "神圣攻击", t.HOLYDEF = "神圣防御", t.HOLYATTACKPERCENT = "神圣攻击比例", t.HARMADD =
		"通用增伤", t.HARMADDPERCENT = "通用增伤比例", t.HARMDEL = "通用减伤", t.HARMDELPERCENT = "通用减伤比例", t.DAMAGEADD = "伤害增加", t.DAMAGEADDPERCENT =
		"伤害增加比例", t.DAMAGEDEL = "伤害减少", t.DAMAGEDELPERCENT = "伤害减少比例", t.MAXHP1 = "生命上限", t
}();
__reflect(BaseAttributeDataBean.prototype, "BaseAttributeDataBean");
var Q_scene_monsterContainer_Expand = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.mapSceneMonsters = {}, e
	}
	return __extends(e, t), e.prototype.onFinish = function(t, e, i) {
		this.configName = t;
		for (var n, a, o = e, r = o.length, s = 0; r > s; s++) n = o[s], a = DataConfigUtils.instance.build(this.configName,
			n, i, new Q_scene_monsterBean), this.map[a.q_id] = a, this.pushToSceneMonsters(a), this.list.push(a)
	}, e.prototype.pushToSceneMonsters = function(t) {
		if (0 == t.q_refresh || 1 == t.q_refresh) {
			var e = t.q_mapid,
				i = this.mapSceneMonsters[e];
			null == i && (i = new Array, this.mapSceneMonsters[e] = i), i.push(t)
		}
	}, e.prototype.getSceneMonsterRefreshList = function(t) {
		return this.mapSceneMonsters[t]
	}, e
}(Q_scene_monsterContainer);
__reflect(Q_scene_monsterContainer_Expand.prototype, "Q_scene_monsterContainer_Expand");
var Q_achieveBean = function() {
	function t() {
		this.q_id = 0, this.q_last_complete_id = 0, this.q_name = "", this.q_achieve_show_level = 0, this.q_achieve_open_level =
			0, this.q_achieve_open = "", this.q_achieve_open_title = "", this.q_achieve_type = 0, this.q_achieve_type_big = 0,
			this.q_achieve_content = "", this.q_achieve_content_show = "", this.q_achieve_finish_zone_id = 0, this.q_achieve_num =
			0, this.q_achieve_icon = "", this.q_achieve_reward = "", this.q_achieve_reward_data = 0, this.q_achieve_reward_show_value =
			0, this.q_achieve_reward_type = 0, this.q_achieve_show_type = 0, this.q_achieve_show_reward = "", this.q_achieve_reward_cost =
			"", this.q_achieve_reward_item = ""
	}
	return t
}();
__reflect(Q_achieveBean.prototype, "Q_achieveBean");
var Q_active_positionBean = function() {
	function t() {
		this.q_id = 0, this.q_id_next = 0, this.q_sort = 0, this.q_name_position = "", this.q_need_activepoint_sum = 0, this
			.q_position_grade = "", this.q_position_pro_zs = "", this.q_position_pro_fs = "", this.q_position_pro_ds = "", this
			.q_damage_id = "", this.q_show_client_zs = "", this.q_show_client_fs = "", this.q_show_client_ds = "", this.q_position_title =
			0, this.q_color = "", this.q_rewards_show = "", this.q_icon_info = "", this.q_pos_info = "", this.q_pos_name_info =
			"", this.q_des = ""
	}
	return t
}();
__reflect(Q_active_positionBean.prototype, "Q_active_positionBean");
var Q_active_rewardsBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_index = 0, this.q_grade = 0, this.q_need_activepoint = 0, this.q_show_activepoint =
			0, this.q_box_num = 0, this.q_activitie_id = 0, this.q_fix_rewards = "", this.q_icon_info = ""
	}
	return t
}();
__reflect(Q_active_rewardsBean.prototype, "Q_active_rewardsBean");
var Q_active_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_group_id = 0, this.q_task_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this
			.q_tesk_rewards = "", this.q_panel_ID = "", this.q_openday = 0, this.q_endday = 0
	}
	return t
}();
__reflect(Q_active_taskBean.prototype, "Q_active_taskBean");
var Q_activitiesBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_type = 0, this.q_function_type = 0, this.q_group_id = 0, this.q_group_name =
			"", this.q_template = 0, this.q_isdelete = 0, this.q_client_condition = "", this.q_open_notify = "", this.q_finish_notify =
			"", this.q_show_finish = "", this.q_notify = 0, this.q_tuijian = 0, this.q_need_item = "", this.q_rewards = "",
			this.q_show_rewards = "", this.q_notice_weight = 0, this.q_info = "", this.q_sort = 0, this.q_icon = "", this.q_icon2 =
			"", this.q_desc = "", this.q_enter_button = 0, this.q_group_id_client = 0, this.q_group_name_client = "", this.q_package =
			"", this.q_group_orderid_client = 0, this.q_always_effect = 0, this.q_notice_time = "", this.q_notice = ""
	}
	return t
}();
__reflect(Q_activitiesBean.prototype, "Q_activitiesBean");
var Q_activity_configBean = function() {
	function t() {
		this.q_id = 0, this.q_int_value = 0, this.q_string_value = "", this.q_reward_value = ""
	}
	return t
}();
__reflect(Q_activity_configBean.prototype, "Q_activity_configBean");
var Q_advance_danBean = function() {
	function t() {
		this.q_id = 0, this.q_kind = 0, this.q_consume = "", this.q_needStage = 0, this.q_max_level = 0, this.q_prop = ""
	}
	return t
}();
__reflect(Q_advance_danBean.prototype, "Q_advance_danBean");
var Q_advance_equipBean = function() {
	function t() {
		this.q_id = 0, this.q_level = 0, this.q_kind = 0, this.q_nextLevel = 0, this.q_prop = "", this.q_consume = "", this.q_resolve =
			"", this.q_score = 0
	}
	return t
}();
__reflect(Q_advance_equipBean.prototype, "Q_advance_equipBean");
var Q_advanceBean = function() {
	function t() {
		this.q_id = 0, this.q_kind = 0, this.q_name = "", this.q_model = "", this.q_nextId = 0, this.q_level = 0, this.q_star =
			0, this.q_grow = 0, this.q_consume = "", this.q_addExp = 0, this.q_prop = "", this.q_unlockModel = 0, this.q_propAdd =
			"", this.q_des = ""
	}
	return t
}();
__reflect(Q_advanceBean.prototype, "Q_advanceBean");
var Q_alert_contentBean = function() {
	function t() {
		this.q_id = 0, this.q_alertDesc = "", this.q_ok_label = "", this.q_cancel_label = "", this.q_title = "", this.q_show_cancelBtn =
			0, this.q_show_closeBtn = 0
	}
	return t
}();
__reflect(Q_alert_contentBean.prototype, "Q_alert_contentBean");
var Q_artifact_showBean = function() {
	function t() {
		this.q_id = 0, this.q_guanka_id = 0, this.q_jihuo_des = 0, this.q_shenqi_pos = "", this.q_shenqi_name = "", this.q_jiemian_pos =
			"", this.q_jiemian_texiao = "", this.q_des = "", this.q_des2 = "", this.q_panel_ID = "", this.q_show = 0
	}
	return t
}();
__reflect(Q_artifact_showBean.prototype, "Q_artifact_showBean");
var Q_artifact_suitBean = function() {
	function t() {
		this.q_id = 0, this.q_suit_id = 0, this.q_artifact_id = "", this.q_lv = 0, this.q_des1 = "", this.q_des2 = "", this.q_des3 =
			"", this.q_skill_name = ""
	}
	return t
}();
__reflect(Q_artifact_suitBean.prototype, "Q_artifact_suitBean");
var Q_artifact_upgradeBean = function() {
	function t() {
		this.q_id = 0, this.q_artifact_name = "", this.q_artifact_id = 0, this.q_artifact_position = 0, this.q_lv = 0, this.q_add_attribute =
			"", this.q_add_attribute_client = "", this.q_num = "", this.q_add_exp = 0, this.q_exp = 0, this.q_pos = ""
	}
	return t
}();
__reflect(Q_artifact_upgradeBean.prototype, "Q_artifact_upgradeBean");
var Q_artifactBean = function() {
	function t() {
		this.q_id = 0, this.q_class = 0, this.q_Star = 0, this.q_add_attribute = "", this.q_add_current = "", this.q_num =
			"", this.q_icon_info = "", this.q_pos_info = "", this.q_desc = 0, this.q_desc1 = 0, this.q_weizhi_x = 0, this.q_weizhi_y =
			0, this.q_last = 0
	}
	return t
}();
__reflect(Q_artifactBean.prototype, "Q_artifactBean");
var Q_attributeBean = function() {
	function t() {
		this.q_attributeid = 0, this.q_attribute = "", this.q_attname = "", this.q_attdesc = "", this.q_appraisal_attr = "",
			this.q_attdesc_next = ""
	}
	return t
}();
__reflect(Q_attributeBean.prototype, "Q_attributeBean");
var Q_auto_notifyBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_type = 0, this.q_Desc = "", this.q_bottom_icon = 0, this.q_color = "",
			this.q_code_key = "", this.q_foreign = ""
	}
	return t
}();
__reflect(Q_auto_notifyBean.prototype, "Q_auto_notifyBean");
var Q_bot_rewardBean = function() {
	function t() {
		this.q_zone_id = 0, this.q_client_reward = ""
	}
	return t
}();
__reflect(Q_bot_rewardBean.prototype, "Q_bot_rewardBean");
var Q_buffBean = function() {
	function t() {
		this.q_buffID_q_grade = 0, this.q_buff_name = "", this.q_target_type = 0, this.q_action_type = 0, this.q_show_type =
			0, this.q_effect_ratio = 0, this.q_effect_value = 0, this.q_trigger_type = 0, this.q_effect_att_time = 0, this.q_effect_def_time =
			0, this.q_Bonus_skill = "", this.q_target = 0, this.q_small_ico = "", this.q_ico = "", this.q_colour = "", this.q_flash =
			0, this.q_remove_effect = "", this.q_remove_action = "", this.q_cast_type = 0, this.q_effect_prompt = "", this.q_tips =
			"", this.q_skill_cancel_buff = 0, this.q_damage_id = "", this.q_remove_passive_buff = "", this.q_leave_time = 0,
			this.q_piaozi = "", this.q_skill = 0
	}
	return t
}();
__reflect(Q_buffBean.prototype, "Q_buffBean");
var Q_cardkuBean = function() {
	function t() {
		this.q_id = 0, this.q_cardku_id = 0, this.q_cardku_level = 0, this.q_cardku_number = 0, this.q_cardku_attribute = ""
	}
	return t
}();
__reflect(Q_cardkuBean.prototype, "Q_cardkuBean");
var Q_challengeBean = function() {
	function t() {
		this.q_challenge_id = 0, this.q_tips = "", this.q_picture = "", this.q_next_challenge = 0, this.q_type = 0, this.q_challenge_type =
			0, this.q_win_reward = "", this.q_join_reward = "", this.q_on_time = 0, this.q_basis_value = 0, this.q_grow_time =
			0, this.q_grow_value = 0, this.q_max_value = 0, this.q_des1 = "", this.q_des2 = "", this.q_des3 = ""
	}
	return t
}();
__reflect(Q_challengeBean.prototype, "Q_challengeBean");
var Q_characterBean = function() {
	function t() {
		this.q_level = 0, this.q_exp = 0, this.q_ds_attack_min = 0, this.q_ds_attack_max = 0, this.q_ds_magic_attack_min = 0,
			this.q_ds_magic_attack_max = 0, this.q_ds_sc_attack_min = 0, this.q_ds_sc_attack_max = 0, this.q_ds_defense_min = 0,
			this.q_ds_defense_max = 0, this.q_ds_magic_defence_min = 0, this.q_ds_magic_defence_max = 0, this.q_ds_hp = 0, this
			.q_fs_attack_min = 0, this.q_fs_attack_max = 0, this.q_fs_magic_attack_min = 0, this.q_fs_magic_attack_max = 0,
			this.q_fs_sc_attack_min = 0, this.q_fs_sc_attack_max = 0, this.q_fs_defense_min = 0, this.q_fs_defense_max = 0,
			this.q_fs_magic_defence_min = 0, this.q_fs_magic_defence_max = 0, this.q_fs_hp = 0, this.q_zs_attack_min = 0, this.q_zs_attack_max =
			0, this.q_zs_magic_attack_min = 0, this.q_zs_magic_attack_max = 0, this.q_zs_sc_attack_min = 0, this.q_zs_sc_attack_max =
			0, this.q_zs_defense_min = 0, this.q_zs_defense_max = 0, this.q_zs_magic_defence_min = 0, this.q_zs_magic_defence_max =
			0, this.q_zs_hp = 0, this.q_hit = 0, this.q_juck = 0, this.q_crit = 0, this.q_tenacity = 0, this.q_critharmadd = 0,
			this.q_critharmdel = 0, this.q_harmadd = 0, this.q_harmdel = 0, this.q_open = "", this.q_exp_equip = 0, this.q_exp_to_repair =
			0, this.q_repair_to_exp = 0, this.q_samsara_to_exp = 0, this.q_exp_to_money = 0
	}
	return t
}();
__reflect(Q_characterBean.prototype, "Q_characterBean");
var Q_damage_specialBean = function() {
	function t() {
		this.q_damage_id = 0, this.q_damage_type = 0, this.q_damage_object = 0, this.q_damage_value = 0, this.q_damage_percent =
			0, this.q_fightpower = 0
	}
	return t
}();
__reflect(Q_damage_specialBean.prototype, "Q_damage_specialBean");
var Q_desireBean = function() {
	function t() {
		this.q_id = 0, this.q_reward = "", this.q_unlock_time1 = 0, this.q_unlock_time2 = 0, this.q_unlock_time3 = 0, this.q_unlock_time4 =
			0
	}
	return t
}();
__reflect(Q_desireBean.prototype, "Q_desireBean");
var Q_dynamic_effectBean = function() {
	function t() {
		this.q_effect_id = 0, this.q_res_id = "", this.q_res_path = "", this.q_fix = 0, this.q_mapid = 0, this.q_pixel_x_client =
			0, this.q_pixel_y_client = 0
	}
	return t
}();
__reflect(Q_dynamic_effectBean.prototype, "Q_dynamic_effectBean");
var Q_enter_buttonBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_res_name = "", this.q_res_name_1 = "", this.q_width = 0, this.q_height = 0,
			this.q_type = 0, this.q_open = 0, this.q_function_id = 0, this.q_special_type = 0, this.q_sort = 0, this.q_panelID =
			0, this.q_panelID_index = 0, this.q_common = 0, this.q_hide_plat = "", this.q_zhuanquan = 0
	}
	return t
}();
__reflect(Q_enter_buttonBean.prototype, "Q_enter_buttonBean");
var Q_equip_fuseBean = function() {
	function t() {
		this.q_id = 0, this.q_equip_model_id = 0, this.q_equip_next_id = 0, this.q_consume = "", this.q_fuse_type = 0
	}
	return t
}();
__reflect(Q_equip_fuseBean.prototype, "Q_equip_fuseBean");
var Q_equip_introBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_level = 0, this.q_equip_tj = ""
	}
	return t
}();
__reflect(Q_equip_introBean.prototype, "Q_equip_introBean");
var Q_equip_masterBean = function() {
	function t() {
		this.q_id = 0, this.q_suit_name = "", this.q_type = 0, this.q_is_superposition = 0, this.q_suit_id = 0, this.q_rank =
			0, this.q_level = 0, this.q_job = 0, this.q_name = "", this.q_suit_num = 0, this.q_suit_type = 0, this.q_add_attribute_client =
			"", this.q_equip_icon_male = "", this.q_equip_icon_female = "", this.q_suit_skill = ""
	}
	return t
}();
__reflect(Q_equip_masterBean.prototype, "Q_equip_masterBean");
var Q_equip_strengBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_gradeNum = 0, this.q_next_id = 0, this.q_cost_Num = "", this.q_part_add = 0,
			this.q_icon_show = "", this.q_desc_show = "", this.q_effect = 0, this.q_attri_weapon = "", this.q_attri_clothes =
			"", this.q_attri_helmet = "", this.q_attri_necklace = "", this.q_attri_bracelet = "", this.q_attri_belt = "", this.q_attri_ring =
			"", this.q_attri_shoe = ""
	}
	return t
}();
__reflect(Q_equip_strengBean.prototype, "Q_equip_strengBean");
var Q_equipBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_kind = 0, this.q_xingj = 0, this.q_add_1 = "", this.q_add_2 = "", this.q_add_3 =
			"", this.q_max_strength = 0, this.q_attack_min = 0, this.q_attack_max = 0, this.q_magic_attack_min = 0, this.q_magic_attack_max =
			0, this.q_sc_attack_min = 0, this.q_sc_attack_max = 0, this.q_defense_min = 0, this.q_defense_max = 0, this.q_magic_defence_min =
			0, this.q_magic_defence_max = 0, this.q_hp = 0, this.q_crit = 0, this.q_critvalueadd = 0, this.q_tenacity = 0, this
			.q_critharmdel = 0, this.q_hit = 0, this.q_juck = 0, this.q_maxHpPercent = 0, this.q_critharmadd = 0, this.q_critvaluedel =
			0, this.q_luck = 0, this.q_mp = 0, this.q_internalforce = 0, this.q_restorestrength = 0, this.q_holy_attack = 0,
			this.q_add_engrave_prop = "", this.q_huishou = "", this.q_score = 0, this.q_resolve = "", this.q_add_attribute_client =
			"", this.q_skill_id = 0
	}
	return t
}();
__reflect(Q_equipBean.prototype, "Q_equipBean");
var Q_error_constBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_type = 0, this.q_code_key = "", this.q_Desc = "", this.q_color = 0,
			this.q_foreign = ""
	}
	return t
}();
__reflect(Q_error_constBean.prototype, "Q_error_constBean");
var Q_fightpowerBean = function() {
	function t() {
		this.q_id = 0, this.q_job = 0, this.q_level = 0, this.q_dcmin = 0, this.q_dcmax = 0, this.q_mcmin = 0, this.q_mcmax =
			0, this.q_scmin = 0, this.q_scmax = 0, this.q_acmin = 0, this.q_acmax = 0, this.q_macmin = 0, this.q_macmax = 0,
			this.q_maxHp = 0, this.q_crit = 0, this.q_tenacity = 0, this.q_critvalueadd = 0, this.q_critvaluedel = 0, this.q_harmadd =
			0, this.q_harmdel = 0, this.q_juck = 0, this.q_hit = 0, this.q_critharmadd = 0, this.q_critharmdel = 0, this.q_holyatk =
			0, this.q_holydef = 0, this.q_comfortable = 0, this.q_dcharmdel = 0, this.q_mcharmdel = 0, this.q_scharmdel = 0,
			this.q_hpadd = 0, this.q_mpadd = 0, this.q_skilladd = 0, this.q_speed = 0, this.q_maxMp = 0, this.q_attackSpeed = 0,
			this.q_luck = 0, this.q_harmDelPercent = 0, this.q_tenacityPercent = 0, this.q_critharmDelPercent = 0, this.q_element =
			0
	}
	return t
}();
__reflect(Q_fightpowerBean.prototype, "Q_fightpowerBean");
var Q_flopBean = function() {
	function t() {
		this.q_id = 0, this.q_need_yuanbao = 0, this.q_shuaxin_yuanbao = 0
	}
	return t
}();
__reflect(Q_flopBean.prototype, "Q_flopBean");
var Q_functionBean = function() {
	function t() {
		this.q_function_id = 0, this.q_function_name = "", this.q_enter_button = 0, this.q_open_level = 0, this.q_metelv = 0,
			this.q_open_taskid = 0, this.q_open_guanka = 0, this.q_open_tongtian = 0, this.q_open_shenqi = 0, this.q_privilege_lv =
			0, this.q_openday = 0, this.q_item = 0, this.q_notice_level = 0, this.q_notice_taskid = 0, this.q_reward = "", this
			.q_describe = "", this.q_show = 0, this.q_isopen = 0, this.q_describe_func = "", this.q_severopenday = 0, this.q_web =
			""
	}
	return t
}();
__reflect(Q_functionBean.prototype, "Q_functionBean");
var Q_gift_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_task_id = 0, this.q_next_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this.q_tesk_rewards_show =
			"", this.q_task_time = 0, this.q_price = 0, this.q_recharge_shop_id = 0
	}
	return t
}();
__reflect(Q_gift_taskBean.prototype, "Q_gift_taskBean");
var Q_giftBean = function() {
	function t() {
		this.q_gift_id = 0, this.q_reward_gold = 0, this.q_is_dt_gift_data = "", this.q_gift_data = "", this.q_info = "",
			this.q_info2 = ""
	}
	return t
}();
__reflect(Q_giftBean.prototype, "Q_giftBean");
var Q_globalBean = function() {
	function t() {
		this.q_id = 0, this.q_desc = "", this.q_int_value = 0, this.q_string_value = ""
	}
	return t
}();
__reflect(Q_globalBean.prototype, "Q_globalBean");
var Q_guild_freedomBean = function() {
	function t() {
		this.q_id = 0, this.q_official_name = "", this.q_pk_reward = "", this.q_official_right = "", this.q_official_combat =
			"", this.q_zone_zs = "", this.q_added_reward = ""
	}
	return t
}();
__reflect(Q_guild_freedomBean.prototype, "Q_guild_freedomBean");
var Q_guild_nameBean = function() {
	function t() {
		this.q_id = 0, this.q_name = ""
	}
	return t
}();
__reflect(Q_guild_nameBean.prototype, "Q_guild_nameBean");
var Q_guild_skillBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_skill_id = 0, this.q_job = 0, this.q_only = 0, this.q_type = 0, this.q_skill_level =
			0, this.q_grade = 0, this.q_consume = 0, this.q_a = 0
	}
	return t
}();
__reflect(Q_guild_skillBean.prototype, "Q_guild_skillBean");
var Q_guildBean = function() {
	function t() {
		this.q_level = 0, this.q_next_level = 0, this.q_number = 0, this.q_upgrade_gold = 0, this.q_skillgrade_level_max = 0,
			this.q_shopgrade_level_max = 0, this.q_skillgrade_gold = 0, this.q_shopgrade_gold = 0, this.q_add_ability = "",
			this.q_add_buffid = "", this.q_official_elder = 0, this.q_vice_chairman = 0, this.q_official_elite = 0, this.q_guild_item =
			""
	}
	return t
}();
__reflect(Q_guildBean.prototype, "Q_guildBean");
var Q_heraldryBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_level = 0, this.q_type = 0, this.q_cost = "", this.q_attribute = "", this.q_attribute_client =
			"", this.q_comsume_num = 0
	}
	return t
}();
__reflect(Q_heraldryBean.prototype, "Q_heraldryBean");
var Q_hide_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_group_id = 0, this.q_task_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this
			.q_tesk_rewards = "", this.q_rewards_show = 0, this.q_panel_ID = "", this.q_task_time = 0, this.q_qujian = "", this
			.q_box = 0
	}
	return t
}();
__reflect(Q_hide_taskBean.prototype, "Q_hide_taskBean");
var Q_hongbaoBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_openday = 0, this.q_time = 0, this.q_yuanbao = 0, this.q_vip_yuanbao = 0
	}
	return t
}();
__reflect(Q_hongbaoBean.prototype, "Q_hongbaoBean");
var Q_internalstrengthBean = function() {
	function t() {
		this.q_id = 0, this.q_level = 0, this.q_job = 0, this.q_nextid = 0, this.q_exp = 0, this.q_getexp = 0, this.q_internalforce =
			0, this.q_damagereduction = 0, this.q_restorestrength = 0, this.q_consumption = "", this.q_fightpower = 0
	}
	return t
}();
__reflect(Q_internalstrengthBean.prototype, "Q_internalstrengthBean");
var Q_itemBean = function() {
	function t() {
		this.q_id = 0, this.q_rank = 0, this.q_name = "", this.q_type = 0, this.q_child_type = 0, this.q_level = 0, this.q_zhuanshen =
			0, this.q_lunhui = 0, this.q_vip = 0, this.q_moon_card = 0, this.q_use = 0, this.q_use_consume = "", this.q_gift =
			0, this.q_items_show = 0, this.q_equip_resource = "", this.q_tiny_icon = "", this.q_append = "", this.q_bind = 0,
			this.q_isLockItem = 0, this.q_job = 0, this.q_sex = 0, this.q_default = 0, this.q_effect = 0, this.q_effect_drop =
			"", this.q_max = 0, this.q_sell_confirm = 0, this.q_drop = 0, this.q_drop_confirm = 0, this.q_shortcut = 0, this.q_cooldown =
			0, this.q_cooldown_level = 0, this.q_cooldown_type = 0, this.q_transfer = 0, this.q_skill = 0, this.q_ui = "", this
			.q_notice = 0, this.q_drop_music = "", this.q_use_music = "", this.q_unuse_music = "", this.q_auto_use = 0, this.q_whether_batch =
			0, this.q_save_warehouse = 0, this.q_use_group = 0, this.q_limit_use_time = 0, this.q_score = 0, this.q_from = "",
			this.q_show_type = 0, this.q_surface = "", this.q_itme_prompt = 0, this.q_mars_level = 0, this.q_package_ids = "",
			this.q_society_Contribution = 0, this.q_add_type = 0, this.q_add_value = 0, this.q_add_mars_exp = 0, this.q_describe =
			"", this.q_input_intro = "", this.q_boning_head = 0, this.q_exchange_activityid = 0, this.q_client_script = 0, this
			.q_nation_function_use = 0, this.q_suit_id = 0, this.q_buxiu_rank = 0, this.q_moshi_rank = 0, this.q_name_effect =
			0, this.q_senior_job = 0, this.q_can_trade = 0, this.q_add_enterzonecount = "", this.q_params = ""
	}
	return t
}();
__reflect(Q_itemBean.prototype, "Q_itemBean");
var Q_jadeBean = function() {
	function t() {
		this.q_id = 0, this.q_up_id = 0, this.q_next_id = 0, this.q_layer = 0, this.q_name = "", this.q_cost = 0, this.q_lv_deter =
			0, this.q_consume = 0, this.q_attribute = "", this.q_icon_info = "", this.q_pos_info = ""
	}
	return t
}();
__reflect(Q_jadeBean.prototype, "Q_jadeBean");
var Q_kun_skillBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_need_class = 0, this.q_name = "", this.q_des = "", this.q_skill_icon = "",
			this.q_trigger_hp = "", this.q_zone_type = "", this.q_texiao = "", this.q_artifice_time = "", this.q_artifice_rewards =
			"", this.q_kun_exp = ""
	}
	return t
}();
__reflect(Q_kun_skillBean.prototype, "Q_kun_skillBean");
var Q_level_configBean = function() {
	function t() {
		this.q_level = 0, this.q_exp_world_lv = 0, this.q_rank_win_award = "", this.q_rank_fail_award = "", this.q_guaji_tuijian_map =
			"", this.q_guaji_vip_zone = 0, this.q_tafang_diff_exp = 0, this.q_tafang_lose_exp_cost = 0
	}
	return t
}();
__reflect(Q_level_configBean.prototype, "Q_level_configBean");
var Q_limit_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_group_id = 0, this.q_task_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this
			.q_tesk_rewards = "", this.q_rewards_show = 0, this.q_panel_ID = "", this.q_task_time = 0
	}
	return t
}();
__reflect(Q_limit_taskBean.prototype, "Q_limit_taskBean");
var Q_link_rewarksBean = function() {
	function t() {
		this.q_id = 0, this.q_victory_days = 0, this.q_rewarks = ""
	}
	return t
}();
__reflect(Q_link_rewarksBean.prototype, "Q_link_rewarksBean");
var Q_link_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_task_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this.q_tesk_rewards = "",
			this.q_panel_ID = ""
	}
	return t
}();
__reflect(Q_link_taskBean.prototype, "Q_link_taskBean");
var Q_lucky_turntableBean = function() {
	function t() {
		this.q_id = 0, this.q_turntable_id = 0, this.q_next_id = 0, this.q_get_order = 0, this.q_display_order = 0, this.q_reward =
			""
	}
	return t
}();
__reflect(Q_lucky_turntableBean.prototype, "Q_lucky_turntableBean");
var Q_ma_soulBean = function() {
	function t() {
		this.q_ma_soul_id = 0, this.q_next_id = 0, this.q_name = "", this.q_ma_soul_taye_id = 0, this.q_ma_place_name = "",
			this.q_ma_place_id = 0, this.q_class = 0, this.q_ma_level = 0, this.q_ma_attribute = "", this.q_ma_skill_id = 0,
			this.q_ma_things = "", this.q_icon = ""
	}
	return t
}();
__reflect(Q_ma_soulBean.prototype, "Q_ma_soulBean");
var Q_main_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_task_des = "", this.q_finish_condition_ids = "", this.q_tesk_rewards = "",
			this.q_panel_ID = "", this.q_npc_xunlu = "", this.q_task_des2 = "", this.q_task_des3 = "", this.q_task_pos = "",
			this.q_npc_name = "", this.q_music = "", this.q_yindao = 0
	}
	return t
}();
__reflect(Q_main_taskBean.prototype, "Q_main_taskBean");
var Q_map_jumpBean = function() {
	function t() {
		this.q_jump_id = 0, this.q_jump_xy = "", this.q_jump_map = 0, this.q_jump_range = "", this.q_jump_targetxy = "",
			this.q_jump_config = "", this.q_jump_combo_id = 0, this.q_jump_type = 0, this.q_jump_effect = ""
	}
	return t
}();
__reflect(Q_map_jumpBean.prototype, "Q_map_jumpBean");
var Q_mapBean = function() {
	function t() {
		this.q_map_id = 0, this.q_map_name = "", this.q_mapresid = 0, this.q_map_width = 0, this.q_map_height = 0, this.q_nation =
			0, this.q_cross_type = 0, this.q_map_safe = 0, this.q_music = "", this.q_item_sotp = "", this.q_team_addition = 0,
			this.q_map_player = 0, this.q_revive_type = 0, this.q_revive_consume = "", this.q_auto_revive_daily = 0, this.q_revive_lv_nothing =
			0, this.q_addpk = 0, this.q_map_monster = 0, this.q_map_player_cross_player = 0, this.q_map_pet = 0, this.q_show_group =
			0, this.q_shield_zhanshen = 0, this.q_bubble_ratio = 0, this.q_die_notice = 0, this.q_is_judge_auto_battle = 0,
			this.q_is_auto_battle = 0, this.q_q_show_nation = 0, this.q_show_mount = 0, this.q_all_drop = 0
	}
	return t
}();
__reflect(Q_mapBean.prototype, "Q_mapBean");
var Q_meridianBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_name = "", this.q_class = 0, this.q_lv = 0, this.q_add_attribute = "",
			this.q_num = ""
	}
	return t
}();
__reflect(Q_meridianBean.prototype, "Q_meridianBean");
var Q_metempsychosisBean = function() {
	function t() {
		this.q_level = 0, this.q_role_level = 0, this.q_state_level = 0, this.q_name = "", this.q_reiki = 0, this.q_ds_ability =
			"", this.q_fs_ability = "", this.q_zs_ability = "", this.q_damage_id = "", this.q_info = "", this.q_num_fit = 0
	}
	return t
}();
__reflect(Q_metempsychosisBean.prototype, "Q_metempsychosisBean");
var Q_minerBean = function() {
	function t() {
		this.q_miner_id = 0, this.q_miner_name = 0, this.q_miner_up = 0, this.q_miner_bless = 0, this.q_miner_production =
			"", this.q_miner_snatch = ""
	}
	return t
}();
__reflect(Q_minerBean.prototype, "Q_minerBean");
var Q_miningBean = function() {
	function t() {
		this.q_id = 0, this.q_id_next = 0, this.q_mining_name = "", this.q_mining_time = 0, this.q_pro = 0, this.q_free_up =
			0, this.q_blessnum_limit = 0, this.q_max_levelupcont = 0, this.q_levelup_consume = "", this.q_item_consume = "",
			this.q_reward = "", this.q_plunder_reward = "", this.q_plunder = "", this.q_plunder_double = "", this.q_yuanbao = 0,
			this.q_map_show = ""
	}
	return t
}();
__reflect(Q_miningBean.prototype, "Q_miningBean");
var Q_monsterBean = function() {
	function t() {
		this.q_id = 0, this.q_colour = "", this.q_name = "", this.q_type = 0, this.q_petID = 0, this.q_camp = 0, this.q_hp_max =
			0, this.q_pet_featureid = "", this.q_modelHeight = 0, this.q_scale = 0, this.q_featureid = "", this.q_sex = 0, this
			.q_weapons = "", this.q_wing_model = "", this.q_hair = "", this.q_born_dir = 0, this.q_faceid = 0, this.q_fire_soundid =
			0, this.q_underfire_soundid = 0, this.q_die_soundid = 0, this.q_isBelow = 0, this.q_canmove = 0, this.q_immunity_skill =
			"", this.q_atktick = 0, this.q_movetick = 0, this.q_lvl = 0, this.q_monster_job = 0, this.q_attack_minlevel = 0,
			this.q_boss_integral = 0, this.q_title_res = "", this.q_display_name = 0, this.q_items = "", this.q_death_shield_time =
			0, this.q_dead_fly = 0, this.q_dead_fly_rate = 0
	}
	return t
}();
__reflect(Q_monsterBean.prototype, "Q_monsterBean");
var Q_moon_cardBean = function() {
	function t() {
		this.q_id = 0, this.q_reward = "", this.q_day_reward = "", this.q_need_gold = 0, this.q_vip_time = 0, this.q_vip_add =
			0
	}
	return t
}();
__reflect(Q_moon_cardBean.prototype, "Q_moon_cardBean");
var Q_nation_warBean = function() {
	function t() {
		this.q_id = 0, this.q_stronghold_res = ""
	}
	return t
}();
__reflect(Q_nation_warBean.prototype, "Q_nation_warBean");
var Q_nationBean = function() {
	function t() {
		this.q_id = 0, this.q_level = 0, this.q_levelup_honor = 0, this.q_changename_cd = 0, this.q_war_shop_tips = "", this
			.q_next_shop = 0, this.q_level_desc = ""
	}
	return t
}();
__reflect(Q_nationBean.prototype, "Q_nationBean");
var Q_notify_constBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_type = 0, this.q_Desc = "", this.q_color = 0, this.q_code_key = "",
			this.q_foreign = ""
	}
	return t
}();
__reflect(Q_notify_constBean.prototype, "Q_notify_constBean");
var Q_notifyBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_type = 0, this.q_Desc = "", this.q_foreign = "", this.q_bottom_icon = 0,
			this.q_color = 0
	}
	return t
}();
__reflect(Q_notifyBean.prototype, "Q_notifyBean");
var Q_npcBean = function() {
	function t() {
		this.q_id = 0, this.q_map = 0, this.q_x = 0, this.q_y = 0, this.q_name = "", this.q_title = "", this.q_energy_type =
			0, this.q_Interactive = 0, this.q_tranfer_config = "", this.q_walkable = 0, this.q_task = "", this.q_dialog = "",
			this.q_isminimap = 0, this.q_resources = 0, this.q_isturn = 0, this.q_direction = 0, this.q_resource = "", this.q_viewplay =
			0, this.q_collecttime = 0, this.q_gather_cooldown = 0, this.q_displaynpc = "", this.q_color = "", this.q_npc_ask =
			"", this.q_npcdesc = "", this.q_ico = 0, this.q_shop = 0, this.q_speak_time = 0, this.q_speak = "", this.q_type = 0,
			this.q_px = 0, this.q_py = 0, this.q_operate = "", this.q_head = "", this.q_access_play = "", this.q_complete_play =
			"", this.q_isvisible = 0, this.q_clickplay = 0, this.q_clickscriptid = 0, this.q_modelHeight = 0, this.q_title_res =
			"", this.q_stronghold = 0, this.q_nationtype = 0, this.q_show_bind_activity = 0, this.q_severopenday = 0
	}
	return t
}();
__reflect(Q_npcBean.prototype, "Q_npcBean");
var Q_output_introBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_bossid = 0, this.q_index = 0, this.q_need_vip = 0, this.q_need_miemol =
			0, this.q_output_title = "", this.q_output_icon = "", this.q_output_des = "", this.q_change_ui = 0, this.q_tran_to_npc =
			0, this.q_is_active = 0, this.q_need_level = 0, this.q_need_level_zs = 0
	}
	return t
}();
__reflect(Q_output_introBean.prototype, "Q_output_introBean");
var Q_pet_classBean = function() {
	function t() {
		this.q_id = 0, this.q_pet_class = 0, this.q_next_pet_class = 0, this.q_pet_type = 0, this.q_mould_id = 0, this.q_level =
			0, this.q_kun_skill = "", this.q_class_item = "", this.q_add_ability = "", this.q_add_proportion = 0, this.q_fenjie_item =
			"", this.q_num = "", this.q_ability_max = "", this.q_tt_random_atr = ""
	}
	return t
}();
__reflect(Q_pet_classBean.prototype, "Q_pet_classBean");
var Q_pet_eggBean = function() {
	function t() {
		this.q_id = 0, this.q_itemid = 0, this.q_hatch_times = 0, this.q_open_limit = "", this.q_goods1 = ""
	}
	return t
}();
__reflect(Q_pet_eggBean.prototype, "Q_pet_eggBean");
var Q_pet_levelBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_type = 0, this.q_level_show = 0, this.q_num = "", this.q_exp = 0, this.q_add_ability =
			""
	}
	return t
}();
__reflect(Q_pet_levelBean.prototype, "Q_pet_levelBean");
var Q_pet_mouldBean = function() {
	function t() {
		this.q_id = 0, this.q_pet_type = 0, this.q_pet_star = 0, this.q_pet_name = "", this.q_pet_card = "", this.q_rand =
			"", this.q_fixed_skill = "", this.q_skill_num = 0, this.q_rand_skill = "", this.q_fenjie_item = ""
	}
	return t
}();
__reflect(Q_pet_mouldBean.prototype, "Q_pet_mouldBean");
var Q_pet_showBean = function() {
	function t() {
		this.q_id = 0, this.q_mould_id = 0, this.q_pet_name = "", this.q_class = 0, this.q_pet_show = "", this.q_skill_show =
			"", this.q_petID_q_grade = 0
	}
	return t
}();
__reflect(Q_pet_showBean.prototype, "Q_pet_showBean");
var Q_petBean = function() {
	function t() {
		this.q_petID_q_grade = 0, this.q_pet_id = 0, this.q_name = "", this.q_pinzhi = 0, this.q_featureid = "", this.q_scale =
			0, this.q_level = 0, this.q_pettype = 0, this.q_movetick = 0, this.q_atktick = 0, this.q_base_attid = 0, this.q_mars_level =
			0, this.q_mars_stairs = 0, this.q_pet_bag_icon = "", this.q_petdeadtime = 0, this.q_mars_image = "", this.q_mars_weapons =
			"", this.q_hair = "", this.q_sex = 0, this.q_modelHeight = 0
	}
	return t
}();
__reflect(Q_petBean.prototype, "Q_petBean");
var Q_pictureBean = function() {
	function t() {
		this.q_card_id = 0, this.q_next_id = 0, this.q_card_type = 0, this.q_order_card = 0, this.q_card_name = "", this.q_card_level =
			0, this.q_quality = 0, this.q_card_attribute = "", this.q_card_occupation = 0, this.q_itemid = 0, this.q_card_remove =
			0, this.q_card_use = "", this.q_card_skill = 0, this.q_zhandouli = 0, this.q_card_res = "", this.q_quality_icon =
			"", this.q_quality_kuang = "", this.q_firstid = 0
	}
	return t
}();
__reflect(Q_pictureBean.prototype, "Q_pictureBean");
var Q_playBean = function() {
	function t() {
		this.q_id = 0, this.q_next_taskid = 0, this.q_task_name = "", this.q_finish_condition_ids = "", this.q_task_transfer =
			"", this.q_tesk_rewards = "", this.q_finish_id = 0, this.q_task_des = "", this.q_show_text = "", this.q_task_des2 =
			"", this.q_zoneid = 0
	}
	return t
}();
__reflect(Q_playBean.prototype, "Q_playBean");
var Q_privilegeBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_privilege_des = "", this.q_hurt_add = 0, this.q_title_id = 0, this.q_need_yuanbao =
			0, this.q_duration = 0, this.q_score = 0, this.q_attribute_client = ""
	}
	return t
}();
__reflect(Q_privilegeBean.prototype, "Q_privilegeBean");
var Q_rank_configBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_interval_a = 0, this.q_interval_b = 0, this.q_dekaron_interval = 0,
			this.q_paiming_reward = "", this.q_yuanbao_multiple = 0
	}
	return t
}();
__reflect(Q_rank_configBean.prototype, "Q_rank_configBean");
var Q_rank_rewardsBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_paiming = 0, this.q_paiming_reward = ""
	}
	return t
}();
__reflect(Q_rank_rewardsBean.prototype, "Q_rank_rewardsBean");
var Q_raywingBean = function() {
	function t() {
		this.q_id = 0, this.q_level = 0, this.q_jie = 0, this.q_star = 0, this.q_next_id = 0, this.q_blessnum_limit = 0,
			this.q_max_levelupcont = 0, this.q_levelup_consume = "", this.q_temp_attribute = "", this.q_damage_id = "", this.q_skill_show =
			0, this.q_des = ""
	}
	return t
}();
__reflect(Q_raywingBean.prototype, "Q_raywingBean");
var Q_recharge_shopBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_shop_name = "", this.q_shop_type = 0, this.q_rmb_num = 0, this.q_recharge_yuanbao =
			0, this.q_first_yuanbao = 0, this.q_give_yuanbao = 0, this.q_gift_id = 0, this.q_shuaxin = 0, this.q_xiangou = 0,
			this.q_activities_id = 0, this.q_rewards = ""
	}
	return t
}();
__reflect(Q_recharge_shopBean.prototype, "Q_recharge_shopBean");
var Q_rechargeBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_rmb_num = 0, this.q_first_yuanbao = 0, this.q_yuanbao = 0
	}
	return t
}();
__reflect(Q_rechargeBean.prototype, "Q_rechargeBean");
var Q_resources_backBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_cilent_type = 0, this.q_addcount_condition = "", this.q_day_count = 0, this.q_max_count =
			0, this.q_resources = "", this.q_rate_consume = "", this.q_costgold = 0
	}
	return t
}();
__reflect(Q_resources_backBean.prototype, "Q_resources_backBean");
var Q_ringBean = function() {
	function t() {
		this.q_ring_id = 0, this.q_next_id = 0, this.q_ring_model = "", this.q_ring_icon = "", this.q_ring_basis = "", this.q_ring_skill_id =
			0, this.q_ring_time = 0, this.q_ring_vip = 0, this.q_ring_order = ""
	}
	return t
}();
__reflect(Q_ringBean.prototype, "Q_ringBean");
var Q_samsara_soulBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_need_exp = 0, this.q_add_attribute_pro = "", this.q_desc = ""
	}
	return t
}();
__reflect(Q_samsara_soulBean.prototype, "Q_samsara_soulBean");
var Q_samsara_star_masterBean = function() {
	function t() {
		this.q_id = 0, this.q_need_star = 0, this.q_skill = 0, this.q_skill_desc = ""
	}
	return t
}();
__reflect(Q_samsara_star_masterBean.prototype, "Q_samsara_star_masterBean");
var Q_samsara_starBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_star_lv = 0, this.q_up_id = 0, this.q_next_id = 0, this.q_success = 0, this.q_downgrade =
			0, this.q_num = "", this.q_add_attribute = ""
	}
	return t
}();
__reflect(Q_samsara_starBean.prototype, "Q_samsara_starBean");
var Q_samsaraBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_class = 0, this.q_class_name = "", this.q_level = 0, this.q_jie_show = "",
			this.q_lv_show = "", this.q_level_name = "", this.q_need_exp = 0, this.q_ability = ""
	}
	return t
}();
__reflect(Q_samsaraBean.prototype, "Q_samsaraBean");
var Q_scene_monsterBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_mapid = 0, this.q_x = 0, this.q_y = 0, this.q_refresh = 0
	}
	return t
}();
__reflect(Q_scene_monsterBean.prototype, "Q_scene_monsterBean");
var Q_shopBean = function() {
	function t() {
		this.q_id = 0, this.q_grade = 0, this.q_itemModelId = 0, this.q_num = 0, this.q_bind = 0, this.q_isLockItem = 0,
			this.q_shop_type = 0, this.q_visible = 0, this.q_page = 0, this.q_currency_type = 0, this.q_price = 0, this.q_times_limit_type =
			0, this.q_times = 0, this.q_times_price = "", this.q_index = 0, this.q_quickPurchaseType = 0, this.q_quickPurchaseUse =
			0, this.q_sex = 0, this.q_consume = "", this.q_open_buy = 0, this.q_job = 0, this.q_level = 0, this.q_max_rank = 0,
			this.q_old_price = 0, this.q_slae_tips = "", this.q_describe = "", this.q_limit_action_type = 0, this.q_refresh = 0,
			this.q_cosumeequip = 0, this.q_limit_lv = 0, this.q_limit_metemneedlv = 0, this.q_nation_level = 0, this.q_buy_time =
			0
	}
	return t
}();
__reflect(Q_shopBean.prototype, "Q_shopBean");
var Q_skill_modelBean = function() {
	function t() {
		this.q_skillID_q_grade = 0, this.q_next_skillID_q_grade = 0, this.q_skillID = 0, this.q_skillName = "", this.q_grade =
			0, this.q_needgrade = 0, this.q_study_needgrade = 0, this.q_skill_level = 0, this.q_showtype = 0, this.q_cd = 0,
			this.q_public_cd = 0, this.q_public_cd_level = 0, this.q_hurt_correct_factor = 0, this.q_ignore_defence = 0, this.q_passive_buff =
			"", this.q_bufq_trigger_factor = 0, this.q_range_limit = 0, this.q_use_target = 0, this.q_tip_type = 0, this.q_target =
			0, this.q_area_shape = 0, this.q_study_needbook = 0, this.q_skill_job = 0, this.q_skill_nohandsup = 0, this.q_skill_user =
			0, this.q_trigger_type = 0, this.q_default_enable = 0, this.q_attack_id = 0, this.q_play_speed = 0, this.q_trajectory_speed =
			0, this.q_skill_dir = 0, this.q_File_client = 0, this.q_use_effect = "", this.q_trajectory_effect = "", this.q_hit_effect =
			"", this.q_series_effect = "", this.q_small_icon = "", this.q_use_sound = "", this.q_hit_sound = "", this.q_skill_target_type =
			0, this.q_skill_boautolocked = 0, this.q_open = 0, this.q_cal_monster = 0, this.q_sort = 0, this.q_series_effect_is_only =
			0, this.q_zuans_lv = 0, this.q_hurt_count_types = 0, this.q_condition = 0, this.q_condition_other = 0, this.q_skill_mark =
			"", this.q_element_icon = "", this.q_element_tips = "", this.q_desc = "", this.q_tips = "", this.q_tips_desc = "",
			this.q_neednum_gold = 0, this.q_gold_neednum = 0, this.q_attribute = "", this.q_neednum_book = 0, this.q_skill_range =
			"", this.q_skill_locked_change = 0, this.q_skill_trigger = "", this.q_skillup_reward = 0, this.q_skill_upuser_job =
			0, this.q_skill_open_attributeID = "", this.q_trajectory_range = 0, this.q_skilladd_buff = "", this.q_need_mp = 0,
			this.q_ring_tips = "", this.q_swf = "", this.q_skillCE = 0, this.q_expression = 0, this.q_piaozi = ""
	}
	return t
}();
__reflect(Q_skill_modelBean.prototype, "Q_skill_modelBean");
var Q_specail_configBean = function() {
	function t() {
		this.q_id = 0, this.q_name = "", this.q_int_value = 0, this.q_string_value = "", this.q_tranfer_config = "", this.q_show_effects =
			"", this.q_bind_ranktype = 0, this.q_rewards_type = 0, this.q_rewards_opendays = "", this.q_rewards_combinedays =
			"", this.q_opentime = "", this.q_actzone = ""
	}
	return t
}();
__reflect(Q_specail_configBean.prototype, "Q_specail_configBean");
var Q_state_lvBean = function() {
	function t() {
		this.q_level = 0, this.q_state_name = "", this.q_points = "", this.q_fight_num = 0, this.q_add_attribute_client = ""
	}
	return t
}();
__reflect(Q_state_lvBean.prototype, "Q_state_lvBean");
var Q_state_taskBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_task_des = "", this.q_open_condition = "", this.q_taskset_id = 0, this.q_order =
			0, this.q_finish_condition_ids = "", this.q_tesk_rewards = "", this.q_panel_ID = "", this.q_npc_xunlu = ""
	}
	return t
}();
__reflect(Q_state_taskBean.prototype, "Q_state_taskBean");
var Q_storyActionBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_name = "", this.q_groupId = 0, this.q_type = 0, this.q_duration = 0,
			this.q_direction = 0, this.q_data = "", this.q_other = ""
	}
	return t
}();
__reflect(Q_storyActionBean.prototype, "Q_storyActionBean");
var Q_storyBean = function() {
	function t() {
		this.q_loadcheck = "", this.q_id = 0, this.q_name = "", this.q_type = 0, this.q_checkCondition = ""
	}
	return t
}();
__reflect(Q_storyBean.prototype, "Q_storyBean");
var Q_stoveBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_lv = 0, this.q_change = 0, this.q_name = "", this.q_pos_info = "", this.q_num =
			"", this.q_attribute = ""
	}
	return t
}();
__reflect(Q_stoveBean.prototype, "Q_stoveBean");
var Q_successBean = function() {
	function t() {
		this.q_success_id = 0, this.q_sucess_next_id = 0, this.q_success_stage = 0, this.q_success_star = 0, this.q_success_name =
			"", this.q_wing_lv = 0, this.q_inpower_lv = 0, this.q_strong_lv = 0, this.q_baby_lv = 0, this.q_smelt_lv = 0, this.q_skill_lv =
			0, this.q_build_lv = 0, this.q_add_attribute = "", this.q_card = ""
	}
	return t
}();
__reflect(Q_successBean.prototype, "Q_successBean");
var Q_surface_componentBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_job = 0, this.q_level = 0, this.q_sex = 0, this.q_quality = 0, this.q_active_type =
			0, this.q_active_condition = "", this.q_active_desc = "", this.q_attribute = "", this.q_tips_desc = "", this.q_zhuanshen =
			0, this.q_sort = 0, this.q_diamond_max = 0, this.q_diamond_desc = "", this.q_showtime = 0
	}
	return t
}();
__reflect(Q_surface_componentBean.prototype, "Q_surface_componentBean");
var Q_surfaceBean = function() {
	function t() {
		this.q_id = 0, this.q_type = 0, this.q_name = "", this.q_order = 0, this.q_open_limit = "", this.q_add_attribute =
			"", this.q_attribute_1 = "", this.q_attribute_2 = "", this.q_attribute_3 = "", this.q_special_desc = "", this.q_scene_show_id =
			"", this.q_anlges = "", this.q_effects = "", this.q_occlusion_behind = "", this.q_occlusion_show = "", this.q_child_type =
			0, this.q_show_id = "", this.q_panel_show_id = "", this.q_lock = 0, this.q_title_show_no = 0, this.q_color = "",
			this.q_mount_height = 0, this.q_head_hide = 0, this.q_footprint_time = 0, this.q_fightpower = 0
	}
	return t
}();
__reflect(Q_surfaceBean.prototype, "Q_surfaceBean");
var Q_task_activeBean = function() {
	function t() {
		this.q_id = 0, this.q_next_taskid = 0, this.q_taskid_name = "", this.q_finish_condition_ids = "", this.q_activite_ypoint =
			0, this.q_taskid_show_place = 0, this.q_id_tips = 0, this.q_panel_ID = ""
	}
	return t
}();
__reflect(Q_task_activeBean.prototype, "Q_task_activeBean");
var Q_tipBean = function() {
	function t() {
		this.q_id = 0, this.q_tipDesc = ""
	}
	return t
}();
__reflect(Q_tipBean.prototype, "Q_tipBean");
var Q_titleBean = function() {
	function t() {
		this.q_id = 0, this.q_addbuff = 0, this.q_showbuff = 0, this.q_addshowSkill = 0
	}
	return t
}();
__reflect(Q_titleBean.prototype, "Q_titleBean");
var Q_trainBean = function() {
	function t() {
		this.q_id = 0, this.q_next_id = 0, this.q_name = "", this.q_lv = 0, this.q_kind = 0, this.q_zhuanshen = 0, this.q_prop =
			"", this.q_consume = "", this.q_tiny_icon = ""
	}
	return t
}();
__reflect(Q_trainBean.prototype, "Q_trainBean");
var Q_transferBean = function() {
	function t() {
		this.q_tran_id = 0, this.q_mapdesc = "", this.q_tran_from_map = 0, this.q_tran_from_range = "", this.q_tran_to_map =
			0, this.q_tran_to_range = "", this.q_tran_icon = "", this.q_displaytrans = 0, this.q_tran_to_map_client = 0
	}
	return t
}();
__reflect(Q_transferBean.prototype, "Q_transferBean");
var Q_treasureBean = function() {
	function t() {
		this.q_id = 0, this.q_class = 0, this.q_Star = 0, this.q_add_attribute = "", this.q_num = "", this.q_exp = 0, this.q_icon_info =
			"", this.q_pos_info = "", this.q_skill_show = 0, this.q_des = ""
	}
	return t
}();
__reflect(Q_treasureBean.prototype, "Q_treasureBean");
var Q_turntableBean = function() {
	function t() {
		this.q_id = 0, this.q_turntable_id = 0, this.q_next_id = 0, this.q_get_order = 0, this.q_display_order = 0, this.q_reward =
			""
	}
	return t
}();
__reflect(Q_turntableBean.prototype, "Q_turntableBean");
var Q_vipBean = function() {
	function t() {
		this.q_vip_level = 0, this.q_vip_value = 0, this.q_vip_desc = "", this.q_personal_boss = "", this.q_personal_chat =
			0, this.q_personal_fb = 0, this.q_personal_title = "", this.q_personal_buff_atteck = 0, this.q_buff_value = 0, this
			.q_personal_time_revive = 0, this.q_personal_time_gold = 0, this.q_zhuanshengdan = 0, this.q_libao_vip = "", this.q_callbuynum =
			0, this.q_levelupbuynum = 0, this.q_expdan = 0, this.q_longysp = 0, this.q_xuanzsp = 0, this.q_maxmiem = 0, this.q_max_beishu =
			0, this.q_max_shop_reload = 0, this.q_max_boss = 0, this.q_goldbuynum = "", this.q_pet_bag_unite = 0, this.q_tafang_sweep =
			0, this.q_pack = 0, this.q_exp_fb = 0, this.q_cailiao_fb = 0, this.q_yewai_boss = 0, this.q_mijing_boss = 0, this.q_jjc =
			0, this.q_libao_buy = "", this.q_libao_jiage = 0
	}
	return t
}();
__reflect(Q_vipBean.prototype, "Q_vipBean");
var Q_ware_houseBean = function() {
	function t() {
		this.q_id = 0, this.q_item_id = 0, this.q_donate = "", this.q_exchange = ""
	}
	return t
}();
__reflect(Q_ware_houseBean.prototype, "Q_ware_houseBean");
var Q_yuanbao_turntableBean = function() {
	function t() {
		this.q_id = 0, this.q_turntable_id = 0, this.q_next_id = 0, this.q_get_order = 0, this.q_display_order = 0, this.q_reward =
			"", this.q_need_item = "", this.q_open = 0, this.q_finish = 0
	}
	return t
}();
__reflect(Q_yuanbao_turntableBean.prototype, "Q_yuanbao_turntableBean");
var Q_zone_mapBean = function() {
	function t() {
		this.q_id = 0, this.q_zone_type = 0, this.q_zone_client_type = 0, this.q_mapid = "", this.q_min_lv = 0, this.q_max_lv =
			0, this.q_min_metem_lv = 0, this.q_max_metem_lv = 0, this.q_need_item = "", this.q_times_cost_multiple = "", this.q_reward =
			"", this.q_cost = "", this.q_multiple = "", this.q_only_reward = "", this.q_show_item = "", this.q_open_zone = "",
			this.q_finish_zone = "", this.q_explain = "", this.q_music = "", this.q_addinto_condition = "", this.q_duplicate_name =
			"", this.q_can_stay_time = 0, this.q_complete_residence = 0, this.q_enter_cd = 0, this.q_max_num = 0, this.q_main_reward_desc =
			"", this.q_tips = "", this.q_remind = "", this.q_image = "", this.q_hook = 0, this.q_need_vip = 0, this.q_next_zone_id =
			0, this.q_daily_reward = "", this.q_zone_target = "", this.q_drop_get_mode = 0, this.q_guaji_button = 0
	}
	return t
}();
__reflect(Q_zone_mapBean.prototype, "Q_zone_mapBean");
var Q_achieveContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_achieveBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_achieveBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_achieveContainer.prototype, "Q_achieveContainer");
var Q_active_positionContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_active_positionBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_active_positionBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_active_positionContainer.prototype, "Q_active_positionContainer");
var Q_active_rewardsContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_active_rewardsBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_active_rewardsBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_active_rewardsContainer.prototype, "Q_active_rewardsContainer");
var Q_active_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_active_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_active_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_active_taskContainer.prototype, "Q_active_taskContainer");
var Q_activitiesContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_activitiesBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_activitiesBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_activitiesContainer.prototype, "Q_activitiesContainer");
var Q_activity_configContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_activity_configBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_activity_configBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_activity_configContainer.prototype, "Q_activity_configContainer");
var Q_advance_danContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_advance_danBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_advance_danBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_advance_danContainer.prototype, "Q_advance_danContainer");
var Q_advance_equipContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_advance_equipBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_advance_equipBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_advance_equipContainer.prototype, "Q_advance_equipContainer");
var Q_advanceContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_advanceBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_advanceBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_advanceContainer.prototype, "Q_advanceContainer");
var Q_alert_contentContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_alert_contentBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_alert_contentBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_alert_contentContainer.prototype, "Q_alert_contentContainer");
var Q_artifact_showContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_artifact_showBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_artifact_showBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_artifact_showContainer.prototype, "Q_artifact_showContainer");
var Q_artifact_suitContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_artifact_suitBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_artifact_suitBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_artifact_suitContainer.prototype, "Q_artifact_suitContainer");
var Q_artifact_upgradeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_artifact_upgradeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_artifact_upgradeBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_artifact_upgradeContainer.prototype, "Q_artifact_upgradeContainer");
var Q_artifactContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_artifactBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_artifactBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_artifactContainer.prototype, "Q_artifactContainer");
var Q_attributeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_attributeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_attributeBean, this.map, "q_attributeid", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_attributeContainer.prototype, "Q_attributeContainer");
var Q_auto_notifyContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_auto_notifyBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_auto_notifyBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_auto_notifyContainer.prototype, "Q_auto_notifyContainer");
var Q_bot_rewardContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_bot_rewardBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_bot_rewardBean, this.map, "q_zone_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_bot_rewardContainer.prototype, "Q_bot_rewardContainer");
var Q_buffContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_buffBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_buffBean, this.map, "q_buffID_q_grade", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_buffContainer.prototype, "Q_buffContainer");
var Q_cardkuContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_cardkuBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_cardkuBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_cardkuContainer.prototype, "Q_cardkuContainer");
var Q_challengeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_challengeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_challengeBean, this.map, "q_challenge_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_challengeContainer.prototype, "Q_challengeContainer");
var Q_characterContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_characterBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_characterBean, this.map, "q_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_characterContainer.prototype, "Q_characterContainer");
var Q_damage_specialContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_damage_specialBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_damage_specialBean, this.map, "q_damage_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_damage_specialContainer.prototype, "Q_damage_specialContainer");
var Q_desireContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_desireBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_desireBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_desireContainer.prototype, "Q_desireContainer");
var Q_dynamic_effectContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_dynamic_effectBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_dynamic_effectBean, this.map, "q_effect_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_dynamic_effectContainer.prototype, "Q_dynamic_effectContainer");
var Q_enter_buttonContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_enter_buttonBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_enter_buttonBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_enter_buttonContainer.prototype, "Q_enter_buttonContainer");
var Q_equip_fuseContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_equip_fuseBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_equip_fuseBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_equip_fuseContainer.prototype, "Q_equip_fuseContainer");
var Q_equip_introContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_equip_introBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_equip_introBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_equip_introContainer.prototype, "Q_equip_introContainer");
var Q_equip_masterContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_equip_masterBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_equip_masterBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_equip_masterContainer.prototype, "Q_equip_masterContainer");
var Q_equip_strengContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_equip_strengBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_equip_strengBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_equip_strengContainer.prototype, "Q_equip_strengContainer");
var Q_equipContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_equipBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_equipBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_equipContainer.prototype, "Q_equipContainer");
var Q_error_constContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_error_constBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_error_constBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_error_constContainer.prototype, "Q_error_constContainer");
var Q_fightpowerContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_fightpowerBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_fightpowerBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_fightpowerContainer.prototype, "Q_fightpowerContainer");
var Q_flopContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_flopBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_flopBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_flopContainer.prototype, "Q_flopContainer");
var Q_functionContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_functionBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_functionBean, this.map, "q_function_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_functionContainer.prototype, "Q_functionContainer");
var Q_gift_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_gift_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_gift_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_gift_taskContainer.prototype, "Q_gift_taskContainer");
var Q_giftContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_giftBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_giftBean, this.map, "q_gift_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_giftContainer.prototype, "Q_giftContainer");
var Q_globalContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_globalBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_globalBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_globalContainer.prototype, "Q_globalContainer");
var Q_guild_freedomContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_guild_freedomBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_guild_freedomBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_guild_freedomContainer.prototype, "Q_guild_freedomContainer");
var Q_guild_nameContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_guild_nameBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_guild_nameBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_guild_nameContainer.prototype, "Q_guild_nameContainer");
var Q_guild_skillContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_guild_skillBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_guild_skillBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_guild_skillContainer.prototype, "Q_guild_skillContainer");
var Q_guildContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_guildBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_guildBean, this.map, "q_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_guildContainer.prototype, "Q_guildContainer");
var Q_heraldryContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_heraldryBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_heraldryBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_heraldryContainer.prototype, "Q_heraldryContainer");
var Q_hide_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_hide_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_hide_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_hide_taskContainer.prototype, "Q_hide_taskContainer");
var Q_hongbaoContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_hongbaoBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_hongbaoBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_hongbaoContainer.prototype, "Q_hongbaoContainer");
var Q_internalstrengthContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_internalstrengthBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_internalstrengthBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_internalstrengthContainer.prototype, "Q_internalstrengthContainer");
var Q_itemContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_itemBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_itemBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_itemContainer.prototype, "Q_itemContainer");
var Q_jadeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_jadeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_jadeBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_jadeContainer.prototype, "Q_jadeContainer");
var Q_kun_skillContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_kun_skillBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_kun_skillBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_kun_skillContainer.prototype, "Q_kun_skillContainer");
var Q_level_configContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_level_configBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_level_configBean, this.map, "q_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_level_configContainer.prototype, "Q_level_configContainer");
var Q_limit_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_limit_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_limit_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_limit_taskContainer.prototype, "Q_limit_taskContainer");
var Q_link_rewarksContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_link_rewarksBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_link_rewarksBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_link_rewarksContainer.prototype, "Q_link_rewarksContainer");
var Q_link_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_link_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_link_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_link_taskContainer.prototype, "Q_link_taskContainer");
var Q_lucky_turntableContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_lucky_turntableBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_lucky_turntableBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_lucky_turntableContainer.prototype, "Q_lucky_turntableContainer");
var Q_ma_soulContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_ma_soulBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_ma_soulBean, this.map, "q_ma_soul_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_ma_soulContainer.prototype, "Q_ma_soulContainer");
var Q_main_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_main_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_main_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_main_taskContainer.prototype, "Q_main_taskContainer");
var Q_map_jumpContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_map_jumpBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_map_jumpBean, this.map, "q_jump_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_map_jumpContainer.prototype, "Q_map_jumpContainer");
var Q_mapContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_mapBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_mapBean, this.map, "q_map_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_mapContainer.prototype, "Q_mapContainer");
var Q_meridianContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_meridianBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_meridianBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_meridianContainer.prototype, "Q_meridianContainer");
var Q_metempsychosisContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_metempsychosisBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_metempsychosisBean, this.map, "q_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_metempsychosisContainer.prototype, "Q_metempsychosisContainer");
var Q_minerContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_minerBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_minerBean, this.map, "q_miner_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_minerContainer.prototype, "Q_minerContainer");
var Q_miningContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_miningBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_miningBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_miningContainer.prototype, "Q_miningContainer");
var Q_monsterContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_monsterBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_monsterBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_monsterContainer.prototype, "Q_monsterContainer");
var Q_moon_cardContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_moon_cardBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_moon_cardBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_moon_cardContainer.prototype, "Q_moon_cardContainer");
var Q_nation_warContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_nation_warBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_nation_warBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_nation_warContainer.prototype, "Q_nation_warContainer");
var Q_nationContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_nationBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_nationBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_nationContainer.prototype, "Q_nationContainer");
var Q_notify_constContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_notify_constBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_notify_constBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_notify_constContainer.prototype, "Q_notify_constContainer");
var Q_notifyContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_notifyBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_notifyBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_notifyContainer.prototype, "Q_notifyContainer");
var Q_npcContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_npcBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_npcBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_npcContainer.prototype, "Q_npcContainer");
var Q_output_introContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_output_introBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_output_introBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_output_introContainer.prototype, "Q_output_introContainer");
var Q_pet_classContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pet_classBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pet_classBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pet_classContainer.prototype, "Q_pet_classContainer");
var Q_pet_eggContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pet_eggBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pet_eggBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pet_eggContainer.prototype, "Q_pet_eggContainer");
var Q_pet_levelContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pet_levelBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pet_levelBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pet_levelContainer.prototype, "Q_pet_levelContainer");
var Q_pet_mouldContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pet_mouldBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pet_mouldBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pet_mouldContainer.prototype, "Q_pet_mouldContainer");
var Q_pet_showContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pet_showBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pet_showBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pet_showContainer.prototype, "Q_pet_showContainer");
var Q_petContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_petBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_petBean, this.map, "q_petID_q_grade", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_petContainer.prototype, "Q_petContainer");
var Q_pictureContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_pictureBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_pictureBean, this.map, "q_card_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_pictureContainer.prototype, "Q_pictureContainer");
var Q_playContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_playBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_playBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_playContainer.prototype, "Q_playContainer");
var Q_privilegeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_privilegeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_privilegeBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_privilegeContainer.prototype, "Q_privilegeContainer");
var Q_rank_configContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_rank_configBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_rank_configBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_rank_configContainer.prototype, "Q_rank_configContainer");
var Q_rank_rewardsContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_rank_rewardsBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_rank_rewardsBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_rank_rewardsContainer.prototype, "Q_rank_rewardsContainer");
var Q_raywingContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_raywingBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_raywingBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_raywingContainer.prototype, "Q_raywingContainer");
var Q_recharge_shopContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_recharge_shopBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_recharge_shopBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_recharge_shopContainer.prototype, "Q_recharge_shopContainer");
var Q_rechargeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_rechargeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_rechargeBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_rechargeContainer.prototype, "Q_rechargeContainer");
var Q_resources_backContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_resources_backBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_resources_backBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_resources_backContainer.prototype, "Q_resources_backContainer");
var Q_ringContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_ringBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_ringBean, this.map, "q_ring_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_ringContainer.prototype, "Q_ringContainer");
var Q_samsara_soulContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_samsara_soulBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_samsara_soulBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_samsara_soulContainer.prototype, "Q_samsara_soulContainer");
var Q_samsara_star_masterContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_samsara_star_masterBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_samsara_star_masterBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_samsara_star_masterContainer.prototype, "Q_samsara_star_masterContainer");
var Q_samsara_starContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_samsara_starBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_samsara_starBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_samsara_starContainer.prototype, "Q_samsara_starContainer");
var Q_samsaraContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_samsaraBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_samsaraBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_samsaraContainer.prototype, "Q_samsaraContainer");
var ItemTip = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.specialShow = function() {
			(121 == e._bean.q_type || 121 == e._bean.q_type || 3013901 == e._bean.q_id || 3013801 == e._bean.q_id) && (e._view
				.lblDes.textFlow = HtmlUtil.getHtmlStr(e._bean.q_equip_resource))
		}, e._itemId = 0, e._height = 251, e._width = 447, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("TipItemSkin"), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.setGradeBg(GridUtil.getGridGradeBg(-1)), this._grid.x = 0, this._grid.y = 0;
		var t = new egret.Rectangle(0, 0, 76, 76);
		this._grid.setIconSize(t, t), this._view.gridGroup.addChild(this._grid), this._grid.isShowTip = !1, this._grid.isShowDesc = !
			1, this.addChild(this._view), this._itemUseView = new ItemUseView, this._itemUseView.visible = !1, this._itemUseView
			.callback = new FunctionVO(this.close, this), this._view.addChild(this._itemUseView), this._mijiStudyBtn = new eui
			.Button, this._mijiStudyBtn.label = "学习技能", this._mijiStudyBtn.skinName = "ButtonSmallSkin", this._mijiStudyBtn.width =
			167, this._mijiStudyBtn.height = 61, this._mijiStudyBtn.visible = !1, this._view.addChild(this._mijiStudyBtn)
	}, e.prototype.close = function() {
		App.tip.hideTip(this)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.width = this._width, this._view.height = this._height, this._view.x = App
			.stage.stageWidth - this._width >> 1, this._view.y = App.stage.stageHeight - this._view.imgScale9Grid.height >> 1
	}, e.prototype.onClickThis = function(t) {}, e.prototype.show = function(t) {
		if (this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClickThis, this, this), TypeUtil.isNumber(
				t.data) ? (this._itemId = t.data, this._itemData = null) : (this._itemData = t.data, this._itemId = this._itemData
				.itemId), this._itemData && this._itemData.lostTime) {
			var e = this._itemData.lostTime - ServerTime.getServerTime();
			e > 0 ? (this._view.time.text = "有效时间：" + StringUtil.convertTime_4(e), this._view.time.textColor = 65280) : (this._view
				.time.text = "已失效", this._view.time.textColor = 16711680)
		} else this._view.time.text = "";
		if (this._bean = GameUtil.getItemConfigData(this._itemId), this._bean) {
			var i = GameUtil.getItemNameColor(this._itemId, !0);
			if (this._view.lblName.textColor = i, this._view.lblName.text = this._bean.q_name + (Config.isDebug ? "_" + this._itemId :
					""), this._grid.setData(this._itemId), this._view.lblNum.text = this._itemData ? this._itemData.count + "" : "1",
				this._view.lblLvl.text = this._bean.q_level + "", this._view.lblDes.textFlow = HtmlUtil.getHtmlStr(this._bean.q_describe),
				this.specialShow(), 99 == this._bean.q_type || 34 == this._bean.q_type || 43 == this._bean.q_type || 44 == this._bean
				.q_type || 45 == this._bean.q_type || 46 == this._bean.q_type || 47 == this._bean.q_type || 30 == this._bean.q_type ||
				88 == this._bean.q_type) {
				this._view.group1.visible = !0;
				var n = new BaseAttributeDataBean;
				n.convertAndAdd(GameUtil.getEquipConfigData(this._itemId).q_add_attribute_client), this._view.txtPro0.text = n.getStrByBaseAttributeBean(
					n), this._view.lblDes.y = this._view.group1.y + this._view.txtPro0.y + this._view.txtPro0.height + 5
			} else this._view.group1.visible = !1, this._view.lblDes.y = 181;
			this._view.imgScale9Grid.height = this._view.lblDes.y + this._view.lblDes.height + 25;
			var a = !0;
			46 == this._bean.q_id && (a = App.data.bagItemDataCenter.getItemCount(this._bean.q_id) >= 100 ? !0 : !1), !this._itemData ||
				1 != this._itemData.actionType || 1 != this._bean.q_use && 7 != this._bean.q_type && 8 != this._bean.q_type || (6 ==
					this._itemData.type ? (this._itemUseView.visible = !1, this._mijiStudyBtn.visible = !0, this._mijiStudyBtn.x =
						this._width - this._mijiStudyBtn.width >> 1, this._mijiStudyBtn.y = this._height + 72.5, this._view.imgScale9Grid
						.height += 200, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onStudySkill, this, this._mijiStudyBtn)
					) : 55 == this._itemData.type ? (this._mijiStudyBtn.visible = !1, 0 != this._itemData.lostTime && this._itemData
						.isLostTime && (this._itemUseView.x = this._width - this._itemUseView.width >> 1, this._itemUseView.y = this._view
							.imgScale9Grid.height, this._view.imgScale9Grid.height += 145, this._itemUseView.setData(this._itemData), this
							._itemUseView.addEvents(), this._itemUseView.visible = !0)) : a && (this._itemUseView.x = this._width - this._itemUseView
						.width >> 1, this._itemUseView.y = this._view.imgScale9Grid.height, this._view.imgScale9Grid.height += 145,
						this._itemUseView.setData(this._itemData), this._itemUseView.addEvents(), this._mijiStudyBtn.visible = !1, this
						._itemUseView.visible = !0)), this.resize()
		}
		this._view.icon2.y = this._view.icon1.y = this._view.imgScale9Grid.height, this._view.thebg.source =
			"common1_equipbg" + this._bean.q_default + "_png"
	}, e.prototype.onStudySkill = function(t) {
		for (var e, i = App.global.roles.roleList, n = new HashObject, a = -1, o = GameUtil.getItemConfigData(this._itemData
				.itemId).q_skill, r = GameUtil.getSkillConfigDataById(o).q_skillID, s = 0; s < i.length; s++) {
			n.clear(), e = App.data.skillCenter.getJobSkillList(i[s].job);
			for (var h = 0; h < e.length; h++) n.put(e[h].q_skillID_q_grade, e);
			if (n.has(o)) {
				a = i[s].roleIndex;
				break
			}
		}
		if (-1 != a) {
			var l = void 0,
				p = App.data.skillCenter.getSkill(r);
			p ? (l = p.level, 0 == l && (l = 1)) : l = 1, SkillCommandSender.sendC2S_StudySkillMessage(a, r, l)
		} else Notice.showNoticeTypeMsg(Notice.BOTTOM, "角色未开启")
	}, e.prototype.hide = function() {
		this._grid.setData(null), this._dispatcher.removeAllListeners(), this._itemUseView.visible = !1, this._mijiStudyBtn
			.visible = !1, this._height = 251
	}, e
}(TipStyleBase);
__reflect(ItemTip.prototype, "ItemTip");
var Q_shopContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_shopBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_shopBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_shopContainer.prototype, "Q_shopContainer");
var Q_skill_modelContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_skill_modelBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_skill_modelBean, this.map, "q_skillID_q_grade",
			this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_skill_modelContainer.prototype, "Q_skill_modelContainer");
var Q_specail_configContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_specail_configBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_specail_configBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_specail_configContainer.prototype, "Q_specail_configContainer");
var Q_state_lvContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_state_lvBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_state_lvBean, this.map, "q_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_state_lvContainer.prototype, "Q_state_lvContainer");
var Q_state_taskContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_state_taskBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_state_taskBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_state_taskContainer.prototype, "Q_state_taskContainer");
var Q_storyActionContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_storyActionBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_storyActionBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_storyActionContainer.prototype, "Q_storyActionContainer");
var Q_storyContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_storyBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_storyBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_storyContainer.prototype, "Q_storyContainer");
var Q_stoveContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_stoveBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_stoveBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_stoveContainer.prototype, "Q_stoveContainer");
var Q_successContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_successBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_successBean, this.map, "q_success_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_successContainer.prototype, "Q_successContainer");
var Q_surface_componentContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_surface_componentBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_surface_componentBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_surface_componentContainer.prototype, "Q_surface_componentContainer");
var Q_surfaceContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_surfaceBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_surfaceBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_surfaceContainer.prototype, "Q_surfaceContainer");
var Q_task_activeContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_task_activeBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_task_activeBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_task_activeContainer.prototype, "Q_task_activeContainer");
var Q_tipContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_tipBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_tipBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_tipContainer.prototype, "Q_tipContainer");
var Q_titleContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_titleBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_titleBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_titleContainer.prototype, "Q_titleContainer");
var Q_trainContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_trainBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_trainBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_trainContainer.prototype, "Q_trainContainer");
var Q_transferContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_transferBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_transferBean, this.map, "q_tran_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_transferContainer.prototype, "Q_transferContainer");
var RexueTaozhuangTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("HejiSkillSkin"), this.addChild(this._view), this._iconImg = UIMaker.getCImage(
			this, RoleHejiView, "", 97, 303, !1)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - 528 >> 1, this._view.y = Config.SCREEN_HEIGHT -
			660 >> 1
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		var e = App.data.characterCenter.rexueEquipsHash.get(App.global.characterData.selectindex1),
			i = e.length,
			n = 900800;
		i >= 8 ? n = 900808 : i >= 6 ? n = 900806 : i >= 4 ? n = 900804 : i >= 2 && (n = 900802);
		var a = App.config.q_equip_masterContainer.getDataBean(n);
		this._view.title_name.text = this._view.skilldes_txt.text = a.q_suit_name;
		for (var o = a.q_equip_icon_female.split(","), r = "", s = 0; s < o.length; s++) r = r + o[s] + "\n";
		if (this._view.skilldes2_txt.textFlow = HtmlUtil.getHtmlStr(r), this._view.hejiname0.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神剑</font>"), this._view.hejiname1.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神甲</font>"), this._view.hejiname7.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神盔</font>"), this._view.hejiname8.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神链</font>"), this._view.hejiname3.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神腕</font>"), this._view.hejiname5.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神戒</font>"), this._view.hejiname13.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神带</font>"), this._view.hejiname12.textFlow = HtmlUtil.getHtmlStr(
				"<font color='0x4D4D4D'>破天神靴</font>"), this._view.lalName2.text = "破天套装(" + i + "/8)", e && i > 0)
			for (var s = 0; i > s; s++) this._view["hejiname" + (e[s].pos - 8800)].textFlow = HtmlUtil.getHtmlStr(
				"<font color='0xeaf44b'>" + GameUtil.getEquipConfigData(e[s].itemID).q_name + "</font>")
	}, e
}(TipStyleBase);
__reflect(RexueTaozhuangTip.prototype, "RexueTaozhuangTip");
var Q_turntableContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_turntableBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_turntableBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_turntableContainer.prototype, "Q_turntableContainer");
var Q_vipContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_vipBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_vipBean, this.map, "q_vip_level", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_vipContainer.prototype, "Q_vipContainer");
var Q_ware_houseContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_ware_houseBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_ware_houseBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_ware_houseContainer.prototype, "Q_ware_houseContainer");
var Q_yuanbao_turntableContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_yuanbao_turntableBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_yuanbao_turntableBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_yuanbao_turntableContainer.prototype, "Q_yuanbao_turntableContainer");
var Q_zone_mapContainer = function() {
	function t() {
		this.list = [], this.map = {}, this.configName = ""
	}
	return t.prototype.load = function() {
		DataConfigUtils.instance.loadJsonFile("Q_zone_mapBean", this.onFinish, this)
	}, t.prototype.onFinish = function(t, e, i) {
		this.configName = t, DataConfigUtils.instance.build2(t, e, i, Q_zone_mapBean, this.map, "q_id", this.list)
	}, t.prototype.getDataBean = function(t) {
		var e = this.map[t];
		return e || DataConfigUtils.instance.notHaveBean(this.configName, t), e
	}, t.prototype.hasDataBean = function(t) {
		return this.map[t] ? !0 : !1
	}, t
}();
__reflect(Q_zone_mapContainer.prototype, "Q_zone_mapContainer");
var h5_engine;
! function(t) {
	var e = function() {
		function e() {}
		return Object.defineProperty(e, "loadCenter", {
			get: function() {
				return null == e.instance && (e.instance = new t.ResourceLoadCenter), e.instance
			},
			enumerable: !0,
			configurable: !0
		}), e.currentGameFps = 0, e
	}();
	t.EngineConfig = e, __reflect(e.prototype, "h5_engine.EngineConfig")
}(h5_engine || (h5_engine = {}));
var SurfaceTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("SurfaceTipSkin"), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = App.stage.stageWidth - 400 >> 1, this._view.y = App.stage.stageHeight -
			360 >> 1
	}, e.prototype.show = function(t) {
		var e = t.data;
		if (this._view.surfaceName.text = e.q_name, this._view.lblNum.text = App.data.bagItemDataCenter.getItemCount(e.q_id) +
			"", App.config.q_surface_componentContainer.hasDataBean(e.q_id)) {
			var i = App.config.q_surface_componentContainer.getDataBean(e.q_id);
			this._view.lblLvl.text = i.q_level + "", this._view.lblDes.text = i.q_tips_desc
		} else this._view.lblLvl.text = "1级", this._view.lblDes.text = "数据没有";
		this._view.fightPower_txt.text = FightPowerUtil.getFightPower([e.q_add_attribute]) + "", this._view.icon_img.source =
			ResPathUtil.getIcon(e.q_show_id, EnumImageType.SURFACE_100)
	}, e.prototype.hide = function() {}, e
}(TipStyleBase);
__reflect(SurfaceTip.prototype, "SurfaceTip");
var TextTip = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._width = 430, e._height = 350, e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._tipView = UIMaker.createViewBase("TextTipSkin"), this.addChild(this._tipView), this.scroll = new VScrollPanel(
			360, 375, TextTipRender, 8), this.scroll.move(10, 55, this._tipView)
	}, e.prototype.show = function(t) {
		var e = /br|<br>/gi,
			i = "\n",
			n = t.data[0],
			a = n.replace(e, i),
			o = a.split("\n");
		this.scroll.dataProvider = o, t.data[1] && (this._tipView.titlename_text.text = t.data[1]), this.resize()
	}, e.prototype.hide = function() {
		this.scroll.stopAnimation(), this.scroll.viewport && (this.scroll.viewport.scrollV = 0), this.scroll.removeAll()
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._height
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.resize = function() {
		t.prototype.resize.call(this), this._tipView.x = Config.SCREEN_WIDTH - 378 >> 1, this._tipView.y = Config.SCREEN_HEIGHT -
			445 >> 1
	}, e
}(TipStyleBase);
__reflect(TextTip.prototype, "TextTip");
var TextTipRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "TextTipRenderSkin", e.createChildren(), e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.dataChanged = function() {
		var t = this.data;
		null != t && (this.txtDesc.textFlow = HtmlUtil.getHtmlStr(t))
	}, e
}(ItemRenderer);
__reflect(TextTipRender.prototype, "TextTipRender");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._url = "NetLoader", t._isLoading = !1, t
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "url", {
			get: function() {
				return this._url
			},
			set: function(t) {
				var e = this;
				e._url != t && (e.clear(), e._url = null == t ? "NetLoader" : t, t && "" != t && TypeUtil.isString(t) && e.netLoad())
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "resType", {
			get: function() {
				return this._resType
			},
			set: function(t) {
				this._resType = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.clear = function() {
			var t = this;
			t.unNetLoad(), t._url = "NetLoader", t._vo = null, t._content = null
		}, Object.defineProperty(i.prototype, "data", {
			get: function() {
				return this._vo
			},
			set: function(t) {
				this._vo = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "content", {
			get: function() {
				return this._content
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netLoad = function() {
			var e = this;
			0 == e._isLoading && ("NetAvatarPart" != e._url && null != e._url ? (e._isLoading = !0, t.NetResourceManager.instance
				.getResource(e)) : GameLog.log("NetAvatarPart >> 加载路径有问题"))
		}, i.prototype.unNetLoad = function() {
			this._isLoading = !1, t.NetResourceManager.instance.delResource(this)
		}, Object.defineProperty(i.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.netComplete = function(t) {
			var e = this;
			e._content = t, e._netHandler && e._netHandler.netComplete()
		}, i.prototype.netProgress = function(t) {
			this._netHandler && this._netHandler.netProgress()
		}, i.prototype.netError = function(t) {
			this._netHandler && this._netHandler.netError()
		}, Object.defineProperty(i.prototype, "netHandler", {
			get: function() {
				return null == this._netHandler && (this._netHandler = new t.NetHandler), this._netHandler
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "ani", {
			get: function() {
				return this._content
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.dispose = function() {
			this._netHandler && (this._netHandler.dispose(), this._netHandler = null), this.clear(), e.prototype.dispose.call(
				this)
		}, i
	}(Dispose);
	t.NetLoader = e, __reflect(e.prototype, "h5_engine.NetLoader", ["INetResourceElement", "egret.IHashObject"])
}(h5_engine || (h5_engine = {}));
var VirtualRocker_v1 = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._ballRadius = 0, e._circleRadius = 0, e._centerX = 0, e._centerY = 0, e._crtDir = -1, e._angle = 0, e._isMove = !
			1, e.p1 = new egret.Point, e.p2 = new egret.Point, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._ball = new eui.Image, this._ball.source = RES.getRes("yg_01"), this._circle = new eui.Image, this._circle.source =
			RES.getRes("yg_02"), this._circleRadius = this._circle.source.textureHeight / 2, this._ballRadius = this._ball.source
			.textureHeight / 2, this._centerX = this._circleRadius, this._centerY = this._circleRadius, this._ball.x = this._centerX,
			this._ball.y = this._centerY, this.addChild(this._circle), this.addChild(this._ball)
	}, e.prototype.getDir = function() {
		return this._crtDir
	}, e.prototype.getAngle = function() {
		return this._angle
	}, e.prototype.getIsMove = function() {
		return this._isMove
	}, e.prototype.start = function(t) {
		this._touchTarget = t, this._touchTarget.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.onTouchBegin, this)
	}, e.prototype.stop = function() {
		this.parent && this.parent.removeChild(this), this.removeTouchEvent(), this._touchTarget.removeEventListener(egret.TouchEvent
			.TOUCH_BEGIN, this.onTouchBegin, this), this._touchTarget = null, this._crtDir = -1
	}, e.prototype.removeTouchEvent = function() {
		App.stage.removeEventListener(egret.TouchEvent.TOUCH_END, this.onTouchEnd, this), App.stage.removeEventListener(
			egret.TouchEvent.TOUCH_MOVE, this.onTouchMove, this)
	}, e.prototype.onTouchBegin = function(t) {
		this.parent || (this._touchID = t.touchPointID, this._isMove = !1, this.x = t.stageX - this._circleRadius, this.y =
			t.stageY - this._circleRadius, this._ball.x = this._centerX - this._ballRadius, this._ball.y = this._centerY -
			this._ballRadius, App.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.onTouchMove, this), App.stage.addEventListener(
				egret.TouchEvent.TOUCH_END, this.onTouchEnd, this), App.dispatcher.dispatchEvent(VirtualRockerEvent.START))
	}, e.prototype.onTouchEnd = function(t) {
		this._touchID == t.touchPointID && (this._crtDir = -1, this.parent && this.parent.removeChild(this), this.removeTouchEvent(),
			App.dispatcher.dispatchEvent(VirtualRockerEvent.END))
	}, e.prototype.onTouchMove = function(t) {
		if (this._touchID == t.touchPointID) {
			this.p1.x = this.x + this._circleRadius, this.p1.y = this.y + this._circleRadius, this.p2.x = t.stageX, this.p2.y =
				t.stageY;
			var e = egret.Point.distance(this.p1, this.p2);
			if (e >= 20 || this.parent) {
				null == this.parent && App.stage.addChild(this), this._isMove = !0;
				var i = Math.atan2(this.p2.y - this.p1.y, this.p2.x - this.p1.x);
				e <= this._circleRadius - this._ballRadius ? (this._ball.x = this._centerX - this._ballRadius + t.stageX - this.p1
					.x, this._ball.y = this._centerY - this._ballRadius + t.stageY - this.p1.y) : (this._ball.x = this._centerX -
					this._ballRadius + Math.cos(i) * (this._circleRadius - this._ballRadius), this._ball.y = this._centerY - this._ballRadius +
					Math.sin(i) * (this._circleRadius - this._ballRadius)), this._angle = i, this._crtDir = h5_engine.SceneType.getDretionByAngle(
					180 * i / Math.PI), this.dispatchDir()
			}
		}
	}, e.prototype.dispatchDir = function() {
		-1 != this._crtDir && App.dispatcher.dispatchEvent(VirtualRockerEvent.MOVE)
	}, e
}(egret.DisplayObjectContainer);
__reflect(VirtualRocker_v1.prototype, "VirtualRocker_v1", ["IVirtualRocker"]);
var VirtualRocker_v2 = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n.multX = 0, n.multY = 0, n.offset = 0, n._startPoint = new egret.Point, n._movePoint = new egret.Point, n._rockerRadius =
			0, n._barBtn = e, n._bgShape = i, n.init(), n
	}
	return __extends(e, t), e.prototype.init = function() {
		this._rockerRadius = this._bgShape.height / 2, this._barBtn.x = this._rockerRadius, this._barBtn.y = this._rockerRadius,
			this.addChild(this._bgShape), this.addChild(this._barBtn), this._restPoint = new egret.Point(this._barBtn.x, this._barBtn
				.y), this._barBtn.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.touchBeginHandler, this)
	}, e.prototype.touchBeginHandler = function(t) {
		this._startPoint.x = t.stageX, this._startPoint.y = t.stageY, this.stage.addEventListener(egret.TouchEvent.TOUCH_MOVE,
				this.touchMoveHandler, this), this.stage.addEventListener(egret.TouchEvent.TOUCH_CANCEL, this.cancelHandler, this),
			this.stage.addEventListener(egret.TouchEvent.TOUCH_END, this.cancelHandler, this), App.dispatcher.dispatchEvent(
				VirtualRockerEvent.START)
	}, e.prototype.touchMoveHandler = function(t) {
		this._movePoint.x = t.stageX, this._movePoint.y = t.stageY;
		var e = egret.Point.distance(this._startPoint, this._movePoint);
		if (e <= this._rockerRadius) this._barBtn.x = this._restPoint.x + this._movePoint.x - this._startPoint.x, this._barBtn
			.y = this._restPoint.y + this._movePoint.y - this._startPoint.y;
		else {
			var i = egret.Point.interpolate(this._movePoint, this._startPoint, this._rockerRadius / e);
			this._barBtn.x = i.x - this.x, this._barBtn.y = i.y - this.y
		}
		this.multX = (this._movePoint.x - this._startPoint.x) / e, this.multY = (this._movePoint.y - this._startPoint.y) /
			e, this.offset = e / this._rockerRadius;
		var n = Math.atan2(this._movePoint.y - this._startPoint.y, this._movePoint.x - this._startPoint.x);
		App.dispatcher.dispatchEvent(VirtualRockerEvent.MOVE, n)
	}, e.prototype.cancelHandler = function(t) {
		this.stage.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.touchMoveHandler, this), this.stage.removeEventListener(
				egret.TouchEvent.TOUCH_CANCEL, this.cancelHandler, this), this.stage.removeEventListener(egret.TouchEvent.TOUCH_END,
				this.cancelHandler, this), this._barBtn.x = this._restPoint.x, this._barBtn.y = this._restPoint.y, this.multX = 0,
			this.multY = 0, this.offset = 0, App.dispatcher.dispatchEvent(VirtualRockerEvent.END)
	}, e
}(egret.DisplayObjectContainer);
__reflect(VirtualRocker_v2.prototype, "VirtualRocker_v2");
var VirtualRockerEvent = function() {
	function t() {}
	return t.START = "VirtualRocke_start", t.MOVE = "VirtualRocke_move", t.END = "VirtualRocke_end", t
}();
__reflect(VirtualRockerEvent.prototype, "VirtualRockerEvent");
var CQScreenAdapter = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.calculateStageSize = function(t, e, i, n, a) {
		var o = e,
			r = i,
			s = n,
			h = a,
			l = 2,
			p = 1.659,
			c = 1.6,
			_ = i / e,
			d = !0;
		c > _ ? o = Math.round(i / p) : p > _ ? d = !1 : _ >= l && (r = Math.round(e * l));
		var u = o / s || 0;
		return d && (h = Math.round(r / u)), h % 2 != 0 && (h += 1), o % 2 != 0 && (o += 1), r % 2 != 0 && (r += 1), {
			stageWidth: s,
			stageHeight: h,
			displayWidth: o,
			displayHeight: r
		}
	}, e
}(egret.HashObject);
__reflect(CQScreenAdapter.prototype, "CQScreenAdapter", ["egret.sys.IScreenAdapter"]);
var ScreenAdapter_v1 = function() {
	function t() {}
	return t.prototype.calculateStageSize = function(t, e, i, n, a) {
		var o = {},
			r = e,
			s = i,
			h = n,
			l = a,
			p = e / h || 0,
			c = i / l || 0;
		switch (t) {
			case egret.StageScaleMode.EXACT_FIT:
				break;
			case egret.StageScaleMode.FIXED_HEIGHT:
				h = Math.round(e / c);
				break;
			case egret.StageScaleMode.FIXED_WIDTH:
				l = Math.round(i / p);
				break;
			case egret.StageScaleMode.NO_BORDER:
				p > c ? s = Math.round(l * p) : r = Math.round(h * c);
				break;
			case egret.StageScaleMode.SHOW_ALL:
				p > c ? r = Math.round(h * c) : s = Math.round(l * p);
				break;
			case egret.StageScaleMode.FIXED_NARROW:
				p > c ? h = Math.round(e / c) : l = Math.round(i / p);
				break;
			case egret.StageScaleMode.FIXED_WIDE:
				p > c ? l = Math.round(i / p) : h = Math.round(e / c);
				break;
			default:
				h = e, l = i
		}
		return h % 2 != 0 && (h += 1), l % 2 != 0 && (l += 1), r % 2 != 0 && (r += 1), s % 2 != 0 && (s += 1), o.displayWidth =
			r, o.displayHeight = s, o.stageWidth = h, o.stageHeight = l, o
	}, t
}();
__reflect(ScreenAdapter_v1.prototype, "ScreenAdapter_v1", ["egret.sys.IScreenAdapter"]);
var ScreenAdapter_v2 = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.calculateStageSize = function(t, e, i, n, a) {
		var o = e,
			r = i,
			s = n,
			h = a,
			l = !0,
			p = Config.isMobile,
			c = l || p ? 1.5 : 1.778,
			_ = i / e,
			d = !0;
		c > _ && (o = Math.round(i / c));
		var u = o / s || 0;
		return d && (h = Math.round(r / u)), s % 2 != 0 && (s += 1), h % 2 != 0 && (h += 1), o % 2 != 0 && (o += 1), r % 2 !=
			0 && (r += 1), {
				stageWidth: s,
				stageHeight: h,
				displayWidth: o,
				displayHeight: r
			}
	}, e
}(egret.HashObject);
__reflect(ScreenAdapter_v2.prototype, "ScreenAdapter_v2", ["egret.sys.IScreenAdapter"]);
var WarpetTip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("WarpetTipSkin"), this._grid = GridUtil.getGrid(SkillGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.move(30, 560, this._view), this._grid.isShowTip = !1, this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = App.stage.stageWidth - this._view.width >> 1, this._view.y = App.stage
			.stageHeight - this._view.height - 60 >> 1
	}, e.prototype.show = function(t) {
		var e = 0;
		e = TypeUtil.isNumber(t.data) ? t.data : t.data.itemId, this.warpetData = new WarpetData, this.warpetData.stateId =
			LongUtil.fromString(GameUtil.getItemConfigData(e).q_params), this.warpetData.warpetModelBean = App.config.q_warpetMouldContainer
			.getDataBean(this.warpetData.stateId), this.warpetData.state = 999, this.warpetData.showId = 100 * this.warpetData
			.stateId + 1, this.warpetData.showBean = App.config.q_warpetShowContainer.getDataBean(this.warpetData.showId),
			this.warpetData.petbean = App.config.q_petContainer.getDataBean(this.warpetData.showBean.q_petID_q_grade), this.warpetData
			.featureid = this.warpetData.petbean.q_featureid, this.showView()
	}, e.prototype.showView = function() {
		var t = App.config.q_warpetMouldContainer.getDataBean(this.warpetData.stateId);
		this.warpetData.getSkillBean();
		this._view.name_text.text = t.q_pet_name, this._view.name_text.textColor = GameUtil.getQualityColor(t.q_pet_star),
			this._view.jieshu.source = "warpet_mochong_c" + this.warpetData.jie + "_png";
		for (var e = 1; 6 >= e; e++) this._view["star" + e].visible = e <= t.q_pet_star;
		if (t.q_pet_star % 2 == 1 ? this._view.stargroup.x = 186 : this._view.stargroup.x = 166, this.addAvatarUI(this.warpetData
				.featureid), 999 == this.warpetData.state) {
			var i = App.config.q_skillModelContainer.getDataBean(LongUtil.fromString(this.warpetData.warpetModelBean.q_fixed_skill
				.split(",")[0]));
			this._grid.setData(i.q_skillID), this._view.skillname.text = i.q_skillName, this._view.desc_text.textFlow =
				HtmlUtil.getHtmlStr(i.q_desc), this._view.arrtext.textFlow = HtmlUtil.getHtmlStr("???<br>???<br>???")
		}
	}, e.prototype.addAvatarUI = function(t, e) {
		void 0 === e && (e = 3), null == this._avatar && (this._avatar = new CUIShowAvatar, this._avatar.x = 260, this._avatar
				.y = 385, this._view.addChild(this._avatar), this._avatar.aniDirType = 1, this._avatar.touchEnabled = !1, this._avatar
				.touchChildren = !1), this._avatar.visible = !0, this._avatar.dir = e, this._avatar.changeAvatarPartResource(
				AvatarPartType.BODY, ResPathUtil.getMapPetAvatarRes(t)), this.warpetData.warpetModelBean.q_pet_star > 4 && 1 ==
			this.warpetData.type ? this._avatar.changeAct(AvatarActionType.ACTION_TYPE_SKILL_ATK1, !1, !1) : (this._avatar.changeAct(
					AvatarActionType.ACTION_TYPE_UI, !0, !0), this._avatar.dir = h5_engine.SceneType.TOP, 2 == this.warpetData.type ?
				this._avatar.y = 435 : this._avatar.y = 385), this._avatar.playEndHanlder = new FunctionVO(this.endSkillAtk, this,
				this._avatar), this._avatar.play()
	}, e.prototype.endSkillAtk = function(t) {
		t.changeAct(AvatarActionType.ACTION_TYPE_UI, !0, !0), t.dir = h5_engine.SceneType.TOP, t.playEndHanlder = null
	}, e.prototype.hide = function() {
		this._avatar && this._avatar.dispose(), this._avatar = null, this._dispatcher.removeAllListeners()
	}, e
}(TipStyleBase);
__reflect(WarpetTip.prototype, "WarpetTip");
var MathUnit = function() {
	function t() {}
	return t.getTilesInALine = function(t, e, i, n) {
		var a = t,
			o = e,
			r = new Array,
			s = Math.abs(n - e) > Math.abs(i - t);
		if (s) {
			var h = t;
			t = e, e = h, h = i, i = n, n = h
		}
		t > i && (h = t, t = i, i = h, h = e, e = n, n = h);
		var l = i - t,
			p = Math.abs(n - e),
			c = l / 2,
			_ = 0,
			d = e;
		_ = n > e ? 1 : -1;
		for (var u = t; i >= u; u++) s ? r.push(new egret.Point(d, u)) : r.push(new egret.Point(u, d)), c -= p, 0 > c && (d +=
			_, c += l);
		return (r[0].x != a || r[0].y != o) && r.reverse(), r.shift(), r
	}, t.smoothstep = function(t, e, i) {
		if (t > i) return 0;
		if (i > e) return 1;
		var n = (i - t) / (e - t);
		return -2 * Math.pow(n, 3) + 3 * Math.pow(n, 2)
	}, t.getPointDirInLine = function(t, e, i, n, a, o) {
		var r = (i - a) / (n - o) * (e - o) + a;
		return r > t ? -1 : r == t ? 0 : 1
	}, t.getPointDirInLine_v2 = function(t, e, i, n, a, o) {
		var r = (n - o) * t + (a - i) * e + i * o - a * n;
		return r > 0 ? -1 : 0 == r ? 0 : 1
	}, t.getPointDirInLine_v3 = function(t, e, i, n, a, o) {
		var r = (a - i) * (e - n) - (o - n) * (t - i);
		return r > 0 ? -1 : 0 == r ? 0 : 1
	}, t.prototype.cosa_leng = function(t, e, i) {
		return Math.sqrt(t * t + e * e - 2 * t * e * Math.cos(i))
	}, t.rectInsetRound = function(t, e, i, n) {
		return !1
	}, t.distance_Map = function(t, e, i, n) {
		var a = h5_engine.MapConfig.MAP_NODE_WIDTH * (e - n) / h5_engine.MapConfig.MAP_NODE_HEIGHT;
		return Math.sqrt((t - i) * (t - i) + a * a)
	}, t.distance4_3D = function(t, e, i, n) {
		var a = 4 * (e - n) / 3;
		return Math.sqrt((t - i) * (t - i) + a * a)
	}, t.distance3_2D = function(t, e, i, n) {
		var a = 3 * (e - n) / 2;
		return Math.sqrt((t - i) * (t - i) + a * a)
	}, t.distance25D = function(t, e, i, n) {
		return Math.sqrt((t - i) * (t - i) + 4 * (e - n) * (e - n))
	}, t.randRange = function(t, e) {
		var i = Math.floor(Math.random() * (e - t + 1)) + t;
		return i
	}, t.degreesToRadin = function(t) {
		return t * Math.PI / 180
	}, t.radinToDegrees = function(t) {
		return 180 * t / Math.PI
	}, t.getDistributionPointOnPoint = function(e, i, n, a, o, r, s) {
		void 0 === r && (r = 3), void 0 === s && (s = -1);
		var h = new Array,
			l = o * (r - 1),
			p = .5 * l,
			c = t.radinToDegrees(t.atan2Angle(n, a, e, i));
		0 > c && (c += 360);
		var _ = c - p,
			d = -1 == s ? t.distancePoint2Point(e, i, n, a) : s,
			u = t.degreesToRadin(o),
			g = t.degreesToRadin(_);
		0 > g && (g += 2 * Math.PI);
		for (var f = 0; r > f; f++) {
			var m = g + f * u,
				v = new egret.Point;
			v.x = Math.cos(m) * d + e, v.y = Math.sin(m) * d + i, h.push(v)
		}
		return h
	}, t.distanceMinPoint = function(t, e, i, n) {
		var a = Math.abs(t - i),
			o = Math.abs(e - n);
		return a > o ? a : o
	}, t.distancePoint2Point = function(t, e, i, n) {
		var a = Math.sqrt(Math.pow(t - i, 2) + Math.pow(e - n, 2));
		return a
	}, t.get2LineIntersectionPoint = function(t, e, i, n) {
		var a = this.calParam(t, e),
			o = this.calParam(i, n),
			r = a.x * o.y - o.x * a.y;
		if (0 == r) return null;
		var s = (o.z * a.y - a.z * o.y) / r * 1e3 / 1e3,
			h = (a.z * o.x - o.z * a.x) / r * 1e3 / 1e3;
		return new egret.Point(s, h)
	}, t.calParam = function(t, e) {
		var i = e.y - t.y,
			n = t.x - e.x,
			a = (e.x - t.x) * t.y - (e.y - t.y) * t.x;
		0 > n ? (i *= -1, n *= -1, a *= -1) : 0 == n && 0 > i && (i *= -1, a *= -1);
		var o = new h5_engine.Point3D(i, n, a);
		return o
	}, t.line2Intersection = function(t, e, i, n) {
		var a = new egret.Point(0, 0);
		return Math.abs(e.y - t.y) + Math.abs(e.x - t.x) + Math.abs(n.y - i.y) + Math.abs(n.x - i.x) == 0 ? 0 : Math.abs(e.y -
			t.y) + Math.abs(e.x - t.x) == 0 ? 0 : Math.abs(n.y - i.y) + Math.abs(n.x - i.x) == 0 ? 0 : (e.y - t.y) * (i.x - n
			.x) - (e.x - t.x) * (i.y - n.y) == 0 ? 0 : (a.x = ((e.x - t.x) * (i.x - n.x) * (i.y - t.y) - i.x * (e.x - t.x) *
				(i.y - n.y) + t.x * (e.y - t.y) * (i.x - n.x)) / ((e.y - t.y) * (i.x - n.x) - (e.x - t.x) * (i.y - n.y)), a.y =
			((e.y - t.y) * (i.y - n.y) * (i.x - t.x) - i.y * (e.y - t.y) * (i.x - n.x) + t.y * (e.x - t.x) * (i.y - n.y)) / (
				(e.x - t.x) * (i.y - n.y) - (e.y - t.y) * (i.x - n.x)), (a.x - t.x) * (a.x - e.x) <= 0 && (a.x - i.x) * (a.x - n
				.x) <= 0 && (a.y - t.y) * (a.y - e.y) <= 0 && (a.y - i.y) * (a.y - n.y) <= 0 ? 1 : -1)
	}, t.selectMonsterInSectorFromVector = function(t, e, i, n, a) {
		var o = this.get_angle(t, i, e),
			r = egret.Point.distance(new egret.Point(i.x, i.y), new egret.Point(e.x, e.y));
		return n / 2 >= o && a >= r ? !0 : !1
	}, t.get_angle = function(t, e, i) {
		var n = 0,
			a = 3.1415926,
			o = t.subtract(i),
			r = e.subtract(i),
			s = o.x * r.x + o.y * r.y,
			h = Math.sqrt(o.x * o.x + o.y * o.y),
			l = Math.sqrt(r.x * r.x + r.y * r.y),
			p = s / (h * l);
		return -1 > p && p > -2 ? p = -1 : p > 1 && 2 > p && (p = 1), n = 180 * Math.acos(p) / a
	}, t.getDistanceByPointToLine = function(t, e, i, n) {
		return Math.abs((e * t.x + i * t.y + n) / (e * e + i * i))
	}, t.getDistanceByPointToLine_v2 = function(t, e, i) {
		return Math.abs((e * t.x - t.y + i) / (e * e + 1))
	}, t.getDistanceByCircleToLine = function(t, e, i, n) {
		var a = (t.x - e) * (t.x - e) + (t.y - i) * (t.y - i);
		return a > Math.pow(n, 2) ? 1 : a < Math.pow(n, 2) ? -1 : 0
	}, t.getPointInSector = function(e, i, n, a, o, r, s, h) {
		var l = !1,
			p = t.distancePoint2Point(e, i, s, h),
			c = t.distancePoint2Point(s, h, n, a);
		if (p > c) return !1;
		var _ = t.atan2Angle(n, a, s, h),
			d = t.atan2Angle(o, r, s, h),
			u = !1;
		0 > _ && (_ += 2 * Math.PI, d += 2 * Math.PI, u = !0), 0 > d && (d += 2 * Math.PI);
		var g = t.atan2Angle(e, i, s, h);
		return (u || 0 > g) && (g += 2 * Math.PI), g >= _ && d >= g && (l = !0), l
	}, t.atan2Angle = function(t, e, i, n, a) {
		void 0 === a && (a = 0);
		var o, r = e - n,
			s = t - i;
		return o = 0 == r && 0 == s ? Math.PI * (a / 4 - .5) : Math.atan2(r, s)
	}, t
}();
__reflect(MathUnit.prototype, "MathUnit");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e, i, n) {
			void 0 === e && (e = 0), void 0 === i && (i = 0), void 0 === n && (n = 0);
			var a = t.call(this) || this;
			return a._x = 0, a._y = 0, a._z = 0, a._x = e, a._y = i, a._z = n, a
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "z", {
			get: function() {
				return this._z
			},
			set: function(t) {
				this._z = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.reset = function() {
			this._x = 0, this._y = 0, this._z = 0
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this)
		}, e
	}(Dispose);
	t.Point3D = e, __reflect(e.prototype, "h5_engine.Point3D")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._desending = !0, e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._arr = new Array, this._compareFun = this.compares
		}, Object.defineProperty(e.prototype, "desending", {
			set: function(t) {
				this._desending = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.put = function(t) {
			var e = this,
				i = e._arr.length;
			if (1 > i) return void e._arr.push(t);
			for (var n = 0, a = i - 1; i > 1;) {
				var o = n + i / 2 >> 0,
					r = e._compareFun(t, e._arr[o]);
				switch (r) {
					case -1:
						n = o;
						break;
					case 0:
						return void e._arr.splice(o, 0, t);
					case 1:
						a = o
				}
				i = a - n
			}
			return r = e._compareFun(t, e._arr[n]), 1 == r || 0 == r ? void e._arr.splice(n, 0, t) : (r = e._compareFun(t, e._arr[
				a]), 1 == r || 0 == r ? void e._arr.splice(a, 0, t) : void e._arr.splice(a + 1, 0, t))
		}, Object.defineProperty(e.prototype, "key", {
			set: function(t) {
				null != t && "" != t && (this._key = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "compareWitchNum", {
			set: function(t) {
				t && (this._compareFun = this.cwitchNum)
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.cwitchNum = function(t, e) {
			var i = t - e;
			return this._desending || (i *= -1), 0 > i ? -1 : i > 0 ? 1 : 0
		}, e.prototype.compares = function(t, e) {
			var i = this,
				n = t[i._key] - e[i._key];
			return i._desending || (n *= -1), 0 > n ? -1 : n > 0 ? 1 : 0
		}, e.prototype.pop = function() {
			return this._arr.pop()
		}, e.prototype.shift = function() {
			return this._arr.shift()
		}, e.prototype.getArray = function() {
			return this._arr
		}, e.prototype.clear = function() {
			this._arr.length = 0
		}, e.prototype.rePlaceArr = function(t, e, i) {
			void 0 === e && (e = !0), void 0 === i && (i = "");
			var n = this;
			if (null == t || t.length < 2) return t;
			(null == i || "" == i) && (n._compareFun = n.cwitchNum), n.desending = e, n.clear();
			for (var a = t.length, o = 0; a > o; o++) {
				var r = t[o];
				n.put(r)
			}
			return t = n.getArray()
		}, e
	}(Dispose);
	t.Arrange = e, __reflect(e.prototype, "h5_engine.Arrange")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._version = 0, t.cool = [], t.sqrt_2 = Math.SQRT2, t
		}
		return __extends(i, e), i.findPath = function(t, e) {
				return void 0 === e && (e = i.MANHATTAN), null == t || null == t.startNode || null == t.endNode ? null : (null ==
					i._instance && (i._instance = new i), i._instance.hasPath(t, e))
			}, Object.defineProperty(i, "cool", {
				get: function() {
					return i._instance ? i._instance.cool : null
				},
				enumerable: !0,
				configurable: !0
			}), i.prototype.hasPath = function(e, n) {
				void 0 === n && (n = i.MANHATTAN);
				var a = this,
					o = egret.getTimer();
				switch (i._vistedNum = 0, a._visitedHash = {}, null == a._arrange && (a._arrange = new t.Arrange), a._arrange.clear(),
					a._arrange.key = "h", n) {
					case i.MANHATTAN:
						a._findFun = a.manhattan;
						break;
					case i.DIAGONAL:
						a._findFun = a.diagonal;
						break;
					case i.EUCLIDIAN:
						a._findFun = a.euclidian
				}
				a._startNode = e.startNode, a._endNode = e.endNode;
				var r = a._startNode;
				r.f = 0, r.g = r.h = 0;
				for (var s = e.col - 1, h = e.row - 1, l = e.nodeArray, p = 0, c = 0; r != a._endNode;) {
					var _ = r.x - 1,
						d = r.x + 1,
						u = r.y - 1,
						g = r.y + 1;
					0 > _ && (_ = 0), d > s && (d = s), 0 > u && (u = 0), g > h && (g = h);
					for (var f = _; d >= f; f++)
						for (var m = u; g >= m; m++) {
							i._vistedNum++;
							var v = l[m][f];
							if (null != v && v.walkAble && v.roleBlock && v != r) {
								var y = v.x != r.x && v.y != r.y,
									E = y ? i.F_DEGRESS_45 : i.F_DEGRESS_90,
									C = r.f + E;
								a._visitedHash[v.hashCount] ? (p++, v.f > C && (v.f = C, v.h = v.f + v.g, v.parent = r)) : (c++, a._visitedHash[
									v.hashCount] = 1, v.f = C, v.g = a._findFun(v), v.h = v.f + v.g, v.parent = r, a._arrange.put(v))
							}
						}
					if (r = a._arrange.pop(), null == r) return null
				}
				for (var b = []; r != a._startNode;) b.push(r), r = r.parent;
				b.push(r);
				egret.getTimer() - o;
				return i.ProfectPath && (b = i.profect(b)), b
			}, i.profect = function(t) {
				function e(t) {
					return 10 * (t.y - o.y) + (t.x - o.x)
				}
				if (null == t || t.length < 3) return t;
				var i, n, a = [],
					o = t[0],
					r = e(t[1]),
					s = 0;
				a.push(o);
				for (var h = 0, l = 1; l < t.length; l++) n = t[l], s = e(n), s != r ? (h++, i && a.push(i), i = n, r = s) : i = n,
					o = n;
				return a.push(i), a
			}, i.prototype.euclidian = function(t) {
				var e = this._endNode.x - t.x,
					i = this._endNode.y - t.y;
				return e * e + i * i
			}, i.prototype.diagonal = function(t) {
				var e = this,
					i = e._endNode.x - t.x,
					n = e._endNode.y - t.y;
				0 > i && (i *= -1), 0 > n && (n *= -1);
				var a = n > i ? i : n;
				return a * e.sqrt_2 + (i + n - 2 * a)
			}, i.prototype.manhattan = function(t) {
				var e = this._endNode.x - t.x,
					i = this._endNode.y - t.y;
				return 0 > e && (e *= -1), 0 > i && (i *= -1), e + i
			}, i.MANHATTAN = 0, i.DIAGONAL = 1, i.EUCLIDIAN = 3, i.F_DEGRESS_45 = 1.4, i.F_DEGRESS_90 = 1, i.ProfectPath = !1,
			i._vistedNum = 0, i
	}(Dispose);
	t.Astart = e, __reflect(e.prototype, "h5_engine.Astart")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._closeDict = new HashMap, this._waitList = new Array, this._pathList = new Array
		}, e.prototype.setMapData = function(t) {
			this.resloveMapData(t)
		}, e.prototype.startSeach = function() {
			var t = this;
			if (t._startMapID == t._endMapID) {
				var i = {};
				return i.mapid = t._endMapID, t._endPoint ? i.p = t._endPoint.clone() : i.p = null, t._mapData[t._endMapID] && (i
					.type = -1, i.nextMapid = t._endMapID), [i]
			}
			var n = t._startMapID + e.spliceSign + t._endMapID,
				a = e._seachPathDict.get(n);
			if (a) {
				var o = a[a.length - 1];
				return o.mapid = t._endMapID, t._endPoint ? o.p = t._endPoint.clone() : o.p = null, t._mapData[t._endMapID] && (o
					.mapName = t._mapData[t._endMapID].mapName, o.type = t._mapData[t._endMapID].formMapPathType, o.nextMapid = t._endMapID
				), a
			}
			var r = t._mapData[t._startMapID];
			return null == r ? [] : (r.parentNode = null, r.formMapPathPoint = null, t._searchEndMapNode = null, t._closeDict.put(
				r, !0), t.BFSSeach(r), t.sortAndGetPahPoint())
		}, e.prototype.setStartNode = function(t, e) {
			this._startMapID = t, this._startPoint = e
		}, e.prototype.setEndNode = function(t, e) {
			var i = this;
			i._endMapID = t, e ? i._endPoint = e : i._endPoint = null
		}, e.prototype.clear = function() {
			var t = this;
			t._pathList = new Array, t._waitList = new Array, t._closeDict = new HashMap, t._searchEndMapNode = null
		}, e.prototype.dispose = function() {
			var t = this;
			t._searchEndMapNode = null, t._endPoint = null, t._startPoint = null, t._closeDict = null, t._pathList = null, t._waitList =
				null, t._mapData = null
		}, e.prototype.resloveMapData = function(t) {
			var e = {};
			for (var a in t) {
				var o = t[a],
					r = o.mapid.toString(),
					s = o.mapName,
					h = o.targetMapid.toString(),
					l = (o.targetMapName, o.X),
					p = o.Y,
					c = 0,
					_ = e[r];
				_ || (_ = new i, e[r] = _), _.mapid = r, _.mapName = s;
				var d = new n;
				d.mapid = h, d.p = new egret.Point(l, p), d.type = c, _.nextmap.push(d)
			}
			this._mapData = e
		}, e.prototype.sortAndGetPahPoint = function() {
			var t = this;
			if (t.setPathData(t._searchEndMapNode), 0 == t._pathList.length) return null;
			var i = t._pathList.reverse(),
				n = t._startMapID + e.spliceSign + t._endMapID;
			0 == e._seachPathDict.has(n) && e._seachPathDict.put(n, i);
			var a = {};
			a.mapid = t._endMapID, a.nextMapid = t._endMapID, t._endPoint ? a.p = t._endPoint.clone() : a.p = null;
			var o = t._mapData[t._endMapID];
			return o && (a.mapName = o.mapName, a.type = o.formMapPathType, t.clearNode(o)), i.push(a), i
		}, e.prototype.setPathData = function(t) {
			if (t && t.parentNode) {
				var e = t.parentNode,
					i = {};
				i.mapid = e.mapid, i.mapName = e.mapName, i.p = t.formMapPathPoint.clone(), i.type = t.formMapPathType, i.nextMapid =
					t.mapid, this._pathList.push(i), this.clearNode(t), this.setPathData(e)
			}
		}, e.prototype.clearNode = function(t) {
			t.formMapPathType = -1, t.formMapPathPoint = null, t.parentNode = null
		}, e.prototype.BFSSeach = function(t) {
			for (var e = this, n = 0; n < t.nextmap.length; n++) {
				var a = t.nextmap[n],
					o = a.mapid.toString();
				if (o == e._endMapID) return e._searchEndMapNode = e._mapData[o], null == e._searchEndMapNode && (e._searchEndMapNode =
					new i), e._searchEndMapNode.parentNode = t, e._searchEndMapNode.formMapPathPoint = a.p, void(e._searchEndMapNode
					.formMapPathType = a.type);
				var r = e._mapData[o];
				r && e._closeDict.has(r) && (r.parentNode = t, r.formMapPathPoint = a.p, r.formMapPathType = a.type, e._waitList.push(
					r), e._closeDict.put(r, !0))
			}
			if (e._waitList.length > 0) {
				var s = e._waitList.shift();
				e.BFSSeach(s)
			}
		}, e._seachPathDict = new HashMap, e.spliceSign = "$", e
	}(Dispose);
	t.BFSMapRoadSeach = e, __reflect(e.prototype, "h5_engine.BFSMapRoadSeach");
	var i = function() {
		function t() {
			this.formMapPathType = -1, this.nextmap = new Array
		}
		return t
	}();
	__reflect(i.prototype, "MapNodeData");
	var n = function() {
		function t() {
			this.type = -1
		}
		return t
	}();
	__reflect(n.prototype, "MapDoorData")
}(h5_engine || (h5_engine = {}));
var WeaponSoulSkilltip = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this._view = UIMaker.createViewBase("WeaponSoulSkillTipSkin"), this.addChild(this._view)
	}, e.prototype.resize = function() {
		t.prototype.resize.call(this), this._view.x = Config.SCREEN_WIDTH - 474 >> 1, this._view.y = Config.SCREEN_HEIGHT -
			649 >> 1
	}, e.prototype.hide = function() {
		this.skillIcon && (this.skillIcon.dispose(), this.skillIcon = null), t.prototype.hide.call(this)
	}, e.prototype.show = function(t) {
		var e = t.data.id,
			i = t.data.type,
			n = 0;
		if (0 == e) this._view.currdes_txt.text = "还未激活技能", n = Number(GameUtil.getEquipMasterBean(App.data.weaponSoulCenter()
				._currTzObj[i]).q_suit_skill), this._view.nextdes_txt1.text = "武魂所有部位等级达到1", this._view.nextdes_txt0.text =
			GameUtil.getSkillConfigDataById(n).q_tips_desc;
		else {
			var a = GameUtil.getEquipMasterBean(e);
			n = Number(a.q_suit_skill), this._view.currdes_txt.text = GameUtil.getSkillConfigDataById(n).q_tips_desc;
			var o = 6e5 + 1e3 * i + GameUtil.getEquipMasterBean(e).q_level - GameUtil.getEquipMasterBean(e).q_level % 10 + 10;
			App.config.q_equip_masterContainer.hasDataBean(o) ? (this._view.nextdes_txt1.text = "武魂所有部位等级达到" + GameUtil.getEquipMasterBean(
				o).q_level, this._view.nextdes_txt0.text = GameUtil.getSkillConfigDataById(Number(GameUtil.getEquipMasterBean(o)
				.q_suit_skill)).q_tips_desc, this._view.nextdes_txt0.visible = !0) : (this._view.nextdes_txt1.text = "技能已满级",
				this._view.nextdes_txt0.visible = !1)
		}
		var r = GameUtil.getSkillConfigDataById(n);
		this._view.name_txt.text = r.q_skillName, this.skillIcon = UIMaker.getCImage(this._view, RoleHejiView, ResPathUtil.getIcon(
			r.q_small_icon + "", "skill/80", ".jpg"), 205, 20, !1)
	}, e
}(TipStyleBase);
__reflect(WeaponSoulSkilltip.prototype, "WeaponSoulSkilltip");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.DisplayObject);
	t.GDisplayObject = e, __reflect(e.prototype, "h5_engine.GDisplayObject", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var Notice = function() {
	function t() {}
	return t.showNoticeTypeMsg = function(e, i, n, a, o, r) {
			void 0 === n && (n = 1), void 0 === a && (a = !0), void 0 === o && (o = null), void 0 === r && (r = 0), 0 != (e &
				this.LEFT) && App.dispatcher.dispatchEvent(ChatEvent.PERSON_NOTICE, EnumChatTypes.CHANNEL_SYSYTEM, i), 0 != (e &
				this.GUILD) && App.dispatcher.dispatchEvent(ChatEvent.PERSON_NOTICE, EnumChatTypes.CHANNEL_UNION, i), 0 != (e &
				this.GMCMD) && App.dispatcher.dispatchEvent(ChatEvent.PERSON_NOTICE, EnumChatTypes.CHANNEL_LABA, i), 0 != (e &
				this.TOP) && this.showTopMessage(i, t.TOP_COLOR, n), 0 != (e & this.SYSTEMNOTICE) && this.showSystemMessage(i, t.TOP_COLOR,
				n), 0 != (e & this.MIDDLE) && this.showMiddleMessage(i), 0 != (e & this.BOTTOM) ? this.showBottomMessage(i, t.BG_COLOR,
				0, r) : 0 != (e & this.MOUSE) && this.showMousePosMessage(i, t.MOUSE_COLOR, o)
		}, t.show = function(e) {
			for (var i = [], n = 1; n < arguments.length; n++) i[n - 1] = arguments[n];
			var a = App.config.q_notify_clientContainer.getDataBean(e);
			if (null == a) return void Alert.show("在客户端信息表q_notify_client.json中找不到 id= " + e + " 的数据");
			var o = a.q_foreign;
			(null == o || "" == o) && (o = a.q_Desc);
			var r = a.q_bottom_icon;
			null != i && i.length > 0 && (o = StringUtil.substitute(o, i)), t.showTip(o, a.q_type, a.q_color, r)
		}, t.showTip = function(e, i, n, a) {
			void 0 === a && (a = 0);
			var o = t.getContentColor(n);
			switch (i) {
				case t.TOP:
					t.showTopMessage(e, o);
					break;
				case t.MIDDLE:
					t.showMiddleMessage(e, o);
					break;
				case t.BOTTOM:
					t.showBottomMessage(e, o, 0, a);
					break;
				case t.MOUSE:
					t.showMousePosMessage(e, o)
			}
		}, t.getContentColor = function(e) {
			if (void 0 === e && (e = 0), null == t._colorJsonAry) {
				var i = GameUtil.getGlobalConfigData(51),
					n = i.q_string_value;
				t._colorJsonAry = StringUtil.JsonParse(n)
			}
			if (t._colorHash[e]) return t._colorHash[e];
			for (var a = 0; a < t._colorJsonAry.length; a++)
				if (e == t._colorJsonAry[a].type) {
					var o = t._colorJsonAry[a].color;
					t._colorHash[e] = parseInt("0x" + o.substr(1));
					break
				} return t._colorHash[e]
		}, t.showTopMessage = function(e, i, n) {
			void 0 === i && (i = t.TOP_COLOR), void 0 === n && (n = 1), null == this._topMessage && (this._topMessage = new TopMessage(
					new FunctionVO(this.hideTopMessage, this)), App.layer.messageLayer.addChild(this._topMessage), this._topMessage.show()),
				this._topMessage.addMessage(e, i, t.TOP), this.resize()
		}, t.resize = function() {
			this._topMessage && (this._topMessage.x = Config.SCREEN_WIDTH - this._topMessage.width >> 1), this._SystemMessage &&
				(this._SystemMessage.x = Config.SCREEN_WIDTH - this._SystemMessage.width >> 1)
		}, t.showHongbao = function() {
			null == this._hongbao && (this._hongbao = new HongBaoView, this._hongbao.name = "HongBaoView", App.layer.moduleLayer
				.addChild(this._hongbao)), this._hongbao.show(), this._hongbao.visible = !(App.panel.getPanelNum() > 0)
		}, t.hidehongbao = function() {
			this._hongbao && (this._hongbao.hide(), this._hongbao = null)
		}, t.showKunHongbao = function() {
			null == this._kunhongbao && (this._kunhongbao = new KunHongBaoView, App.layer.moduleLayer.addChild(this._kunhongbao)),
				this._kunhongbao.show()
		}, t.hideKunhongbao = function() {
			this._kunhongbao && (this._kunhongbao.hide(), this._kunhongbao = null)
		}, t.hideTopMessage = function() {
			this._topMessage && (this._topMessage.hide(), this._topMessage.dispose(), this._topMessage = null)
		}, t.showSystemMessage = function(e, i, n) {
			void 0 === i && (i = t.TOP_COLOR), void 0 === n && (n = 1), null == this._SystemMessage && (this._SystemMessage =
				new SystemMessage(new FunctionVO(this.hideSystemMessage, this)), App.layer.messageLayer.addChild(this._SystemMessage),
				this._SystemMessage.show()), this._SystemMessage.addMessage(e, i, t.SYSTEMNOTICE), this.resize()
		}, t.hideSystemMessage = function() {
			this._SystemMessage && (this._SystemMessage.hide(), this._SystemMessage.dispose(), this._SystemMessage = null)
		}, t.showMiddleMessage = function(e, i) {
			void 0 === i && (i = t.MIDDLE_COLOR), null == this._middleMessage && (this._middleMessage = new MiddleMessageView),
				this._middleMessage.showMiddleMessage(e, i)
		}, t.showBottomMessage = function(e, i, n, a) {
			if (void 0 === i && (i = t.BOTTOM_COLOR), void 0 === n && (n = 0), void 0 === a && (a = 0), App.layer) {
				if (n > 0) {
					var o = Number(this._tempHash.get(e)),
						r = egret.getTimer();
					if (o > 0) {
						var s = r - o;
						if (n > s) return
					}
					this._tempHash.put(e, r)
				}
				null == this._bottomMessage && (this._bottomMessage = new BottomMessageView), App.layer.messageLayer.contains(this
					._bottomMessage) || App.layer.messageLayer.addChild(this._bottomMessage), this._bottomMessage.show(e, i, a)
			}
		}, t.showRechangeMessage = function(t, e, i, n) {
			if (void 0 === i && (i = 0), void 0 === n && (n = 0), App.layer) {
				if (i > 0) {
					var a = Number(this._tempHash.get(t)),
						o = egret.getTimer();
					if (a > 0) {
						var r = o - a;
						if (i > r) return
					}
					this._tempHash.put(t, o)
				}
				null == this._rechangeMessage && (this._rechangeMessage = new RechangeTipView), App.layer.messageLayer.contains(
					this._rechangeMessage) || App.layer.messageLayer.addChild(this._rechangeMessage), this._rechangeMessage.show(t,
					e, n)
			}
		}, t.showRechange1Message = function(t, e, i, n) {
			void 0 === i && (i = null), void 0 === n && (n = !0), this._rechangeMsgAry.push([t, e]), null == this._loopId && (
				this._loopId = App.timer.doTimeLoop(this, 100, this.loopRechangeMsg, [i], !1))
		}, t.showLegendView = function(t, e) {
			void 0 === e && (e = !0), this._legendAry.push({
				id: t,
				bol: e
			}), null == this._loopId && (this._loopId = App.timer.doTimeLoop(this, 2e3, this.loopLegendView, [], !1))
		}, t.showMousePosMessage = function(e, i, n, a) {
			void 0 === i && (i = t.MOUSE_COLOR), void 0 === n && (n = null), void 0 === a && (a = !0), a ? (this._mouseMsgAry.push(
				[e, i]), null == this._loopId && (this.loopShowMouseMsg(n), this._loopId = App.timer.doTimeLoop(this, 200, this.loopShowMouseMsg,
				[n]))) : (null == this._mousePosMessage && (this._mousePosMessage = new MousePosMessageView), this._mousePosMessage
				.showMousePosMessage(e, i))
		}, t.showLeftMessage = function(e, i, n, a) {
			void 0 === i && (i = t.MOUSE_COLOR), void 0 === n && (n = null), void 0 === a && (a = !0), a ? (this._leftMsgAry.push(
				[e, i]), null == this._loopId && (this.loopShowLeftMsg(n), this._loopId = App.timer.doTimeLoop(this, 100, this.loopShowLeftMsg,
				[n]))) : (null == this._leftMessage && (this._leftMessage = new LeftMessageView), this._leftMessage.showLeftPosMessage(
				e, i))
		}, t.loopShowLeftMsg = function(t) {
			if (0 == this._leftMsgAry.length) this._loopId && (App.timer.clearTimer(this._loopId, this), this._loopId = null);
			else {
				var e = this._leftMsgAry.shift(),
					i = e[0],
					n = e[1],
					a = this.getLeftMessage();
				a.showLeftPosMessage(i, n)
			}
		}, t.loopShowMouseMsg = function(t) {
			if (0 == this._mouseMsgAry.length) null != this._loopId && (App.timer.clearTimer(this._loopId, this), this._loopId =
				null);
			else {
				var e = this._mouseMsgAry.shift(),
					i = e[0],
					n = e[1],
					a = this.getMousePosMessage();
				a.showMousePosMessage(i, n)
			}
		}, t.loopRechangeMsg = function() {
			if (0 == this._rechangeMsgAry.length) null != this._loopId && (App.timer.clearTimer(this._loopId, this), this._loopId =
				null);
			else {
				var t = this._rechangeMsgAry.shift(),
					e = t[0],
					i = t[1];
				null == this._rechangeMessage1 && (this._rechangeMessage1 = new RechangeTipView1), App.layer.mainLayer.contains(
					this._rechangeMessage1) || App.layer.mainLayer.addChildAt(this._rechangeMessage1, 0), this._rechangeMessage1.show(
					e, i)
			}
		}, t.loopLegendView = function() {
			if (0 == this._legendAry.length) null != this._loopId && (App.timer.clearTimer(this._loopId, this), this._loopId =
				null);
			else {
				var t = this._legendAry.shift();
				null == this._legendView && (this._legendView = new LegendItemGetNoticeView), App.layer.tipLayer.contains(this._legendView) ||
					App.layer.tipLayer.addChildAt(this._legendView, 0), this._legendView.show(t.id, t.bol)
			}
		}, t.getrechangeMessage = function() {
			return this._rechangeMessagePool.length > 0 ? this._rechangeMessagePool.pop() : new RechangeTipView1
		}, t.getMousePosMessage = function() {
			return this._mousePosMessagePool.length > 0 ? this._mousePosMessagePool.pop() : new MousePosMessageView
		}, t.getLeftMessage = function() {
			return this._LeftMessagePool.length > 0 ? this._LeftMessagePool.pop() : new LeftMessageView
		}, t.setrechangeMessagePool = function(t) {
			this._rechangeMessagePool.push(t)
		}, t.setMousePosMessagePool = function(t) {
			this._mousePosMessagePool.push(t)
		}, t.setLeftMessagePool = function(t) {
			this._LeftMessagePool.push(t)
		}, t.GUIDE = 0, t.LEFT = 1, t.RIGHT = 2, t.TOP = 4, t.MIDDLE = 8, t.MOUSE = 16, t.BOTTOM = 32, t.BUFF = 64, t.GMCMD =
		128, t.SYSTEMNOTICE = 2048, t.GUILD = 256, t.TEAM = 512, t.ALERT = 1024, t.TOP_COLOR = 16107597, t.MIDDLE_COLOR =
		15844864, t.BOTTOM_COLOR = 16724736, t.MOUSE_COLOR = 16724736, t.CORNER_COLOR = 14604487, t.BUFF_COLOR = 65280, t.BG_COLOR =
		11639929, t.MIDDLE_COLOR_2 = 16776960, t._colorHash = {}, t._mousePosMessagePool = [], t._LeftMessagePool = [], t._rechangeMessagePool = [],
		t._mouseMsgAry = [], t._leftMsgAry = [], t._rechangeMsgAry = [], t._legendAry = [], t._tempHash = new HashObject, t
}();
__reflect(Notice.prototype, "Notice");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.Shape);
	t.GShape = e, __reflect(e.prototype, "h5_engine.GShape", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var ComboxList = function(t) {
	function e(i) {
		void 0 === i && (i = "guild_combox");
		var n = t.call(this) || this;
		return n.clickStr = "", n.clickStr = i, n.addEventListener(egret.Event.ADDED_TO_STAGE, n.onAddStage, n), n.addEventListener(
				egret.Event.REMOVED_FROM_STAGE, n.onRemoveStage, n), n.skinName = "ComboxListSkin", n.comList.addEventListener(
				ComItem.EVENT_ITEM_SELECT, n.onSelect, n), n.img_click.addEventListener(egret.TouchEvent.TOUCH_TAP, n.onClick, n),
			n.currentInfo.addEventListener(egret.TouchEvent.TOUCH_TAP, n.onClick, n), App.dispatcher.addEventListener(e.EVENT_OUT_NORMAL,
				n.onNormalSelect, n), n
	}
	return __extends(e, t), e.prototype.onAddStage = function(t) {
		this.stage.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap, this)
	}, e.prototype.onRemoveStage = function(t) {
		this.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap, this), this.clear()
	}, e.prototype.onTap = function(t) {
		App.dispatcher.dispatchEvent(e.EVENT_OUT_NORMAL, t.target)
	}, e.prototype.onNormalSelect = function(t) {
		t != this.img_click && t != this.currentInfo && (this.comList.visible = !1, this.updateClickSource())
	}, e.prototype.setList = function(t, e) {
		this.clear();
		for (var i = 0; i < t.length; i++) {
			var n = App.thing.create(ComItem, "ComboxList", !0);
			n.onCreate();
			var a = t[i];
			n.setData(a), this.comList.addChild(n)
		}
		this.comList.y = -this.comList.height, this.setCurrent(e), this.comList.visible = !1, this.updateClickSource()
	}, e.prototype.setCurrent = function(t) {
		this.currentBg.source = t.bg, this.currentInfo.text = t.info + "", this.currentData = t, this.dispatchEvent(new egret
			.Event(e.EVENT_CURRENT_CHANGE, !1, !1, t))
	}, e.prototype.onClick = function(t) {
		this.comList.visible = !this.comList.visible, this.updateClickSource()
	}, e.prototype.onSelect = function(t) {
		void 0 === t && (t = null);
		var e = t.data;
		this.setCurrent(e.data), this.comList.visible = !1, this.updateClickSource()
	}, e.prototype.updateClickSource = function() {
		this.comList.visible ? this.img_click.source = this.clickStr + "2_png" : this.img_click.source = this.clickStr +
			"1_png"
	}, e.prototype.removeAllList = function() {
		for (; this.comList.numChildren > 0;) {
			var t = this.comList.removeChildAt(0);
			t && (t.clear(), t.dispose(), App.thing.putIn(t))
		}
	}, e.prototype.clear = function() {
		this.removeAllList()
	}, e.prototype.dispose = function() {
		this.removeAllList()
	}, e.EVENT_CURRENT_CHANGE = "EVENT_CURRENT_CHANGE", e.EVENT_OUT_NORMAL = "EVENT_OUT_NORMAL", e
}(eui.Component);
__reflect(ComboxList.prototype, "ComboxList");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._isDispose = !1, e.touchEnabled = !1, e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "htmlText", {
			get: function() {
				return this._htmlText ? this._htmlText : this.text
			},
			set: function(t) {
				this._htmlText = t ? t : "", t && (this.textFlow = HtmlUtil.getHtmlStr(t))
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "isDispose", {
			get: function() {
				return this._isDispose
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			this._isDispose = !0
		}, e
	}(egret.TextField);
	t.GTextField = e, __reflect(e.prototype, "h5_engine.GTextField", ["IDispose"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._animatorDict = new Object
		}, e.prototype.getAnimator = function(t, e) {
			return this._animatorDict[t] ? this._animatorDict[t].get(e) : null
		}, e.prototype.addAnimator = function(t, e, i) {
			var n = this._animatorDict[t];
			null == n && (this._animatorDict[t] = n = new HashObject), n.put(e.toString(), i)
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this);
			var e = this._animatorDict;
			for (var i in e) {
				var n = e[i],
					a = n.$_getValueMap();
				for (var o in a) {
					var r = a[o];
					r.dispose()
				}
			}
			this._animatorDict = void 0
		}, e
	}(Dispose);
	t.Animation = e, __reflect(e.prototype, "h5_engine.Animation")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._totalMovieTime = 1, e._blendMode = egret.BlendMode.NORMAL, e._scaleX = 1, e._scaleY = 1, e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._list = new Array, this._hash = new HashObject
		}, e.prototype.addPlayer = function(t) {
			this._hash.put(t.hashCode, t)
		}, e.prototype.delPlayer = function(t) {
			this._hash.del(t.hashCode)
		}, e.prototype.addImageAt = function(t, e) {
			t.animator = this, this._list.splice(e, 0, t)
		}, e.prototype.pushImage = function(t) {
			return t.animator = this, this._totalMovieTime += t.delayTime, this._list.push(t)
		}, e.prototype.getImage = function(t) {
			return this._list ? this._list[t] : null
		}, Object.defineProperty(e.prototype, "totalMovieTime", {
			get: function() {
				return this._totalMovieTime
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "length", {
			get: function() {
				return this._list.length
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "url", {
			get: function() {
				return this._url
			},
			set: function(t) {
				this._url = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "scaleX", {
			get: function() {
				return this._scaleX
			},
			set: function(t) {
				0 != t && (this._scaleX = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "scaleY", {
			get: function() {
				return this._scaleY
			},
			set: function(t) {
				0 != t && (this._scaleY = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "blendMode", {
			get: function() {
				return this._blendMode
			},
			set: function(t) {
				this._blendMode = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			var t = this;
			if (t._list) {
				for (var e = t._list.length, i = 0; e > i; i++) {
					var n = t._list[i];
					n.dispose()
				}
				t._list.length = 0
			}
			t._hash && t._hash.clear(), t._blendMode = egret.BlendMode.NORMAL, t._totalMovieTime = 1, t._url = "", App.thing.putIn(
				t)
		}, e
	}(Dispose);
	t.Animator = e, __reflect(e.prototype, "h5_engine.Animator")
}(h5_engine || (h5_engine = {}));
var MarcoConnectionCommandCenter = function() {
	function t() {}
	return t.start = function() {
		new ItemCommandRegister, new ActivityCommandRegister, new MailCommandRegister, new WearEquipCommandRegister, new TaskCommanRegister,
		new ChatCommandRegister, new FriendCommandRegister, new UtilsCommandRegister, new RankListCommandRegister, new ShopCommandRegister,
		new ForgeCommanRegister, new GMCommandRegister, new SkillCommandRegister, new MoneyCommandRegister, new XSRWCommandRegister,
		new TreasureCommandRegister, new CharacterUICommandRegister, new ArtifactCommandRegister, new ExploitCommandRegister,
		new TanbaoCommandRegister, new ZoneCommandRegister, new WangZheZBCommandRegister, new GuildCommandRegister, new VipCommandRegister,
		new CastleWarCommandRegister, new NightAttackCommandRegister, new ChallengeCommandRegister, new MineCommandRegister,
		new CrossCommanRegister, new WarpetCommandRegister, new StateCommandRegister, new PlatfromCommandRegister
	}, t
}();
__reflect(MarcoConnectionCommandCenter.prototype, "MarcoConnectionCommandCenter");
var ActivityCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5294, this.onS2C_ActivityBriefListMessage), this.register(5047, this.onS2C_ActivityDetailInfosMessage),
			this.register(5321, this.onS2C_ActivityOpenMessage), this.register(5115, this.onS2C_ActivityCloseMessage), this.register(
				5532, this.onS2C_ActiveRingMessage), this.register(5545, this.onS2C_GetSpecialRingInfoMessage), this.register(
				5612, this.onS2C_PromiseInfoMessage), this.register(5619, this.onS2C_ActWorshipKingRewardsMessage)
	}, e.prototype.onS2C_ActWorshipKingRewardsMessage = function(t) {
		App.dispatcher.dispatchEvent(ActivityEvent.UPDATE_MOBAICHENGZHU, t.times, t.num)
	}, e.prototype.onS2C_ActivityBriefListMessage = function(t) {
		App.config && t.activityList && App.data.activityCenter.loadInfos(t.activityList, !1)
	}, e.prototype.onS2C_ActivityDetailInfosMessage = function(t) {
		if (App.config && t.activityInfos) {
			App.data.activityCenter.loadInfos(t.activityInfos, !0);
			var e = App.data.activityCenter.getData(1e4);
			if (e) {
				var i = App.data.activityCenter.getData(1e4).extendMap;
				if (i) {
					var n = StringUtil.JsonParse(i);
					n && n.openday > 0 && App.dispatcher.dispatchEvent(EnterButtonEvent.ONLY_SHOW_TIME, 53, n.openday)
				}
			}
		}
	}, e.prototype.onS2C_ActivityOpenMessage = function(t) {
		App.dispatcher.dispatchEvent(ActivityEvent.OPEN, t.actId)
	}, e.prototype.onS2C_ActivityCloseMessage = function(t) {
		App.dispatcher.dispatchEvent(ActivityEvent.CLOSE, t.actId)
	}, e.prototype.onS2C_ActiveRingMessage = function(t) {
		App.data.getRingDataCenter().updateRingData(t)
	}, e.prototype.onS2C_GetSpecialRingInfoMessage = function(t) {
		App.data.getRingDataCenter().updateRingDataByLogin(t)
	}, e.prototype.onS2C_PromiseInfoMessage = function(t) {
		App.data.promiseCenter.load(t.days, t.canRewards, t.gridInfo)
	}, e
}(BaseConnectionRegister);
__reflect(ActivityCommandRegister.prototype, "ActivityCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.width = 0, e.height = 0, e.offsetX = 0, e.offsetY = 0, e.frameNum = 0, e.delayTime = 0, e.ratio = 0, e
		}
		return __extends(e, t), e.prototype.dispose = function() {
			var t = this;
			t.texture && (t.texture.dispose(), TextureUtils.putTexture(t.texture)), t.texture = void 0, t.width = 0, t.height =
				0, t.offsetX = 0, t.offsetY = 0, t.frameNum = 0, t.delayTime = 0, t.imageName = void 0, t.animator = void 0, t.ratio =
				0, App.thing.putIn(t)
		}, e
	}(Dispose);
	t.SingleImage = e, __reflect(e.prototype, "h5_engine.SingleImage")
}(h5_engine || (h5_engine = {}));
var NetResourceCenter = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.addResourceParser(NetResourceType.CHAR_AVATAR, ResourceAnimation, 45e3), this.addResourceParser(
			NetResourceType.ANI_AVATAR, ResourceAnimation, 45e3), this.addResourceParser(NetResourceType.MAP_ANI_EFFECT,
			ResourceAnimation, 45e3), this.addResourceParser(NetResourceType.ONCE_EFFECT, ResourceAnimation, 45e3), this.addResourceParser(
			NetResourceType.ANI_EFFECT, ResourceAnimation, 6e4), this.addResourceParser(NetResourceType.ANI_FACE,
			ResourceFace, 6e4), this.addResourceParser(NetResourceType.MAP_RADAR, ResourceMap, 1e4), this.addResourceParser(
			NetResourceType.MAP_BINARY, ResourceMap, 1e4), this.resoureCenter = this, App.timer.doTimeLoop(this, 5e3, this.onTimeHandler)
	}, e.prototype.onTimeHandler = function() {
		this.addvancetime(5e3), App.panel && App.panel.checkHidePanelDispose(5e3), App.sound && App.sound.addvanceTime()
	}, e
}(h5_engine.NetResourceManager);
__reflect(NetResourceCenter.prototype, "NetResourceCenter");
var SheetSpriteLoader = function() {
	function t() {}
	return t.prototype.load = function(t, e, i) {
		var n = this;
		n._vo = i, n._url = t, n.makeLoader(t, NetResourceType.TEXT), n.makeLoader(e, NetResourceType.UI_IMAGE)
	}, t.prototype.makeLoader = function(t, e) {
		var i = new h5_engine.NetLoader;
		i.netHandler.addCompleteHandler(this, new FunctionVO(this.loadComplete, this, i)), i.resType = e, i.url = t
	}, t.prototype.loadComplete = function(t) {
		var e = this;
		if (t.content instanceof egret.Texture) e._texture = t.content;
		else {
			var i = t.content;
			e._data = StringUtil.JsonParse(i)
		}
		if (e._data && e._texture) {
			var n = TextureUtils.parseSpriteSheet(e._texture, e._data);
			e._vo.exec(n, e._url)
		}
	}, t
}();
__reflect(SheetSpriteLoader.prototype, "SheetSpriteLoader");
var NetResourceType = function() {
	function t() {}
	return t.UI_IMAGE = "UI_IMAGE", t.MOVIE_CLIP = "MOVIE_CLIP", t.MAP_RADAR = "MAP_RADAR", t.C_IMAGE = "C_IMAGE", t.MAP_CLIP =
		"MAP_CLIP", t.MAP_ANI_EFFECT = "MAP_ANI_EFFECT", t.MAP_ANI_EFFECT_IMAGE = "MAP_ANI_EFFECT_IMAGE", t.MAP_ANI_EFFECT_CONFIG =
		"MAP_ANI_EFFECT_CONFIG", t.CHAR_AVATAR = "CHAR_AVATAR", t.CHAR_AVATAR_IMAGE = "CHAR_AVATAR_IMAGE", t.CHAR_AVATAR_CONFIG =
		"CHAR_AVATAR_CONFIG", t.MAP_BINARY = "MAP_BINARY", t.ANI_EFFECT = "ANI_EFFECT", t.ANI_EFFECT_IMAGE =
		"ANI_EFFECT_IMAGE", t.ANI_EFFECT_CONFIG = "ANI_EFFECT_CONFIG", t.ONCE_EFFECT = "ONCE_EFFECT", t.ONCE_EFFECT_IMAGE =
		"ONCE_EFFECT_IMAGE", t.ONCE_EFFECT_CONFIG = "ONCE_EFFECT_CONFIG", t.ANI_AVATAR = "ANI_AVATAR", t.ANI_AVATAR_IMAGE =
		"ANI_AVATAR_IMAGE", t.ANI_AVATAR_CONFIG = "ANI_AVATAR_CONFIG", t.ANI_FACE = "ANI_FACE", t.TEXT = "TEXT", t.PRO_LOAD_BYTES =
		"PRO_LOAD_BYTES", t.MUSIC_SOUND = "MUSIC_SOUND", t.MUSIC_BGM = "MUSIC_BGM", t
}();
__reflect(NetResourceType.prototype, "NetResourceType");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var i = e.call(this) || this;
			return i.setLoaderManager(new t.MassLoaderManager, new t.LoaderManager), i
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "mapLoader", {
			get: function() {
				return this._maploader
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "massLoader", {
			get: function() {
				return this._massloader
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.setLoaderManager = function(t, e) {
			t && (this._massloader = t), e && (this._maploader = e)
		}, i.prototype.load = function(t, e, i, n, a) {
			switch (void 0 === n && (n = null), void 0 === a && (a = null), e) {
				case NetResourceType.MAP_RADAR:
					this._maploader.load(t, RES.ResourceItem.TYPE_IMAGE, i, n, a, !0);
					break;
				case NetResourceType.MAP_BINARY:
					this._maploader.load(t, RES.ResourceItem.TYPE_TEXT, i, n, a, !0);
					break;
				case NetResourceType.ANI_FACE:
				case NetResourceType.C_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 0, i, n, a, !1);
					break;
				case NetResourceType.UI_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 0, i, n, a, !1);
					break;
				case NetResourceType.TEXT:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 0, i, n, a, !0);
					break;
				case NetResourceType.MOVIE_CLIP:
					this._massloader.load(t, RES.ResourceItem.TYPE_SHEET, 1, i, n, a, !1);
					break;
				case NetResourceType.MAP_CLIP:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 2, i, n, a, !1);
					break;
				case NetResourceType.CHAR_AVATAR_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 3, i, n, a, !1);
					break;
				case NetResourceType.CHAR_AVATAR_CONFIG:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 3, i, n, a, !1);
					break;
				case NetResourceType.ANI_AVATAR_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 4, i, n, a, !1);
					break;
				case NetResourceType.ANI_AVATAR_CONFIG:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 4, i, n, a, !1);
					break;
				case NetResourceType.ANI_EFFECT_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 5, i, n, a, !1);
					break;
				case NetResourceType.ANI_EFFECT_CONFIG:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 5, i, n, a, !1);
					break;
				case NetResourceType.ONCE_EFFECT_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 6, i, n, a, !1);
					break;
				case NetResourceType.ONCE_EFFECT_CONFIG:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 6, i, n, a, !1);
					break;
				case NetResourceType.MUSIC_SOUND:
					this._massloader.load(t, RES.ResourceItem.TYPE_SOUND, 7, i, n, a, !1);
					break;
				case NetResourceType.MUSIC_BGM:
					this._massloader.load(t, RES.ResourceItem.TYPE_SOUND, 7, i, n, a, !1);
					break;
				case NetResourceType.MAP_ANI_EFFECT_IMAGE:
					this._massloader.load(t, RES.ResourceItem.TYPE_IMAGE, 8, i, n, a, !1);
					break;
				case NetResourceType.MAP_ANI_EFFECT_CONFIG:
					this._massloader.load(t, RES.ResourceItem.TYPE_TEXT, 8, i, n, a, !1)
			}
		}, i.prototype.removeLoad = function(t, e, i, n, a) {
			switch (void 0 === n && (n = null), void 0 === a && (a = null), e) {
				case NetResourceType.ANI_FACE:
				case NetResourceType.C_IMAGE:
				case NetResourceType.MAP_CLIP:
				case NetResourceType.UI_IMAGE:
				case NetResourceType.MOVIE_CLIP:
				case NetResourceType.TEXT:
				case NetResourceType.MUSIC_SOUND:
				case NetResourceType.MUSIC_BGM:
				case NetResourceType.ANI_AVATAR_IMAGE:
				case NetResourceType.ANI_AVATAR_CONFIG:
				case NetResourceType.ANI_EFFECT_IMAGE:
				case NetResourceType.ANI_EFFECT_CONFIG:
				case NetResourceType.CHAR_AVATAR_IMAGE:
				case NetResourceType.CHAR_AVATAR_CONFIG:
				case NetResourceType.MAP_ANI_EFFECT_IMAGE:
				case NetResourceType.MAP_ANI_EFFECT_CONFIG:
				case NetResourceType.ONCE_EFFECT_CONFIG:
				case NetResourceType.ONCE_EFFECT_IMAGE:
					this._massloader.removeLoad(t, i, n, a);
					break;
				case NetResourceType.MAP_BINARY:
				case NetResourceType.MAP_RADAR:
					this._maploader.removeLoad(t, i, n, a)
			}
		}, i.prototype.destoryRes = function(e) {
			return t.ResLoader.clearLoadedResourece(e)
		}, i
	}(Dispose);
	t.ResourceLoadCenter = e, __reflect(e.prototype, "h5_engine.ResourceLoadCenter", ["IResourceLoadCenter"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function() {
		function e() {
			this._resInfos = [], this._isLoading = !1;
			var e = this;
			e._resLoader = t.ResLoader.getMassLoader(), e._resLoader.RETRY_COUNT = 1e4, e._completeFuc = new FunctionVO(e.loadComplete,
				e), e._progressFuc = new FunctionVO(e.loadProgress, e), e._errorFuc = new FunctionVO(e.onLoadError, e)
		}
		return Object.defineProperty(e.prototype, "isLoading", {
			get: function() {
				return this._isLoading
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "resInfoLength", {
			get: function() {
				return this._resInfos.length
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.load = function(e, i, n, a, o, r) {
			void 0 === n && (n = null), void 0 === a && (a = null), void 0 === o && (o = null), void 0 === r && (r = !0);
			var s = t.ResInfo.getInfo(e, i, 1, n, a, o, r),
				h = t.ResLoader.getLoadedResourece(s.url);
			null != h ? this.endLoad(s, h) : (this._resInfos.push(s), this.checkNext())
		}, e.prototype.checkNext = function() {
			var e = this;
			if (!e._isLoading) {
				for (; e._resInfos.length > 0;) {
					var i = e._resInfos.shift(),
						n = t.ResLoader.getLoadedResourece(i.url);
					if (null == n) return e._isLoading = !0, void e._resLoader.load(i, e._completeFuc, e._progressFuc, e._errorFuc);
					e.endLoad(i, n)
				}
				e._isLoading = !1, t.EngineConfig.loadCenter.massLoader.checkNext()
			}
		}, e.prototype.loadProgress = function(t, e) {
			for (var i = t.progressHandlers.length, n = 0; i > n; n++) {
				var a = t.progressHandlers[n];
				a.exec(e)
			}
		}, e.prototype.onLoadError = function(e, i) {
			if (this._isLoading = !1, null != i.errorHandlers && i.errorHandlers.length > 0)
				for (var n = i.errorHandlers.length, a = 0; n > a; a++) {
					var o = i.errorHandlers[a];
					o.exec(i.url)
				}
			t.ResInfo.putInfo(i), this.checkNext()
		}, e.prototype.loadComplete = function(t, e, i) {
			this._isLoading = !1, this.endLoad(e, i), this.checkNext()
		}, e.prototype.endLoad = function(e, i) {
			for (var n = e.completeHandlers.length, a = 0; n > a; a++) {
				var o = e.completeHandlers[a];
				o.exec(i)
			}
			t.ResInfo.putInfo(e)
		}, e.prototype.removeLoad = function(e, i, n, a) {
			void 0 === i && (i = null), void 0 === n && (n = null), void 0 === a && (a = null);
			var o = this;
			if (o._resLoader.url == e);
			else
				for (var r = o._resInfos.length, s = 0; r > s; s++) {
					var h = o._resInfos[s];
					if (h.url == e && -1 != h.completeHandlers.indexOf(i) && -1 != h.progressHandlers.indexOf(n) && -1 != h.errorHandlers
						.indexOf(a)) {
						o._resInfos.splice(s, 1), t.ResInfo.putInfo(h);
						break
					}
				}
		}, e.prototype.tryToCloseLoad = function(t) {
			var e = this;
			e._resLoader.url == t && (e._resLoader.tryToCloseLoad(), e._isLoading = !1, e.checkNext())
		}, e
	}();
	t.LoaderManager = e, __reflect(e.prototype, "h5_engine.LoaderManager", ["ILoaderManager"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function() {
		function e() {
			this._resLoaders = new Array, this._runResLoaders = new Array, this._maxLoader = 5, this._loaderCount = 0, this._resInfos = [],
				this._resMap = new HashObject, this._errorResMap = new HashObject, this._catchUrlMap = new HashObject, this._maxPriority =
				10;
			for (var t = this, e = 0; e < t._maxPriority; e++) t._resInfos[e] = [];
			t._completeFuc = new FunctionVO(t.loadComplete, t), t._progressFuc = new FunctionVO(t.loadProgress, t), t._errorFuc =
				new FunctionVO(t.loadError, t), App.timer.doTimeLoop(this, 1e3, this.onErrorResTimeHandler)
		}
		return e.prototype.getMassLoaderLengthList = function() {
			for (var t = this, e = [], i = t._resInfos.length, n = 0; i > n; n++) {
				var a = t._resInfos[n];
				e[n] = a.length
			}
			return e
		}, e.prototype.checkNext = function() {
			var e = this,
				i = t.EngineConfig.loadCenter;
			if (!(i.mapLoader.resInfoLength > 0 || i.mapLoader.isLoading || e._loaderCount >= e._maxLoader))
				for (var n = 0; n < e._maxPriority; n++)
					for (var a = e._resInfos[n]; a && a.length > 0;) {
						var o = a.shift(),
							r = t.ResLoader.getLoadedResourece(o.url);
						if (null == r) return void e.doLoad(o);
						e.endLoad(o, r)
					}
		}, e.prototype.doLoad = function(e) {
			var i = this;
			i._loaderCount++;
			var n = i._resLoaders.length > 0 ? i._resLoaders.pop() : t.ResLoader.getMassLoader();
			e.starTime = App.timer.currTimer, n.load(e, i._completeFuc, i._progressFuc, i._errorFuc), i._runResLoaders.push(n)
		}, e.prototype.loadProgress = function(t, e) {
			for (var i = t.progressHandlers.length, n = 0; i > n; n++) {
				var a = t.progressHandlers[n];
				a.exec(e)
			}
		}, e.prototype.loadComplete = function(t, e, i) {
			var n = this;
			n._catchUrlMap.put(e.url, App.timer.currTimer), n.endLoad(e, i), n.splice(n._runResLoaders, t), n._resLoaders.push(
				t), n._loaderCount--, n.checkNext()
		}, e.prototype.loadError = function(e, i) {
			var n = this;
			n._resMap.has(i.url) ? (i.errorTime = App.timer.currTimer, n._errorResMap.put(i.url, i)) : t.ResInfo.putInfo(i), n
				.splice(n._runResLoaders, e), n._resLoaders.push(e), n._loaderCount--, n.checkNext()
		}, e.prototype.onErrorResTimeHandler = function() {
			if (0 == this._loaderCount) {
				var t = this._errorResMap.$_getValueMap(),
					e = !1,
					i = App.timer.currTimer;
				for (var n in t) {
					var a = t[n];
					i - a.errorTime > 5e3 && (this._resInfos[a.priority].push(a), this._errorResMap.del(a.url), e = !0)
				}
				e && this.checkNext()
			}
		}, e.prototype.endLoad = function(e, i) {
			var n = this;
			n._resMap.del(e.url), n._errorResMap.del(e.url);
			for (var a = e.completeHandlers.length, o = 0; a > o; o++) {
				var r = e.completeHandlers[o];
				r.exec(i)
			}
			t.ResInfo.putInfo(e)
		}, e.prototype.load = function(e, i, n, a, o, r, s) {
			void 0 === n && (n = 1), void 0 === a && (a = null), void 0 === o && (o = null), void 0 === r && (r = null), void 0 ===
				s && (s = !0);
			var h = this,
				l = t.ResLoader.getLoadedResourece(e);
			if (h._catchUrlMap.has(e)) {
				var p = h._catchUrlMap.get(e);
				App.timer.currTimer - p < 6e4 && (n = 1)
			}
			if (null != l) {
				var c = t.ResInfo.getInfo(e, i, n, a, o, r, s);
				h.endLoad(c, l)
			} else {
				n = n < h._maxPriority ? n : h._maxPriority - 1;
				var _ = h._resMap.get(e);
				if (null == _) c = t.ResInfo.getInfo(e, i, n, a, o, r, s), h._resMap.put(e, c), h._resInfos[n].push(c), h.checkNext();
				else {
					if (0 == h._errorResMap.has(e) && _.priority != n) {
						var d = h._resInfos[_.priority]; - 1 != d.indexOf(c) && (h.splice(h._resInfos[_.priority], c), _.priority = n,
							h._resInfos[n].push(_))
					}
					_.completeHandlers.push(a), _.progressHandlers.push(o), _.errorHandlers.push(r)
				}
			}
		}, e.prototype.removeLoad = function(e, i, n, a) {
			void 0 === i && (i = null), void 0 === n && (n = null), void 0 === a && (a = null);
			var o = this,
				r = o._resMap.get(e);
			r && (o.splice(r.completeHandlers, i), o.splice(r.progressHandlers, n), o.splice(r.errorHandlers, a), 0 == r.completeHandlers
				.length && 0 == r.progressHandlers.length && 0 == r.errorHandlers.length && (o.splice(o._resInfos[r.priority], r),
					o._resMap.del(e), o._errorResMap.del(e), 0 == r.isLoading && t.ResInfo.putInfo(r)))
		}, e.prototype.splice = function(t, e) {
			for (; - 1 != t.indexOf(e);) {
				var i = t.indexOf(e);
				t.splice(i, 1)
			}
		}, e
	}();
	t.MassLoaderManager = e, __reflect(e.prototype, "h5_engine.MassLoaderManager", ["IMassLoaderManager"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.completeHandlers = new Array, e.progressHandlers = new Array, e.errorHandlers = new Array, e.isCache = !1,
				e.priority = 0, e.isLoading = !1, e.starTime = 0, e.errorTime = 0, e
		}
		return __extends(e, t), e.prototype.clear = function() {
			this.completeHandlers.length = 0, this.progressHandlers.length = 0, this.errorHandlers.length = 0, this.isCache = !
				1, this.priority = 0, this.url = null, this.type = null
		}, e.getInfo = function(t, i, n, a, o, r, s) {
			void 0 === n && (n = 1), void 0 === a && (a = null), void 0 === o && (o = null), void 0 === r && (r = null), void 0 ===
				s && (s = !0);
			var h = e.pool.length > 0 ? e.pool.pop() : new e;
			return h.url = t, h.type = i, h.priority = n, h.completeHandlers.push(a), h.progressHandlers.push(o), h.errorHandlers
				.push(r), h.isCache = s, h
		}, e.putInfo = function(t) {
			var i = e.pool; - 1 != i.indexOf(t) ? GameLog.log("有重复ResInfo对象入池") : (t.isLoading = !1, t.clear(), i.push(t))
		}, e.pool = [], e
	}(Dispose);
	t.ResInfo = e, __reflect(e.prototype, "h5_engine.ResInfo")
}(h5_engine || (h5_engine = {}));
var Egret_ResLoader = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._crtRetry = 0, e._isInPool = !0, e._isInPool = TextureUtils.openPool, e
	}
	return __extends(e, t), e.prototype.tryToCloseLoad = function() {
		var t = this;
		try {
			t._httpRequest && t._httpRequest.abort(), t._sound && t._sound.close()
		} catch (e) {}
		t._isLoading = !1
	}, e.prototype.load = function(e, i, n, a) {
		t.prototype.load.call(this, e, i, n, a), this._crtRetry = 0
	}, e.prototype.doLoad = function(i) {
		void 0 === i && (i = !1);
		var n = this;
		n.clearLoader(), t.prototype.doLoad.call(this), n._isLoading = !0;
		var a = n._resInfo.url,
			o = this._resInfo.type,
			r = a;
		if (i) {
			var s = (new Date).getTime();
			r = a + "?" + s
		}
		if (o == RES.ResourceItem.TYPE_IMAGE) n._isInPool ? n._imageLoader = e.imagePool.length > 0 ? e.imagePool.pop() :
			new egret.ImageLoader : n._imageLoader = new egret.ImageLoader, n._imageLoader.crossOrigin = "anonymous", n._imageLoader
			.addEventListener(egret.Event.COMPLETE, n.onLoadComplete, n), n._imageLoader.addEventListener(egret.IOErrorEvent.IO_ERROR,
				n.onLoadError, n), n._imageLoader.load(r);
		else if (o == RES.ResourceItem.TYPE_SOUND) n._sound.addEventListener(egret.Event.COMPLETE, n.onSoundLoadFinish, n),
			n._sound.addEventListener(egret.IOErrorEvent.IO_ERROR, n.onLoadError, n), n._sound.load(r);
		else if (o == RES.ResourceItem.TYPE_BIN || o == RES.ResourceItem.TYPE_TEXT) {
			n._isInPool ? n._httpRequest = e.httpPool.length > 0 ? e.httpPool.pop() : new egret.HttpRequest : n._httpRequest =
				new egret.HttpRequest;
			var h = egret.HttpResponseType.ARRAY_BUFFER,
				l = n.onBinLoadFinish;
			o == RES.ResourceItem.TYPE_TEXT && (h = egret.HttpResponseType.TEXT, l = n.onTextLoadFinish), n._httpRequest.addEventListener(
					egret.Event.COMPLETE, l, n), n._httpRequest.addEventListener(egret.IOErrorEvent.IO_ERROR, n.onLoadError, n), n._httpRequest
				.addEventListener(egret.ProgressEvent.PROGRESS, n.onProgress, n), n._httpRequest.responseType = h, n._httpRequest
				.open(r), n._httpRequest.send()
		}
		App.timer.doTimeOnce(n, 1e4, n.loadTimeOut)
	}, e.prototype.loadTimeOut = function() {
		this.onError()
	}, e.prototype.onLoadError = function(t) {
		App.timer.clearTimer(this.loadTimeOut, this), this.onError()
	}, e.prototype.onError = function() {
		var e = this;
		e._crtRetry >= e.RETRY_COUNT ? t.prototype.onError.call(this) : (e._crtRetry++, e.doLoad())
	}, e.prototype.endLoad = function(e) {
		var i = this;
		App.timer.clearTimer(i.loadTimeOut, i), i.catchContent(e), i.clearLoader(), t.prototype.endLoad.call(this, e)
	}, e.prototype.onSoundLoadFinish = function(t) {
		var e = t.target;
		this.endLoad(e)
	}, e.prototype.onLoadComplete = function(t) {
		var e = t.currentTarget,
			i = TextureUtils.getTexture();
		e.data && i._setBitmapData(e.data), this.endLoad(i)
	}, e.prototype.onBinLoadFinish = function(t) {
		var e = t.currentTarget,
			i = e.response,
			n = new egret.ByteArray(i);
		this.endLoad(n)
	}, e.prototype.onTextLoadFinish = function(t) {
		var e = t.currentTarget,
			i = e.response;
		this.endLoad(i)
	}, e.prototype.clearLoader = function() {
		var t = this;
		t._imageLoader && (t._imageLoader.removeEventListener(egret.Event.COMPLETE, t.onLoadComplete, t), t._imageLoader.removeEventListener(
					egret.IOErrorEvent.IO_ERROR, t.onLoadError, t), t._imageLoader.data = null, t._isInPool && e.imagePool.push(t._imageLoader),
				t._imageLoader = null), t._sound && (t._sound.removeEventListener(egret.Event.COMPLETE, t.onSoundLoadFinish, t),
				t._sound.removeEventListener(egret.IOErrorEvent.IO_ERROR, t.onLoadError, t), t._sound = null), t._httpRequest &&
			(t._httpRequest.removeEventListener(egret.Event.COMPLETE, t.onTextLoadFinish, t), t._httpRequest.removeEventListener(
					egret.ProgressEvent.PROGRESS, t.onProgress, t), t._httpRequest.removeEventListener(egret.Event.COMPLETE, t.onBinLoadFinish,
					t), t._httpRequest.removeEventListener(egret.IOErrorEvent.IO_ERROR, t.onLoadError, t), t._isInPool && e.httpPool
				.push(t._httpRequest), t._httpRequest = null)
	}, e.imagePool = [], e.httpPool = [], e
}(h5_engine.ResLoader);
__reflect(Egret_ResLoader.prototype, "Egret_ResLoader");
var Egret_URLLoader = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._crtRetry = 0, e
	}
	return __extends(e, t), e.prototype.tryToCloseLoad = function() {
		this._isLoading = !1
	}, e.prototype.load = function(e, i, n, a) {
		t.prototype.load.call(this, e, i, n, a), this._crtRetry = 0
	}, e.prototype.doLoad = function(e) {
		void 0 === e && (e = !1), this.clearLoader(), t.prototype.doLoad.call(this), this._isLoading = !0;
		var i = this._resInfo.url,
			n = this._resInfo.type,
			a = i;
		if (e) {
			var o = (new Date).getTime();
			a = i + "?" + o
		}
		var r = "";
		n == RES.ResourceItem.TYPE_IMAGE ? r = egret.URLLoaderDataFormat.TEXTURE : n == RES.ResourceItem.TYPE_SOUND ? r =
			egret.URLLoaderDataFormat.SOUND : n == RES.ResourceItem.TYPE_BIN ? r = egret.URLLoaderDataFormat.BINARY : n == RES
			.ResourceItem.TYPE_TEXT && (r = egret.URLLoaderDataFormat.TEXT), this._urlLoader = new egret.URLLoader, this._urlLoader
			.addEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._urlLoader.addEventListener(egret.IOErrorEvent
				.IO_ERROR, this.onLoadError, this), this._urlLoader.dataFormat = r;
		var s = new egret.URLRequest(a);
		this._urlLoader.load(s)
	}, e.prototype.onLoadError = function(t) {
		this.onError()
	}, e.prototype.onError = function() {
		this._crtRetry >= this.RETRY_COUNT ? t.prototype.onError.call(this) : (this._crtRetry++, this.doLoad())
	}, e.prototype.onLoadComplete = function(t) {
		var e = t.target,
			i = e.data;
		if (this._resInfo.type == RES.ResourceItem.TYPE_BIN) {
			var n = new egret.ByteArray(i);
			i = n
		}
		this.endLoad(i)
	}, e.prototype.endLoad = function(e) {
		this.catchContent(e), this.clearLoader(), t.prototype.endLoad.call(this, e)
	}, e.prototype.clearLoader = function() {
		this._urlLoader && (this._urlLoader.removeEventListener(egret.Event.COMPLETE, this.onLoadComplete, this), this._urlLoader
			.removeEventListener(egret.IOErrorEvent.IO_ERROR, this.onLoadError, this), this._urlLoader = null)
	}, e
}(h5_engine.ResLoader);
__reflect(Egret_URLLoader.prototype, "Egret_URLLoader");
var CastleWarCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5085, this.onS2C_CountryStructureInfoMessage), this.register(5326, this.onS2C_CountrySiegeImmediateMessage),
			this.register(5019, this.onS2C_CountrySiegeWarStateMessage), this.register(5058, this.onS2C_CountryWarSimpleInfoMessage),
			this.register(5518, this.onS2C_CountryPersonJifenMessage)
	}, Object.defineProperty(e.prototype, "castleWarCenter", {
		get: function() {
			return App.data.castleWarCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onS2C_CountryPersonJifenMessage = function(t) {
		App.data.castleWarCenter.castleData.myscore = t.jifen, App.dispatcher.dispatchEvent(CastleWarEvent.REFRESH_MY_SCORE,
			t.jifen)
	}, e.prototype.onS2C_CountryWarSimpleInfoMessage = function(t) {
		var e = this.castleWarCenter.getData(t.type);
		e && (e.warType = t.state, e.siegeTime = t.siegetime, e.checkIsGongcheng())
	}, e.prototype.onS2C_CountryStructureInfoMessage = function(t) {
		var e = this.castleWarCenter.getData(t.type);
		if (null != e) {
			e.castleGuildId = t.countrystructureInfo.guildId.toString(), e.guildName = t.countrystructureInfo.guildname, e.siegeTime =
				t.countrystructureInfo.siegetime;
			for (var i = t.countrystructureInfo.countrymemberInfolist.length, n = 0; i > n; n++) {
				var a = t.countrystructureInfo.countrymemberInfolist[n];
				if (a.post == EnumGuild.HUI_ZHANG) {
					e.guildOwnerinfo = a;
					break
				}
			}
			App.dispatcher.dispatchEvent(CastleWarEvent.REFRESH)
		}
	}, e.prototype.onS2C_CountrySiegeImmediateMessage = function(t) {
		var e = this.castleWarCenter.getData(t.type);
		null != e && (null != t.countrywarinfo && (e.warImmediateInfo = t.countrywarinfo, 0 == e.warImmediateInfo.type ?
			App.dispatcher.dispatchEvent(CastleWarEvent.HIDE_TRACK_PANEL) : App.dispatcher.dispatchEvent(CastleWarEvent.SHOW_TRACK_PANEL,
				e.type)), App.dispatcher.dispatchEvent(CastleWarEvent.UPDATE_KILLER_RANK))
	}, e.prototype.sortFunc = function(t, e) {
		return t.rank >= t.rank ? -1 : 1
	}, e.prototype.onS2C_CountrySiegeWarStateMessage = function(t) {
		var e = this.castleWarCenter.getData(t.type);
		null != e && (e.warState = t.state)
	}, e
}(BaseConnectionRegister);
__reflect(CastleWarCommandRegister.prototype, "CastleWarCommandRegister");
var LinearTween = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._isTweenIng = !1, e._totalTime = 0, e._crtPassTime = 0, e._tx = 0, e._ty = 0, e._crtx = 0, e._crty = 0, e._startX =
			0, e._startY = 0, e._cx = 0, e._cy = 0, e
	}
	return __extends(e, t), Object.defineProperty(e.prototype, "isTweenIng", {
		get: function() {
			return this._isTweenIng
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "totalTime", {
		get: function() {
			return this._totalTime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "crtPassTime", {
		get: function() {
			return this._crtPassTime
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "ty", {
		get: function() {
			return this._ty
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "tx", {
		get: function() {
			return this._tx
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "crty", {
		get: function() {
			return this._crty
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "crtx", {
		get: function() {
			return this._crtx
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.start = function(t, e, i, n, a, o, r) {
		var s = this;
		s._onComplete = o, s._onProgress = r, s._crtPassTime = 0, s._totalTime = 1e3 * t, s._tx = e, s._ty = i, s._startX =
			n, s._startY = a, s._cx = s._tx - s._startX, s._cy = s._ty - s._startY, s._isTweenIng = !0
	}, e.prototype.addvanceTime = function(t) {
		var e = this;
		if (e._isTweenIng)
			if (e._crtPassTime += t, e._crtPassTime >= e._totalTime) e._isTweenIng = !1, e._crtx = e._tx, e._crty = e._ty, e._onProgress
				.exec(), e._onComplete.exec();
			else {
				var i = e._crtPassTime / e._totalTime;
				e._crtx = e._startX + i * e._cx, e._crty = e._startY + i * e._cy, e._onProgress.exec()
			}
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this._isTweenIng = !1, this._onProgress = null, this._onComplete = null
	}, e
}(Dispose);
__reflect(LinearTween.prototype, "LinearTween");
var ChallengeCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5526, this.onS2C_ChallengeBookMessage)
	}, e.prototype.onS2C_ChallengeBookMessage = function(t) {
		App.data.getChallengeCenter().load(t)
	}, e
}(BaseConnectionRegister);
__reflect(ChallengeCommandRegister.prototype, "ChallengeCommandRegister");
var NetStrcutTransform = function() {
	function t() {}
	return t.prototype.createCmd = function(e) {
		var i = new(this.protoIO.build(e));
		return t.$encodeNum++, i
	}, t.prototype.decodeNetData = function(e, i) {
		var n = this.protoIO.build(e);
		if (n) {
			var a = n.decode(i.buffer);
			return t.$decodeNum++, a
		}
		return null
	}, t.prototype.encodeSendData = function(t, e, i) {
		var n;
		try {
			n = e.toBuffer()
		} catch (a) {
			n = null, GameLog.logError("encodeSendData包:" + t + "出错:" + a.stack)
		}
		return n ? i.buffer = n : i = null, i
	}, Object.defineProperty(t.prototype, "protoIO", {
		get: function() {
			if (!this._protoIo) {
				var t = RES.getRes("rpc"),
					e = ZlibUtil.decodeToString(t);
				this._protoIo = dcodeIO.ProtoBuf.loadProto(e)
			}
			return this._protoIo
		},
		enumerable: !0,
		configurable: !0
	}), t.$encodeNum = 0, t.$decodeNum = 0, t
}();
__reflect(NetStrcutTransform.prototype, "NetStrcutTransform", ["INetStrcutTransfrom"]);
var NetStructTarnsformWX = function() {
	function t() {}
	return t.prototype.createCmd = function(t) {
		t = "net." + t;
		var e = egret.getDefinitionByName(t),
			i = new e;
		return i
	}, t.prototype.decodeNetData = function(t, e) {
		var i = egret.getDefinitionByName("net." + t);
		if (i) {
			var n = i.decode(e.bytes);
			return n
		}
	}, t.prototype.encodeSendData = function(t, e, i) {
		try {
			var n = e.constructor,
				a = n.encode(e).finish();
			i.buffer = a
		} catch (o) {
			i = null, GameLog.logError("解析包:" + t + "出错:" + o.stack)
		}
		return i
	}, t
}();
__reflect(NetStructTarnsformWX.prototype, "NetStructTarnsformWX", ["INetStrcutTransfrom"]);
var HttpLoader = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._responseType = egret.HttpResponseType.TEXT, e._httpHeader = ["Content-Type",
			"application/x-www-form-urlencoded"
		], e._httpMethod = egret.HttpMethod.POST, e
	}
	return __extends(e, t), e.prototype.send = function(t, e, i, n, a) {
		void 0 === e && (e = null), void 0 === i && (i = egret.HttpResponseType.TEXT), void 0 === n && (n = egret.HttpMethod
			.GET), void 0 === a && (a = ["Content-Type", "application/x-www-form-urlencoded"]);
		var o = this;
		if (o._url = t, o._sendData = e, o.responseType = i, o.httpMethod = n, o.httpHeader = a, o._request = new egret.HttpRequest,
			o._request.addEventListener(egret.Event.COMPLETE, o.onRequestComplete, o), o._request.addEventListener(egret.IOErrorEvent
				.IO_ERROR, o.onRequestIOError, o), o._request.addEventListener(egret.ProgressEvent.PROGRESS, o.onRequestProgress,
				o), o._request.addEventListener(egret.HTTPStatusEvent.HTTP_STATUS, o.onRequestHttpStatus, o), o._request.responseType =
			o.responseType, o.httpMethod == egret.HttpMethod.GET) {
			o._url = o._url + "?";
			for (var r in e) {
				var s = e[r];
				null == s && (s = ""), o._url = o._url + r.toString() + "=" + s + "&"
			}
			return o._url = o._url.slice(0, o._url.length - 1), o._request.open(o.url, o.httpMethod), o._request.setRequestHeader(
				o.httpHeader[0], o.httpHeader[1]), void o._request.send()
		}
		o._request.open(o.url, o.httpMethod), o._request.setRequestHeader(o.httpHeader[0], o.httpHeader[1]), o._request.send(
			e)
	}, e.prototype.onRequestComplete = function(t) {
		var e = this,
			i = t.currentTarget;
		e._data = i.response, e._httpRequestCompFunc && (e._httpRequestCompFunc.param = [e], e._httpRequestCompFunc.exec()),
			e.dispose()
	}, e.prototype.onRequestIOError = function(t) {
		var e = t.currentTarget;
		GameLog.logError("HttpRequset Io Error：" + e.response);
		var i = this;
		i._httpRequestCompFunc && (i._httpRequestErrorFunc.param = [i], i._httpRequestErrorFunc.exec()), this.dispose()
	}, e.prototype.onRequestProgress = function(t) {
		var e = this;
		e._httpRequestProgressFunc && (e._httpRequestProgressFunc.param = [t], e._httpRequestProgressFunc.exec())
	}, e.prototype.onRequestHttpStatus = function(t) {
		GameLog.log("HttpStatus code：" + t.status + "msg：" + HttpStatusInfo.getMessage(t.status))
	}, Object.defineProperty(e.prototype, "responseType", {
		get: function() {
			return this._responseType
		},
		set: function(t) {
			this._responseType = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpHeader", {
		get: function() {
			return this._httpHeader
		},
		set: function(t) {
			this._httpHeader = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpMethod", {
		get: function() {
			return this._httpMethod
		},
		set: function(t) {
			this._httpMethod = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpErrorFunc", {
		get: function() {
			return this._httpRequestErrorFunc
		},
		set: function(t) {
			this._httpRequestErrorFunc = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpCompleteFun", {
		get: function() {
			return this._httpRequestCompFunc
		},
		set: function(t) {
			this._httpRequestCompFunc = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpProgressFunc", {
		get: function() {
			return this._httpRequestProgressFunc
		},
		set: function(t) {
			this._httpRequestProgressFunc = t
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "url", {
		get: function() {
			return this._url
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "data", {
		get: function() {
			return this._data
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "httpRequest", {
		get: function() {
			return this._request
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.abort = function() {
		try {
			this._request && this._request.abort()
		} catch (t) {}
	}, e.prototype.dispose = function() {
		var e = this;
		e._request && (e._request.removeEventListener(egret.Event.COMPLETE, e.onRequestComplete, e), e._request.removeEventListener(
				egret.IOErrorEvent.IO_ERROR, e.onRequestIOError, e), e._request.removeEventListener(egret.ProgressEvent.PROGRESS,
				e.onRequestProgress, e), e._request.removeEventListener(egret.HTTPStatusEvent.HTTP_STATUS, e.onRequestHttpStatus,
				e)), e._request = null, e._url = null, e._httpRequestCompFunc = null, e._httpRequestErrorFunc = null, e._httpRequestProgressFunc =
			null, t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(HttpLoader.prototype, "HttpLoader");
var HttpStatusInfo = function() {
	function t() {}
	return t.getMessage = function(t) {
		this.messageDict || this.initMessageDict();
		var e = this.messageDict[t];
		return e
	}, t.initMessageDict = function() {
		var t = this;
		t.messageDict = {}, t.registerMessgae(100, "继续"), t.registerMessgae(101, "转换协议"), t.registerMessgae(200, "请求成功"), t
			.registerMessgae(201, "创建"), t.registerMessgae(202, "接受"), t.registerMessgae(203, "非权威信息"), t.registerMessgae(204,
				"无内容"), t.registerMessgae(205, "重置内容"), t.registerMessgae(206, "局部内容"), t.registerMessgae(300, "多样选择"), t.registerMessgae(
				301, "永久移动"), t.registerMessgae(302, "创立"), t.registerMessgae(303, "观察别的部分"), t.registerMessgae(304, "只读"), t.registerMessgae(
				306, "(没有用的)"), t.registerMessgae(307, "临时重发"), t.registerMessgae(400, "坏请求"), t.registerMessgae(401, "未授权的"), t.registerMessgae(
				402, "必需的支付"), t.registerMessgae(403, "禁用"), t.registerMessgae(404, "没有找到"), t.registerMessgae(405, "不被允许的方法"), t
			.registerMessgae(406, "不接受"), t.registerMessgae(407, "代理服务器认证所必需"), t.registerMessgae(408, "请求超时"), t.registerMessgae(
				409, "冲突"), t.registerMessgae(410, "停止"), t.registerMessgae(411, "必需的长度"), t.registerMessgae(412, "预处理失败"), t.registerMessgae(
				413, "请求实体太大"), t.registerMessgae(414, "请求的URI过长"), t.registerMessgae(415, "不被支持的媒体类型"), t.registerMessgae(416,
				"请求范围不满足"), t.registerMessgae(417, "期望失败"), t.registerMessgae(500, "服务器内部错误"), t.registerMessgae(501, "不能实现"), t.registerMessgae(
				502, "坏网关"), t.registerMessgae(503, "难以获得的服务"), t.registerMessgae(504, "网关超时"), t.registerMessgae(505,
				"HTTP版本不支持")
	}, t.registerMessgae = function(t, e) {
		this.messageDict[t] = e
	}, t
}();
__reflect(HttpStatusInfo.prototype, "HttpStatusInfo");
var WebView = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		i._x = 0, i._y = 0, i._width = 0, i._height = 0, i._src = "", i._iframeWrapper = null, i._iframe = null, i._scaleW =
			1, i._scaleH = 1, i._useStageDelegateDiv = !1;
		var n = document.getElementById("StageDelegateDiv"),
			a = n.parentElement,
			o = i._useStageDelegateDiv ? n : a,
			r = document.getElementById("iframe-wrapper");
		r || (r = document.createElement("div"), r.style.display = "none", r.attributes.style.value +=
				"position:absolute; overflow-y:scroll; -webkit-overflow-scrolling: touch; overflow-y: hidden; overflow-x:hidden;",
				r.id = "iframe-wrapper", o.appendChild(r)), i._iframeWrapper = r, i._iframeWrapper.style.display = "none", i._iframeWrapper
			.style.opacity = "0";
		var s = document.createElement("iframe"),
			h = (new Date).getTime();
		s.src = e, s.id = "webview-iframe-" + h, s.name = "webview-iframe-" + h, s.style.position = "absolute", s.style.top =
			"0", s.style.left = "0", s.style.opacity = "0", s.style.display = "none", s.frameBorder = "0", s.border = "0", i._iframeWrapper
			.appendChild(s), i._iframe = document.getElementById("webview-iframe-" + h);
		var l = i;
		i._iframe.onload = function() {
			l._iframeWrapper.style.opacity = "1", l._iframe.style.opacity = "1"
		};
		var p = n.style.transform.replace(")", "").replace("matrix(", ""),
			c = p.split(",");
		return i._scaleW = parseFloat(c[0]), i._scaleH = parseFloat(c[3]), i
	}
	return __extends(e, t), e.prototype.show = function() {
		this._iframe.style.display = "block", this._iframeWrapper.style.display = "block"
	}, e.prototype.hide = function() {
		this._iframe && (this._iframe.style.display = "none", this._iframeWrapper.style.display = "none")
	}, e.prototype.dispose = function() {
		this.hide(), this._iframe && this._iframeWrapper.removeChild(this._iframe)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return this._width
		},
		set: function(t) {
			this._width = t, this._useStageDelegateDiv ? (this._iframe.width = t / this._scaleW + "px", this._iframeWrapper.style
				.width = t / this._scaleW + "px") : (this._iframe.width = t + "px", this._iframeWrapper.style.width = t + "px")
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return this._height
		},
		set: function(t) {
			this._height = t, this._useStageDelegateDiv ? (this._iframe.height = t / this._scaleH + "px", this._iframeWrapper
				.style.height = t / this._scaleH + "px") : (this._iframe.height = t + "px", this._iframeWrapper.style.height =
				t + "px")
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "x", {
		get: function() {
			return this._x
		},
		set: function(t) {
			this._x = t, this._useStageDelegateDiv ? this._iframeWrapper.style.left = t / this._scaleW + "px" : this._iframeWrapper
				.style.left = t + "px"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "y", {
		get: function() {
			return this._y
		},
		set: function(t) {
			this._y = t, this._useStageDelegateDiv ? this._iframeWrapper.style.top = t / this._scaleH + "px" : this._iframeWrapper
				.style.top = t + "px"
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.setUseDiv = function(t) {
		this._useStageDelegateDiv = t
	}, e
}(egret.DisplayObjectContainer);
__reflect(WebView.prototype, "WebView");
var CharacterUICommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5318, this.onS2C_OtherPlayerInfoMessage), this.register(5138, this.onS2C_MetempsychosisInfoMessage),
			this.register(5157, this.onS2C_UpgradeMetempsychosisMessage), this.register(5502, this.onS2C_MergeAttackUpMessage),
			this.register(5503, this.onS2C_MergeAttackWearMessage), this.register(5501, this.onS2C_MergeAttackListMessage),
			this.register(5529, this.onS2C_MaBiFuShengInfoMessage), this.register(5555, this.onS2C_WearMaxGodWingMessage),
			this.register(5557, this.onS2C_GodWingAdvanceMessage), this.register(5554, this.onS2C_ConvertGodWingMessage), this
			.register(5556, this.onS2C_GodWingFastAdvanceMessage), this.register(5215, this.onS2C_FightPowerToClientMessage),
			this.register(5161, this.onS2C_ChangePlayerNameMessage), this.register(5572, this.onS2C_GuildSuitUpMessage), this.register(
				5571, this.onS2C_GuildSuitUseMessage), this.register(5591, this.onS2C_LunHUiEquipWearableMessage), this.register(
				5590, this.onS2C_LunHuiLevelMessage), this.register(5578, this.onS2C_HideAllSurfaceStateChangeMessage), this.register(
				5287, this.onS2C_TimeMessage), this.register(5069, this.onS2C_ChangePKStateMessage), this.register(5618, this.onS2C_LegendarySuitWearMessage),
			this.register(5626, this.onS2C_FuseEquipMessage), this.register(5004, this.onS2C_GodEquipMessag), this.register(
				5014, this.onS2C_BindMount), this.register(5016, this.onS2C_AdvanceInfoMessage), this.register(5023, this.onS2C_AdvanceEquipMessage),
			this.register(5020, this.onS2C_AdvanceEquipStrengthChangeMessage)
	}, e.prototype.onS2C_BindMount = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t.index);
		e && (e.surfaceManager.bindMountId = t.surfaceId)
	}, e.prototype.onS2C_AdvanceInfoMessage = function(t) {
		if (1 == t.result) {
			if (t.advanceInfo) {
				var e = App.global.roles.getRoleInfoByIndex(t.index);
				if (e) switch (t.advanceInfo.type) {
					case AdvanceType.zuoqi:
						e.mountInfo = t.advanceInfo;
						break;
					case AdvanceType.guangyi:
						e.guangyiInfo = t.advanceInfo;
						break;
					case AdvanceType.fazhen:
						e.fazhenInfo = t.advanceInfo;
						break;
					case AdvanceType.tianbing:
						e.tianBingInfo = t.advanceInfo;
						break;
					case AdvanceType.binghun:
						e.binghunInfo = t.advanceInfo
				}
			}
		} else App.dispatcher.dispatchEvent(AdvanceEvent.ADVANCE_FAIL)
	}, e.prototype.onS2C_AdvanceEquipMessage = function(t) {
		App.data.characterCenter.addAdvanceEquipData(LongUtil.toNumber(t.equipId), t.type, t.pos, t.index), App.dispatcher.dispatchEvent(
			AdvanceEvent.ADVANCE_EQUIP_REFRESH)
	}, e.prototype.onS2C_AdvanceEquipStrengthChangeMessage = function(t) {
		App.data.characterCenter.addAdvanceEquipData(LongUtil.toNumber(t.itemId), t.type, t.pos, t.index, t.gradeNum), App.dispatcher
			.dispatchEvent(AdvanceEvent.ADVANCE_EQUIP_REFRESH), App.dispatcher.dispatchEvent(AdvanceEvent.ADVANCE_EQUIP_STRENG)
	}, e.prototype.onS2C_GodEquipMessag = function(t) {
		App.data.godEquipCenter.addGodData(LongUtil.toNumber(t.equipId), t.pos, t.index), App.dispatcher.dispatchEvent(
			EventType.WEAR_GOD_REFRESH)
	}, e.prototype.onS2C_FuseEquipMessage = function(t) {
		App.data.characterCenter.addRexueData(LongUtil.toNumber(t.equipId), t.suitpos, t.index), App.dispatcher.dispatchEvent(
			EventType.WEAR_REXUE_REFRESH)
	}, e.prototype.onS2C_LegendarySuitWearMessage = function(t) {
		App.data.characterCenter.addChuanqiData(LongUtil.toString(t.equipId), t.index, t.suitId, t.suitpos), App.dispatcher
			.dispatchEvent(PlayerAttributeEvent.CHUANQITAOZHUANG)
	}, e.prototype.onS2C_LunHUiEquipWearableMessage = function(t) {
		0 == t.state ? (App.data.characterCenter.lunhuiChangeData(t.index, t.type, t.lunHuiEquipInfo), 1 == t.type ? App.dispatcher
			.dispatchEvent(PlayerAttributeEvent.LUNHUIRESULT) : 2 == t.type ? App.dispatcher.dispatchEvent(
				PlayerAttributeEvent.LUNHUISTARRESULT) : 3 == t.type && App.dispatcher.dispatchEvent(PlayerAttributeEvent.LUNHUIZHUHUNRESULT)
		) : 1 == t.type || (2 == t.type ? (Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 +
			">升星失败</font>"), App.dispatcher.dispatchEvent(PlayerAttributeEvent.LUNHUISTARFALSERESULT)) : 3 == t.type)
	}, e.prototype.onS2C_LunHuiLevelMessage = function(t) {
		App.data.characterCenter.lunhuiLevel = t.level, App.data.characterCenter.lunhuiexp = LongUtil.toNumber(t.exp), App.data
			.characterCenter.lunhuiCount = LongUtil.toNumber(t.Count), App.data.characterCenter.curExchangeLevel = t.curExchangeLevel,
			App.dispatcher.dispatchEvent(PlayerAttributeEvent.LUNHUILEVEL, t), App.global.redPoint.redPointDispatchEvent(170)
	}, e.prototype.onS2C_TimeMessage = function(t) {
		ServerTime.openday = t.openDay, ServerTime.combineDay = t.combineDay, ServerTime.setServerTime(LongUtil.toNumber(t.time1)),
			t.openDay >= 8 && App.dispatcher.dispatchEvent(EnterButtonEvent.CHANGE_URL, 6), App.dispatcher.dispatchEvent(
				ActivityEvent.UPDATE_CHANGEURL)
	}, e.prototype.onS2C_FightPowerToClientMessage = function(t) {
		App.data.characterCenter.roleSumFight = t.fightPower;
		for (var e = 0; e < t.fightPowerList.length; e++) App.data.characterCenter.fightHash.put(t.fightPowerList[e].index,
			t.fightPowerList[e].fightPower);
		App.dispatcher.dispatchEvent(EventType.EventTypeFightChange)
	}, e.prototype.onS2C_HideAllSurfaceStateChangeMessage = function(t) {
		App.data.characterCenter.isShowSurface = 0 == t.type ? !1 : !0;
		var e = App.global.roles.roleList,
			i = ["4_0", "5_0", "1_1"];
		if (App.data.characterCenter.isShowSurface)
			for (var n = 0; n < e.length; n++) App.global.roles.getRoleInfoByIndex(e[n].roleIndex).surfaceManager.hideSurface(
				i, 0);
		else
			for (var n = 0; n < e.length; n++) App.global.roles.getRoleInfoByIndex(e[n].roleIndex).surfaceManager.hideSurface(
				i, -1);
		App.dispatcher.dispatchEvent(SurfaceEvent.SURFACEEVENT_HIDESURFACE)
	}, e.prototype.onS2C_GuildSuitUpMessage = function(t) {
		App.data.characterCenter.guildEquipResult(t.itemId, t.pos, t.index), App.dispatcher.dispatchEvent(EventType.EQUIP_GUILD_REFRESH)
	}, e.prototype.onS2C_GuildSuitUseMessage = function(t) {
		App.data.characterCenter.guildEquipResult(t.itemId, t.pos, t.index), App.dispatcher.dispatchEvent(EventType.EQUIP_GUILD_REFRESH)
	}, e.prototype.onS2C_MaBiFuShengInfoMessage = function(t) {
		App.data.characterCenter.roleTejie(t.list)
	}, e.prototype.onS2C_MergeAttackUpMessage = function(t) {
		App.data.characterCenter.hejiEquipCenter.refreshhejiHash(t.fuseId)
	}, e.prototype.onS2C_MergeAttackWearMessage = function(t) {
		App.data.characterCenter.hejiEquipCenter.refreshhejiHash(t.fuseId)
	}, e.prototype.onS2C_MergeAttackListMessage = function(t) {
		App.data.characterCenter.hejiEquipCenter.createHejiHash(t.fuseIds)
	}, e.prototype.onS2C_OtherPlayerInfoMessage = function(t) {
		var e = new OtherPlayerInfoVo;
		e.personId = t.personId.toString(), e.name = t.name, e.sex = t.sex, e.job = t.job, e.level = t.level, e.followerList =
			t.followerList, e.equips = new Array;
		for (var i = 0; i < t.equips.length; i++) {
			var n = new ItemData(t.equips[i]);
			e.equips.push(n)
		}
		return e.hp = t.hp, e.mp = t.mp, e.exp = LongUtil.toNumber(t.exp), e.avatar = t.avatar, e.pksword = t.pksword, e.abilityInfo =
			t.abilityinfo, e.metemLevel = t.metempsychosislevel, e.guildId = t.guildId.toString(), e.showSurfaceInfo = t.showSurfaceInfo,
			e.pfVipType = t.pfVipInfo.vipType, e.pfVipYear = t.pfVipInfo.yearVip, e.pfViphigh = t.pfVipInfo.highVip, e.pfVipLvl =
			t.pfVipInfo.vipLvl, ServerTime.setServerTime(LongUtil.toNumber(t.time1)), RankItemView.MESSAGE_TYPE ? void App.panel
			.openPanel(41) : void App.dispatcher.dispatchEvent(PlayerAttributeEvent.CHECK_OTHER_PALYERINFO_BACK, e)
	}, e.prototype.onS2C_MetempsychosisInfoMessage = function(t) {
		var e = t.info;
		App.global.characterData && (App.global.characterData.zhuanSheng = e.level);
		for (var i = App.global.roles.roleList, n = 2; n <= i.length; n++) App.global.roles.getRoleInfoByIndex(n).zhuanSheng =
			e.level;
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.ZHUAN_SHENG, e.level), App.global.characterData && App.data.characterCenter
			.showZhuans(e), App.dispatcher.dispatchEvent(EventType.MY_METEM, e)
	}, e.prototype.onS2C_UpgradeMetempsychosisMessage = function(t) {
		var e = {};
		e.level = t.level;
		var i = App.global.characterData.zhuanSheng;
		App.global.characterData.zhuanSheng = t.level, t.level > i && App.dispatcher.dispatchEvent(EventType.MY_METEM_UP_SUSS),
			e.repair = t.repair, App.dispatcher.dispatchEvent(EventType.MY_METEM, e, !1), App.data.characterCenter.showZhuans(
				e), App.dispatcher.dispatchEvent(PlayerAttributeEvent.ZHUAN_SHENG, t.level), ZoneCommandSender.sendC2S_ZoneInfoListMessage(
				EnumZoneType.SECRET), ZoneCommandSender.sendC2S_GetBossZoneInfoMessage(EnumZoneType.SECRET)
	}, e.prototype.onS2C_RayWingAdvanceSuccessMessage = function(t) {
		App.dispatcher.dispatchEvent(WingEvent.ADVANCESUCCESS)
	}, e.prototype.onS2C_RayWingAdvanceFailMessage = function(t) {
		App.dispatcher.dispatchEvent(WingEvent.ADVANCEFAIL)
	}, e.prototype.onS2C_WearMaxGodWingMessage = function(t) {
		App.data.wingGodCenter().wearWingGod(t.godWingId, t.godWingType, t.index)
	}, e.prototype.onS2C_ConvertGodWingMessage = function(t) {
		App.dispatcher.dispatchEvent(SkillEvent.WingGodZHResult)
	}, e.prototype.onS2C_GodWingAdvanceMessage = function(t) {
		App.dispatcher.dispatchEvent(SkillEvent.WingGodResult)
	}, e.prototype.onS2C_GodWingFastAdvanceMessage = function(t) {
		App.data.wingGodCenter().wearWingGod(t.godWingId, t.godWingType, t.index)
	}, e.prototype.onS2C_ChangePlayerNameMessage = function(t) {
		App.dispatcher.dispatchEvent(PlayerAttributeEvent.NAME)
	}, e.prototype.onS2C_ChangePKStateMessage = function(t) {
		LongUtil.toString(t.personId) == App.global.characterData.personId && (App.global.characterData.pkState = t.pkState)
	}, e
}(BaseConnectionRegister);
__reflect(CharacterUICommandRegister.prototype, "CharacterUICommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this.clear()
		}, e.prototype.netComplete = function() {
			this.foEach(this._completeDict)
		}, e.prototype.netProgress = function() {
			this.foEach(this._progressDict)
		}, e.prototype.netError = function() {
			this.foEach(this._errorDict)
		}, e.prototype.foEach = function(t) {
			for (var e = t.values, i = e.length, n = 0; i > n; n++) {
				var a = e[n];
				a.exec()
			}
		}, e.prototype.addCompleteHandler = function(t, e) {
			this._completeDict.put(t, e ? e : !0)
		}, e.prototype.addProgressHandler = function(t, e) {
			this._progressDict.put(t, e ? e : !0)
		}, e.prototype.addErrorHandler = function(t, e) {
			this._errorDict.put(t, e ? e : !0)
		}, e.prototype.removeCompleteHandler = function(t) {
			this._completeDict.del(t)
		}, e.prototype.removeProgressHandler = function(t) {
			this._progressDict.del(t)
		}, e.prototype.removeErrorHandler = function(t) {
			this._errorDict.del(t)
		}, e.prototype.deleteFuc = function(t) {
			this._completeDict.del(t), this._progressDict.del(t), this._errorDict.del(t)
		}, e.prototype.clear = function() {
			this._errorDict = new HashMap, this._progressDict = new HashMap, this._completeDict = new HashMap
		}, e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this._errorDict = null, this._progressDict = null, this._completeDict = null
		}, e
	}(Dispose);
	t.NetHandler = e, __reflect(e.prototype, "h5_engine.NetHandler")
}(h5_engine || (h5_engine = {}));
var ChatCommandRegister = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._colorHash = new HashObject, e
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5104, this.onS2C_ChatResponseMessage), this.register(5238, this.onS2C_PersonNoticeMessage), this.register(
			5567, this.onS2C_BlacklistMessage)
	}, e.prototype.onS2C_BlacklistMessage = function(t) {
		App.data.chatDataCenter.loadBlackList(t.playerlist), App.dispatcher.dispatchEvent(ChatEvent.CHAT_BLACK_REFRE)
	}, e.prototype.onS2C_ChatResponseMessage = function(t) {
		var e = App.data.chatDataCenter.updatePlayerChatResponse(t);
		(e.channelType == App.data.chatDataCenter.currChatType || App.data.chatDataCenter.currChatType == EnumChatTypes.CHANNEL_ZONGHE) &&
		App.dispatcher.dispatchEvent(ChatEvent.CHAT_RESPONSE, e)
	}, e.prototype.onS2C_PersonNoticeMessage = function(t) {
		var e = t.content,
			i = t.type,
			n = t.values,
			a = t.contentId,
			o = new RegExp(/\{[0-9]\}/i),
			r = 0,
			s = -1;
		if (0 == a) e = StringUtil.substitute(e, n);
		else {
			if (!App.config) return;
			var h = GameUtil.getServerNotifyData(a);
			if (null == h) return;
			s = h.q_bottom_icon;
			var l = h.q_color,
				p = void 0,
				c = [];
			if (i = h.q_type, -1 == Number(l) || -1 == l.indexOf("#")) p = this.getContentColor(l);
			else {
				p = this.getContentColor(h.q_color.split("#")[0]);
				var _ = (h.q_color.split("#")[1] + "").split(",");
				for (r = 0; r < _.length; r++) c.push(this.getContentColor(_[r]))
			}
			e = h.q_foreign, (null == e || "" == e) && (e = h.q_Desc);
			var d = [];
			if (o.test(e)) {
				for (r = 0; r < n.length; r++) c.length >= n.length ? d.push("<font color='" + c[r] + "'>" + n[r] + "</font>") :
					d.push(n[r]);
				e = StringUtil.substitute(e, d)
			} else {
				var u = new RegExp(/\@/);
				if (0 == u.test(e)) {
					if (null != n && n.length > 0) {
						var g = Number(n[0]);
						if (n.length > 1) {
							try {
								var f = StringUtil.replacJosnStr(n[1].toString())
							} catch (m) {
								GameLog.log(m)
							}
							if (f) {
								var v = StringUtil.JsonParse(f);
								if (v.f_type == EnumChatRegType.NON_ITEMCOLOR) {
									var y = GameUtil.getItemConfigData(Number(v.mid));
									if (y) {
										var E = GameUtil.getItemNameColor(Number(v.mid), !1),
											C = " <font color='" + E + "'>" + y.q_name.split("_")[0] + "</font> x " + g;
										e += C
									} else e = "", GameLog.logDebug("无此道具，id=" + v.mid)
								}
							}
						}
					}
				} else null != n && (e = StringUtil.substitute(e, n))
			}
			"" != p && (e = "<font color='" + p + "'>" + e + "</font>")
		}
		Notice.showNoticeTypeMsg(i, e, 1, !0, null, s)
	}, e.prototype.getContentColor = function(t) {
		if (void 0 === t && (t = ""), -1 == Number(t) || "" == t) return "";
		if (null == this._colorJsonAry) {
			var e = GameUtil.getGlobalConfigData(51),
				i = e.q_string_value;
			this._colorJsonAry = StringUtil.JsonParse(i)
		}
		if (this._colorHash.has(t)) return this._colorHash.get(t);
		for (var n = 0; n < this._colorJsonAry.length; n++)
			if (Number(t) == this._colorJsonAry[n].type) {
				this._colorHash.put(t, this._colorJsonAry[n].color);
				break
			} return this._colorHash.get(t)
	}, e
}(BaseConnectionRegister);
__reflect(ChatCommandRegister.prototype, "ChatCommandRegister");
var CrossCommanRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5586, this.onS2C_LinkContendHistoryInfoMessage), this.register(5587, this.onS2C_LinkContendInfoMessage),
			this.register(5585, this.onS2C_LinkContendRankInfoMessage), this.register(5588, this.onS2C_LinkContendGetItemNotifyMessage),
			this.register(5589, this.onS2C_LinkContendStateMessage), this.register(5128, this.onS2C_NationInfosBroadcastMessage),
			this.register(5628, this.onS2C_CaptureFlagInfoMessage)
	}, e.prototype.onS2C_NationInfosBroadcastMessage = function(t) {
		this.crossCenter.serverArr = t.infos, this.crossCenter.isOpenCross = 0 == t.linkOpen ? !1 : !0
	}, e.prototype.onS2C_LinkContendStateMessage = function(t) {
		this.crossCenter.crossState = t.state, this.crossCenter.crossStateData = t.data, App.dispatcher.dispatchEvent(
			CrossEvent.CROSS_STATE_CHANGE)
	}, e.prototype.onS2C_LinkContendGetItemNotifyMessage = function(t) {
		999 == t.type ? (this.crossCenter.isShowYuBao = !0, this.crossCenter.isHaveShowNum = t.num) : App.global.mapModule.mapFightModel
			.showBloodWord(t.type, t.num, App.global.characterData, "0", "")
	}, e.prototype.onS2C_LinkContendHistoryInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(CrossEvent.CROSS_FIGHTLOG, t.infos)
	}, e.prototype.onS2C_LinkContendInfoMessage = function(t) {
		this.crossCenter.myExploit = t.myScore, this.crossCenter.scoreSerArr = t.infos, this.crossCenter.rewardStateArr = t
			.rewards, App.dispatcher.dispatchEvent(CrossEvent.CROSS_REFRESH)
	}, e.prototype.onS2C_LinkContendRankInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(CrossEvent.CROSS_RANK, t)
	}, Object.defineProperty(e.prototype, "crossCenter", {
		get: function() {
			return App.data.crossCenter()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.onS2C_CaptureFlagInfoMessage = function(t) {
		App.dispatcher.dispatchEvent(CrossEvent.CROSS_FLAG_RANK_UPDATE, t)
	}, e
}(BaseConnectionRegister);
__reflect(CrossCommanRegister.prototype, "CrossCommanRegister");
var ResourceAnimation = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._newUrls = [], e._newTypes = [], e
	}
	return __extends(e, t), e.prototype.loadResource = function(e, i) {
		var n = this;
		n._newUrls = ResPathUtil.getNetAnimationPath(e, this._newUrls), n._newTypes ? (n._newTypes.push(i + "_CONFIG"), n._newTypes
			.push(i + "_IMAGE")) : n._newTypes = [i + "_CONFIG", i + "_IMAGE"];
		for (var a = n._newUrls.length, o = 0; a > o; o++) t.prototype.loadResource.call(this, n._newUrls[o], n._newTypes[o])
	}, e.prototype.stopResource = function(e, i) {
		for (var n = this._newUrls.length, a = 0; n > a; a++) t.prototype.stopResource.call(this, this._newUrls[a], this._newTypes[
			a])
	}, e.prototype.netComplete = function(e) {
		var i = this;
		e instanceof egret.Texture ? i._texture = e : i._textureData = e, i._texture && i._textureData && 0 == i.isDispose &&
			t.prototype.netComplete.call(this, i.parse(i._texture, i._textureData))
	}, e.prototype.parse = function(t, e) {
		var i = StringUtil.JsonParse(e),
			n = App.thing,
			a = n.create(h5_engine.Animator, "ResourceAnimation-Ani", !0);
		a.blendMode = i.blendMode, a.url = this.url, a.scaleX = i.hasOwnProperty("scaleX") ? i.scaleX : 1, a.scaleY = i.hasOwnProperty(
			"scaleY") ? i.scaleY : 1;
		for (var o, r = i.data, s = r.length, h = 0; s > h; h++) {
			var l = r[h];
			o = n.create(h5_engine.SingleImage, "ResourceAnimation", !0), o.offsetX = l.offx, o.offsetY = l.offy, o.delayTime =
				l.delay, o.imageName = l.imgName, o.width = l.width, o.height = l.height, o.ratio = l.hasOwnProperty("ratio") ? l
				.ratio : 0, o.texture = TextureUtils.createFromBigTexture(t, l.x, l.y, l.width, l.height), a.pushImage(o)
		}
		return a
	}, e.prototype.dispose = function() {
		var e = this;
		e._texture && (e._texture.dispose(), TextureUtils.putTexture(e._texture)), e._texture = null, e._textureData = null,
			e._newUrls.length = 0, e._newTypes.length = 0, t.prototype.dispose.call(this)
	}, e
}(h5_engine.NetResource);
__reflect(ResourceAnimation.prototype, "ResourceAnimation");
var ResourceFace = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.netComplete = function(e) {
		var i = this;
		e instanceof egret.Texture && (i._texture = e), i._texture && t.prototype.netComplete.call(this, i.parse(i._texture))
	}, e.prototype.parse = function(t) {
		for (var e, i = App.thing, n = 52, a = i.create(h5_engine.Animator, "ResourceFace-Ani", !0), o = t.textureHeight /
				n, r = 0; o > r; r++) e = i.create(h5_engine.SingleImage, "ResourceFace", !0), e.offsetX = n * -.5, e.offsetY = n *
			-.5, e.delayTime = 150, e.width = n, e.height = n, e.imageName = r.toString(), e.texture = TextureUtils.createFromBigTexture(
				t, 0, r * n, n, n), a.pushImage(e);
		return a
	}, e.prototype.dispose = function() {
		var e = this;
		e._texture && (e._texture.dispose(), TextureUtils.putTexture(e._texture)), e._texture = null, t.prototype.dispose.call(
			this)
	}, e
}(h5_engine.NetResource);
__reflect(ResourceFace.prototype, "ResourceFace");
var ResourceMap = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.destroyRes = function() {}, e
}(h5_engine.NetResource);
__reflect(ResourceMap.prototype, "ResourceMap");
var BitmapDataUtil = function() {
	function t() {}
	return t.createColorTexture = function(t, e, i, n) {
		void 0 === n && (n = 1);
		var a = new egret.RenderTexture,
			o = new h5_engine.GShape;
		return o.graphics.beginFill(t, n), o.graphics.drawRect(0, 0, e, i), o.graphics.endFill(), a.drawToTexture(o), a
	}, t
}();
__reflect(BitmapDataUtil.prototype, "BitmapDataUtil");
var ByteUtils = function() {
	function t() {}
	return t.hasKey = function(t, e) {
		return (t & e) > 0
	}, t
}();
__reflect(ByteUtils.prototype, "ByteUtils");
var FunctionUtils = function() {
	function t() {}
	return t.JsDecorator = function(t, e, i) {
		var n = t[e];
		"function" != typeof t[e] ? t[e] = i : t[e] = function() {
			n(), i()
		}
	}, t.fncUseTime = function(t) {
		return function() {
			for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
			var n = Date.now(),
				a = t.apply(void 0, e),
				o = Date.now() - n;
			return console.log("call " + t.name + " (" + e + ") used " + o + " ms."), a
		}
	}, t
}();
__reflect(FunctionUtils.prototype, "FunctionUtils");
var ExploitCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5312, this.onS2C_ActiveRewardInfoMessage), this.register(5291, this.onS2C_GetActiveRewardSuccessMessage),
			this.register(5511, this.onS2C_ActiveReceiveUpMessage), this.register(5530, this.onS2C_ReceivePosRewardsMessage),
			this.register(5504, this.onS2C_JadeInfoMessage), this.register(5505, this.onS2C_JadeUpLevelMessage), this.register(
				5536, this.onS2C_TuJianMessage), this.register(5568, this.onS2C_TuJianIdMessage), this.register(5539, this.onS2C_achievementInfoMessage),
			this.register(5561, this.onS2C_achievementLevelupMessage)
	}, e.prototype.onS2C_ActiveRewardInfoMessage = function(t) {
		App.data.exploitCenter.position = t.position, App.data.exploitCenter.activePoint = t.activePoint, App.data.exploitCenter
			.totalPoint = t.totalActivePoint, App.data.exploitCenter.rewardBoxNum = t.rewardBoxNum, App.data.exploitCenter.activeRank = -
			1 == t.myRank ? t.myRank : t.myRank + 1, App.data.exploitCenter.xunzhangID = t.receiveRewards, App.data.exploitCenter
			.loadDatas(t.activeeRewardsInfoList, t.grade)
	}, e.prototype.onS2C_GetActiveRewardSuccessMessage = function(t) {
		App.dispatcher.dispatchEvent(ExploitEvent.SUCCESS_REWARD, t.type, t.id, t.num, t.items, t.itemNums)
	}, e.prototype.onS2C_ActiveReceiveUpMessage = function(t) {
		App.data.exploitCenter.position = t.id, App.data.exploitCenter.totalPoint = t.exp, App.data.exploitCenter.xunzhangID =
			t.receiveRewards, App.dispatcher.dispatchEvent(ExploitEvent.SUCCESS_POSITION_UP, t.id, t.exp)
	}, e.prototype.onS2C_ReceivePosRewardsMessage = function(t) {
		App.data.exploitCenter.xunzhangID = t.unclaimed, App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_XUNZHANG_ID)
	}, e.prototype.onS2C_JadeInfoMessage = function(t) {
		App.data.exploitCenter.prestigetCenter.prestigeID = t.jadeId, App.data.exploitCenter.prestigetCenter.prestigePoint =
			t.weiwangVal, App.dispatcher.dispatchEvent(ExploitEvent.REFRESH_PRESTIGE)
	}, e.prototype.onS2C_JadeUpLevelMessage = function(t) {
		App.data.exploitCenter.prestigetCenter.prestigeID = t.jadeId, App.data.exploitCenter.prestigetCenter.prestigePoint =
			t.weiwangVal, App.dispatcher.dispatchEvent(ExploitEvent.LEVEL_UP_PRESTIGE)
	}, e.prototype.onS2C_TuJianMessage = function(t) {
		null == t.TuJianList && (t.TuJianList = []), App.data.pictureCenter().loadData(t.TuJianList)
	}, e.prototype.onS2C_TuJianIdMessage = function(t) {
		App.data.pictureCenter().update(t.id)
	}, e.prototype.onS2C_achievementInfoMessage = function(t) {
		App.data.achieveCenter.load(t.achievementId, t.list[0])
	}, e.prototype.onS2C_achievementLevelupMessage = function(t) {
		App.data.achieveCenter.update(t.achievementId)
	}, e
}(BaseConnectionRegister);
__reflect(ExploitCommandRegister.prototype, "ExploitCommandRegister");
var ForgeCommanRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
			this.register(5325, this.onS2C_StrengItemHandler), this.register(5196, this.onS2C_EquipHuiShouPanelInfoHandler),
				this.register(5220, this.onS2C_BuyStrengTopHandler), this.register(5465, this.onS2C_RefinePosHandler), this.register(
					5469, this.onS2C_EquiUpStarMessage), this.register(5491, this.onS2C_ZhuzaoItemHandler), this.register(5492, this.onS2C_ChuanShiItemMessage),
				this.register(5515, this.onS2C_RunesUpMessage), this.register(5513, this.onS2C_RunesWearMessage)
		}, e.prototype.onS2C_EquipHuiShouPanelInfoHandler = function(t) {}, e.prototype.onS2C_ChuanShiItemMessage = function(
			t) {
			var e = [{
				pos: t.pos,
				grade: t.grade
			}];
			App.data.forgeCenter.updateRoleForgeInfo(t.index, e, ForgeType.CHUANSHI)
		}, e.prototype.onS2C_ZhuzaoItemHandler = function(t) {
			App.data.forgeCenter.updateRoleForgeInfo(t.index, t.strengInfo, ForgeType.Cast)
		}, e.prototype.onS2C_StrengItemHandler = function(t) {
			App.data.forgeCenter.updateRoleForgeInfo(t.index, t.strengInfo, ForgeType.Strength)
		}, e.prototype.onS2C_RefinePosHandler = function(t) {
			App.data.forgeCenter.updateRoleForgeInfo(t.index, t.strengInfo, ForgeType.Refine)
		}, e.prototype.onS2C_BuyStrengTopHandler = function(t) {}, e.prototype.onS2C_EquiUpStarMessage = function(t) {}, e.prototype
		.onS2C_RunesUpMessage = function(t) {
			App.data.forgeCenter.runesUpdateCallBack(t)
		}, e.prototype.onS2C_RunesWearMessage = function(t) {
			App.data.forgeCenter.runesWearCallBack(t)
		}, e
}(BaseConnectionRegister);
__reflect(ForgeCommanRegister.prototype, "ForgeCommanRegister");
var HtmlUtil = function() {
	function t() {}
	return t.getHtmlStr = function(t) {
		if (t && "" != t) {
			var e = /br|<br>/gi,
				i = "\n",
				n = t.replace(e, i),
				a = new egret.HtmlTextParser,
				o = a.parser(n);
			return o
		}
		return []
	}, t.formatColor = function(t, e) {
		return void 0 === e && (e = 0), "<font color='" + this.getColor(e) + "'>" + t + "</font>"
	}, t.formatFont = function(t, e, i, n) {
		return void 0 === e && (e = 0), void 0 === i && (i = 12), void 0 === n && (n = Style.FONT), "<font face='" + n +
			"' size='" + i + "' color='" + this.getColor(e) + "'>" + t + "</font>"
	}, t.formatUnderline = function(t) {
		return "<u>" + t + "</u>"
	}, t.formatBold = function(t) {
		return "<b>" + t + "</b>"
	}, t.formatLink = function(t, e, i, n) {
		return void 0 === i && (i = null), void 0 === n && (n = !0), t = "<a href='" + e + "'" + (i ? " target='" + i + "'" :
			"") + ">" + t + "</a>", n ? this.formatUnderline(t) : t
	}, t.formatItalic = function(t) {
		return "<i>" + t + "</i>"
	}, t.formatTextFormat = function(t, e, i) {
		return void 0 === e && (e = 0), void 0 === i && (i = 0), "<textformat indent='" + e + "' leading='" + i + "'>" + t +
			"</textformat>"
	}, t.getColor = function(t) {
		return "#" + t.toString(16)
	}, t
}();
__reflect(HtmlUtil.prototype, "HtmlUtil");
var md5 = function() {
	function t() {
		this.hexcase = 0, this.b64pad = ""
	}
	return t.prototype.hex_md5 = function(t) {
		return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)))
	}, t.prototype.b64_md5 = function(t) {
		return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)))
	}, t.prototype.any_md5 = function(t, e) {
		return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)), e)
	}, t.prototype.hex_hmac_md5 = function(t, e) {
		return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)))
	}, t.prototype.b64_hmac_md5 = function(t, e) {
		return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)))
	}, t.prototype.any_hmac_md5 = function(t, e, i) {
		return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(e)), i)
	}, t.prototype.md5_vm_test = function() {
		return "900150983cd24fb0d6963f7d28e17f72" == this.hex_md5("abc").toLowerCase()
	}, t.prototype.rstr_md5 = function(t) {
		return this.binl2rstr(this.binl_md5(this.rstr2binl(t), 8 * t.length))
	}, t.prototype.rstr_hmac_md5 = function(t, e) {
		var i = this.rstr2binl(t);
		i.length > 16 && (i = this.binl_md5(i, 8 * t.length));
		for (var n = Array(16), a = Array(16), o = 0; 16 > o; o++) n[o] = 909522486 ^ i[o], a[o] = 1549556828 ^ i[o];
		var r = this.binl_md5(n.concat(this.rstr2binl(e)), 512 + 8 * e.length);
		return this.binl2rstr(this.binl_md5(a.concat(r), 640))
	}, t.prototype.rstr2hex = function(t) {
		try {
			this.hexcase
		} catch (e) {
			this.hexcase = 0
		}
		for (var i, n = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", a = "", o = 0; o < t.length; o++) i = t.charCodeAt(
			o), a += n.charAt(i >>> 4 & 15) + n.charAt(15 & i);
		return a
	}, t.prototype.rstr2b64 = function(t) {
		try {
			this.b64pad
		} catch (e) {
			this.b64pad = ""
		}
		for (var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = "", a = t.length, o = 0; a > o; o +=
			3)
			for (var r = t.charCodeAt(o) << 16 | (a > o + 1 ? t.charCodeAt(o + 1) << 8 : 0) | (a > o + 2 ? t.charCodeAt(o + 2) :
					0), s = 0; 4 > s; s++) n += 8 * o + 6 * s > 8 * t.length ? this.b64pad : i.charAt(r >>> 6 * (3 - s) & 63);
		return n
	}, t.prototype.rstr2any = function(t, e) {
		var i, n, a, o, r, s = e.length,
			h = Array(Math.ceil(t.length / 2));
		for (i = 0; i < h.length; i++) h[i] = t.charCodeAt(2 * i) << 8 | t.charCodeAt(2 * i + 1);
		var l = Math.ceil(8 * t.length / (Math.log(e.length) / Math.log(2))),
			p = Array(l);
		for (n = 0; l > n; n++) {
			for (r = Array(), o = 0, i = 0; i < h.length; i++) o = (o << 16) + h[i], a = Math.floor(o / s), o -= a * s, (r.length >
				0 || a > 0) && (r[r.length] = a);
			p[n] = o, h = r
		}
		var c = "";
		for (i = p.length - 1; i >= 0; i--) c += e.charAt(p[i]);
		return c
	}, t.prototype.str2rstr_utf8 = function(t) {
		for (var e, i, n = "", a = -1; ++a < t.length;) e = t.charCodeAt(a), i = a + 1 < t.length ? t.charCodeAt(a + 1) : 0,
			e >= 55296 && 56319 >= e && i >= 56320 && 57343 >= i && (e = 65536 + ((1023 & e) << 10) + (1023 & i), a++), 127 >=
			e ? n += String.fromCharCode(e) : 2047 >= e ? n += String.fromCharCode(192 | e >>> 6 & 31, 128 | 63 & e) : 65535 >=
			e ? n += String.fromCharCode(224 | e >>> 12 & 15, 128 | e >>> 6 & 63, 128 | 63 & e) : 2097151 >= e && (n += String
				.fromCharCode(240 | e >>> 18 & 7, 128 | e >>> 12 & 63, 128 | e >>> 6 & 63, 128 | 63 & e));
		return n
	}, t.prototype.str2rstr_utf16le = function(t) {
		for (var e = "", i = 0; i < t.length; i++) e += String.fromCharCode(255 & t.charCodeAt(i), t.charCodeAt(i) >>> 8 &
			255);
		return e
	}, t.prototype.str2rstr_utf16be = function(t) {
		for (var e = "", i = 0; i < t.length; i++) e += String.fromCharCode(t.charCodeAt(i) >>> 8 & 255, 255 & t.charCodeAt(
			i));
		return e
	}, t.prototype.rstr2binl = function(t) {
		for (var e = Array(t.length >> 2), i = 0; i < e.length; i++) e[i] = 0;
		for (var i = 0; i < 8 * t.length; i += 8) e[i >> 5] |= (255 & t.charCodeAt(i / 8)) << i % 32;
		return e
	}, t.prototype.binl2rstr = function(t) {
		for (var e = "", i = 0; i < 32 * t.length; i += 8) e += String.fromCharCode(t[i >> 5] >>> i % 32 & 255);
		return e
	}, t.prototype.binl_md5 = function(t, e) {
		t[e >> 5] |= 128 << e % 32, t[(e + 64 >>> 9 << 4) + 14] = e;
		for (var i = 1732584193, n = -271733879, a = -1732584194, o = 271733878, r = 0; r < t.length; r += 16) {
			var s = i,
				h = n,
				l = a,
				p = o;
			i = this.md5_ff(i, n, a, o, t[r + 0], 7, -680876936), o = this.md5_ff(o, i, n, a, t[r + 1], 12, -389564586), a =
				this.md5_ff(a, o, i, n, t[r + 2], 17, 606105819), n = this.md5_ff(n, a, o, i, t[r + 3], 22, -1044525330), i =
				this.md5_ff(i, n, a, o, t[r + 4], 7, -176418897), o = this.md5_ff(o, i, n, a, t[r + 5], 12, 1200080426), a = this
				.md5_ff(a, o, i, n, t[r + 6], 17, -1473231341), n = this.md5_ff(n, a, o, i, t[r + 7], 22, -45705983), i = this.md5_ff(
					i, n, a, o, t[r + 8], 7, 1770035416), o = this.md5_ff(o, i, n, a, t[r + 9], 12, -1958414417), a = this.md5_ff(a,
					o, i, n, t[r + 10], 17, -42063), n = this.md5_ff(n, a, o, i, t[r + 11], 22, -1990404162), i = this.md5_ff(i, n,
					a, o, t[r + 12], 7, 1804603682), o = this.md5_ff(o, i, n, a, t[r + 13], 12, -40341101), a = this.md5_ff(a, o, i,
					n, t[r + 14], 17, -1502002290), n = this.md5_ff(n, a, o, i, t[r + 15], 22, 1236535329), i = this.md5_gg(i, n, a,
					o, t[r + 1], 5, -165796510), o = this.md5_gg(o, i, n, a, t[r + 6], 9, -1069501632), a = this.md5_gg(a, o, i, n,
					t[r + 11], 14, 643717713), n = this.md5_gg(n, a, o, i, t[r + 0], 20, -373897302), i = this.md5_gg(i, n, a, o, t[
					r + 5], 5, -701558691), o = this.md5_gg(o, i, n, a, t[r + 10], 9, 38016083), a = this.md5_gg(a, o, i, n, t[r +
					15], 14, -660478335), n = this.md5_gg(n, a, o, i, t[r + 4], 20, -405537848), i = this.md5_gg(i, n, a, o, t[r + 9],
					5, 568446438), o = this.md5_gg(o, i, n, a, t[r + 14], 9, -1019803690), a = this.md5_gg(a, o, i, n, t[r + 3], 14,
					-187363961), n = this.md5_gg(n, a, o, i, t[r + 8], 20, 1163531501), i = this.md5_gg(i, n, a, o, t[r + 13], 5, -
					1444681467), o = this.md5_gg(o, i, n, a, t[r + 2], 9, -51403784), a = this.md5_gg(a, o, i, n, t[r + 7], 14,
					1735328473), n = this.md5_gg(n, a, o, i, t[r + 12], 20, -1926607734), i = this.md5_hh(i, n, a, o, t[r + 5], 4, -
					378558), o = this.md5_hh(o, i, n, a, t[r + 8], 11, -2022574463), a = this.md5_hh(a, o, i, n, t[r + 11], 16,
					1839030562), n = this.md5_hh(n, a, o, i, t[r + 14], 23, -35309556), i = this.md5_hh(i, n, a, o, t[r + 1], 4, -
					1530992060), o = this.md5_hh(o, i, n, a, t[r + 4], 11, 1272893353), a = this.md5_hh(a, o, i, n, t[r + 7], 16, -
					155497632), n = this.md5_hh(n, a, o, i, t[r + 10], 23, -1094730640), i = this.md5_hh(i, n, a, o, t[r + 13], 4,
					681279174), o = this.md5_hh(o, i, n, a, t[r + 0], 11, -358537222), a = this.md5_hh(a, o, i, n, t[r + 3], 16, -
					722521979), n = this.md5_hh(n, a, o, i, t[r + 6], 23, 76029189), i = this.md5_hh(i, n, a, o, t[r + 9], 4, -
					640364487), o = this.md5_hh(o, i, n, a, t[r + 12], 11, -421815835), a = this.md5_hh(a, o, i, n, t[r + 15], 16,
					530742520), n = this.md5_hh(n, a, o, i, t[r + 2], 23, -995338651), i = this.md5_ii(i, n, a, o, t[r + 0], 6, -
					198630844), o = this.md5_ii(o, i, n, a, t[r + 7], 10, 1126891415), a = this.md5_ii(a, o, i, n, t[r + 14], 15, -
					1416354905), n = this.md5_ii(n, a, o, i, t[r + 5], 21, -57434055), i = this.md5_ii(i, n, a, o, t[r + 12], 6,
					1700485571), o = this.md5_ii(o, i, n, a, t[r + 3], 10, -1894986606), a = this.md5_ii(a, o, i, n, t[r + 10], 15,
					-1051523), n = this.md5_ii(n, a, o, i, t[r + 1], 21, -2054922799), i = this.md5_ii(i, n, a, o, t[r + 8], 6,
					1873313359), o = this.md5_ii(o, i, n, a, t[r + 15], 10, -30611744), a = this.md5_ii(a, o, i, n, t[r + 6], 15, -
					1560198380), n = this.md5_ii(n, a, o, i, t[r + 13], 21, 1309151649), i = this.md5_ii(i, n, a, o, t[r + 4], 6, -
					145523070), o = this.md5_ii(o, i, n, a, t[r + 11], 10, -1120210379), a = this.md5_ii(a, o, i, n, t[r + 2], 15,
					718787259), n = this.md5_ii(n, a, o, i, t[r + 9], 21, -343485551), i = this.safe_add(i, s), n = this.safe_add(n,
					h), a = this.safe_add(a, l), o = this.safe_add(o, p)
		}
		return [i, n, a, o]
	}, t.prototype.md5_cmn = function(t, e, i, n, a, o) {
		return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(e, t), this.safe_add(n, o)), a), i)
	}, t.prototype.md5_ff = function(t, e, i, n, a, o, r) {
		return this.md5_cmn(e & i | ~e & n, t, e, a, o, r)
	}, t.prototype.md5_gg = function(t, e, i, n, a, o, r) {
		return this.md5_cmn(e & n | i & ~n, t, e, a, o, r)
	}, t.prototype.md5_hh = function(t, e, i, n, a, o, r) {
		return this.md5_cmn(e ^ i ^ n, t, e, a, o, r)
	}, t.prototype.md5_ii = function(t, e, i, n, a, o, r) {
		return this.md5_cmn(i ^ (e | ~n), t, e, a, o, r)
	}, t.prototype.safe_add = function(t, e) {
		var i = (65535 & t) + (65535 & e),
			n = (t >> 16) + (e >> 16) + (i >> 16);
		return n << 16 | 65535 & i
	}, t.prototype.bit_rol = function(t, e) {
		return t << e | t >>> 32 - e
	}, t
}();
__reflect(md5.prototype, "md5");
var h5_engine;
! function(t) {
	var e = function() {
		function t() {}
		return t.IOS = "iOS", t.Android = "Android", t.Windows_Phone = "Windows Phone", t.Windows_PC = "Windows PC", t.MAC_OS =
			"Mac OS", t.Unknown = "Unknown", t
	}();
	t.OsType = e, __reflect(e.prototype, "h5_engine.OsType")
}(h5_engine || (h5_engine = {}));
var TypeUtil = function() {
	function t() {}
	return t.isArray = function(t) {
		return "object" == typeof t && Array == t.constructor
	}, t.isString = function(t) {
		return t && "string" == typeof t && t.constructor == String
	}, t.isNumber = function(t) {
		return t && "number" == typeof t && t.constructor == Number
	}, t.isFunction = function(t) {
		return t && "function" == typeof t && t.constructor == Function
	}, t.isObject = function(t) {
		return t && "object" == typeof t && t.constructor == Object
	}, t.isJSON = function(e, i) {
		return void 0 === i && (i = null), i && t.isObject(e) ? !0 : t.isString(e) ? (e = e.replace(/\s/g, "").replace(
			/\n|\r/, ""), /^\{(.*?)\}$/.test(e) ? /"(.*?)":(.*?)/g.test(e) : /^\[(.*?)\]$/.test(e) ? e.replace(/^\[/, "").replace(
			/\]$/, "").replace(/},{/g, "}\n{").split(/\n/).map(function(e) {
			return t.isJSON(e)
		}).reduce(function(t, e) {
			return !!e
		}) : !1) : !1
	}, t
}();
__reflect(TypeUtil.prototype, "TypeUtil");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			return e.call(this) || this
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "brightness", {
			set: function(e) {
				null == this.m_brightnessMatrix && (this.m_brightnessMatrix = new t.ColorMatrix), 0 != e && this.m_brightnessMatrix
					.SetBrightnessMatrix(e)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "contrast", {
			set: function(e) {
				var n = e;
				n = 0 == e ? 127 : e > 0 ? 127 * i.s_arrayOfDeltaIndex[e >> 0] + 127 : e / 100 * 127 + 127, null == this.m_contrastMatrix &&
					(this.m_contrastMatrix = new t.ColorMatrix), this.m_contrastMatrix.SetContrastMatrix(n)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "saturation", {
			set: function(e) {
				var i = e;
				i = 0 == e ? 1 : e > 0 ? 1 + 3 * e / 100 : e / 100 + 1, null == this.m_saturationMatrix && (this.m_saturationMatrix =
					new t.ColorMatrix), this.m_saturationMatrix.SetSaturationMatrix(i)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "hue", {
			set: function(e) {
				null == this.m_hueMatrix && (this.m_hueMatrix = new t.ColorMatrix), 0 != e && this.m_hueMatrix.SetHueMatrix(e *
					Math.PI / 180)
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.AllValuesAreSet = function() {
			return null != this.m_brightnessMatrix && null != this.m_contrastMatrix && null != this.m_saturationMatrix && null !=
				this.m_hueMatrix
		}, i.prototype.CalculateFinalFlatArray = function() {
			return this.CalculateFinalMatrix() ? this.m_finalMatrix.GetFlatArray() : null
		}, i.prototype.CalculateFinalMatrix = function() {
			return this.AllValuesAreSet() ? (this.m_finalMatrix = new t.ColorMatrix, this.m_finalMatrix.Multiply(this.m_brightnessMatrix),
				this.m_finalMatrix.Multiply(this.m_contrastMatrix), this.m_finalMatrix.Multiply(this.m_saturationMatrix), this.m_finalMatrix
				.Multiply(this.m_hueMatrix), !0) : !1
		}, i.s_arrayOfDeltaIndex = [0, .01, .02, .04, .05, .06, .07, .08, .1, .11, .12, .14, .15, .16, .17, .18, .2, .21,
			.22, .24, .25, .27, .28, .3, .32, .34, .36, .38, .4, .42, .44, .46, .48, .5, .53, .56, .59, .62, .65, .68, .71,
			.74, .77, .8, .83, .86, .89, .92, .95, .98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66,
			1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9,
			5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10
		], i
	}(Dispose);
	t.AdjustColor = e, __reflect(e.prototype, "h5_engine.AdjustColor")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this, 5, 5) || this;
			return t.LoadIdentity(), t
		}
		return __extends(i, e), i.prototype.SetBrightnessMatrix = function(t) {
			this.m_matrix && (this.m_matrix[0][4] = t, this.m_matrix[1][4] = t, this.m_matrix[2][4] = t)
		}, i.prototype.SetContrastMatrix = function(t) {
			if (this.m_matrix) {
				var e = .5 * (127 - t);
				t /= 127, this.m_matrix[0][0] = t, this.m_matrix[1][1] = t, this.m_matrix[2][2] = t, this.m_matrix[0][4] = e,
					this.m_matrix[1][4] = e, this.m_matrix[2][4] = e
			}
		}, i.prototype.SetSaturationMatrix = function(t) {
			if (this.m_matrix) {
				var e = 1 - t,
					n = e * i.LUMINANCER;
				this.m_matrix[0][0] = n + t, this.m_matrix[1][0] = n, this.m_matrix[2][0] = n, n = e * i.LUMINANCEG, this.m_matrix[
						0][1] = n, this.m_matrix[1][1] = n + t, this.m_matrix[2][1] = n, n = e * i.LUMINANCEB, this.m_matrix[0][2] = n,
					this.m_matrix[1][2] = n, this.m_matrix[2][2] = n + t
			}
		}, i.prototype.SetHueMatrix = function(e) {
			if (this.m_matrix) {
				this.LoadIdentity();
				var i = new t.DynamicMatrix(3, 3),
					n = new t.DynamicMatrix(3, 3),
					a = new t.DynamicMatrix(3, 3),
					o = Math.cos(e),
					r = Math.sin(e),
					s = .213,
					h = .715,
					l = .072;
				i.SetValue(0, 0, s), i.SetValue(1, 0, s), i.SetValue(2, 0, s), i.SetValue(0, 1, h), i.SetValue(1, 1, h), i.SetValue(
					2, 1, h), i.SetValue(0, 2, l), i.SetValue(1, 2, l), i.SetValue(2, 2, l), n.SetValue(0, 0, 1 - s), n.SetValue(1,
					0, -s), n.SetValue(2, 0, -s), n.SetValue(0, 1, -h), n.SetValue(1, 1, 1 - h), n.SetValue(2, 1, -h), n.SetValue(0,
					2, -l), n.SetValue(1, 2, -l), n.SetValue(2, 2, 1 - l), n.MultiplyNumber(o), a.SetValue(0, 0, -s), a.SetValue(1,
					0, .143), a.SetValue(2, 0, -(1 - s)), a.SetValue(0, 1, -h), a.SetValue(1, 1, .14), a.SetValue(2, 1, h), a.SetValue(
					0, 2, 1 - l), a.SetValue(1, 2, -.283), a.SetValue(2, 2, l), a.MultiplyNumber(r), i.Add(n), i.Add(a);
				for (var p = 0; 3 > p; p++)
					for (var c = 0; 3 > c; c++) this.m_matrix[p][c] = i.GetValue(p, c)
			}
		}, i.prototype.GetFlatArray = function() {
			if (!this.m_matrix) return null;
			for (var t = new Array, e = 0, i = 0; 4 > i; i++)
				for (var n = 0; 5 > n; n++) t[e] = this.m_matrix[i][n], e++;
			return t
		}, i.LUMINANCER = .3086, i.LUMINANCEG = .6094, i.LUMINANCEB = .082, i
	}(t.DynamicMatrix);
	t.ColorMatrix = e, __reflect(e.prototype, "h5_engine.ColorMatrix");
	var i = function() {
		function t() {
			this.ox = 0, this.oy = 0, this.oz = 0
		}
		return t
	}();
	__reflect(i.prototype, "XFormData")
}(h5_engine || (h5_engine = {}));
var FriendCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {}, e
}(BaseConnectionRegister);
__reflect(FriendCommandRegister.prototype, "FriendCommandRegister");
var FunctionApply = function() {
	function t() {}
	return t.doExecute = function(t, e, i) {
		if (!this.OPEN_TRY_CATCH) return this.execute(t, e, i);
		try {
			return this.execute(t, e, i)
		} catch (n) {
			GameLog.log(n.stack)
		}
	}, t.execute = function(t, e, i) {
		return i && 0 != i.length ? t.apply(e, i) : t.apply(e)
	}, t.OPEN_TRY_CATCH = !1, t
}();
__reflect(FunctionApply.prototype, "FunctionApply");
var h5_engine;
! function(t) {
	var e = function() {
		function e() {
			t.LogicInterface.instance = this
		}
		return e.prototype.log = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.INFO, t)
		}, e.prototype.logError = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.ERROR, t)
		}, e.prototype.logInfo = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.INFO, t)
		}, e.prototype.logDebug = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.DEBUG, t)
		}, e.prototype.logWarn = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.WARN, t)
		}, e.prototype.logStack = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
		}, e.prototype.logXingneng = function() {
			for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
			LogCenter.inputMsgByType(EnumLogType.XINGNENG, t)
		}, e
	}();
	t.LogicInterface = e, __reflect(e.prototype, "h5_engine.LogicInterface")
}(h5_engine || (h5_engine = {}));
var GameLog = function() {
	function t() {}
	return t.codeTimeCal = function(e, i, n) {
		for (var a = [], o = 3; o < arguments.length; o++) a[o - 3] = arguments[o];
		var r = egret.getTimer(),
			s = i.apply(null, a),
			h = egret.getTimer() - r;
		return t.isTraceLog && console.log(e, "代码耗时", h), h5_engine.LogicInterface.instance && h5_engine.LogicInterface.instance
			.logInfo(e, "代码耗时", h), s
	}, t.log = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		t = null
	}, t.logDebug = function() {
		for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
		t.isTraceLog && (console.debug(">>>> [debug]: ", e.join(" ")), h5_engine.LogicInterface.instance && h5_engine.LogicInterface
			.instance.logDebug.apply(this, e)), e = null
	}, t.logWarn = function() {
		for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
		t.isTraceLog && (console.warn(">>>> [warn]: ", e.join(" ")), h5_engine.LogicInterface.instance && h5_engine.LogicInterface
			.instance.logWarn.apply(this, e)), e = null
	}, t.logInfo = function() {
		for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
		t.isTraceLog && (console.info(">>>> [info]: ", e.join(" ")), h5_engine.LogicInterface.instance && h5_engine.LogicInterface
			.instance.logInfo.apply(this, e)), e = null
	}, t.logErrorStack = function(e, i) {
		try {
			throw new Error(e)
		} catch (n) {
			var a = n.stack;
			h5_engine.LogicInterface.instance && h5_engine.LogicInterface.instance.logError(e, a), t.isTraceLog && console.error(
				">>>> [error]: ", a)
		}
	}, t.logError = function() {
		for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
		var n = e.join(" ");
		if (t.isTraceLog) try {
			throw new Error(n)
		} catch (a) {
			var o = a.stack;
			return h5_engine.LogicInterface.instance && h5_engine.LogicInterface.instance.logError(n, o), console.error(
				">>>> [error]: ", o), o
		}
	}, t.isTraceLog = !0, t
}();
__reflect(GameLog.prototype, "GameLog");
var FunctionVO = function(t) {
	function e(e, i) {
		for (var n = [], a = 2; a < arguments.length; a++) n[a - 2] = arguments[a];
		var o = t.call(this) || this;
		return o.fun = e, o.thisObject = i, o.param = n, o
	}
	return __extends(e, t), e.prototype.exec = function() {
		for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
		var i = this;
		if (i.fun) {
			var n = void 0;
			return i.param ? n = i.param.concat(t) : t && (n = t), FunctionApply.doExecute(i.fun, i.thisObject, n)
		}
	}, e
}(egret.HashObject);
__reflect(FunctionVO.prototype, "FunctionVO");
var Keyboard = function() {
	function t() {}
	return t.A = 65, t.B = 66, t.C = 67, t.D = 68, t.E = 69, t.F = 70, t.G = 71, t.H = 72, t.I = 73, t.J = 74, t.K = 75,
		t.L = 76, t.M = 77, t.N = 78, t.O = 79, t.P = 80, t.Q = 81, t.R = 82, t.S = 83, t.T = 84, t.U = 85, t.V = 86, t.W =
		87, t.X = 88, t.Y = 89, t.Z = 90, t.NUMBER_0 = 48, t.NUMBER_1 = 49, t.NUMBER_2 = 50, t.NUMBER_3 = 51, t.NUMBER_4 =
		52, t.NUMBER_5 = 53, t.NUMBER_6 = 54, t.NUMBER_7 = 55, t.NUMBER_8 = 56, t.NUMBER_9 = 57, t.NUMPAD_0 = 96, t.NUMPAD_1 =
		97, t.SPACE = 32, t.HOME = 36, t.ESCAPE = 27, t.SHIFT = 16, t.CONTROL = 17, t.BACKQUOTE = 192, t.F1 = 112, t.F2 =
		113, t.F3 = 114, t.F4 = 115, t
}();
__reflect(Keyboard.prototype, "Keyboard");
var KeyBoardManager = function() {
	function t(t) {
		this._enabled = !0, this._downKeys = new Array, this.downListner = new ListenerHandlers, this.upLister = new ListenerHandlers,
			this._lastKeyTimeDict = new HashObject, this._stage = t, this.addEvent()
	}
	return t.prototype.addEvent = function() {
		var t = this;
		document.addEventListener(h5_engine.KeyBoradEvent.KEY_DOWN, function(e) {
			t.onKeyDown(e)
		}), document.addEventListener(h5_engine.KeyBoradEvent.KEY_UP, function(e) {
			t.onKeyUp(e)
		}), this._stage.addEventListener(egret.Event.ACTIVATE, this.onFocusOutHandler, this), this._stage.addEventListener(
			egret.Event.DEACTIVATE, this.onFocusOutHandler, this)
	}, Object.defineProperty(t.prototype, "enabled", {
		get: function() {
			return this._enabled
		},
		set: function(t) {
			this._enabled = t, 0 == this._enabled && (this._downKeys = [])
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.onFocusOutHandler = function(t) {
		this._downKeys = []
	}, t.prototype.onKeyDown = function(t) {
		try {
			if (0 == this.enabled) return;
			t.target.toString();
			if (t.target instanceof HTMLInputElement) return void(this._downKeys = []);
			this.recordDownKeys(t), this.execute(t)
		} catch (e) {
			GameLog.logErrorStack(e, "KeyBoardManager.onKeyDown")
		}
	}, t.prototype.onKeyUp = function(t) {
		try {
			if (0 == this.enabled) return;
			var e = t.keyCode,
				i = this._downKeys.indexOf(e); - 1 != i && this._downKeys.splice(i, 1), this.keyUpExctures(t)
		} catch (n) {
			GameLog.logErrorStack(n, "KeyBoardManager.onKeyDown")
		}
	}, t.prototype.execute = function(t) {
		var e = t.keyCode,
			i = this._lastKeyTimeDict.get(e),
			n = egret.getTimer();
		n - i >= 250 && (this.downListner.execute(e, [t]), this._lastKeyTimeDict.put(e, n))
	}, t.prototype.addKeyHandler = function(t, e) {
		this.downListner.addListnerHandler(t, e)
	}, t.prototype.removeKeyHandler = function(t, e) {
		this.downListner.removeListnerHandler(t, e)
	}, t.prototype.addKeyUpHandler = function(t, e) {
		this.upLister.addListnerHandler(t, e)
	}, t.prototype.removeKeyUpHandler = function(t, e) {
		this.upLister.removeListnerHandler(t, e)
	}, t.prototype.recordDownKeys = function(t) {
		-1 == this._downKeys.indexOf(t.keyCode) && this._downKeys.push(t.keyCode)
	}, t.prototype.keyUpExctures = function(t) {
		var e = t.keyCode;
		this.upLister.execute(e, [t])
	}, t.prototype.isKeyDown = function(t) {
		return -1 != this._downKeys.indexOf(t)
	}, t
}();
__reflect(KeyBoardManager.prototype, "KeyBoardManager");
var h5_engine;
! function(t) {
	var e = function() {
		function t() {}
		return t.KEY_DOWN = "keydown", t.KEY_UP = "keyup", t.KEY_PRESS = "keypress", t
	}();
	t.KeyBoradEvent = e, __reflect(e.prototype, "h5_engine.KeyBoradEvent")
}(h5_engine || (h5_engine = {}));
var ListenerHandlers = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._handlerDict = new HashMap, e
	}
	return __extends(e, t), e.prototype.addListnerHandler = function(t, e) {
		var i = this._handlerDict.get(t);
		i ? i.put(e, e) : (i = new HashMap, i.put(e, e), this._handlerDict.put(t, i))
	}, e.prototype.removeListnerHandler = function(t, e) {
		if (this._handlerDict.has(t)) {
			var i = this._handlerDict.get(t);
			i.del(e)
		}
	}, e.prototype.execute = function(t, e) {
		void 0 === e && (e = null);
		var i = this._handlerDict.get(t);
		if (i)
			for (var n = i.values, a = n.length, o = 0; a > o; o++) {
				var r = n[o];
				r.param = e, r.exec()
			}
	}, e.prototype.dispose = function() {
		this._handlerDict = null, t.prototype.dispose.call(this)
	}, e
}(Dispose);
__reflect(ListenerHandlers.prototype, "ListenerHandlers");
var GMCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5349, this.onS2C_GMClientNotifyBroadcastMessageHandler)
	}, e.prototype.onS2C_GMClientNotifyBroadcastMessageHandler = function(t) {
		GMUtil.checkIsGmString(t.extendsParams)
	}, e
}(BaseConnectionRegister);
__reflect(GMCommandRegister.prototype, "GMCommandRegister");
var GuildCommandRegister = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.isFirst = !0, e
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5177, this.onS2C_GuildListChangeMessage), this.register(5168, this.onS2C_CreateGuildSuccMessage),
			this.register(5013, this.onS2C_MyGuildInfoMessage), this.register(5334, this.onS2C_GuildMemberListMessage), this.register(
				5068, this.onS2C_GuildInfoMessage), this.register(5025, this.onS2C_GuildLogMessage), this.register(5181, this.onS2C_GuildListMessage),
			this.register(5261, this.onS2C_GuildApplyListMessage), this.register(5140, this.onS2C_DealApplyResultMessage),
			this.register(5055, this.onS2C_ChangeGuildNoticeMessage), this.register(5183, this.onS2C_ChangeGuildMemberMessage),
			this.register(5028, this.onS2C_GuildTrainMessage), this.register(5032, this.onS2C_DonateItemMessage)
	}, e.prototype.onS2C_GuildTrainMessage = function(t) {
		App.data.guildCenter.setRoleGuild(t)
	}, e.prototype.onS2C_DonateItemMessage = function(t) {
		if (3 == t.actionType) {
			for (var e = 0, i = 0; i < t.successiTemId.length; i++) {
				var n = App.config.q_ware_houseContainer.getDataBean(t.successiTemId[i]).q_donate,
					a = StringUtil.JsonParse(n),
					o = (a[0].id, a[0].num);
				e += o
			}
			e > 0 && Notice.showBottomMessage("捐献成功获得" + e + "帮会积分"), GameLog.log("捐献返回------------")
		} else 5 == t.actionType && GameLog.log("兑换返回------------")
	}, e.prototype.onS2C_ChangeGuildMemberMessage = function(t) {
		1 == t.type || App.data.guildCenter.changeMember(t.type, t.memberInfo) && App.panel.isShowing(41) && (App.dispatcher
			.dispatchEvent(GuildEvent.GUILD, GuildEvent.MEMBER), App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.INFO)
		)
	}, e.prototype.onS2C_ChangeGuildNoticeMessage = function(t) {
		null != App.data.guildCenter.myGuildInfo && (App.data.guildCenter.myGuildInfo.notice = t.notice, App.panel.isShowing(
			41) && App.dispatcher.dispatchEvent(GuildEvent.NOTICE_CHANGE))
	}, e.prototype.onS2C_GuildListChangeMessage = function(t) {
		for (var e = t.guildList.length, i = 0; e > i; i++) {
			var n = t.guildList[i];
			switch (t.type) {
				case 0:
					App.data.guildNameCenter.removeGuildName(n.guildId.toString());
					break;
				case 1:
					App.data.guildNameCenter.addGuildName(n.guildId.toString(), n.guildName);
					break;
				case 2:
					App.data.guildNameCenter.addGuildName(n.guildId.toString(), n.guildName)
			}
		}
		App.data.guildCenter.changeGuildApplyState(t.guildList), App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.LIST)
	}, e.prototype.onS2C_CreateGuildSuccMessage = function(t) {
		App.panel.removePanel(32), App.panel.isShowing(31) && App.panel.removePanel(31)
	}, e.prototype.onS2C_MyGuildInfoMessage = function(t) {
		var e = null;
		null != t.guildId && (e = t.guildId.toString()), null == e || "" == e || "0" == e ? (App.panel.removePanel(41), App
			.dispatcher.dispatchEvent(GuildEvent.EXIT), App.global.characterData.guildId = null) : (App.global.characterData.guildId =
			e, App.dispatcher.dispatchEvent(GuildEvent.ENTER), GuildCommandSender.sendGuildInfoMessage(), App.panel.isShowing(
				41) && (App.data.guildCenter.isForceToMember = !0), this.isFirst || GuildCommandSender.sendGuildMemberListMessage()
		), this.isFirst && (this.isFirst = !1)
	}, e.prototype.onS2C_GuildMemberListMessage = function(t) {
		for (var e = t.memberList, i = e.length, n = 0; i > n; n++) e[n].playerId.toString() != App.global.characterData.personId ||
			(App.data.guildCenter.myContribution = Number(e[n].contribute));
		App.data.guildCenter.loadMembers(t.memberList), App.data.guildCenter.myGuildInfo.personNum = t.memberList.length,
			null != App.panel.getPanel(41) ? App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.MEMBER) : App.panel.isShowing(
				31) && App.panel.removePanel(31)
	}, e.prototype.onS2C_GuildInfoMessage = function(t) {
		null == App.data.guildCenter.myGuildInfo && (App.data.guildCenter.myGuildInfo = new GuildInfo), App.data.guildCenter
			.myGuildInfo.guildType = t.guildType, App.data.guildCenter.myGuildInfo.notice = t.notice, App.data.guildCenter.myGuildInfo
			.myPosition = t.myPosition, App.data.guildCenter.myGuildInfo.guildMoney = LongUtil.toNumber(t.guildMoney), App.data
			.currencyDataCenter.setMoney(EnumMoney.GUILD_MONEY, App.data.guildCenter.myGuildInfo.guildMoney), App.data.guildCenter
			.myGuildInfo.guildLevel = t.guildLevel, App.data.guildCenter.myGuildInfo.shopLevel = t.shopLevel, App.data.guildCenter
			.myGuildInfo.practiceLevel = t.practiceLevel, App.data.guildCenter.myGuildInfo.isImpeaching = 1 == t.isImpeaching,
			App.data.guildCenter.myGuildInfo.presidentLeftDays = t.presidentLeftDays, App.data.guildCenter.myGuildInfo.impeamRemainTime =
			t.impeamRemainTime, App.data.guildCenter.myGuildInfo.changeNameNum = t.changeNameNum, App.data.guildCenter.myGuildInfo
			.deleteGuildEndTime = t.deleteGuildEndTime, App.data.guildCenter.myGuildInfo.applyPower = t.applyPower, App.data.guildCenter
			.myGuildInfo.applyState = t.autoAgree, App.panel.isShowing(41) && App.dispatcher.dispatchEvent(GuildEvent.GUILD,
				GuildEvent.INFO)
	}, e.prototype.onS2C_GuildLogMessage = function(t) {
		App.data.guildCenter.loadLogs(t.logList), App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.LOG)
	}, e.prototype.sortFunction = function(t, e) {
		return t.time > e.time ? -1 : 1
	}, e.prototype.onS2C_GuildListMessage = function(t) {
		App.data.guildCenter.cdTimeEnd = t.cdTimeEnd, App.data.guildNameCenter.setGuildList(t.guildList), App.data.guildCenter
			.loadGuilds(t.guildList), App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.LIST)
	}, e.prototype.onS2C_GuildApplyListMessage = function(t) {
		App.data.guildCenter.autoAgree = t.autoAgree, App.data.guildCenter.loadApplys(t.applyList), App.dispatcher.dispatchEvent(
			GuildEvent.GUILD, GuildEvent.APPLY)
	}, e.prototype.onS2C_DealApplyResultMessage = function(t) {
		App.data.guildCenter.dealApplys(t.applyList), App.dispatcher.dispatchEvent(GuildEvent.GUILD, GuildEvent.APPLY)
	}, e
}(BaseConnectionRegister);
__reflect(GuildCommandRegister.prototype, "GuildCommandRegister");
var ItemCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5339, this.onS2C_ItemInfosMessage), this.register(5267, this.onS2C_ItemAddMessage), this.register(
			5366, this.onS2C_ItemsChangeMessage), this.register(5159, this.onS2C_ItemRemoveMessage), this.register(5072, this
			.onS2C_EquipHuiShouResultHandler), this.register(5207, this.onS2C_UseItemResultMessage), this.register(5308, this
			.onS2C_StoreOpenCellResultMessage), this.register(5172, this.onS2C_ItemUseNumInfoChangeMessage), this.register(
			5093, this.onS2C_ItemUseNumInfoListMessage), this.register(5580, this.onS2C_OpenGiftGetItemsMessage), this.register(
			5081, this.onS2C_ShowAddItemEffectMessage), this.register(5006, this.onS2C_LimitItemTimeMessage), this.register(
			5021, this.onS2C_AdvanceStrongStoneChangeMessage)
	}, e.prototype.onS2C_OpenGiftGetItemsMessage = function(t) {
		App.panel.openPanel(115, t.itemInfos)
	}, e.prototype.onS2C_ItemUseNumInfoChangeMessage = function(t) {
		App.data.bagItemDataCenter.addLimit(t.ItemUseNumInfo.limitGroupModelId, t.ItemUseNumInfo.remainNum), App.dispatcher
			.dispatchEvent(EventType.refreshMetemNum)
	}, e.prototype.onS2C_ItemUseNumInfoListMessage = function(t) {
		for (var e = 0; e < t.ItemUseNumInfos.length; e++) App.data.bagItemDataCenter.addLimit(t.ItemUseNumInfos[e].limitGroupModelId,
			t.ItemUseNumInfos[e].remainNum)
	}, e.prototype.onS2C_ItemInfosMessage = function(t) {
		1 == t.actionType ? App.data.bagItemDataCenter.loadDatas(t.items, t.gridNum, t.buyNum) : 4 == t.actionType ? App.data
			.tanbaoCenter.loadItems(t.items) : 3 == t.actionType && App.data.guildCenter.loadItems(t.items)
	}, e.prototype.onS2C_ItemAddMessage = function(t) {
		1 == t.actionType ? App.data.bagItemDataCenter.addDatas(t.item, t.reason, !0) : 4 == t.actionType ? App.data.tanbaoCenter
			.addItem(t.item) : 3 == t.actionType && App.data.guildCenter.addItem(t.item)
	}, e.prototype.onS2C_ItemsChangeMessage = function(t) {
		null != t && 1 == t.actionType && App.data.bagItemDataCenter.changeDatas(t.changeItems, t.reason)
	}, e.prototype.onS2C_ItemRemoveMessage = function(t) {
		1 == t.actionType ? App.data.bagItemDataCenter.removeDatas(t.itemIds, t.reason) : 4 == t.actionType ? App.data.tanbaoCenter
			.removeItem(t.itemIds) : 3 == t.actionType && App.data.guildCenter.removeItem(t.itemIds)
	}, e.prototype.onS2C_EquipHuiShouResultHandler = function(t) {
		App.dispatcher.dispatchEvent(ForgeEvent.RECOVERYRESULT, t.successIds, t.failIds, t.sumExp), App.dispatcher.dispatchEvent(
			EnumRole.Decompose)
	}, e.prototype.onS2C_UseItemResultMessage = function(t) {
		0 == t.result && (App.dispatcher.dispatchEvent(ItemEvent.USE_SUCCESS, t.itemId.toString()), (8505 == t.itemModelId ||
			8006 == t.itemModelId || 8007 == t.itemModelId || 8506 == t.itemModelId || 8008 == t.itemModelId || 8009 == t.itemModelId ||
			8507 == t.itemModelId || 8010 == t.itemModelId || 8011 == t.itemModelId || 8508 == t.itemModelId || 8012 == t.itemModelId ||
			8013 == t.itemModelId) && App.dispatcher.dispatchEvent(ItemEvent.USE_EFFECT, t.gridId))
	}, e.prototype.onS2C_StoreOpenCellResultMessage = function(t) {
		1 == t.actionType && (t.isSuccess ? (App.data.bagItemDataCenter.equipBagCapacity += t.cellId.length, App.data.bagItemDataCenter
			.ybBuyCount += t.cellId.length, App.dispatcher.dispatchEvent(ItemEvent.BAG_OPEN_GRID)) : GameLog.log("扩充背包失败"))
	}, e.prototype.onS2C_ShowAddItemEffectMessage = function(t) {
		if (t.itemInfos) {
			for (var e = [], i = void 0, n = t.itemInfos.length, a = 0; n > a; a++) i = new ItemData, i.itemId = t.itemInfos[a]
				.itemModelId, i.count = t.itemInfos[a].itemNum, e.push(i);
			App.dispatcher.dispatchEvent(ItemEvent.SHOW_ADD_ITEM, e, t.reason)
		}
	}, e.prototype.onS2C_LimitItemTimeMessage = function(t) {
		var e = App.global.roles.getRoleInfoByIndex(t.index);
		e && (3013901 == t.itemId ? e.hoopCharmTime = t.time : 3013801 == t.itemId && (e.jadeFairyBottleTime = t.time), App
			.dispatcher.dispatchEvent(PlayerAttributeEvent.UPDATE_JGZYXP_TIME))
	}, e.prototype.onS2C_AdvanceStrongStoneChangeMessage = function(t) {
		for (var e = -1, i = App.data.advanceDataCenter.getProxyByType(t.index, t.type), n = 0; n < i.strongStoneInfo.length; ++
			n) {
			var a = i.strongStoneInfo[n];
			if (a.modelId == t.stone.modelId) {
				e = n;
				break
			}
		}
		e > -1 ? i.strongStoneInfo[e] = t.stone : i.strongStoneInfo.push(t.stone), App.dispatcher.dispatchEvent(
			AdvanceEvent.DAN_UPDATE, t.type)
	}, e
}(BaseConnectionRegister);
__reflect(ItemCommandRegister.prototype, "ItemCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._x = 0, e._y = 0, e._z = 0, e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			var t = this;
			t._shadowBmp = new CImage, t._shadowBmp.url = ResPathUtil.getImgPath("mon_shadow"), t._shadowBmp.anchorOffsetX =
				38, t._shadowBmp.anchorOffsetY = 28
		}, Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				var e = this;
				e._x != t && (e._shadowBmp.x = t, e._x = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				var e = this;
				e._y != t && (e._shadowBmp.y = t, e._y = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "z", {
			get: function() {
				return this._z
			},
			set: function(t) {
				this._z != t && (this._z = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "scaleX", {
			get: function() {
				return this._shadowBmp.scaleX
			},
			set: function(t) {
				this._shadowBmp.scaleX = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "alpha", {
			get: function() {
				return this._shadowBmp.alpha
			},
			set: function(t) {
				this._shadowBmp.alpha = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "visible", {
			get: function() {
				return this._shadowBmp.visible
			},
			set: function(t) {
				this._shadowBmp.visible = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.setContainer = function(t) {
			t && t.addChild(this._shadowBmp)
		}, e.prototype.getParent = function() {
			return this._shadowBmp.parent
		}, e.prototype.removeContainer = function() {
			this._shadowBmp.parent && this._shadowBmp.parent.removeChild(this._shadowBmp)
		}, Object.defineProperty(e.prototype, "view", {
			get: function() {
				return this._shadowBmp
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.addPart = function(t) {
			return null
		}, e.prototype.removePart = function(t) {}, e.prototype.changeAct = function(t, e, i, n) {
			void 0 === e && (e = !1), void 0 === i && (i = !1), void 0 === n && (n = 0)
		}, e.prototype.play = function() {}, e.prototype.stop = function() {}, Object.defineProperty(e.prototype, "dir", {
			get: function() {
				return 0
			},
			set: function(t) {},
			enumerable: !0,
			configurable: !0
		}), e.prototype.addvanceTime = function(t) {}, e.prototype.dispose = function() {
			var t = this;
			t.removeContainer(), t.scaleX = 1, t.visible = !0, t.alpha = 1, e._pool.push(t)
		}, e.getShadow = function() {
			var t = e._pool.length > 0 ? e._pool.pop() : new e;
			return t
		}, e._pool = [], e
	}(Dispose);
	t.Shadow = e, __reflect(e.prototype, "h5_engine.Shadow", ["IShadow"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._height = 40, i._type = "", i._isShow = !1, i._x = 0, i._y = 0, i._isVisible = !0, i._effect = e, i
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "visible", {
			get: function() {
				return this._isVisible
			},
			set: function(t) {
				this._isVisible = t, this._effect && (this._effect.visible = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "effect", {
			get: function() {
				return this._effect
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "type", {
			get: function() {
				return this._type
			},
			set: function(t) {
				this._type = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "width", {
			get: function() {
				return 0
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return this._height
			},
			set: function(t) {
				this._height = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.addFather = function(t) {
			this._father != t && (this._father = t)
		}, e.prototype.removeFather = function() {
			this.hide(), this._father = null
		}, e.prototype.setContainer = function(t) {
			var e = this;
			t ? (e._container = t.effectContainer, e._isShow && e._effect.addParent(e._container)) : (e._container = null, e._effect
				.removeParent())
		}, e.prototype.isShow = function() {
			return this._isShow
		}, e.prototype.show = function() {
			var t = this;
			0 == t._isShow && (t._isShow = !0, t._father && t._father.posiChange(), t._container && t._effect.addParent(t._container))
		}, e.prototype.hide = function() {
			var t = this;
			t._isShow && (t._isShow = !1, t._effect.removeParent())
		}, e.prototype.resetPostion = function() {
			var t = this;
			if (t._isShow) {
				var e = t._father.getFatherPoint();
				t._effect.setTo(t._x + e.x, t._y + e.y)
			}
		}, e.prototype.clear = function() {
			this._effect.clear()
		}, e.prototype.dispose = function() {
			var e = this;
			t.prototype.dispose.call(this), e._effect && (e._effect.dispose(), e._effect = null), e._father = null, e._container =
				null
		}, e
	}(Dispose);
	t.AvatarHeadEffect = e, __reflect(e.prototype, "h5_engine.AvatarHeadEffect", ["IHeadLayout"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._type = "", t._name = "", t._color = 0, t._size = 0, t._x = 0, t._y = 0, t._isShow = !1, t._changeName = !
				1, t._height = 24, t._width = 0, t.init(), t
		}
		return __extends(i, e), i.prototype.init = function() {
			this._text = new t.GTextField, this.setStroke(!0)
		}, i.prototype.setStroke = function(t, e) {
			void 0 === e && (e = 0);
			var i = this;
			t ? (i._text.stroke = 1, i._text.strokeColor = e) : (i._text.stroke = 0, i._text.strokeColor = e)
		}, Object.defineProperty(i.prototype, "visible", {
			get: function() {
				return this._text.visible
			},
			set: function(t) {
				this._text.visible = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "changeSignCall", {
			get: function() {
				return this._changeSignCall
			},
			set: function(t) {
				this._changeSignCall = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "type", {
			get: function() {
				return this._type
			},
			set: function(t) {
				this._type = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.isShow = function() {
			return this._isShow
		}, i.prototype.getName = function() {
			return this._name
		}, Object.defineProperty(i.prototype, "width", {
			get: function() {
				return this._width
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "height", {
			get: function() {
				return this._height
			},
			set: function(t) {
				this._height != t && (this._height = t, this.changeParentLayout())
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.setName = function(t, e, i, n, a) {
			void 0 === e && (e = 16777215), void 0 === i && (i = 18), void 0 === n && (n = !1), void 0 === a && (a = !1);
			var o = this;
			i != o._size && (o._text.size = i, o._size = i), t != o._name && (o._name = t, o._changeName = !0, o._isShow && o.showName()),
				0 == a && (o._text.bold = n, o._color != e && (o._text.textColor = e, o._color = e))
		}, i.prototype.showName = function() {
			var t = this;
			t._changeName && null != t._name && (t._text.htmlText = t._name, t._width = t._text.textWidth, t.resetPostion(), t
				._changeName = !1)
		}, i.prototype.resetPostion = function() {
			var t = this;
			if (t._isShow) {
				var e = 0,
					i = 0;
				t._father && (e = t._father.getFatherPoint().x, i = t._father.getFatherPoint().y), t._text && (t._text.x = e + t._x -
					.5 * t._width >> 0, t._text.y = i + t._y >> 0), null != t._changeSignCall && t._changeSignCall.exec()
			}
		}, Object.defineProperty(i.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "x", {
			get: function() {
				return this._text.x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.setContainer = function(e) {
			var i = this;
			e ? (e instanceof t.MapAvatarHeadLayer && (e = e.nameContainer), i._container = e, i._isShow && (i._container && 0 ==
				i._container.contains(i._text) && (i._container.addChild(i._text), i.changeParentLayout()), i._changeName && i.showName()
			)) : (i._container = null, i._text && i._text.parent && i._text.parent.removeChild(i._text), i.changeParentLayout())
		}, i.prototype.addFather = function(t) {
			this._father != t && (this._father = t)
		}, i.prototype.removeFather = function() {
			var t = this;
			t.hide(), t._container = null, t._father = null
		}, i.prototype.show = function() {
			var t = this;
			0 == t._isShow && (t._isShow = !0, t._father && t._father.posiChange(), t._container && 0 == t._container.contains(
				t._text) && (t._container.addChild(t._text), t.changeParentLayout()), t._changeName && t.showName())
		}, i.prototype.hide = function() {
			var t = this;
			t._isShow && (t._isShow = !1, t._container && t._container.contains(t._text) && t._container.removeChild(t._text),
				t.changeParentLayout())
		}, i.prototype.changeParentLayout = function() {
			this._father && (this._father.change = !0)
		}, i.prototype.clear = function() {
			var t = this;
			t._color = 0, t._name = "", t._changeName = !1
		}, i.prototype.dispose = function() {
			e.prototype.dispose.call(this), this.hide(), this._changeName = !1, this._changeSignCall = null, this._father =
				null, this._container = null
		}, i
	}(Dispose);
	t.AvatarHeadTextName = e, __reflect(e.prototype, "h5_engine.AvatarHeadTextName", ["IHeadLayout"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._height = 40, i._type = "", i._isShow = !1, i._x = 0, i._y = 0, i._isVisible = !0, i._headImg = e, i
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "visible", {
			get: function() {
				return this._isVisible
			},
			set: function(t) {
				this._isVisible = t, this._headImg && (this._headImg.visible = t)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "headimg", {
			get: function() {
				return this._headImg
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "type", {
			get: function() {
				return this._type
			},
			set: function(t) {
				this._type = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "width", {
			get: function() {
				return 0
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "height", {
			get: function() {
				return this._height
			},
			set: function(t) {
				this._height = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._x
			},
			set: function(t) {
				this._x = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._y
			},
			set: function(t) {
				this._y = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.addFather = function(t) {
			this._father != t && (this._father = t)
		}, e.prototype.removeFather = function() {
			this.hide(), this._father = null
		}, e.prototype.setContainer = function(t) {
			var e = this;
			t ? (e._container = t.ImgContainer, e._isShow && e._container.addChild(e._headImg)) : (e._container = null, e._headImg
				.parent.contains(e._headImg) && e._headImg.parent.removeChild(e._headImg))
		}, e.prototype.isShow = function() {
			return this._isShow
		}, e.prototype.show = function() {
			var t = this;
			0 == t._isShow && (t._isShow = !0, t._father && t._father.posiChange(), t._container && t._container.addChild(t._headImg))
		}, e.prototype.hide = function() {
			var t = this;
			t._isShow && (t._isShow = !1, t._headImg.parent.contains(t._headImg) && t._headImg.parent.removeChild(t._headImg))
		}, e.prototype.resetPostion = function() {
			var t = this;
			if (t._isShow) {
				var e = t._father.getFatherPoint();
				t._headImg.x = t._x + e.x, t._headImg.y = t._y + e.y - 42
			}
		}, e.prototype.clear = function() {
			this._headImg.clear()
		}, e.prototype.dispose = function() {
			var e = this;
			t.prototype.dispose.call(this), e._headImg && (e._headImg.dispose(), e._headImg = null), e._father = null, e._container =
				null
		}, e
	}(Dispose);
	t.AvatarStallImg = e, __reflect(e.prototype, "h5_engine.AvatarStallImg", ["IHeadLayout"])
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e._height = 0, e._outType = null, e._childChange = !1, e._visible = !0, e._positionChange = !1, e._oftY = 0,
				e.init(), e
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "oftY", {
			get: function() {
				return this._oftY
			},
			set: function(t) {
				this._oftY = t >> 0, this._childChange = !0
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "x", {
			get: function() {
				return this._conPoint.x
			},
			set: function(t) {
				this._conPoint.x = t >> 0, this._positionChange = !0
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(e.prototype, "y", {
			get: function() {
				return this._conPoint.y
			},
			set: function(t) {
				this._conPoint.y = t >> 0, this._positionChange = !0
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.init = function() {
			this._conPoint = new egret.Point, this._headHash = new HashObject
		}, e.prototype.addvanceTime = function(t) {
			var e = this;
			if (e._childChange) {
				e._childChange = !1;
				var i = [],
					n = e._headHash.$_getValueMap();
				for (var a in n) i.push(n[a]);
				i.sort(e.sortHeadIndex);
				for (var o = 0, r = i.length, s = 0; r > s; s++) {
					var h = i[s].content;
					h.isShow() && h.visible && (o += h.height, h.y = e._oftY - o)
				}
				e._height = o, e.posiChange()
			}
		}, e.prototype.resetPosition = function() {
			var t = this;
			if (t._positionChange) {
				t._positionChange = !1;
				var e = t._headHash.$_getValueMap();
				for (var i in e) {
					var n = e[i].content;
					n.isShow && n.visible && n.resetPostion()
				}
			}
		}, e.prototype.sortHeadIndex = function(t, e) {
			return t.index > e.index ? 1 : -1
		}, Object.defineProperty(e.prototype, "change", {
			set: function(t) {
				this._childChange = t
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.getContent = function(t) {
			var e = this._headHash.get(t);
			return e ? e.content : null
		}, e.prototype.hashConetnt = function(t) {
			return this._headHash.has(t)
		}, e.prototype.posiChange = function() {
			var t = this;
			0 == t._positionChange && (t._positionChange = !0, t.resetPosition())
		}, e.prototype.addContent = function(t, e, i) {
			var n = this;
			0 == n._headHash.has(t) ? (i.type = t, n._headHash.put(t, {
					index: e,
					content: i,
					name: t
				}), i.addFather(n), n._parentView && i.setContainer(n._parentView), 0 == n._visible ? i.visible = !1 : n._outType &&
				-1 == n._outType.indexOf(t) && (i.visible = !1), n._childChange = !0, n._positionChange = !0) : GameLog.logError(
				"有重复的头顶内容")
		}, e.prototype.removeContent = function(t) {
			var e = this;
			if (e._headHash.has(t)) {
				var i = e._headHash.get(t);
				i.content.dispose(), e._headHash.del(t), e._childChange = !0
			}
		}, e.prototype.addParent = function(t) {
			var e = this;
			if (null == e._parentView) {
				e._parentView = t;
				var i = e._headHash.$_getValueMap();
				for (var n in i) {
					var a = i[n].content;
					a.setContainer(e._parentView)
				}
				e._childChange = !0, e.addvanceTime(0), e._positionChange = !0, e.resetPosition()
			}
		}, e.prototype.removeFromParent = function() {
			var t = this;
			if (t._parentView) {
				t._parentView = null;
				var e = t._headHash.$_getValueMap();
				for (var i in e) {
					var n = e[i].content;
					n.setContainer(t._parentView)
				}
			}
		}, e.prototype.getFatherPoint = function() {
			return this._conPoint
		}, e.prototype.hideHeadOutType = function(t) {
			var e = this;
			if (e.showHeadAll(), e._outType = t, t.length > 0) {
				var i = e._headHash.$_getValueMap();
				for (var n in i) {
					var a = i[n]; - 1 == t.indexOf(n) && (a.content.visible = !1)
				}
			}
			e._childChange = !0
		}, e.prototype.showHeadAll = function() {
			var t = this;
			if (t._outType = null, t._visible) {
				var e = t._headHash.$_getValueMap();
				for (var i in e) {
					var n = e[i];
					n.content.visible = !0
				}
			}
		}, Object.defineProperty(e.prototype, "visible", {
			get: function() {
				return this._visible
			},
			set: function(t) {
				var e = this;
				if (e._visible != t)
					if (e._visible = t, 0 == t) {
						var i = e._headHash.$_getValueMap();
						for (var n in i) {
							var a = i[n];
							a.content.visible = !1
						}
					} else e._outType ? e.hideHeadOutType(e._outType) : e.showHeadAll()
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			var e = this;
			t.prototype.dispose.call(this), e._childChange = !1;
			var i = e._headHash.$_getValueMap();
			for (var n in i) {
				var a = i[n];
				a.content.dispose()
			}
			e._conPoint && e._conPoint.setTo(0, 0), e._headHash.dispose(), e._outType = null, e._headHash = null
		}, e
	}(Dispose);
	t.RoleHeadLayout = e, __reflect(e.prototype, "h5_engine.RoleHeadLayout")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._avatar = e, i.init(), i
		}
		return __extends(e, t), e.prototype.init = function() {
				null == e.overFilter && (e.overFilter = new egret.ColorMatrixFilter([1, 0, 0, 0, 30, 0, 1, 0, 0, 30, 0, 0, 1, 0,
							30, 0, 0, 0, 1, 0
						]), e.downFilter_1 = new egret.GlowFilter(16768e3, 1, 7, 7, 2, 1, !1, !1), e.downFilter_2 = new egret.GlowFilter(
							11796480, 1, 7, 7, 2, 1, !1, !1), e.downFilter_3 = new egret.GlowFilter(51200, 1, 7, 7, 2, 1, !1, !1), e.overFilter_1 =
						new egret.GlowFilter(16776569, 1, 7, 7, 2, 1, !1, !1), e.overFilter_2 = new egret.GlowFilter(15539485, 1, 7, 7,
							2, 1, !1, !1), e.overFilter_3 = new egret.GlowFilter(5172813, 1, 7, 7, 2, 1, !1, !1)), this._filterType = new HashObject,
					this._filters = []
			}, e.prototype.mouseOver = function() {
				var t = this;
				t._filterType.has("over") || (t._filterType.put("over", e.overFilter), t._filters.push(e.overFilter), t.setAvatarFilters())
			}, e.prototype.mouseOut = function() {
				var t = this;
				t._filterType.has("over") && t.deleteFilter("over") && t.setAvatarFilters()
			}, e.prototype.addFilter = function(t, e) {
				var i = this;
				i._filterType.get(t) != e && (i.deleteFilter(t), i._filterType.put(t, e), i._filters.push(e), i.refreshFilter())
			}, e.prototype.deleteFilter = function(t) {
				var e = this,
					i = e._filterType.get(t);
				if (i) {
					e._filterType.del(t);
					var n = e._filters.indexOf(i);
					return e._filters.splice(n, 1), !0
				}
				return !1
			}, e.prototype.removeFilter = function(t) {
				var e = this;
				e.deleteFilter(t) && e.setAvatarFilters()
			}, e.prototype.refreshFilter = function() {
				var t = this;
				t._filters = [];
				var e = [],
					i = t._filterType;
				i.has("down") && e.push(i.get("down")), i.has("over") && e.push(i.get("over"));
				var n = i.$_getValueMap();
				for (var a in n) {
					var o = n[a];
					i.get("down") != o && i.get("over") != o && t._filters.push(o)
				}
				t._filters = t._filters.concat(e), t.setAvatarFilters()
			}, e.prototype.clearAll = function() {
				var t = this;
				t._filters = [], t.setAvatarFilters(), t._filterType.clear()
			}, e.prototype.setAvatarFilters = function() {
				this._avatar.filters = this._filters
			}, e.prototype.dispose = function() {
				this.clearAll(), t.prototype.dispose.call(this)
			}, e.overFilter = null, e.downFilter_1 = null, e.downFilter_2 = null, e.downFilter_3 = null, e.overFilter_1 = null,
			e.overFilter_2 = null, e.overFilter_3 = null, e
	}(Dispose);
	t.FilterPlugin = e, __reflect(e.prototype, "h5_engine.FilterPlugin")
}(h5_engine || (h5_engine = {}));
var MailCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5282, this.onS2C_MailQueryListMessage), this.register(5198, this.onS2C_MailQueryDetailMessage), this.register(
			5030, this.onS2C_NewMailMessage), this.register(5119, this.onS2C_DeleteMailMessage)
	}, e.prototype.onS2C_MailQueryListMessage = function(t) {
		0 == t.btErrorCode && (App.data.mailDataCenter.initMailSummaryList(t.mailSummaryList), App.dispatcher.dispatchEvent(
			MailEvent.MAIL_QUERYLIST_MESSAGE, !0))
	}, e.prototype.onS2C_MailQueryDetailMessage = function(t) {
		var e;
		(0 == t.btErrorCode || 10503 == t.btErrorCode) && null != t.mailDetail && (e = App.data.mailDataCenter.initMailDetail(
			t.mailDetail), null != e && App.dispatcher.dispatchEvent(MailEvent.MAIL_QUERYDETAIL_MESSAGE, e.newDetailData, t.mailDetail
			.mailid.toString(), e.isMailListChage))
	}, e.prototype.onS2C_NewMailMessage = function(t) {
		App.dispatcher.dispatchEvent(MailEvent.NEW_MAIL_MESSAGE, t.nCount), App.dispatcher.dispatchEvent(EventType.SHOW_SOME_FUNCTION_NUM,
			3, t.nCount), MailCommandSender.C2S_MailList()
	}, e.prototype.onS2C_DeleteMailMessage = function(t) {
		App.data.mailDataCenter.onMailDel(t.DeleteMailIds), App.dispatcher.dispatchEvent(MailEvent.DEL_MAIL_MESSAGE)
	}, e
}(BaseConnectionRegister);
__reflect(MailCommandRegister.prototype, "MailCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e(e) {
			var i = t.call(this) || this;
			return i._fatherEffect = e, i
		}
		return __extends(e, t), Object.defineProperty(e.prototype, "father", {
			get: function() {
				return this._fatherEffect
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.dispose = function() {
			t.prototype.dispose.call(this), this._fatherEffect = null
		}, e
	}(t.FrameSprite);
	t.EffectSprite = e, __reflect(e.prototype, "h5_engine.EffectSprite")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e;
	! function(t) {
		t[t.EIGHT_DIR = 0] = "EIGHT_DIR", t[t.FIVE_DIR = 1] = "FIVE_DIR"
	}(e = t.AvatarAniDirType || (t.AvatarAniDirType = {}))
}(h5_engine || (h5_engine = {}));
var AvatarPartType;
! function(t) {
	t[t.BODY = 1] = "BODY", t[t.WEAPON = 2] = "WEAPON", t[t.HORSE = 3] = "HORSE", t[t.HORSE_HEAD = 4] = "HORSE_HEAD", t[t.WING =
		5] = "WING", t[t.SUB_WEAPON = 6] = "SUB_WEAPON", t[t.HEAD = 7] = "HEAD", t[t.WEAPONSOUL = 8] = "WEAPONSOUL"
}(AvatarPartType || (AvatarPartType = {}));
var EnumMapNodeType = function() {
	function t() {}
	return t.travel = 1, t.ride = 2, t.ispk = 4, t.safe = 8, t.isMask = 16, t.isReflex = 32, t.isWabao = 64, t.isTaFang =
		1, t.isXunLongJue = 4, t.isWeiXian = 8, t.isXunLongJue2 = 16, t
}();
__reflect(EnumMapNodeType.prototype, "EnumMapNodeType");
var h5_engine;
! function(t) {
	var e = function() {
		function e() {}
		return e.getDretion = function(e, i, n, a) {
				var o = n - e,
					r = t.MapConfig.MAP_NODE_WIDTH * (a - i) / t.MapConfig.MAP_NODE_HEIGHT,
					s = 180 * Math.atan2(r, o) / Math.PI;
				return this.getDretionByAngle(s)
			}, e.getDretionByAngle = function(t) {
				var i = 0;
				return t >= -22.5 && 22.5 > t ? i = e.RIGHT : t >= 22.5 && 77.5 > t ? i = e.RIGHTBOTTOM : t >= 77.5 && 112.5 > t ?
					i = e.BOTTOM : t >= 112.5 && 157.5 > t ? i = e.LEFTBOTTOM : t >= 157.5 || -157.5 > t ? i = e.LEFT : t >= -77.5 &&
					-22.5 > t ? i = e.RIGHTTOP : t >= -112.5 && -77.5 > t ? i = e.TOP : t >= -157.5 && -112.5 > t && (i = e.LEFTTOP),
					i
			}, e.getOppositeDir = function(t) {
				var i;
				switch (t) {
					case e.TOP:
						i = e.BOTTOM;
						break;
					case e.BOTTOM:
						i = e.TOP;
						break;
					case e.LEFT:
						i = e.RIGHT;
						break;
					case e.RIGHT:
						i = e.LEFT;
						break;
					case e.RIGHTBOTTOM:
						i = e.LEFTTOP;
						break;
					case e.LEFTTOP:
						i = e.RIGHTBOTTOM;
						break;
					case e.LEFTBOTTOM:
						i = e.RIGHTTOP;
						break;
					case e.RIGHTTOP:
						i = e.LEFTBOTTOM
				}
				return i
			}, e.getMonsterDir = function(e) {
				var i = e;
				return e == t.SceneType.TOP ? i = t.SceneType.RIGHTTOP : e == t.SceneType.RIGHT ? i = t.SceneType.RIGHTBOTTOM : e ==
					t.SceneType.LEFT ? i = t.SceneType.LEFTTOP : e == t.SceneType.BOTTOM && (i = t.SceneType.LEFTBOTTOM), i
			}, e.getFiveDir = function(t, i) {
				var n = i,
					a = 1;
				switch (i) {
					case e.LEFTTOP:
						n = e.RIGHTTOP, a = -1;
						break;
					case e.LEFT:
						n = e.RIGHT, a = -1;
						break;
					case e.LEFTBOTTOM:
						n = e.RIGHTBOTTOM, a = -1
				}
				return t && (t.scaleX = a), n
			}, e.TOP = 0, e.BOTTOM = 4, e.LEFT = 6, e.RIGHT = 2, e.RIGHTBOTTOM = 3, e.LEFTBOTTOM = 5, e.RIGHTTOP = 1, e.LEFTTOP =
			7, e
	}();
	t.SceneType = e, __reflect(e.prototype, "h5_engine.SceneType")
}(h5_engine || (h5_engine = {}));
var MoneyCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5317, this.onS2C_CurrencyInfoListMessage), this.register(5099, this.onS2C_CurrencyChangeMessage)
	}, e.prototype.onS2C_CurrencyInfoListMessage = function(t) {
		for (var e = 0; e < t.currencyInfos.length; e++) this.setValue(t.currencyInfos[e]), App.dispatcher.dispatchEvent(
			MoneyEvent.CHANGE, t.currencyInfos[e].type, Number(t.currencyInfos[e].value))
	}, e.prototype.onS2C_CurrencyChangeMessage = function(t) {
		this.setValue(t.currencyInfo, t.reason), App.dispatcher.dispatchEvent(MoneyEvent.CHANGE, t.currencyInfo.type,
			Number(t.currencyInfo.value))
	}, e.prototype.setValue = function(t, e) {
		void 0 === e && (e = 0), App.global && App.global.characterData && LongUtil.toNumber(t.value) - App.data.currencyDataCenter
			.getMoney(t.type) > 0 && 23 != e && Notice.showBottomMessage(EnumMoney.getName(t.type) + " + " + (LongUtil.toNumber(
				t.value) - App.data.currencyDataCenter.getMoney(t.type)), 15397963), App.data.currencyDataCenter.setMoney(t.type,
				LongUtil.toNumber(t.value))
	}, e
}(BaseConnectionRegister);
__reflect(MoneyCommandRegister.prototype, "MoneyCommandRegister");
var PlatfromCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5037, this.onS2C_ReqSignDataByTypeMessage)
	}, e.prototype.onS2C_ReqSignDataByTypeMessage = function(t) {
		0 == t.type && (Platfrom_HDHD.userinfo = JSON.parse(t.result), App.dispatcher.dispatchEvent(PlatformEventType.BUTTERFLY_KEFU_START))
	}, e
}(BaseConnectionRegister);
__reflect(PlatfromCommandRegister.prototype, "PlatfromCommandRegister");
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._startX = 0, t._startY = 0, t._endX = 0, t._endY = 0, t.init(), t
		}
		return __extends(i, e), i.prototype.init = function() {
			var e = this;
			e._screen = new egret.Rectangle(0, 0, t.MapConfig.MAP_SCREEN_WIDTH, t.MapConfig.MAP_SCREEN_HEIGHT), e._moveAreaRect =
				new egret.Rectangle(0, 0, t.MapConfig.MAP_NODE_WIDTH, t.MapConfig.MAP_NODE_HEIGHT), e._mapArea = new egret.Rectangle,
				e._mapScreenCenter = new egret.Point, e._moveAreaCenter = new egret.Point
		}, Object.defineProperty(i.prototype, "screen", {
			get: function() {
				return this._screen
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.getClips = function(e) {
			void 0 === e && (e = null);
			var i = this,
				n = Math.floor(i._screen.x / t.MapConfig.MAP_CLIP_IMAGE_WIDTH) - 1,
				a = Math.floor(i._screen.y / t.MapConfig.MAP_CLIP_IMAGE_HEIGHT) - 1,
				o = Math.ceil((i._screen.x + i._screen.width) / t.MapConfig.MAP_CLIP_IMAGE_WIDTH),
				r = Math.ceil((i._screen.y + i._screen.height) / t.MapConfig.MAP_CLIP_IMAGE_HEIGHT);
			if (n != i._startX || a != i._startY || o != i._endX || r != i._endY) {
				for (var s = e ? e : [], h = n; o >= h; h++)
					for (var l = a; r >= l; l++) s.push(egret.Point.create(h, l));
				return i._startX = n, i._startY = a, i._endX = o, i._endY = r, s
			}
			return null
		}, Object.defineProperty(i.prototype, "moveAreaRect", {
			get: function() {
				return this._moveAreaRect
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.updateMapArea = function(t, e) {
			this._mapArea.width = t, this._mapArea.height = e
		}, i.prototype.initMapCenter = function(t, e) {
			this._moveAreaCenter.setTo(t, e), this._mapScreenCenter.setTo(t, e), this.moveMoveCenter(), this.moveScreen()
		}, i.prototype.updateMapScreenCencterPosition = function(t) {
			var e = this;
			e._moveAreaCenter.copyFrom(t), e._mapScreenCenter.copyFrom(t), e.moveMoveCenter(), e.moveScreen()
		}, i.prototype.updateMapScreenScale = function(e, i) {
			t.MapConfig.MAP_SCREEN_WIDTH = e, t.MapConfig.MAP_SCREEN_HEIGHT = i, this._screen.width = t.MapConfig.MAP_SCREEN_WIDTH,
				this._screen.height = t.MapConfig.MAP_SCREEN_HEIGHT, this.moveScreen()
		}, i.prototype.moveMoveCenter = function() {
			var t = this;
			t._moveAreaRect.x = t._moveAreaCenter.x - .5 * t._moveAreaRect.width, t._moveAreaRect.y = t._moveAreaCenter.y - .5 *
				t._moveAreaRect.height, t._moveAreaRect.x < 0 ? t._moveAreaRect.x = 0 : t._moveAreaRect.x + t._moveAreaRect.width >
				t._mapArea.width && (t._moveAreaRect.x = t._mapArea.width - t._moveAreaRect.width), t._moveAreaRect.y < 0 ? t._moveAreaRect
				.y = 0 : t._moveAreaRect.y + t._moveAreaRect.height > t._mapArea.height && (t._moveAreaRect.y = t._mapArea.height -
					t._moveAreaRect.height)
		}, i.prototype.moveScreen = function() {
			var t = this;
			t._screen.x = t._mapScreenCenter.x - .5 * t._screen.width, t._screen.y = t._mapScreenCenter.y - .5 * t._screen.height,
				t._screen.width > t._mapArea.width ? t._screen.x = .5 * (t._mapArea.width - t._screen.width) : t._screen.x < 0 ?
				t._screen.x = 0 : t._screen.x + t._screen.width > t._mapArea.width && (t._screen.x = t._mapArea.width - t._screen
					.width), t._screen.height > t._mapArea.height ? t._screen.y = .5 * (t._mapArea.height - t._screen.height) : t._screen
				.y < 0 ? t._screen.y = 0 : t._screen.y + t._screen.height > t._mapArea.height && (t._screen.y = t._mapArea.height -
					t._screen.height)
		}, i.prototype.clear = function() {
			var e = this;
			e._mapArea.setTo(0, 0, t.MapConfig.MAP_SCREEN_WIDTH, t.MapConfig.MAP_SCREEN_HEIGHT), e._mapScreenCenter.setTo(0, 0),
				e._moveAreaCenter.setTo(0, 0), e._startX = 0, e._startY = 0, e._endX = 0, e._endY = 0
		}, i
	}(Dispose);
	t.MapSceneModel = e, __reflect(e.prototype, "h5_engine.MapSceneModel")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.initialize(), t
		}
		return __extends(i, e), i.prototype.initialize = function() {
			var e = this;
			e._bg = new t.MapBackgroundLayer, e._sceneMagic = new t.MapEffectSortLayer, e._sceneEft = new t.MapEffectSortLayer,
				e._shadow = new t.MapNoFilterLayer, e._footEft = new t.MapEffectSortLayer, e._itemLayer = new t.MapItemSortLayer,
				e._avatarLayer = new t.MapSceneAvatarLayer, e._flyEftLayer = new t.MapFlyEffectLayer, e._headLayer = new t.MapAvatarHeadLayer,
				e._itemText = new t.MapNoFilterLayer, e._wordLayer = new t.MapNoFilterLayer, e._guide = new t.MapNoFilterLayer, e
				._fixedView = new t.GDisplayObjectContainer, e.addChild(e._fixedView), e.setLayer("_bg", e._bg), e.setLayer(
					"_sceneEft", e._sceneEft), e.setLayer("_sceneMagic", e._sceneMagic), e.setLayer("_shadow", e._shadow), e.setLayer(
					"_footEft", e._footEft), e.setLayer("_itemLayer", e._itemLayer), e.setLayer("_avatarLayer", e._avatarLayer), e.setLayer(
					"_flyEftLayer", e._flyEftLayer), e.setLayer("_headLayer", e._headLayer), e.setLayer("_itemText", e._itemText), e
				.setLayer("_wordLayer", e._wordLayer), e.setLayer("_guide", e._guide), e.visible = !1
		}, i.prototype.update = function(t, i) {
			e.prototype.update.call(this, t, i), this._bg.update(t, i)
		}, i.prototype.showMap = function() {
			this.visible = !0
		}, i.prototype.hideMap = function() {
			this.visible = !1
		}, Object.defineProperty(i.prototype, "backgound", {
			get: function() {
				return this._bg
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "sceneEffect", {
			get: function() {
				return this._sceneEft
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "groundMagic", {
			get: function() {
				return this._sceneMagic
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "shadowLayer", {
			get: function() {
				return this._shadow
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "footAniLayer", {
			get: function() {
				return this._footEft
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "itemLayer", {
			get: function() {
				return this._itemLayer
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "avatarLayer", {
			get: function() {
				return this._avatarLayer
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "flyEffectLayer", {
			get: function() {
				return this._flyEftLayer
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "wordLayer", {
			get: function() {
				return this._wordLayer
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "headLayer", {
			get: function() {
				return this._headLayer
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "itemTextLayer", {
			get: function() {
				return this._itemText
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "guideLayer", {
			get: function() {
				return this._guide
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "fixedView", {
			get: function() {
				return this._fixedView
			},
			enumerable: !0,
			configurable: !0
		}), i
	}(t.MapConatiner);
	t.MapSceneView = e, __reflect(e.prototype, "h5_engine.MapSceneView")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			return e.call(this) || this
		}
		return __extends(i, e), i.prototype.init = function() {
			e.prototype.init.call(this);
			var i = this;
			i.effectContainer = new t.GDisplayObjectContainer, i.addChild(i.effectContainer), i.hpMpContainer = new t.GDisplayObjectContainer,
				i.addChild(i.hpMpContainer), i.nameContainer = new t.GDisplayObjectContainer, i.addChild(i.nameContainer), i.ImgContainer =
				new t.GDisplayObjectContainer, i.addChild(i.ImgContainer)
		}, i
	}(t.MapNoFilterLayer);
	t.MapAvatarHeadLayer = e, __reflect(e.prototype, "h5_engine.MapAvatarHeadLayer")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._crx = 0, t._cry = 0, t
		}
		return __extends(i, e), i.prototype.init = function() {
			e.prototype.init.call(this);
			var i = this;
			i._nodeColorTexture = {}, i._nodeBmpPool = [], i._makerBmp = new t.GBitmap, i._makerBmp.touchEnabled = !1, i.addChild(
					i._makerBmp), i._bmpSprite = new t.GDisplayObjectContainer, i._bmpSprite.touchEnabled = !1, i._bmpSprite.touchChildren = !
				1, i.addChild(i._bmpSprite)
		}, i.prototype.setMarkBmd = function(t, e, i) {
			var n = this;
			n._makerBmp.texture = t, t && (n._makerBmp.width = e, n._makerBmp.height = i)
		}, i.prototype.setMapClip = function(t, e, i) {
			i.x = t, i.y = e, this._bmpSprite.addChild(i)
		}, i.prototype.deleteMapClip = function(t) {
			t.parent == this._bmpSprite && this._bmpSprite.removeChild(t)
		}, Object.defineProperty(i.prototype, "filters", {
			set: function(t) {
				this._bmpSprite.filters = t
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.update = function(t, e) {
			this._crx = t >> 0, this._cry = e >> 0, this.drawCrtScene()
		}, i.prototype.drawCrtScene = function() {
			if (null != this._nodeLayer) {
				this.clearColorNode();
				for (var e = {}, i = Math.floor(this.stage.stageWidth / t.MapConfig.MAP_NODE_WIDTH + 2), n = Math.floor(this.stage
							.stageHeight / t.MapConfig.MAP_NODE_HEIGHT + 2), a = Math.floor(this._crx / t.MapConfig.MAP_NODE_WIDTH), o =
						Math.floor(this._cry / t.MapConfig.MAP_NODE_HEIGHT), r = o; o + n > r; r++)
					for (var s = a; a + i > s; s++)
						if (this._mapData.getNode(s, r)) {
							var h = this._mapData.getNode(s, r).walkAble,
								l = this._mapData.getNode(s, r).isMask,
								p = 16711680;
							h && (p = l ? 65280 : 16777215), this._mapData.getNode(s, r).isTaFang && (p = 16776960), 0 == this._mapData.getNode(
								s, r).roleBlock && (p = 65535);
							var c = this.createColorNode(p);
							c.x = t.MapConfig.MAP_NODE_WIDTH * s, c.y = t.MapConfig.MAP_NODE_HEIGHT * r;
							var _ = e[p];
							null == _ && (_ = [], e[p] = _), _.push(c)
						} this.resetNodeBmpList(e)
			}
		}, i.prototype.clearColorNode = function() {
			for (; this._nodeLayer.numChildren > 0;) {
				var t = this._nodeLayer.removeChildAt(0);
				this._nodeBmpPool.push(t)
			}
		}, i.prototype.createColorNode = function(e) {
			var i = this._nodeBmpPool.length > 0 ? this._nodeBmpPool.pop() : new t.GBitmap,
				n = this._nodeColorTexture[e];
			return null == n && (n = BitmapDataUtil.createColorTexture(e, t.MapConfig.MAP_NODE_WIDTH, t.MapConfig.MAP_NODE_HEIGHT,
				.3), this._nodeColorTexture[e] = n), i.texture = n, i
		}, i.prototype.resetNodeBmpList = function(t) {
			for (var e in t)
				if (t.hasOwnProperty(e))
					for (var i = t[e], n = i.length, a = 0; n > a; a++) {
						var o = i[a];
						this._nodeLayer.addChild(o)
					}
		}, i.prototype.drawNodes = function(e) {
			var i = this;
			null == i._nodeLayer && (i._nodeLayer = new t.GDisplayObjectContainer), i.addChildAt(i._nodeLayer, i.numChildren),
				e && (i._mapData = e, i.drawCrtScene())
		}, i.prototype.clearNodes = function() {
			this._nodeLayer && (this.clearColorNode(), this.removeChild(this._nodeLayer), this._nodeLayer = null)
		}, i.prototype.clear = function() {
			this.clearNodes()
		}, i.prototype.dispose = function() {
			this.clear(), e.prototype.dispose.call(this)
		}, i
	}(t.MapLayerBase);
	t.MapBackgroundLayer = e, __reflect(e.prototype, "h5_engine.MapBackgroundLayer")
}(h5_engine || (h5_engine = {}));
var RankListCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5018, this.onS2C_RankListMessage), this.register(5083, this.onS2C_AutoMenuStatusMessage), this.register(
			5621, this.onS2C_RankWorshipMessage)
	}, e.prototype.onS2C_RankWorshipMessage = function(t) {
		RankPanel.WORSHIP_TYPES = t.rankTypes, App.dispatcher.dispatchEvent(EventType.RANK_WORSHIP)
	}, e.prototype.onS2C_AutoMenuStatusMessage = function(t) {
		null != t.setStr && "" != t.setStr && App.global.characterData && (App.global.characterData.autoSettingData.setJsonString(
			t.setStr), App.global.characterData.autoSettingData.printLog("服务器返回数据"))
	}, e.prototype.onS2C_RankListMessage = function(t) {
		var e = new RetRankInfo;
		e.errorCode = t.errorcode, e.rang = t.rang, e.myRank = t.myRank, e.page = t.page, e.totalPage = t.totlepage, e.rankType =
			t.rankType, e.worldlvl = t.worldlv;
		var i = t.rankInfoList;
		if (0 == i.length) return void App.dispatcher.dispatchEvent(EventType.RANK_LIST_REFRESH1, e);
		e.rankInfoVec = new Array;
		for (var n, a, o = 0; o < i.length; o++) n = i[o], a = new RankData, a.topindex = n.topindex, a.playerId = n.playerId,
			a.name = n.name, a.sex = n.sex, a.job = n.job, a.level = n.level, a.exp = LongUtil.toNumber(n.exp), a.online = n.online,
			a.viplevel = n.viplevel, a.fightPower = n.fightPower, a.raywing = n.raywing, a.activePoint = LongUtil.toNumber(n.activePoint),
			a.guildid = LongUtil.toNumber(n.guildid), a.starNum = n.star, n.pfVipInfo && (a.pfVipType = n.pfVipInfo.vipType, a
				.pfViphigh = n.pfVipInfo.highVip, a.pfVipYear = n.pfVipInfo.yearVip, a.pfVipLvl = n.pfVipInfo.vipLvl), a.expandMap =
			n.expandMap, e.rankInfoVec.push(a);
		App.dispatcher.dispatchEvent(EventType.RANK_LIST_REFRESH, e)
	}, e
}(BaseConnectionRegister);
__reflect(RankListCommandRegister.prototype, "RankListCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			return t.call(this) || this
		}
		return __extends(e, t), e.prototype.clear = function() {
			for (var t = this.numChildren, e = t - 1; e >= 0; e--) {
				var i = this.removeChildAt(e);
				i && i.father.dispose()
			}
		}, e
	}(t.MapEffectSortLayer);
	t.MapFlyEffectLayer = e, __reflect(e.prototype, "h5_engine.MapFlyEffectLayer")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t._textureList = new Array, t
		}
		return __extends(i, e), i.prototype.addChild = function(e) {
			return e instanceof t.EffectSprite ? this.addEffect(e) : e instanceof t.NetImage ? this.addItem(e) : GameLog.logError(
				"加入错误"), e
		}, i.prototype.addChildAt = function(e, i) {
			return e instanceof t.EffectSprite ? this.addEffect(e) : e instanceof t.NetImage ? this.addItem(e) : GameLog.logError(
				"加入错误"), e
		}, i.prototype.removeChild = function(i) {
			return i instanceof t.EffectSprite ? this.removeEffect(i) : i instanceof t.NetImage && this.removeItem(i), e.prototype
				.removeChild.call(this, i)
		}, i.prototype.removeChildAt = function(i) {
			var n = e.prototype.removeChildAt.call(this, i);
			return n instanceof t.EffectSprite ? this.removeEffect(n) : n instanceof t.NetImage && this.removeItem(n), n
		}, i.prototype.addItem = function(t) {
			var i = t.url;
			i && "NetImage" != i || GameLog.logError("NetImage, 创建的顺序可能有问题， 要先填写URL，再添加到舞台");
			var n = this._textureList.indexOf(i); - 1 == n ? (this._textureList.push(i), e.prototype.addChild.call(this, t)) :
				(this._textureList.splice(n, 0, i), e.prototype.addChildAt.call(this, t, n))
		}, i.prototype.removeItem = function(t) {
			var e = t.url,
				i = this._textureList.indexOf(e);
			e ? -1 == i ? GameLog.logError("MapItemSortLayer删除错误-位置（index = -1）") : this._textureList.splice(i, 1) : GameLog.logError(
				"MapItemSortLayer删除错误-url 为空")
		}, i.prototype.addEffect = function(t) {
			var i = t.father,
				n = i.url;
			n && "NetEffect" != n || GameLog.logError("NetEffect, 创建的顺序可能有问题， 要先填写URL，再添加到舞台");
			var a = this._textureList.indexOf(n); - 1 == a ? (this._textureList.push(n), e.prototype.addChild.call(this, t)) :
				(this._textureList.splice(a, 0, n), e.prototype.addChildAt.call(this, t, a))
		}, i.prototype.removeEffect = function(t) {
			var e = t.father,
				i = e.url,
				n = this._textureList.indexOf(i);
			i ? -1 == n ? GameLog.logError("删除错误-位置（index = -1）") : this._textureList.splice(n, 1) : GameLog.logError(
				"删除错误-url 为空")
		}, i
	}(t.MapNoFilterLayer);
	t.MapItemSortLayer = e, __reflect(e.prototype, "h5_engine.MapItemSortLayer")
}(h5_engine || (h5_engine = {}));
var RayWingCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {}, e.prototype.onS2C_RayWingAdvanceSuccessMessage =
		function(t) {}, e.prototype.onS2C_RayWingAdvanceFailMessage = function(t) {}, e
}(BaseConnectionRegister);
__reflect(RayWingCommandRegister.prototype, "RayWingCommandRegister");
var ShopCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5010, this.onS2C_ShopItemListMessage), this.register(5002, this.onS2C_BuyItemResultMessage), this.register(
			5340, this.onS2C_ShopItemInfoChangeMessage)
	}, e.prototype.onS2C_ShopItemListMessage = function(t) {
		2 == t.shopType ? (App.data.carryShopCenter.initCarryShopList(t.shopItemList), App.data.carryShopCenter.needOpen ||
				(App.data.carryShopCenter.needOpen = !0)) : 1 == t.shopType ? (App.data.mallCenter.initMallList(t.shopItemList),
				App.dispatcher.dispatchEvent(ItemEvent.UPDATE_SHOP_ITEM), App.data.mallCenter.needOpen || (App.data.mallCenter.needOpen = !
					0)) : 5 == t.shopType ? (App.data.mallCenter.jinjiShopInfoList = t.shopItemList.sort(App.data.mallCenter.sortMallFunc),
				App.dispatcher.dispatchEvent(ArenaEvent.REFRESH_MALL)) : 3 == t.shopType ? App.data.tanbaoShopCenter.initTanbaoShopList(
				t.shopItemList) : 6 == t.shopType ? (App.data.shenmiShopCenter.shenMiMaxRefreshNum = t.shenMiMaxRefreshNum, App.data
				.shenmiShopCenter.shenMiCanRefreshNum = t.shenMiCanRefreshNum, App.data.shenmiShopCenter.shenMiRemainRefreshTimeS =
				LongUtil.toNumber(t.shenMiRemainRefreshTimeS), App.data.shenmiShopCenter.shenVipMiCanRefreshNum = t.shenVipMiCanRefreshNum,
				App.data.shenmiShopCenter.initList(t.shopItemList), App.dispatcher.dispatchEvent(ItemEvent.UPDATE_SHENMI_SHOP),
				App.global.redPoint.redPointDispatchEvent(7)) : 11 == t.shopType ? (App.data.guildCenter.shopList = t.shopItemList,
				App.dispatcher.dispatchEvent(GuideEvent.REFRESH_GUILDMALL)) : 12 == t.shopType || 13 == t.shopType || 14 == t.shopType ||
			15 == t.shopType ? App.data.zoneCenter.abyssCenter.setCurrentShopList(t.shopItemList) : 16 == t.shopType && App.data
			.warpetCenter.setCurrentShopList(t.shopItemList)
	}, e.prototype.onS2C_BuyItemResultMessage = function(t) {
		App.dispatcher.dispatchEvent(ItemEvent.BUYITEM_SUCCESS, t), Notice.showMousePosMessage("购买成功", 65280)
	}, e.prototype.onS2C_ShopItemInfoChangeMessage = function(t) {
		1 == t.shopType ? App.data.mallCenter.setShopItemInfo(t.sellId, t.shopItem) : 5 == t.shopType ? ShopCommandSender.sendRequestShopListMessage(
				5) : 3 == t.shopType ? App.data.tanbaoShopCenter.setShopItemInfo(t.sellId, t.shopItem) : 6 == t.shopType ? App.data
			.shenmiShopCenter.setShopItemInfo(t.shopItem.shenMiShopIndex, t.shopItem) : 11 == t.shopType ? App.data.guildCenter
			.setShopItem(t.shopItem) : 12 == t.shopType || 13 == t.shopType || 14 == t.shopType || 15 == t.shopType ? App.data
			.zoneCenter.abyssCenter.updateCurrentShopList(t.shopItem) : 16 == t.shopType && App.data.warpetCenter.updateCurrentShopList(
				t.shopItem), App.dispatcher.dispatchEvent(ItemEvent.UPDATE_SHOP_ITEM, t.shopType, t.shopItem)
	}, e
}(BaseConnectionRegister);
__reflect(ShopCommandRegister.prototype, "ShopCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			return t.call(this) || this
		}
		return __extends(e, t), e.prototype.init = function() {}, e.prototype.clear = function() {}, e.prototype.doSortAvatar =
			function() {
				this.$children.sort(this.sortAvatarFunc)
			}, e.prototype.sortAvatarFunc = function(t, e) {
				return t.isDead < e.isDead ? -1 : t.y < e.y ? -1 : t.y == e.y ? t.name > e.name ? 1 : t.name < e.name ? -1 : 0 : 1
			}, e
	}(t.MapLayerBase);
	t.MapSceneAvatarLayer = e, __reflect(e.prototype, "h5_engine.MapSceneAvatarLayer")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			return e.call(this) || this
		}
		return __extends(i, e), i.prototype.convertMapVO = function(e) {
			null == i.mapdata ? i.mapdata = new t.MapVO : (i.mapdata.dispose(), i.mapdata = new t.MapVO);
			var n = i.mapdata;
			n.version = e.version, n.mapId = e.id, n.mapWidth = e.width, n.mapHeight = e.height, n.nodeWidth = e.gridWidth, n.nodeHeight =
				e.gridHeight, n.tileWidth = e.tileWidth, n.tileHeight = e.tileHeight, n.col = e.col, n.row = e.row;
			var a = e.gridList;
			t.MapConfig.MAP_NODE_WIDTH = n.nodeWidth, t.MapConfig.MAP_NODE_HEIGHT = n.nodeHeight;
			for (var o, r = new Array, s = 0; s < n.row; s++)
				for (var h = 0; h < n.col; h++) {
					null == r[s] && (r[s] = new Array);
					var l = a[s * n.col + h];
					o = t.MapNode.getNode(), o.buffer = l, o.x = h, o.y = s, r[s][h] = o
				}
			n.nodeArray = r;
			var p = e.special;
			if (p)
				for (var c = 0; c < p.length; c++) {
					var _ = p[c];
					o = n.getNode(_.y, _.x), o.special = _.type
				}
			var d = Math.ceil(n.mapWidth / t.MapConfig.MAP_CLIP_IMAGE_WIDTH),
				u = Math.ceil(n.mapHeight / t.MapConfig.MAP_CLIP_IMAGE_HEIGHT);
			for (n.tileArray = new Array, h = 0; u > h; h++)
				for (null == n.tileArray[h] && (n.tileArray[h] = new Array), s = 0; d > s; s++) {
					var g = d * h + s + 1;
					n.tileArray[h][s] = g
				}
			return n
		}, i
	}(Dispose);
	t.MapdataTranfrom = e, __reflect(e.prototype, "h5_engine.MapdataTranfrom")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.x = 0, t.y = 0, t.f = 0, t.g = 0, t.h = 0, t.isTaskNode = !1, t._buffer = -1, t._isMask = !1, t._roleBlock = !
				0, t._special = 0, t._walkAble = !0, t
		}
		return __extends(i, e), Object.defineProperty(i.prototype, "buffer", {
			get: function() {
				return this._buffer
			},
			set: function(t) {
				var e = this;
				t != e._buffer && (e._buffer = t, e._walkAble = ByteUtils.hasKey(e._buffer, EnumMapNodeType.travel), e._isMask =
					ByteUtils.hasKey(e._buffer, EnumMapNodeType.isMask))
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "special", {
			get: function() {
				return this._special
			},
			set: function(t) {
				this._special = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "walkAble", {
			get: function() {
				return this._walkAble
			},
			set: function(t) {
				this._walkAble = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "roleBlock", {
			get: function() {
				return this._roleBlock
			},
			set: function(t) {
				this._roleBlock = t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isMask", {
			get: function() {
				return this._isMask
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "ride", {
			get: function() {
				return ByteUtils.hasKey(this._buffer, EnumMapNodeType.ride)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "ispk", {
			get: function() {
				return ByteUtils.hasKey(this._buffer, EnumMapNodeType.ispk)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isSafe", {
			get: function() {
				return ByteUtils.hasKey(this._buffer, EnumMapNodeType.safe)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isJump", {
			get: function() {
				return ByteUtils.hasKey(this._buffer, EnumMapNodeType.isReflex)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isWabao", {
			get: function() {
				return ByteUtils.hasKey(this._buffer, EnumMapNodeType.isWabao)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isTaFang", {
			get: function() {
				return ByteUtils.hasKey(this._special, EnumMapNodeType.isTaFang)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isXunLongJue", {
			get: function() {
				var t = ByteUtils.hasKey(this._special, EnumMapNodeType.isXunLongJue);
				return 0 == t ? ByteUtils.hasKey(this._special, EnumMapNodeType.isXunLongJue2) : t
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "isWeiXian", {
			get: function() {
				return ByteUtils.hasKey(this._special, EnumMapNodeType.isWeiXian)
			},
			enumerable: !0,
			configurable: !0
		}), Object.defineProperty(i.prototype, "pixelPoint", {
			get: function() {
				var e = this;
				return null == e._point && (e._point = t.MapVO.getCenterPoint(e.x, e.y, egret.Point.create(0, 0))), e._point
			},
			enumerable: !0,
			configurable: !0
		}), i.prototype.reset = function() {
			var t = this;
			t.f = 0, t.g = 0, t.h = 0, t.x = 0, t.y = 0, t._special = 0, t._roleBlock = !0, t._point && egret.Point.release(t._point),
				t._point = null
		}, i.getNode = function() {
			var t;
			return 0 == i.nodePool.length ? (t = new i, i.numCount++, t.hashCount = i.numCount.toString()) : t = i.nodePool.pop(),
				t
		}, i.prototype.dispose = function() {
			this.reset(), i.nodePool.push(this)
		}, i.nodePool = new Array, i.numCount = 0, i
	}(egret.HashObject);
	t.MapNode = e, __reflect(e.prototype, "h5_engine.MapNode")
}(h5_engine || (h5_engine = {}));
var h5_engine;
! function(t) {
	var e = function(e) {
		function i() {
			var t = e.call(this) || this;
			return t.mapId = 0, t.mapWidth = 0, t.mapHeight = 0, t.nodeWidth = 0, t.nodeHeight = 0, t.tileWidth = 0, t.tileHeight =
				0, t.row = 0, t.col = 0, t.version = "", t.name = "", t.isHasWeixianArea = !1, t
		}
		return __extends(i, e), i.prototype.dispose = function() {
			if (e.prototype.dispose.call(this), this.nodeArray) {
				for (var t = this.nodeArray.length, i = 0; t > i; i++)
					for (var n = this.nodeArray[i], a = n.length, o = 0; a > o; o++) n[o].dispose();
				this.nodeArray = null
			}
			this.mapEffectList = null
		}, i.prototype.getNodeByXY = function(t, e) {
			var i = Math.floor(t / this.nodeWidth),
				n = Math.floor(e / this.nodeHeight);
			return this.getNode(i, n)
		}, i.prototype.getNode = function(t, e) {
			return t >>= 0, e >>= 0, e >= 0 && t >= 0 && e < this.row && t < this.col ? this.nodeArray[e][t] : null
		}, i.getNodeByPixelXY = function(e, i, n) {
			return void 0 === n && (n = null), null == n && (n = new egret.Point), n.setTo(Math.floor(e / t.MapConfig.MAP_NODE_WIDTH),
				Math.floor(i / t.MapConfig.MAP_NODE_HEIGHT)), n
		}, i.transNodePoint = function(e, i) {
			return void 0 === i && (i = null), null == i && (i = new egret.Point(0, 0)), i.setTo((e.x + .5) * t.MapConfig.MAP_NODE_WIDTH,
				(e.y + .5) * t.MapConfig.MAP_NODE_HEIGHT), i
		}, i.getCenterPoint = function(e, i, n) {
			void 0 === n && (n = null);
			var a = n ? n : new egret.Point;
			return a.x = (e + .5) * t.MapConfig.MAP_NODE_WIDTH, a.y = (i + .5) * t.MapConfig.MAP_NODE_HEIGHT, a
		}, i.getPoint = function(e, i, n) {
			void 0 === i && (i = 0), void 0 === n && (n = 0);
			var a = new egret.Point;
			return a.setTo(e.x * t.MapConfig.MAP_NODE_WIDTH + i, e.y * t.MapConfig.MAP_NODE_HEIGHT + n), a
		}, i.getDistanceBy2Point = function(e, i, n, a) {
			var o = Math.abs(Math.ceil(e / t.MapConfig.MAP_NODE_WIDTH) - Math.ceil(n / t.MapConfig.MAP_NODE_WIDTH)),
				r = Math.abs(Math.ceil(i / t.MapConfig.MAP_NODE_HEIGHT) - Math.ceil(a / t.MapConfig.MAP_NODE_HEIGHT)),
				s = o > r ? o : r;
			return s
		}, i
	}(Dispose);
	t.MapVO = e, __reflect(e.prototype, "h5_engine.MapVO")
}(h5_engine || (h5_engine = {}));
var SkillCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5145, this.onS2C_SkillInfosMessage), this.register(5156, this.onS2C_SkillAddMessage), this.register(
			5098, this.onS2C_SkillRemoveMessage), this.register(5062, this.onS2C_SkillChangeMessage), this.register(5153,
			this.onS2C_MyInsidePowerExpChangeMessage), this.register(5031, this.onS2C_MyInsidePowerMessage), this.register(
			5512, this.onS2C_SyncMergeAttackCDMessage), this.register(5540, this.onS2C_MeridianInfoMessage), this.register(
			5538, this.onS2C_MeridianLevelupMessage), this.register(5543, this.onS2C_MaSoulPosUpMessage), this.register(5560,
			this.onS2C_MaSoulUseMessage), this.register(5036, this.onS2C_MaSoulInfosMessage)
	}, e.prototype.onS2C_MaSoulPosUpMessage = function(t) {
		App.data.weaponSoulCenter().refreshPosId(t)
	}, e.prototype.onS2C_MaSoulInfosMessage = function(t) {
		App.global.characterData;
		App.global.roles.getRoleInfoByIndex(t.index).weaponSoulList = t.infos
	}, e.prototype.onS2C_MaSoulUseMessage = function(t) {
		App.dispatcher.dispatchEvent(SkillEvent.WEAPONSOULUSE)
	}, e.prototype.onS2C_MeridianInfoMessage = function(t) {
		App.data.skillCenter.loadMeridian(t.list)
	}, e.prototype.onS2C_MeridianLevelupMessage = function(t) {
		App.data.skillCenter.meriHash.put(t.index, t.meridianId), App.dispatcher.dispatchEvent(SkillEvent.MERIDIAN, t.meridianId)
	}, e.prototype.onS2C_SyncMergeAttackCDMessage = function(t) {
		var e = App.data.characterCenter.hejiEquipCenter.getTzSkillId();
		if (0 != e) {
			var i = App.data.CDCenter.getCD(CDType.SKILL, GameUtil.getSkillConfigDataById(e).q_skillID);
			if (!i) {
				var i = new CDInfo;
				i.id = GameUtil.getSkillConfigDataById(e).q_skillID
			}
			i.startTime = egret.getTimer(), i.needCdTime = !0, i.time = t.cd, App.dispatcher.dispatchEvent(CDCenter.START, i,
				2)
		}
	}, e.prototype.onS2C_SkillInfosMessage = function(t) {
		t.skills ? t.skills : [];
		App.data.skillCenter.loadSkills(t.skills)
	}, e.prototype.onS2C_SkillAddMessage = function(t) {
		App.config && App.data.skillCenter.addSkill(t.skill)
	}, e.prototype.onS2C_SkillRemoveMessage = function(t) {
		App.data.skillCenter.removeSkill(t.skillModelId)
	}, e.prototype.onS2C_SkillChangeMessage = function(t) {
		App.data.skillCenter.addSkill(t.skills)
	}, e.prototype.onS2C_MyInsidePowerMessage = function(t) {
		App.global && App.global.characterData && (App.global.characterData.insidePowerInfo = t.insidePowerInfo, App.data.characterCenter
				.canUpNeiGong = LongUtil.toNumber(t.insidePowerInfo.exp) >= LongUtil.toNumber(t.insidePowerInfo.maxExp)), App.data
			.skillCenter.insidePower.loadInsidePower(t.index, t.insidePowerInfo)
	}, e.prototype.onS2C_MyInsidePowerExpChangeMessage = function(t) {}, e
}(BaseConnectionRegister);
__reflect(SkillCommandRegister.prototype, "SkillCommandRegister");
var StateCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5026, this.onS2C_StateInfoHandler)
	}, e.prototype.onS2C_StateInfoHandler = function(t) {
		console.log("S2C_stateInfoMessage:" + JSON.stringify(t)), App.global.characterData.StateLevel = t.stateLevel, App.dispatcher
			.dispatchEvent(TaskEvent.STATE_REFRESH), App.data.characterCenter.GetStateLevelUP(), App.global.redPoint.redPointDispatchEvent(
				203), App.global.redPoint.redPointDispatchEvent(26)
	}, e
}(BaseConnectionRegister);
__reflect(StateCommandRegister.prototype, "StateCommandRegister");
var TanbaoCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5233, this.onS2C_TreasureHuntInfoMessage), this.register(5096, this.onS2C_TreasureHuntShowItemsInfoMessage),
			this.register(5175, this.onS2C_AddMyHuntRewardInfoMessage), this.register(5270, this.onS2C_AllHuntRewardInfo)
	}, e.prototype.onS2C_TreasureHuntInfoMessage = function(t) {
		App.data.tanbaoCenter.loadInfo(t)
	}, e.prototype.onS2C_TreasureHuntShowItemsInfoMessage = function(t) {
		App.data.tanbaoCenter.loadShow(t)
	}, e.prototype.onS2C_AddMyHuntRewardInfoMessage = function(t) {
		App.data.tanbaoCenter.addMyRewardInfo(t)
	}, e.prototype.onS2C_AllHuntRewardInfo = function(t) {
		App.data.tanbaoCenter.addTotalRewardInfo(t)
	}, e
}(BaseConnectionRegister);
__reflect(TanbaoCommandRegister.prototype, "TanbaoCommandRegister");
var h5_engine;
! function(t) {
	var e = function(t) {
		function e() {
			var e = t.call(this) || this;
			return e.init(), e
		}
		return __extends(e, t), e.prototype.init = function() {
			this._tickHash = new HashMap, this._tickList = new Array
		}, e.prototype.addTick = function(t) {
			if (!this._tickHash.has(t)) {
				for (var e = this._tickList.length, i = 0; e > i; i++) {
					var n = this._tickList[i];
					if (n.priority > t.priority) {
						this._tickList.splice(i, 0, t);
						break
					}
				}
				t.gapTime() <= 0 ? t.start() : t.gapRunTime = 0, this._tickHash.put(t, t)
			}
		}, e.prototype.removeTick = function(t) {
			if (this._tickHash.has(t)) {
				this._tickHash.del(t);
				var e = this._tickList.indexOf(t); - 1 != e && this._tickList.splice(e, 1)
			}
		}, e.prototype.updateHandler = function(t) {
			for (var e = this._tickList.concat(), i = e.length, n = 0; i > n; n++) this.resloveTick(e[n], t)
		}, e.prototype.resloveTick = function(t, e) {
			if (0 == t.getIsStart() && (t.delay += e, t.delay > t.delayTime() && (e -= t.delayTime(), t.start())), t.getIsRuning()) {
				var i = t.gapTime();
				i > 0 ? (t.gapRunTime += e, t.gapRunTime > i && (t.addvanceTime(e), t.gapRunTime -= i)) : t.addvanceTime(e), t.getTotalTime() >
					0 && t.getRuningTime() > t.getTotalTime() && t.end()
			}
			t.getIsEnd() && (t.dispose(), this.removeTick(t))
		}, e
	}(t.Tick);
	t.TickManager = e, __reflect(e.prototype, "h5_engine.TickManager")
}(h5_engine || (h5_engine = {}));
var LoginModule = function() {
	function t() {}
	return t.prototype.startUp = function(t, e) {
		this._loginContainer = t, this._loginComp = e, this._service = new LoginService(this), !WebParams.isFlag || Config.isBaiduGame ?
			(this._localLoginPanel = new LoginPanel(new FunctionVO(this.loginBtnConnect, this)), this._loginContainer.addChild(
				this._localLoginPanel)) : this.connectSocket()
	}, t.prototype.loginBtnConnect = function() {
		var t = this;
		if (Config.isRelease) {
			var e = Config.selectServerData,
				i = (new Date).getTime() / 1e3 >> 0,
				n = {
					agent: "wxs",
					zoneid: e ? e.zoneid : 1,
					gameid: "h5_wkz",
					time: i,
					openid: WebParams.account,
					ad: 1
				};
			Config.isWxGame ? n.agent = "wxs" : Config.isBaiduGame && (n.agent = "baidu"), App.platform.plat.loginServer(n).then(
				function(e) {
					var i = StringUtil.JsonParse(e);
					if (console.log("jData:" + JSON.stringify(i)), 0 == i.code) {
						var n = WebParams.param;
						n.isadult = i.isadult, n.agent = i.agent, n.cfgver = i.cfgver, n.ad = i.ad, n.sign = i.passward, n.webid = i.webid,
							n.time = i.time, n.svrip = i.svrip, n.svrport = i.svrport, n.resver = i.resver, n.showlogin = i.showlogin, n.rechargeurl =
							i.rechargeurl, WebParams.param = n, t.connectSocket()
					} else GameLog.logError("区服不对")
				})
		} else this.connectSocket()
	}, t.prototype.connectSocket = function() {
		Config.socket.connect(WebParams.ip, parseInt(WebParams.port), new FunctionVO(this.onConnectSuccess, this))
	}, t.prototype.onConnectSuccess = function() {
		return Config.isBaiduGame ? void LoginService.sendLoginForPlatformMessage() : void(WebParams.isFlag ? (LoginService
			.sendLoginForPlatformMessage(), GameLog.log("sendLoginForPlatformMessage")) : (LoginService.sendLoginMessage(
			WebParams.account, WebParams.passward, parseInt(WebParams.zoneid)), GameLog.log("sendLoginMessage")))
	}, t.prototype.loginFirstInfoBack = function() {
		this._localLoginPanel && (this._localLoginPanel.dispose(), this._localLoginPanel = null)
	}, t.prototype.loginShowCreateRoleView = function() {
		this._createRolePanel || (this._createRolePanel = new CreateRolePanel), App.platform.removeMiniGamePreImg(), this._createRolePanel
			.show(this._loginContainer)
	}, t.prototype.loginShowSelectRoleView = function() {
		this._selectRolePanel || (this._selectRolePanel = new SelectRolePanel(this)), this._selectRolePanel.show(this._loginContainer)
	}, t.prototype.changeRoleData = function(t) {
		t.isDelete && t.deleteTime <= ServerTime.getServerTime() ? this._selectRolePanel.removeRole(t) : this._selectRolePanel
			.removeRoleTimerOrRecover(t)
	}, t.prototype.loginRandNameBack = function() {
		this._createRolePanel && this._createRolePanel.randNameUpdate()
	}, t.prototype.loginSuccess = function() {
		this._loginComp.exec(), this.dispose()
	}, t.prototype.loginError = function(t, e) {
		this._createRolePanel && this._createRolePanel.errorInfo(t, e)
	}, t.prototype.dispose = function() {
		this._localLoginPanel && (this._localLoginPanel.dispose(), this._localLoginPanel = null), this._createRolePanel &&
			(this._createRolePanel.dispose(), this._createRolePanel = null), this._selectRolePanel && (this._selectRolePanel.dispose(),
				this._selectRolePanel = null), this._service && (this._service.dispose(), this._service = null), LoginModel.ins.dispose(),
			this._loginContainer && (this._loginContainer.parent && this._loginContainer.parent.removeChild(this._loginContainer),
				this._loginContainer = null), this._loginComp = null
	}, t.loginKey = null, t
}();
__reflect(LoginModule.prototype, "LoginModule");
var LoginService = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._module = e, i.addLoginListeners(), i
	}
	return __extends(e, t), e.prototype.addLoginListeners = function() {
		this._errorFunctioVo = new FunctionVO(this.onErrorHandler, this), this._createCharacterFunVo = new FunctionVO(this.onS2CreateCharacterMessageHandler,
				this), this._accountLoginSuccessFunVo = new FunctionVO(this.onS2C_AccountLoginSuccessMessageHandler, this), this._playerEnterGameSuccessFunVo =
			new FunctionVO(this.onS2C_PlayerEnterGameSuccessMessage, this), this._randomNamesFunVo = new FunctionVO(this.onS2C_RandomNamesMessageHandler,
				this), this._characterListFunVo = new FunctionVO(this.onS2C_CharacterListMessageHandler, this), this._changeLoginRoleInfoFunVo =
			new FunctionVO(this.onS2C_ChangeLoginRoleInfoMessageHandler, this), this._createSuccessHandlerVo = new FunctionVO(
				this.onS2C_CreateSuccessMessageHandler, this), Config.socket.registerCommand(5289, this._errorFunctioVo), Config.socket
			.registerCommand(5180, this._createCharacterFunVo), Config.socket.registerCommand(5358, this._accountLoginSuccessFunVo),
			Config.socket.registerCommand(5351, this._playerEnterGameSuccessFunVo), Config.socket.registerCommand(5080, this._randomNamesFunVo),
			Config.socket.registerCommand(5206, this._characterListFunVo), Config.socket.registerCommand(5343, this._changeLoginRoleInfoFunVo),
			Config.socket.registerCommand(5374, this._createSuccessHandlerVo)
	}, e.prototype.onS2C_AccountLoginSuccessMessageHandler = function(t) {
		ServerTime.setServerInfo(t.serverStartTime, t.serverOpenZoneTime, t.serverCurTime, t.serverVer, t.msgVer), Config.msgServerVerson =
			t.msgVer, LoginModule.loginKey = t.loginKey, GameMessagePool.ins.MSG_VER_NUM != Config.msgServerVerson, Config.socket
			.removeCommand(5358, this._accountLoginSuccessFunVo), this._module.loginFirstInfoBack()
	}, e.prototype.onS2CreateCharacterMessageHandler = function(t) {
		this._module.loginShowCreateRoleView()
	}, e.prototype.onS2C_CharacterListMessageHandler = function(t) {
		for (var i = t.loginRoleInfos.length, n = 0; i > n; n++) LoginModel.ins.addRoleData(t.loginRoleInfos[n]);
		if (Config.socket.removeCommand(5206, this._characterListFunVo), 1 == i) e.sendSelectRoleMessage(t.loginRoleInfos[0]
			.playerId);
		else {
			if (!(i > 1)) throw "出现错误：S2C_CharacterListMessage没有角色";
			this._module.loginShowSelectRoleView()
		}
	}, e.prototype.onS2C_PlayerEnterGameSuccessMessage = function(t) {
		Config.mapId = t.mapId, Config.socket.removeCommand(5351, this._playerEnterGameSuccessFunVo), Config.socket.lockMessageReslove = !
			0, this._module.loginSuccess()
	}, e.prototype.onS2C_RandomNamesMessageHandler = function(t) {
		t.sex == EnumRole.BOY ? LoginModel.ins.boyNames = t.names : LoginModel.ins.girlNames = t.names, this._module.loginRandNameBack()
	}, e.prototype.onS2C_ChangeLoginRoleInfoMessageHandler = function(t) {
		this._module.changeRoleData(t.loginRoleInfo)
	}, e.prototype.onS2C_CreateSuccessMessageHandler = function(t) {
		console.log("创角成功返回 - onS2C_CreateSuccessMessageHandler"), App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_LOG_UP,
			2, t.names, LongUtil.toString(t.roleId), LongUtil.toNumber(t.timestamp))
	}, e.prototype.onErrorHandler = function(t) {
		var e, i = !1;
		switch (t.errorcode) {
			case -10007:
				e = "当前玩家正在游戏中", i = !0;
				break;
			case -10200:
				e = "创建角色过多";
				break;
			case -10201:
				e = "角色创建数据库错误", i = !0;
				break;
			case -10202:
				e = "角色名长度不能少于2个中文或4个英文";
				break;
			case -10203:
				e = "角色名长度不能超过7个中文或7个英文";
				break;
			case -10204:
				e = "已有相同名字存在";
				break;
			case -10205:
			case -10206:
				e = "非法字符，请输入其他名称";
				break;
			case -10207:
				e = "职业非法";
				break;
			case -10208:
				e = "性别非法";
				break;
			case -1e4:
				e = "服务器未开启", i = !0;
				break;
			case -10011:
				e = "一个区有重复的账号", i = !0;
				break;
			case -10003:
				e = "登录玩家数量达到上限", i = !0;
				break;
			case -10002:
				e = "账号禁止登录", i = !0;
				break;
			case -9999:
				App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !1)
		}
		e && (this._module.loginError(t.errorcode, e), i && Alert.show(e, "网络连接失败", "重新连接", function() {
			ReLoginModule.reConnectFun()
		}, this))
	}, e.sendCreateCharacterMessage = function(t, e, i, n) {
		void 0 === n && (n = 0);
		var a = this.createCmd(16221);
		a.name = t, a.sex = e, a.job = i, a.auto = n, Config.socket.sendCommand(a), Config.createRoleJob = i, Config.createRoleSex =
			e
	}, e.sendLoginMessage = function(t, e, i) {
		void 0 === i && (i = 1);
		var n = this.createCmd(16091);
		n.name = t, n.password = e, n.webid = 1, n.serverId = i, GameLog.log("serverId", i, n.serverId), Config.socket.sendCommand(
			n)
	}, e.sendLoginForPlatformMessage = function() {
		var t = this.createCmd(16220);
		t.webid = parseInt(WebParams.webid), t.serverId = WebParams.zoneid, t.username = WebParams.account, t.agent =
			WebParams.agent, t.time = WebParams.time.toString(), t.sign = WebParams.passward, t.ad = WebParams.ad, t.isadult =
			WebParams.isadultStr, t.logintype = WebParams.showlogin, t.agentPlusdata = WebParams.agent_plusdata, t.agentColdatas =
			WebParams.agent_coldatas, t.adregtime = WebParams.adregtime, t.hfagent = WebParams.hfagent, t.agentAppendData =
			WebParams.agentAppendData, t.agentAppendSign = WebParams.agentAppendSign, Config.socket.sendCommand(t)
	}, e.sendRandomNameMessage = function(t) {
		var e = this.createCmd(16205);
		e.sex = t, Config.socket.sendCommand(e)
	}, e.sendDeleteRoleMessage = function(t) {
		var e = this.createCmd(16094);
		e.playerId = t, Config.socket.sendCommand(e)
	}, e.sendSelectRoleMessage = function(t) {
		var e = this.createCmd(16138);
		e.playerId = t, Config.socket.sendCommand(e)
	}, e.sendRegainRoleMessage = function(t) {
		var e = this.createCmd(16035);
		e.playerId = t, Config.socket.sendCommand(e)
	}, e.sendLoginAgain = function() {
		var t = this.createCmd(16299);
		t.name = WebParams.account, t.password = WebParams.passward, t.serverId = parseInt(WebParams.zoneid), t.time = Math
			.floor((new Date).getTime() / 1e3).toString(), t.webid = parseInt(WebParams.webid) ? parseInt(WebParams.webid) : 1,
			Config.socket.sendCommand(t)
	}, e.prototype.dispose = function() {
		Config.socket.removeCommand(5289, this._errorFunctioVo), Config.socket.removeCommand(5180, this._createCharacterFunVo),
			Config.socket.removeCommand(5358, this._accountLoginSuccessFunVo), Config.socket.removeCommand(5351, this._playerEnterGameSuccessFunVo),
			Config.socket.removeCommand(5080, this._randomNamesFunVo), Config.socket.removeCommand(5206, this._characterListFunVo),
			Config.socket.removeCommand(5343, this._changeLoginRoleInfoFunVo), Config.socket.removeCommand(5374, this._createSuccessHandlerVo),
			this._module = null
	}, e
}(BaseConnectionSender);
__reflect(LoginService.prototype, "LoginService");
var ILoginServerListInfo = function() {
	function t() {}
	return t
}();
__reflect(ILoginServerListInfo.prototype, "ILoginServerListInfo");
var LoginModel = function() {
	function t() {
		this._roleDict = new HashObject
	}
	return Object.defineProperty(t, "ins", {
		get: function() {
			return this._ins || (this._ins = new t), this._ins
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.addRoleData = function(t) {
		var e = t.playerId.toString();
		this._roleDict.get(e) ? this.changeRoleData(t) : this._roleDict.put(e, t)
	}, t.prototype.changeRoleData = function(t) {
		this._roleDict.put(t.playerId.toString(), t)
	}, t.prototype.getRoleData = function(t) {
		return this._roleDict.get(t)
	}, t.prototype.getValues = function() {
		return this._roleDict.getValueArray()
	}, t.prototype.delRoleData = function(t) {
		this._roleDict.del(t)
	}, t.prototype.dispose = function() {
		this.boyNames = null, this.girlNames = null
	}, t
}();
__reflect(LoginModel.prototype, "LoginModel");
var CreateRoleEffect = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currLoadStr = "", e._strArr = ["1_1", "2_1", "3_1"], e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._container = new eui.Group, this.addChild(this._container), this._effectHashObj = new HashObject, this.createEffect(
			this._strArr[0], !1)
	}, e.prototype.getEffect = function(t) {
		this._effectHashObj && (this._roleEffect && this._roleEffect.removeParent(), this._roleEffect = this._effectHashObj
			.get(t), this._roleEffect || (this._roleEffect = this.createEffect(t)), this._roleEffect.addParent(this._container),
			this._roleEffect.play(), this._roleEffect.visible = !0)
	}, e.prototype.createEffect = function(t, e) {
		if (void 0 === e && (e = !0), this._currLoadEffect && 1 == this._currLoadEffect.isLoading) {
			if (t == this._currLoadStr) return this.loadComplete(t, this._currLoadEffect), this._currLoadEffect;
			this._currLoadEffect.unNetLoad()
		}
		this._effectHashObj || (this._effectHashObj = new HashObject);
		var i = this._effectHashObj.get(t);
		return i || (i = new CEffect, i.url = ResPathUtil.getMenuEffect("createRole", "job" + t), i.stop(), 1 == e ? (this._currLoadEffect =
				i, this._currLoadStr = t, i.netHandler.addCompleteHandler(t, new FunctionVO(this.loadComplete, this, t, i))) :
			this._effectHashObj.put(t, i), i.visible = !1), i
	}, e.prototype.loadComplete = function(t, e) {
		this._effectHashObj.put(t, e), e.netHandler.removeCompleteHandler(t);
		for (var i = this._strArr.length, n = 0; i > n; n++)
			if (!this._effectHashObj.has(this._strArr[n])) return void this.createEffect(this._strArr[n])
	}, e.getCreateRoleEffect = function() {
		return this._createRoleEffect || (this._createRoleEffect = new e), this._createRoleEffect
	}, e.prototype.dispose = function() {
		this._effectHashObj && (this._effectHashObj.forInValExcFucName("dispose"), this._effectHashObj.dispose()), this._effectHashObj =
			null, this._roleEffect && this._roleEffect.view && this._roleEffect.dispose(), this._roleEffect = null, this._currLoadEffect &&
			this._currLoadEffect.view && this._currLoadEffect.dispose(), this._currLoadEffect = null, this._container && this._container
			.removeChildren(), this._container = null, this._strArr = null, this.removeChildren(), this.parent && this.parent.removeChild(
				this)
	}, e
}(h5_engine.GDisplayObjectContainer);
__reflect(CreateRoleEffect.prototype, "CreateRoleEffect");
var CreateRolePanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._job = 1, e._sex = 1, e._auto = 0, e._timeIndex = 0, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher = new DispatcherRegister, this._view = UIMaker.createViewBase("CreateRoleSkin"), this.addChild(
			this._view), this.addListeners(), this._dispatcher.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage,
			this, this)
	}, e.prototype.createEffect = function(t, e, i, n, a) {
		return void 0 === n && (n = 0), void 0 === a && (a = 0), e || (e = new CEffect, e.url = ResPathUtil.getMenuEffect(
			"createRole", i), e.setTo(n, a), e.play(), e.addParent(t)), e
	}, e.prototype.onAddToStage = function() {
		this._dispatcher.removeEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this, this), this._dispatcher.addEventListener(
				egret.Event.RESIZE, this.resize, this, this.stage), this._job = Math.floor(1 + 3 * Math.random()), this._job = 1,
			this._sex = 1, this.randNameUpdate(), this._timeIndex = e.TIME_COUNT, this._timer = new egret.Timer(1e3), this._timer
			.addEventListener(egret.TimerEvent.TIMER, this.onTimerIntvel, this), this._timer.start(), this.resize()
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.onTouchLoginHandler, this, this._view.btnLogin),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_END, this.randNameUpdate, this, this._view.btn_dice),
			this._dispatcher.addEventListener(egret.FocusEvent.FOCUS_IN, this.onTexClick, this, this._view.txtName)
	}, e.prototype.onTexClick = function() {
		this._timeIndex = e.TIME_COUNT
	}, e.prototype.removeListeners = function() {
		this._dispatcher.removeAllListeners()
	}, e.prototype.onTouchLoginHandler = function(t) {
		var e = this._view.txtName.text;
		LoginService.sendCreateCharacterMessage(e, this.sex, this.job, this.auto), App.dispatcher.dispatchEvent(
			PlatformEventType.PLATFORM_LOG_UP, 2)
	}, e.prototype.onTimerIntvel = function(t) {
		return this._timeIndex <= 0 ? (this.clearTime(), this._view.txtTime.text = "0秒后进入游戏", this._auto = 1, void this.onTouchLoginHandler(
			null)) : (this._view.txtTime.text = this._timeIndex + "秒后进入游戏", void this._timeIndex--)
	}, e.prototype.clearTime = function() {
		this._timer.reset(), this._timer.stop()
	}, Object.defineProperty(e.prototype, "sex", {
		get: function() {
			return this._sex
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "job", {
		get: function() {
			return this._job
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "auto", {
		get: function() {
			return this._auto
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.show = function(t) {
		t.addChild(this)
	}, e.prototype.resize = function(t) {
		if (this._view && this.stage) {
			this._view.x = this.stage.stageWidth - this._view.width >> 1;
			var e = Config.isAllShow() || Config.isNeiZhiWeb ? MainParams.UP : 0;
			this._view.auto_group.y = this.stage.stageHeight - this._view.auto_group.height - e
		}
	}, e.prototype.randNameUpdate = function() {
		var t;
		if (t = this.sex == EnumRole.BOY ? LoginModel.ins.boyNames : LoginModel.ins.girlNames, t && t.length > 0) {
			var e = Math.floor(Math.random() * t.length);
			this._view.txtName.text = t[e], t.splice(e, 1)
		} else LoginService.sendRandomNameMessage(this.sex)
	}, e.prototype.errorInfo = function(t, e) {
		this._view.txtError.text = e
	}, e.prototype.dispose = function() {
		this._eyeEffect && this._eyeEffect.dispose(), this._eyeEffect = null, this._bgRightEffect && this._bgRightEffect.dispose(),
			this._bgRightEffect = null, this._armEffect && this._armEffect.dispose(), this._armEffect = null, this._bgLeftEffect &&
			this._bgLeftEffect.dispose(), this._bgLeftEffect = null, this.parent && this.parent.removeChild(this), App.sound.playBgm(
				"", !0), this.clearTime(), this._auto = 0, this._timeIndex = 0, this._view = null, this.removeListeners(), this._timer
			.removeEventListener(egret.TimerEvent.TIMER, this.onTimerIntvel, this), this._timer = null
	}, e.TIME_COUNT = 30, e.TEXT_1 = "huoban_job_white_{0}_png", e
}(egret.DisplayObjectContainer);
__reflect(CreateRolePanel.prototype, "CreateRolePanel", ["ICreateRole"]);
var LoginPanel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.init(), i._callBackFuncVo = e, i
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this, this), this._view = UIMaker.createViewBase(
			"LoginSkin"), this.addChild(this._view), Config.isWxGame && this.OpenDataSetting()
	}, e.prototype.OpenDataSetting = function() {
		var t = new eui.Label;
		t.horizontalCenter = 0, t.y = 50, t.text = "排行榜", t.name = "RankBtn", this.addChild(t), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP,
			function() {
				Weixin.GetSharedCanvas(this)
			}, this, t);
		var e = window.platform;
		e.openDataContext.postMessage({
			command: "open"
		})
	}, e.prototype.onAddToStage = function(t) {
		this.resize(), this._dispatcher.removeEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this, this),
			this._dispatcher.addEventListener(egret.Event.RESIZE, this.resize, this, this.stage), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onLogin, this, this._view.btnLogin), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onOpenGongGao, this, this._view.btnGongGao), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.onClose, this, this.stage), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenLogin,
				this, this._view.selectserver), this._dispatcher.addEventListener(LoginServerPanel.SELECTSERVER, this.onServerResult,
				this), Config.isBaiduGame || this.refreshLoginCookieInfo();
		var e = new CEffect;
		new CEffect;
		this._firestareff = EffectUtils.showCEffect(this, this._view, ResPathUtil.getProEffectPath("firestar"), 310, 635, e),
			this.selectServer()
	}, e.prototype.onServerResult = function(t) {
		Config.selectServerData = t, this.closeLoginSever(), 1 == t.serverStatus ? this._view.stateimg.source =
			"icon_041_png" : 2 == t.serverStatus ? this._view.stateimg.source = "icon_042_png" : this._view.stateimg.source =
			"icon_180_png", this._view.servername.text = "双线" + t.zoneid + "服"
	}, e.prototype.onOpenLogin = function() {
		FullScreenMask.ins.addMask(this, 1, FullScreen.Panel), this.loginserverpanel = new LoginServerPanel, this.loginserverpanel
			.show(), this.loginserverpanel.x = this.stage.stageWidth - 500 >> 1, this.loginserverpanel.y = this.stage.stageHeight -
			635 >> 1, this.addChild(this.loginserverpanel)
	}, e.prototype.closeLoginSever = function() {
		this.loginserverpanel && (this.loginserverpanel.hide(), this.loginserverpanel.dispose(), this.removeChild(this.loginserverpanel)),
			FullScreenMask.ins.removeMask(FullScreen.Panel)
	}, e.prototype.resize = function(t) {
		this._view && this.stage && (this._view.x = this.stage.stageWidth - this._view.width >> 1)
	}, e.prototype.refreshLoginCookieInfo = function() {
		this.setDefaultCookie("ip", this._view.txtIP, "192.168.13.201"), this.setDefaultCookie("port", this._view.txtPort,
			"8000"), this.setDefaultCookie("account", this._view.txtName, ""), this.setDefaultCookie("passward", this._view.txtPassward,
			"")
	}, e.prototype.selectServer = function() {
		var t;
		Config.lastLoginServerList && Config.lastLoginServerList.length > 0 ? t = Config.lastLoginServerList[0] : Config.serverList &&
			Config.serverList.length > 0 && (t = Config.serverList[0]), t ? (1 == t.serverStatus ? this._view.stateimg.source =
				"icon_041_png" : 2 == t.serverStatus ? this._view.stateimg.source = "icon_042_png" : this._view.stateimg.source =
				"icon_180_png", this._view.servername.text = "双线" + t.zoneid + "服", this._view.logingroup.visible = !1) : this._view
			.logingroup.visible = !0
	}, e.prototype.setDefaultCookie = function(t, e, i) {
		if (0 == Config.isRelease) {
			var n = CookieManager.ins.readCookie(t);
			n ? e.text = n : WebParams[t] && "" != WebParams[t] ? e.text = WebParams[t] : e.text = i
		} else WebParams[t] && "" != WebParams[t] ? e.text = WebParams[t] : e.text = CookieManager.ins.readCookie(t) ?
			CookieManager.ins.readCookie(t) : i
	}, e.prototype.onLogin = function(t) {
		Config.isWxGame && Weixin.HideGameCommunity();
		var e = this._view.txtIP.text,
			i = this._view.txtPort.text,
			n = this._view.txtName.text,
			a = this._view.txtPassward.text;
		if (1 == this._view.logingroup.visible) {
			if ("" == e || "" == i || "" == n || "" == a) return;
			CookieManager.ins.writeCookie("ip", e), CookieManager.ins.writeCookie("port", i), CookieManager.ins.writeCookie(
					"account", n), CookieManager.ins.writeCookie("passward", a), WebParams.param.ip = e, WebParams.param.svrip = e,
				WebParams.param.port = i, WebParams.param.svrport = i, WebParams.param.account = n, WebParams.param.sign = a
		}
		this._callBackFuncVo && this._callBackFuncVo.exec()
	}, e.prototype.onOpenGongGao = function(t) {
		FullScreenMask.ins.addMask(this, 1, FullScreen.Panel), null == this._window ? (this._window = new WindowSecond,
				this.addChild(this._window), this._window.$setWidth(528), this._window.setHeight(628), this._window.setTitle(
					"公 告"), this._window.visible = !0, this._window.x = (this.stage.stageWidth - this._window.width) / 2, this._window
				.y = (this.stage.stageHeight - this._window.height) / 2, this._labDesc = new eui.Label, this._labDesc.x = 0, this
				._labDesc.y = 46, this._labDesc.width = 448, this._labDesc.height = 578, this._window.addChild(this._labDesc),
				this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClose, this, this._window.close_btn)) : this
			._window.visible = !this._window.visible, this._labDesc.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#ffffff'> 敬请期待 <br> </font>")
	}, e.prototype.onClose = function(t) {
		if (null == this._window) {
			if (this.loginserverpanel) {
				var e = (this.stage.stageWidth - 500) / 2,
					i = e + 500,
					n = (this.stage.stageHeight - 635) / 2,
					a = n + 635;
				t.stageX >= e && t.stageY >= n && t.stageX <= i && t.stageY <= a || this.closeLoginSever()
			}
		} else t.target == this._window.close_btn && (FullScreenMask.ins.removeMask(FullScreen.Panel), this._window.visible = !
				1), t.stageX >= 65 && t.stageY >= 200 && t.stageX < 580 && t.stageY < 862 || t.target != this._view.btnGongGao &&
			(FullScreenMask.ins.removeMask(FullScreen.Panel), this._window.visible = !1)
	}, e.prototype.dispose = function() {
		this._dispatcher.removeAllListeners(), this._firestareff && (this._firestareff.stop(), this._firestareff.dispose(),
				this._firestareff = null), this._loginbtneff && (this._loginbtneff.stop(), this._loginbtneff.dispose(), this._loginbtneff =
				null), this._window && (this._labDesc = null, this._window.dispose(), this._window = null), this._callBackFuncVo =
			null, this.parent && this.parent.removeChild(this)
	}, e
}(ViewBase);
__reflect(LoginPanel.prototype, "LoginPanel");
var LoginServerItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = -1, e.btn = new eui.Image, e.btn.source = "logo_btn_062_png", e.addChild(e.btn), e.lab = new eui.Label,
			e.lab.size = 22, e.lab.fontFamily = "SimHei", e.lab.textAlign = "center", e.lab.x = 26, e.lab.width = 140, e.lab.textColor =
			12420166, e.lab.stroke = 1, e.lab.strokeColor = 0, e.lab.verticalCenter = "0", e.lab.touchEnabled = !1, e.addChild(
				e.lab), e
	}
	return __extends(e, t), e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this.btn), this._dispatcher.addEventListener(LoginServerPanel.SELECTITEM, this.onSelected, this)
	}, e.prototype.onSelected = function(t) {
		this.btn.source = this.index == t ? "logo_btn_063_png" : "logo_btn_062_png"
	}, e.prototype.dataChanged = function() {
		this.serverdata = this.data, this.index = this.serverdata.index, this.lab.text = this.serverdata.name, "最近登录" ==
			this.serverdata.name && (this.btn.source = "logo_btn_063_png")
	}, e.prototype.onTouch = function(t) {
		this.setSelected(!0)
	}, e.prototype.setSelected = function(t) {
		t ? (this.btn.source = "logo_btn_063_png", App.dispatcher.dispatchEvent(LoginServerPanel.SELECTITEM, this.index)) :
			this.btn.source = "logo_btn_062_png"
	}, e.prototype.dispose = function() {
		this.btn = null, this.lab = null
	}, e
}(ItemRenderer);
__reflect(LoginServerItem.prototype, "LoginServerItem");
var LoginServerPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.lastview = [], e.viewarr = [], e.serverbuttonarr = [], e.servername = ["1-100服", "101-200服", "201-300服",
			"301-400服", "401-500服", "501-600服", "601-700服"
		], e.initUi(), e.init(), e
	}
	return __extends(e, t), e.prototype.initUi = function() {
		this.viewContainer = new eui.Group, this.addChild(this.viewContainer), this.titleimg = new eui.Image, this.titleimg
			.source = "logo_icon_181_png", this.titleimg.horizontalCenter = "0", this.titleimg.y = 21, this.addChild(this.titleimg),
			this.liuchangimg = new eui.Image, this.liuchangimg.source = "logo_zhuangtai_02_png", this.liuchangimg.x = 39, this
			.liuchangimg.y = 583, this.addChild(this.liuchangimg), this.weihuimg = new eui.Image, this.weihuimg.source =
			"logo_zhuangtai_03_png", this.weihuimg.x = 364, this.weihuimg.y = 583, this.addChild(this.weihuimg), this.huobaoimg =
			new eui.Image, this.huobaoimg.source = "logo_zhuangtai_01_png", this.huobaoimg.x = 203, this.huobaoimg.y = 583,
			this.addChild(this.huobaoimg), this.liuchanglab = new eui.Label, this.liuchanglab.fontFamily = "SimHei", this.liuchanglab
			.textColor = 7365453, this.liuchanglab.size = 20, this.liuchanglab.x = 74, this.liuchanglab.y = 592, this.liuchanglab
			.text = "流畅", this.addChild(this.liuchanglab), this.huobaolab = new eui.Label, this.huobaolab.fontFamily =
			"SimHei", this.huobaolab.textColor = 7365453, this.huobaolab.size = 20, this.huobaolab.x = 237, this.huobaolab.y =
			592, this.huobaolab.text = "火爆", this.addChild(this.huobaolab), this.weihulab = new eui.Label, this.weihulab.fontFamily =
			"SimHei", this.weihulab.textColor = 7365453, this.weihulab.size = 20, this.weihulab.x = 400, this.weihulab.y = 592,
			this.weihulab.text = "维护", this.addChild(this.weihulab)
	}, e.prototype.init = function() {
		this.serverbuttonarr = new Array, this.viewarr = new Array, this._vscroller = new VScrollPanel(166, 500,
			LoginServerItem, 0), this._vscroller.move(9, 73, this), this._vscrollerview = new VScrollPanel(302, 500,
			LoginServerViewItem, 0), this._vscrollerview.move(171, 73, this), null == this.bgimg && (this.bgimg = UIMaker.getCImage(
			this.viewContainer, this, ResPathUtil.getImgPath("bg_029", "", ".png")))
	}, e.prototype.show = function(t) {
		this.visible = !0, this._dispatcher.addEventListener(e.SELECTITEM, this.onSelected, this), this.serverarray()
	}, e.prototype.serverarray = function() {
		if (Config.lastLoginServerList && Config.lastLoginServerList.length > 0) {
			var t = {};
			t.name = "最近登录", t.index = 0, this.serverbuttonarr.push(t)
		}
		for (var e = Config.serverList ? Config.serverList : [], i = e.length, n = 0; i > n; n++) {
			var a = this.viewarr[Math.floor(n / 100)];
			a ? a.push(e[n]) : (a = new Array, a.push(e[n])), this.viewarr[Math.floor(n / 100)] = a
		}
		for (var o = Math.ceil(i / 100), n = o - 1; n >= 0; n--) {
			var t = {};
			n == o - 1 ? (t.name = "" + (100 * n + 1) + "-" + i + "服", t.index = this.serverbuttonarr.length) : (t.name = this
				.servername[n], t.index = this.serverbuttonarr.length), this.serverbuttonarr.push(t)
		}
		this._vscroller.dataProvider = this.serverbuttonarr, Config.lastLoginServerList && Config.lastLoginServerList.length >
			0 ? this._vscrollerview.dataProvider = Config.lastLoginServerList : this._vscrollerview.dataProvider = this.viewarr[
				this.viewarr.length - o]
	}, e.prototype.onSelected = function(t) {
		this._vscrollerview.removeAll(), 0 == t ? this._vscrollerview.dataProvider = Config.lastLoginServerList : this._vscrollerview
			.dataProvider = this.viewarr[this.viewarr.length - t], this._vscrollerview.validateDisplayList(), this._vscrollerview
			.validateNow(), this._vscrollerview.viewport && (this._vscrollerview.viewport.scrollV = 0)
	}, e.prototype.hide = function() {
		this._dispatcher.removeAllListeners(), this._vscroller.removeAll(), this._vscrollerview.removeAll(), this.serverbuttonarr = [],
			this.lastview = [], this.viewarr = [], this.visible = !1
	}, e.prototype.dispose = function() {
		this._vscroller && this._vscroller.dispose(), this._vscrollerview && this._vscrollerview.dispose(), this.bgimg && (
				this.bgimg.dispose(), this.bgimg = null), this.serverbuttonarr = null, this.lastview = null, this.viewarr = null,
			this.viewContainer = null, this.titleimg = null, this.liuchangimg = null, this.weihuimg = null, this.huobaoimg =
			null, this.liuchanglab = null, this.huobaolab = null, this.weihulab = null
	}, e.SELECTITEM = "Loginserver.SelectItem", e.SELECTSERVER = "Loginserver.SELECTSERVER", e
}(ViewBase);
__reflect(LoginServerPanel.prototype, "LoginServerPanel");
var LoginServerViewItem = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.bgimg = new eui.Image, e.bgimg.source = "logo_btn_x3_png", e.addChild(e.bgimg), e.icon1 = new eui.Image, e.icon1
			.source = "logo_zhuangtai_01_png", e.icon1.x = 13, e.icon1.y = 9, e.addChild(e.icon1), e.icon2 = new eui.Image, e.icon2
			.source = "logo_zhuangtai_b01_png", e.icon2.x = 247, e.icon2.y = 16, e.addChild(e.icon2), e.servername = new eui.Label,
			e.servername.x = 54, e.servername.y = 20, e.servername.size = 20, e.servername.fontFamily = "SimHei", e.servername.textColor =
			11639929, e.servername.text = "SSS-999区", e.addChild(e.servername), e
	}
	return __extends(e, t), e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this, this)
	}, e.prototype.dataChanged = function() {
		this.viewdata = this.data, this.servername.text = "双线" + this.viewdata.sid + "服", 1 == this.viewdata.serverStatus ?
			(this.icon2.source = "logo_zhuangtai_b03_png", this.icon1.source = "logo_zhuangtai_03_png") : 2 == this.viewdata.serverStatus ?
			(this.icon2.source = "logo_zhuangtai_b02_png", this.icon1.source = "logo_zhuangtai_02_png") : (this.icon2.source =
				"logo_zhuangtai_b01_png", this.icon1.source = "logo_zhuangtai_01_png")
	}, e.prototype.onTouch = function(t) {
		this.setSelected(!0)
	}, e.prototype.setSelected = function(t) {
		App.dispatcher.dispatchEvent(LoginServerPanel.SELECTSERVER, this.viewdata)
	}, e.prototype.dispose = function() {
		this.bgimg = null, this.icon1 = null, this.icon2 = null, this.servername = null
	}, e
}(ItemRenderer);
__reflect(LoginServerViewItem.prototype, "LoginServerViewItem");
var SelectRoleButton = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._timeKey = 0, i.euiSkinName = "ButtonSelectRoleSkin", i._context = e, i
	}
	return __extends(e, t), e.prototype.serverTimeEnd = function(t) {
		App.timer.serverTimeEnd(this, this.countDown, t.deleteTime, [t])
	}, e.prototype.clearTimer = function() {
		App.timer.clearTimer(this.countDown, this)
	}, e.prototype.countDown = function(t, e) {
		e && e.isDelete && (this.deleteTimeTxt.text = "删除时间：" + DateUtil.formatToTime(t.spuleTime), t.spuleTime <= 0 &&
			this.clearTimer())
	}, e
}(ViewBase);
__reflect(SelectRoleButton.prototype, "SelectRoleButton");
var SelectRolePanel = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._btnSelRoleArr = [], i._roleInfoArr = [], i._module = e, i.init(), i
	}
	return __extends(e, t), e.prototype.init = function() {
		this._dispatcher = new DispatcherRegister, this._view = UIMaker.createViewBase("SelectRoleSkin"), this.addChild(
			this._view), this.initTileGroup(), this.addListeners()
	}, e.prototype.initTileGroup = function() {
		this._roleInfoArr = LoginModel.ins.getValues().slice(), this._roleInfoArr.sort(this.onSortList);
		for (var t = 0; t < this._roleInfoArr.length; t++) {
			var i = new SelectRoleButton(this);
			i.name = t + "", i.deleteTimeTxt.visible = !1, i.job.source = StringUtil.substitute(e.TEXT_1, this._roleInfoArr[t]
					.job), i.gameName.text = this._roleInfoArr[t].name, i.level.text = "等级：" + this._roleInfoArr[t].level, this._btnSelRoleArr
				.push(i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.selecteRoleHandler, this, i), this._view
				.roleGroup.addChild(i), this._roleInfoArr[t].isDelete && (i.level.y = 125, i.deleteTimeTxt.visible = !0, i.serverTimeEnd(
					this._roleInfoArr[t]))
		}
		this.renderTileLayout(), this._roleInfoArr.length > 0 && this.selectRole(0)
	}, e.prototype.onSortList = function(t, e) {
		return t.isDelete > e.isDelete ? 1 : t.isDelete == e.isDelete ? 1 == t.isDelete ? t.deleteTime < e.deleteTime ? -1 :
			1 : t.loginTime > e.loginTime ? -1 : 1 : -1
	}, e.prototype.selecteRoleHandler = function(t) {
		var e = t.currentTarget;
		this.selectRole(Number(e.name))
	}, e.prototype.selectRole = function(t) {
		this._selectedIndex = t;
		for (var e = 0; e < this._btnSelRoleArr.length; e++) this._btnSelRoleArr[e].border.visible = e == t ? !0 : !1;
		this._roleInfoArr[t].isDelete ? (this._view.btnDel.label = "恢复角色", this._view.btnEnterGame.enabled = !1, this._view
			.btnEnterGame.alpha = .6) : (this._view.btnDel.label = "删除角色", this._view.btnEnterGame.enabled = !0, this._view.btnEnterGame
			.alpha = 1)
	}, e.prototype.addListeners = function() {
		this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onEnterGameHandler, this, this._view.btnEnterGame),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onCreateRoleHandler, this, this._view.btnCreateRole),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onDelClick, this, this._view.btnDel)
	}, e.prototype.removeListeners = function() {
		this._dispatcher.removeAllListeners()
	}, e.prototype.onDelClick = function(t) {
		var e = this._view.btnDel.label;
		"恢复角色" == e ? LoginService.sendRegainRoleMessage(this._roleInfoArr[this._selectedIndex].playerId) : LoginService.sendDeleteRoleMessage(
			this._roleInfoArr[this._selectedIndex].playerId)
	}, e.prototype.onEnterGameHandler = function(t) {
		LoginService.sendSelectRoleMessage(this._roleInfoArr[this._selectedIndex].playerId)
	}, e.prototype.onCreateRoleHandler = function(t) {
		this._module.loginShowCreateRoleView(), this.dispose()
	}, e.prototype.show = function(t) {
		this._dispatcher.addEventListener(egret.Event.RESIZE, this.resize, this, this.stage), t.addChild(this), this.resize()
	}, e.prototype.resize = function(t) {
		this.stage && (this.x = this.stage.stageWidth - this.width >> 1)
	}, e.prototype.dispose = function() {
		this._module = null, this.removeListeners(), this._view = null, this._btnSelRoleArr = null, this._roleInfoArr =
			null, this._selectedIndex = 0, this.parent && this.parent.removeChild(this)
	}, e.prototype.removeRole = function(t) {
		LoginModel.ins.delRoleData(t.playerId.toString()), this.delArr(this._selectedIndex, this._roleInfoArr), this.updateBtnArr(
			this._selectedIndex), this.btnRenderer()
	}, e.prototype.removeRoleTimerOrRecover = function(t) {
		LoginModel.ins.changeRoleData(t);
		var e = this._selectedIndex;
		if (this._roleInfoArr = LoginModel.ins.getValues().slice(), e > -1) {
			var i = this._btnSelRoleArr[e];
			t.isDelete ? (i.level.y = 125, i.deleteTimeTxt.visible = !0, i.serverTimeEnd(t)) : (i.level.y = 136, i.deleteTimeTxt
				.visible = !1, i.clearTimer()), this.selectRole(e)
		}
	}, e.prototype.delArr = function(t, e) {
		for (var i = t; i < e.length - 1; i++) e[i] = e[i + 1];
		e.pop()
	}, e.prototype.updateBtnArr = function(t) {
		for (var e = t; e < this._btnSelRoleArr.length - 1; e++) this._btnSelRoleArr[e] = this._btnSelRoleArr[e + 1], this._btnSelRoleArr[
			e].name = "" + e;
		this._btnSelRoleArr.pop()
	}, e.prototype.btnRenderer = function() {
		if (this._view.roleGroup.removeChildren(), this._btnSelRoleArr.length > 0) {
			for (var t = 0; t < this._btnSelRoleArr.length; t++) this._view.roleGroup.addChild(this._btnSelRoleArr[t]);
			this.renderTileLayout(), this.selectRole(0)
		} else this._view.btnDel.label = "删除角色", this._view.btnDel.enabled = !1, this._view.btnDel.alpha = .6, this._view.btnEnterGame
			.enabled = !1, this._view.btnEnterGame.alpha = .6
	}, e.prototype.renderTileLayout = function() {
		if (this._btnSelRoleArr.length > 1) {
			var t = new eui.TileLayout;
			t.requestedColumnCount = 2, t.paddingTop = 10, t.paddingBottom = 10, t.paddingLeft = 10, t.paddingRight = 10, t.columnAlign =
				eui.ColumnAlign.JUSTIFY_USING_GAP, t.rowAlign = eui.RowAlign.JUSTIFY_USING_GAP, this._view.roleGroup.layout = t,
				this._btnSelRoleArr.length < 5 && (this._view.roleGroup.y = 300, this._view.roleGroup.height = 430)
		} else this._view.roleGroup.layout = new eui.BasicLayout, this._btnSelRoleArr[0].verticalCenter = 0, this._btnSelRoleArr[
			0].horizontalCenter = 0
	}, e.TEXT_1 = "huoban_job_white_{0}_png", e
}(egret.DisplayObjectContainer);
__reflect(SelectRolePanel.prototype, "SelectRolePanel", ["ISelectRole"]);
var TaskCommanRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5236, this.onS2C_TaskListHandler), this.register(5295, this.onS2C_TaskInfoChangedMessage), this.register(
			5109, this.onS2C_TaskAcceptedMessage), this.register(5008, this.onS2C_TaskFinishedMessage), this.register(5191,
			this.onS2C_NpcServicesHandler), App.dispatcher.addEventListener(EventType.SELECT_NPC, this.updateClickNpcData,
			this)
	}, e.prototype.updateClickNpcData = function(t) {
		var e = App.global.characterData;
		e && -1 != t.npcModelBean.q_dialog.indexOf('"type":2') && (e.actionList.clear(), e.setGatherState(!0)), App.data.taskCenter
			.npcInfo = t, TaskCommandSender.sendNpcServices(t.personId)
	}, e.prototype.onS2C_NpcServicesHandler = function(t) {
		var e;
		if (this.taskModel.npcInfo && (e = GameUtil.getNpcConfigData(this.taskModel.npcInfo.npcModelId))) {
			App.global.operate.operateJson(e.q_operate);
			e.q_energy_type;
			if (t.services.length > 0)
				for (var i = 0; i < t.services.length; i++) {
					var n = t.services[i];
					if (this.taskModel.currNpcEffectInfo = n, 4 == n.serviceId) {
						var a = App.config.q_npcContainer.getDataBean(this.taskModel.npcInfo.npcModelId),
							o = this.taskModel.threadTask;
						if (!a || !o) return; - 1 != e.q_task.indexOf(o.taskID.toString()) && this.taskModel.currNpcEffectInfo && this.npcTalkPanel
							.show(o)
					} else 2 == n.serviceId && this.taskModel.npcInfo && this.taskModel.currNpcEffectInfo && TaskCommandSender.sendServiceMessage(
						this.taskModel.npcInfo.personId, this.taskModel.currNpcEffectInfo.serviceParameter)
				}
		}
	}, e.prototype.onS2C_TaskListHandler = function(t) {
		if (this.taskModel.updateTaskList(t), this.taskModel.threadTask) {
			var e = App.config.q_taskModelContainer.getDataBean(this.taskModel.threadTask.taskID);
			e && e.q_next_id > 0 && (this.createTaskTrack(), App.dispatcher.dispatchEvent(TaskEvent.UPDATETASKTRACK, this.taskModel
				.threadTask))
		}
	}, e.prototype.onS2C_TaskFinishedMessage = function(t) {
		this.taskModel.finishTask(t)
	}, e.prototype.onS2C_TaskAcceptedMessage = function(t) {
		1 == t.addTaskInfo.taskType && -1 == t.addTaskInfo.taskId && this._taskTrack && this._taskTrack.dispose(), this.taskModel
			.accetTask(t)
	}, e.prototype.onS2C_TaskInfoChangedMessage = function(t) {
		this.taskModel.changeTask(t)
	}, Object.defineProperty(e.prototype, "taskModel", {
		get: function() {
			return App.data.taskCenter
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.createTaskTrack = function() {
		var t = this;
		this._taskTrack || (this._taskTrack = new TaskTrackPanel), this._taskTrack.show(), App.dispatcher.addEventListener(
			EnumEvent.EVENT_STORY_FINISH,
			function() {
				t._taskTrack.visible = !0
			}, this)
	}, Object.defineProperty(e.prototype, "npcTalkPanel", {
		get: function() {
			return this._npcTalk || (this._npcTalk = new TaskNpcPanel), this._npcTalk
		},
		enumerable: !0,
		configurable: !0
	}), e
}(BaseConnectionRegister);
__reflect(TaskCommanRegister.prototype, "TaskCommanRegister");
var EnumPlatform = function() {
	function t() {}
	return t.DEBUG_PLAT = "h5", t.WX_GAME = "wxs", t.GAME_GAORE = "gaore", t.TULONG_H5 = "tlh5", t.XY_GAME = "xy", t.YOUX_123 =
		"youxi123", t.REXUE_GAME = "rexue", t.MENGYOU_GAME = "mengyou", t.GAME_37WAN = "37", t.GAME_ZHONGQINGBAO = "zqb", t.GAME_HUDIEHUDONG =
		"butterfly", t.GAME_AIWEIYOU = "aiweiyou", t.GAME_BAIDU = "baidu", t.OPPO_GAME = "oppo", t
}();
__reflect(EnumPlatform.prototype, "EnumPlatform");
var DebugPlatform = function() {
	function t() {}
	return t.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, {
					nickName: "username"
				}]
			})
		})
	}, t.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, {
					code: "web"
				}]
			})
		})
	}, t
}();
__reflect(DebugPlatform.prototype, "DebugPlatform", ["Platform"]), window.platform || (window.platform = new DebugPlatform);
var PlatformEventType = function() {
	function t() {}
	return t.PLATFORM_LOG_UP = "PLATFORM_LOG_UP", t.PLATFORM_SHOW_KEFU_BTN = "PLATFORM_SHOW_KEFU_BTN", t.PLATFORM_OPEN_KEFU =
		"PLATFORM_OPEN_KEFU", t.PLATFORM_GET_PARMAS = "PLATFORM_GET_PARMAS", t.PLATFORM_RETURN_PARMAS =
		"PLATFORM_RETURN_PARMAS", t.ACTIVITY_37_ID = "EventType.ACTIVITY_37_ID", t.ACTIVITY_BUTTERFLY_ID =
		"EventType.ACTIVITY_BUTTERFLY_ID", t.ACTIVITY_BUTTERFLY_RETURN_PARMAS = "EventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS",
		t.BUTTERFLY_KEFU_START = "EventType.BUTTERFLY_KEFU_START", t.BUTTERFLY_KEFU_SUCCESS =
		"EventType.BUTTERFLY_KEFU_SUCCESS", t.BUTTERFLY_KEFU_POST = "EventType.BUTTERFLY_KEFU_POST", t.BUTTERFLY_KEFU_CHECK =
		"EventType.BUTTERFLY_KEFU_CHECK", t.BUTTERFLY_KEFU_ADDCHAT = "EventType.BUTTERFLY_KEFU_ADDCHAT", t.BUTTERFLY_KEFU_CLOSE =
		"EventType.BUTTERFLY_KEFU_CLOSE", t
}();
__reflect(PlatformEventType.prototype, "PlatformEventType");
var PlatformManager = function() {
	function t() {
		this._agent = ""
	}
	return Object.defineProperty(t.prototype, "plat", {
		get: function() {
			return this._platform
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t.prototype, "agent", {
		get: function() {
			return this._agent
		},
		enumerable: !0,
		configurable: !0
	}), t.prototype.makePlatform = function(t) {
		this._agent = t;
		var e;
		switch (t) {
			case EnumPlatform.WX_GAME:
				e = Platform_wx;
				break;
			case EnumPlatform.GAME_GAORE:
				e = Platform_Gaore;
				break;
			case EnumPlatform.TULONG_H5:
				e = Platfrom_tulongH5;
				break;
			case EnumPlatform.XY_GAME:
				e = Platfrom_XY;
				break;
			case EnumPlatform.YOUX_123:
				e = Platfrom_youyou;
				break;
			case EnumPlatform.REXUE_GAME:
				e = Platfrom_rexue;
				break;
			case EnumPlatform.MENGYOU_GAME:
				e = Platfrom_mengyou;
				break;
			case EnumPlatform.GAME_37WAN:
				e = Platfrom_37wan;
				break;
			case EnumPlatform.GAME_ZHONGQINGBAO:
				e = Platfrom_ZQB;
				break;
			case EnumPlatform.GAME_HUDIEHUDONG:
			case EnumPlatform.GAME_AIWEIYOU:
				e = Platfrom_HDHD;
				break;
			case EnumPlatform.GAME_BAIDU:
				e = Platfrom_BAIDU
		}
		this._platform = e ? new e : new TestPlatform, this._platform.agent = this._agent
	}, t.prototype.removeMiniGamePreImg = function() {
		window.egretPackLoading && window.egretPackLoading.removeMiniGamePreImg()
	}, t.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, this._platform.getUserInfo()]
			})
		})
	}, t.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				switch (t.label) {
					case 0:
						return [4, this._platform.login()];
					case 1:
						return [2, t.sent()]
				}
			})
		})
	}, t.prototype.pay = function(t, e, i, n, a, o, r) {
		money = n;
		this._platform.pay(t, e, i, n).then(function() {
			a && a.exec()
		})["catch"](function() {
			o && o.exec()
		}).then(function() {
			r && r.exec()
		})
	}, t
}();
__reflect(PlatformManager.prototype, "PlatformManager");
var TestPlatform = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, platform.getUserInfo()]
			})
		})
	}, e.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, platform.login()]
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(e) {
				switch (e.label) {
					case 0:
						return [4, this.createPresent(t, a)];
					case 1:
						return [2, e.sent()]
				}
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i]
	}, e
}(BasePlatfrom);
__reflect(TestPlatform.prototype, "TestPlatform");
var WebParams = function() {
	function t() {}
	return Object.defineProperty(t, "param", {
		get: function() {
			return this._param
		},
		set: function(t) {
			this._param = t ? t : {}, this.ip && "" != this.ip && this.port && "" != this.port && this.account && "" != this
				.account && this.passward && "" != this.passward ? this.isFlag = !0 : this.isFlag = !1
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "ip", {
		get: function() {
			return this.param.svrip ? this.param.svrip : this.param.ip ? this.param.ip : ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "configPack", {
		get: function() {
			return this.param.cfgpack ? this.param.cfgpack : ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "port", {
		get: function() {
			return this.param.svrport ? this.param.svrport : this.param.port ? this.param.port : ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "loginid", {
		get: function() {
			if (null == this.tmp_debugloginid) {
				var e = t.param.loginid;
				if (!e) return null == this.tmp_debugloginid && (this.tmp_debugloginid = "999" + egret.getTimer() + 1e4 * Math.random()),
					this.tmp_debugloginid;
				this.debugloginid = e
			}
			return this.debugloginid
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "webid", {
		get: function() {
			return this.param.webid || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "ext", {
		get: function() {
			return this.param.ext || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "account", {
		get: function() {
			return this.param.account || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "platUsername", {
		get: function() {
			return this.param.platUsername || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "passward", {
		get: function() {
			return this.param.sign || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "sid", {
		get: function() {
			return this.param.sid ? this.param.sid : "1"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "zoneid", {
		get: function() {
			return this.param.zoneid ? this.param.zoneid : "1"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "isadultStr", {
		get: function() {
			return this.param.isadult || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "isadult", {
		get: function() {
			return "1" == this.param.isadult
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "agent", {
		get: function() {
			return this.param.agent || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "hfagent", {
		get: function() {
			return this.param.hfagent || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "ad", {
		get: function() {
			return this.param.ad || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "appid", {
		get: function() {
			return this.param.appid || "1105226930"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "loginexeurl", {
		get: function() {
			return this.param.loginexeurl || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "pfviptype", {
		get: function() {
			var t = this.param.pfviptype,
				e = parseInt(t);
			return e
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "proVer", {
		get: function() {
			return this.param.prover || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "resVer", {
		get: function() {
			return this.param.resver || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "cfgver", {
		get: function() {
			return this.param.cfgver || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "gamever", {
		get: function() {
			return this.param.gamever || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "time", {
		get: function() {
			return this.param.time || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "adregtime", {
		get: function() {
			return this.param.adregtime || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "showlogin", {
		get: function() {
			return this.param.showlogin || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "agent_plusdata", {
		get: function() {
			return this.param.agent_plusdata
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "agent_coldatas", {
		get: function() {
			return this.param.agent_coldatas
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "agentAppendData", {
		get: function() {
			return this.param.agent_append_data
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "agentAppendSign", {
		get: function() {
			return this.param.agent_append_sign
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "subscribe_switch", {
		get: function() {
			return this.param.subscribe_switch
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "shared_switch", {
		get: function() {
			return this.param.shared_switch
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "wx_is_subscribe", {
		get: function() {
			return this.param.wx_is_subscribe
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "wd_download_switch", {
		get: function() {
			return this.param.wd_download_switch
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "id_verify_switch", {
		get: function() {
			return this.param.id_verify_switch
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "id_verify", {
		get: function() {
			return this.param.id_verify
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "change_account_switch", {
		get: function() {
			return this.param.change_account_switch || "1"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "desktop_switch", {
		get: function() {
			return this.param.desktop_switch
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "reporturl", {
		get: function() {
			return this.param.reporturl || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "guid", {
		get: function() {
			return this.param.guid || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "referer", {
		get: function() {
			return this.param.referer
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "order_ip", {
		get: function() {
			return this.param.order_ip
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "cdn", {
		get: function() {
			return this.param.cdn || ""
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "closerecharge", {
		get: function() {
			return this.param.closerecharge || 0
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "rechargeurl", {
		get: function() {
			return this.param.rechargeurl || "https://wkz.6svip.cn"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "fcmurl", {
		get: function() {
			return this.param.fcmurl || "http://www.baidu.com"
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "closeLog", {
		get: function() {
			return null != this.param.closelog && 1 == this.param.closelog ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "weblogurl", {
		get: function() {
			return this.param.weblogurl || null
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "closeLoginLog", {
		get: function() {
			return null != this.param.closeLoginLog && 1 == this.param.closeLoginLog ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(t, "closeWebLog", {
		get: function() {
			return null != this.param.closeweblog && 1 == this.param.closeweblog ? !0 : !1
		},
		enumerable: !0,
		configurable: !0
	}), t.setLoadLog = function(e, i, n) {
		for (var a = [], o = 3; o < arguments.length; o++) a[o - 3] = arguments[o];
		var r = e ? "加载结束" : "加载开始";
		r = r + ">>" + n + " " + a.join(" "), t.sendWebLog(LogType.TYPE_LOAD_, r, i)
	}, t.setLoginWebLog = function(e) {
		for (var i = [], n = 1; n < arguments.length; n++) i[n - 1] = arguments[n];
		var a = ">>" + e + " " + i.join(" ");
		t.sendWebLog(LogType.TYPE_LOGIN_STEP, a)
	}, t.getDateTime = function(t) {
		var e = t.getHours(),
			i = t.getMinutes(),
			n = t.getSeconds(),
			a = t.getFullYear() + "-" + (t.getMonth() + 1) + "-" + t.getDate() + " " + (10 > e ? "0" + e : "" + e) + ":" + (10 >
				i ? "0" + i : "" + i) + ":" + (10 > n ? "0" + n : "" + n) + ":" + t.getMilliseconds();
		return a
	}, t.sendWebLog = function(e, i, n, a, o) {
		if (void 0 === n && (n = ""), void 0 === a && (a = ""), void 0 === o && (o = ""), !this.closeLog && this.weblogurl &&
			!(this.closeWebLog && e != LogType.TYPE_LOGIN_STEP || this.closeLoginLog && e == LogType.TYPE_LOGIN_STEP)) {
			var r = this.weblogurl + "?Laodao_ClientLog_Accout=" + t.account;
			if (i) {
				var s = (new Date).toDateString();
				i = "[" + s + "][Ver:" + Config.releaseVersion + "]" + i;
				var h;
				if (i.length >= 256) h = this.compressBase64Content(i);
				else {
					var l = new egret.ByteArray;
					l.writeUTFBytes(i), h = egret.Base64Util.encode(l.buffer), l = void 0
				}
				var p = new egret.ByteArray;
				p.writeUTFBytes(n);
				var c = egret.Base64Util.encode(p.buffer);
				p = void 0;
				var _ = {};
				_.userName = t.account, _.content = h, _.logType = e, _.logDis = "", _.web = t.agent, _.serverId = parseInt(t.zoneid),
					_.roleName = c, _.qq = a, _.dispather = "Laodao_ClientLog", _.email = o, _.loginid = this.loginid, _.clientVer =
					Config.releaseVersion;
				var d = new HttpLoader;
				d.httpMethod = egret.HttpMethod.POST, d.send(r, _)
			}
		}
	}, t.callJs = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		try {
			return ExternalInterface[t](e)
		} catch (n) {
			GameLog.logError(n.stack)
		}
	}, t.compressBase64Content = function(t) {
		var e = new egret.ByteArray;
		e.writeUTFBytes(t);
		var i = new Uint8Array(e.buffer),
			n = new Zlib.Deflate(i),
			a = n.compress(),
			o = egret.Base64Util.encode(a.buffer);
		return "#20150720#" + o
	}, t.tmp_debugloginid = null, t.debugloginid = null, t.isFlag = !1, t
}();
__reflect(WebParams.prototype, "WebParams");
var Oppo = function() {
	function t() {}
	return t.setUserCloudStorage = function(e) {
		t.qg().setUserCloudStorage({
			KVDataList: [{
				key: "playerLv",
				value: e
			}],
			success: function() {
				console.log("%c微信数据托管成功", "color: #f00")
			},
			fail: function() {
				console.log("%c微信数据托管失败", "color: #f00")
			},
			complete: function() {
				console.log("%c微信数据托管完成", "color: #f00")
			}
		})
	}, t.getSetting = function() {
		t.qg().getSetting({
			success: function(t) {
				var e = t.authSetting;
				e["scope.userInfo"] === !0 || e["scope.userInfo"] === !1
			},
			fail: null,
			complete: null
		})
	}, t.WXShare = function(t, e) {
		var i = wx;
		i.showShareMenu(), i.onShareAppMessage(function() {
			return {
				title: "屠龙圣域转发",
				imgUrl: "",
				query: "key1=weixin",
				success: function(e) {
					console.warn(e), t && t()
				},
				fail: function(t) {
					console.warn(t), e && e()
				}
			}
		})
	}, t.GetSharedCanvas = function(t) {
		if (t.getChildByName("obstacleMask")) {
			var e = window.platform;
			t.removeChild(t.getChildByName("obstacleMask")), t.removeChild(t.getChildByName("sharedCanvas")), e.openDataContext
				.postMessage({
					command: "close"
				})
		} else {
			var i = new egret.Shape;
			i.graphics.beginFill(0, 1), i.graphics.drawRect(0, 0, App.stage.width, App.stage.height), i.graphics.endFill(), i.alpha =
				.5, i.touchEnabled = !0, i.name = "obstacleMask", t.addChild(i), t.swapChildren(i, t.getChildByName("RankBtn"));
			var n = window.platform,
				a = n.openDataContext.createDisplayObject(null, App.stage.stageWidth, App.stage.stageHeight);
			a.name = "sharedCanvas", t.addChild(a), t.getChildByName("RankBtn")
		}
	}, t.GameCommunity = function() {
		var e = wx;
		t.GameClubBtn = e.createGameClubButton({
			icon: "green",
			style: {
				left: 10,
				top: 76,
				width: 40,
				height: 40
			}
		}), t.GameClubBtn.onTap(function(t) {
			console.log(t)
		})
	}, t.HideGameCommunity = function() {
		t.GameClubBtn.hide(), t.GameClubBtn = null
	}, t.getLaunchArg = function() {
		var t = new Promise(function(t, e) {
			var i = wx;
			i.onShow(function(i) {
				1008 === i.scene ? i.query.key1 ? t(i.query.key1) : e("No Share Arg") : e("Not Share")
			})
		});
		return t
	}, t.pay = function(e, i, n, a, o, r) {
		Config.isRelease ? 0 : 1;
		t.qg().requestMidasPayment({
			mode: "game",
			env: 1,
			offerId: e,
			currencyType: "CNY",
			platform: "android",
			buyQuantity: n,
			zoneId: i,
			success: function(t) {
				console.log("支付成功", t), a.exec()
			},
			fail: function(t) {
				console.log("支付失败", t), o.exec()
			},
			complete: function(t) {
				console.log("支付完成", t), r.exec()
			}
		})
	}, t.qg = function() {
		return window.qg
	}, t
}();
__reflect(Oppo.prototype, "Oppo");
var Platform_oppo = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.offerId = "1450017213", e.LOGIN_PATH = "https://boot.wujiehuyu.com/boot", e.FUNC_PATH =
			"https://login.wujiehuyu.com", e.api = window.qg, Oppo.WXShare(), Oppo.GameCommunity(), e.OpenDataCommandLoad(), e
	}
	return __extends(e, t), e.prototype.OpenDataCommandLoad = function() {
		var t = window.platform;
		t.openDataContext.postMessage({
			command: "loadRes"
		})
	}, e.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				switch (t.label) {
					case 0:
						return PlatfromCommandSender.sendSign("", 0, ""), [4, this.createRequest("wxLogin",
							"https://play.open.oppomobile.com/instant-game-open/userInfo", null, egret.HttpMethod.GET)];
					case 1:
						return [2, t.sent()]
				}
			})
		})
	}, e.prototype.getAccessToken = function(t, e, i) {
		return void 0 === e && (e = ""), void 0 === i && (i = egret.HttpMethod.POST), __awaiter(this, void 0, void 0,
			function() {
				var n, a;
				return __generator(this, function(o) {
					switch (o.label) {
						case 0:
							return n = this.LOGIN_PATH + "/g/getAccessToken", a = "" == e ? {
								code: t,
								agent: this.agent,
								gameId: "tlsy"
							} : {
								code: t,
								guid: e,
								agent: this.agent,
								gameId: "tlsy"
							}, [4, this.createRequest("getAccessToken", n, a, i)];
						case 1:
							return [2, o.sent()]
					}
				})
			})
	}, e.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t;
			return __generator(this, function(e) {
				return this.api.login({
					success: function(t) {
						var e = JSON.stringify(t.data);
						console.log(e), this.getUserInfo()
					},
					fail: function(t) {},
					complete: function(t) {}
				}), t = null, [2, this.getResultPromise(t)]
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				switch (t.label) {
					case 0:
						return [4, this.wxPay(this.offerId, WebParams.sid, a)];
					case 1:
						return [2, t.sent()]
				}
			})
		})
	}, e.prototype.wxPay = function(t, e, i) {
		var n = this,
			a = new Promise(function(a, o) {
				Oppo.pay(t, e, i, new FunctionVO(function(t) {
					a(!0)
				}, n), new FunctionVO(function(t) {
					a(!1)
				}, n), new FunctionVO(function(t) {}, n))
			});
		return a
	}, e
}(BasePlatfrom);
__reflect(Platform_oppo.prototype, "Platform_oppo");
var Platform_Gaore = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.Rmb2Yb = 1, Config.isNeedExitGameBtn = !0, e
	}
	return __extends(e, t), e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var r;
			return __generator(this, function(s) {
				return r = new Promise(function(r, s) {
					if ("gaoreh5" == WebParams.ad) {
						var h = App.global.characterData,
							l = h.vipLevel > 0 ? 1 : 0;
						GAORE_H5.pay(h.personId, h.name, h.getLevel(), l, n, a, t, o)
					} else if (Config.OS == h5_engine.OsType.IOS) "function" == typeof iOSCallBack ? iOSCallBack({
						IMoney: n,
						iServerId: WebParams.sid,
						strExtraInfo: o,
						strRoleName: App.global.characterData.name
					}) : window.webkit.messageHandlers.iOSCallBack.postMessage({
						IMoney: n,
						iServerId: WebParams.sid,
						strExtraInfo: o,
						strRoleName: App.global.characterData.name
					});
					else if (Config.OS == h5_engine.OsType.Android) {
						var h = App.global.characterData;
						AndroidCallBack.pay("1", "100", o, n, t, e, i, h.personId, h.level, h.name, WebParams.sid, "", h.vipLevel)
					}
					r(!0)
				}), [2, r]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if ("gaoreh5" == WebParams.ad) 3 == t && this.onGaoreLogUp_H5();
		else if (Config.OS == h5_engine.OsType.IOS) 3 == t && this.onGaoreLogUp_IOS();
		else if (Config.OS == h5_engine.OsType.Android) {
			var n = void 0;
			switch (t) {
				case 1:
					n = "1";
					break;
				case 2:
					n = "2";
					break;
				case 3:
					n = "3";
					break;
				case 4:
					n = "4";
					break;
				case 5:
					n = "5"
			}
			n && this.onGaoreLogUp_Andriod(n), 5 == t && AndroidCallBack.grLogout()
		}
	}, e.prototype.onGaoreLogUp_H5 = function() {
		var t = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO).toString(),
			e = App.global.characterData,
			i = e.vipLevel > 0 ? 1 : 0;
		GAORE_H5.roleInfo(e.personId, e.getLevel(), i, e.name, WebParams.sid, t)
	}, e.prototype.onGaoreLogUp_IOS = function() {
		var t = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO).toString(),
			e = WebParams.sid,
			i = "";
		"function" == typeof iOSSubmitData ? iOSSubmitData({
			strRoleName: App.global.characterData.name,
			iServerId: e,
			strServerName: i,
			strRoleID: App.global.characterData.personId,
			strMoneyNum: t
		}) : window.webkit.messageHandlers.iOSSubmitData.postMessage({
			strRoleName: App.global.characterData.name,
			iServerId: e,
			strServerName: i,
			strRoleID: App.global.characterData.personId,
			strMoneyNum: t
		})
	}, e.prototype.onGaoreLogUp_Andriod = function(t) {
		var e = "0";
		App.data && App.data.currencyDataCenter && (e = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO).toString());
		var i = "0",
			n = null,
			a = "0",
			o = null,
			r = "0",
			s = null,
			h = null,
			l = "0",
			p = null,
			c = "0",
			_ = "无",
			d = "0",
			u = "无",
			g = "无";
		App.global && App.global.characterData && (n = App.global.characterData.name, a = App.global.characterData.level.toString(),
			o = App.global.characterData.personId, r = App.global.characterData.vipLevel.toString(), d = App.global.characterData
			.job.toString(), u = EnumRole.JOB[App.global.characterData.job], g = EnumRole.SEX[App.global.characterData.sex],
			App.global.characterData.guildId && (s = App.global.characterData.guildId, h = App.data.guildNameCenter.getGuildName(
				s)));
		var f = "0";
		App.data && App.data.characterCenter && (f = App.data.characterCenter.roleSumFight.toString());
		var m = "0",
			v = "无";
		AndroidCallBack.grSubmitExtendData(t, WebParams.sid, null, n, a, o, e, i, s, h, l, p, f, d, u, g, m, v, r, c, _)
	}, e
}(BasePlatfrom);
__reflect(Platform_Gaore.prototype, "Platform_Gaore");
var Platfrom_37wan = function(t) {
	function e() {
		var e = t.call(this) || this;
		return Config.isRelease ? e.sqgamesdk = new SQGAMESDK : e.sqgamesdk = {}, e
	}
	return __extends(e, t), e.prototype.initGame = function() {
		t.prototype.initGame.call(this), this.makePlatfromData(), App.dispatcher.addEventListener(PlatformEventType.PLATFORM_GET_PARMAS,
			this.onPlatformGetParmas, this), App.dispatcher.addEventListener(PlatformEventType.ACTIVITY_37_ID, this.activityPlayer,
			this)
	}, e.prototype.activityPlayer = function(t) {
		switch (t) {
			case 101:
				this.platSubscribe();
				break;
			case 102:
				this.platShare();
				break;
			case 103:
				this.platDownloadWd();
				break;
			case 104:
				this.platSaveToDesktop();
				break;
			case 105:
				this.platVerify()
		}
	}, e.prototype.createOrder = function(e, i) {
		return void 0 === i && (i = ""), __awaiter(this, void 0, void 0, function() {
			var i;
			return __generator(this, function(n) {
				return i = WebParams.appid, [2, t.prototype.createOrder.call(this, e, i)]
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t, e = this;
			return __generator(this, function(i) {
				return t = new Promise(function(t, i) {
					var n = (App.global.characterData, {});
					n.appid = WebParams.appid, n.game_id = r.game_id, n.uid = WebParams.account, n.sid = WebParams.sid, n.actor_id =
						"", n.order_no = o, n.money = r.money, n.game_coin = r.game_coin, n.product_id = r.product_id, n.subject =
						r.subject, n.time = r.time, n.ext = "", n.sign = r.sign, n.order_ip = WebParams.order_ip, n.referer =
						WebParams.referer, e.sqgamesdk.pay(n)
				}), [2, t]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (2 == t) this.reportCreateRole(e), this.logCreateData(e);
		else {
			if (!App.global) return;
			var n = App.global.characterData;
			if (!n) return;
			switch (t) {
				case 3:
					this.reportIntoGame(), this.logUpTo37("server"), this.logUpTo37("entergame");
					break;
				case 4:
					this.logUpTo37("levelup");
					break;
				case 5:
					this.sqgamesdk.switchAccount()
			}
		}
	}, e.prototype.reportIntoGame = function() {
		var t = WebParams.reporturl + "/r/f37ReportIntoGame";
		this.createRequest("f37ReportIntoGame", t, {
			appid: WebParams.appid,
			uid: WebParams.account,
			sid: WebParams.sid,
			guid: WebParams.guid
		})
	}, e.prototype.reportCreateRole = function(t) {
		var e = WebParams.reporturl + "/r/f37ReportCreateRole";
		this.createRequest("f37ReportCreateRole", e, {
			appid: WebParams.appid,
			uid: WebParams.account,
			sid: WebParams.sid,
			guid: WebParams.guid,
			role_name: t[0],
			role_id: t[1]
		})
	}, e.prototype.logCreateData = function(t) {
		this.sqgamesdk.log({
			serverid: WebParams.sid,
			servername: WebParams.sid,
			rolename: t[0],
			roleid: t[1],
			timestamp: t[2]
		}, "create")
	}, e.prototype.logUpTo37 = function(t) {
		for (var e = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO), i = App.global.characterData, n = [], a =
				App.global.roles.roleList, o = a.length, r = 0; o > r; r++) {
			var s = a[r],
				h = {};
			h.profession = EnumRole.JOB[s.job], h.professionid = s.job, h.rolelevel = s.level, h.gender = EnumRole.SEX2[s.sex],
				n.push(h)
		}
		var l = i.guildId ? i.guildId : "";
		this.sqgamesdk.log({
			serverid: WebParams.sid,
			servername: WebParams.sid,
			rolename: i.name,
			roleid: i.personId,
			rolelevel: i.level,
			viplevel: i.vipLevel,
			fightvalue: App.data.characterCenter.roleSumFight,
			balance: e,
			countryid: l,
			country: App.data.guildNameCenter.getGuildName(l),
			countryrolename: "",
			timestamp: ServerTime.serverTime,
			rolecreatetime: i.regTime,
			roles: n
		}, t)
	}, e.prototype.makePlatfromData = function() {
		this._crtPlatData = new PlatformParms;
		var t = WebParams.subscribe_switch.split(",");
		(-1 != t.indexOf("qq") && NavigatorUtils.isQQ() || -1 != t.indexOf("wx") && NavigatorUtils.isWexin() || -1 != t.indexOf(
			"other")) && (this._crtPlatData.wx_is_subscribe = WebParams.wx_is_subscribe);
		var e = WebParams.shared_switch.split(",");
		(-1 != e.indexOf("qq") && NavigatorUtils.isQQ() || -1 != e.indexOf("wx") && NavigatorUtils.isWexin()) && (this._crtPlatData
			.shared_switch = 1), 1 == WebParams.wd_download_switch && (this._crtPlatData.wd_download_switch = 1), "2" ==
			WebParams.change_account_switch && (Config.isNeedExitGameBtn = !0), "2" == WebParams.desktop_switch && (this._crtPlatData
				.desktop_switch = 1), "2" == WebParams.id_verify_switch && (this._crtPlatData.id_verify = parseInt(WebParams.id_verify))
	}, e.prototype.onPlatformGetParmas = function() {
		App.dispatcher.dispatchEvent(PlatformEventType.PLATFORM_RETURN_PARMAS, this._crtPlatData)
	}, e.prototype.platSubscribe = function() {
		var t = this;
		this.sqgamesdk.subscribe(function(e) {
			e && 1 == e && (t._crtPlatData.wx_is_subscribe = 2, this.onPlatformGetParmas())
		})
	}, e.prototype.platDownloadWd = function() {
		var t = this;
		this.sqgamesdk.download_wd(function(e) {
			e && 1 == e && (t._crtPlatData.wd_download_switch = 2, this.onPlatformGetParmas())
		})
	}, e.prototype.platSaveToDesktop = function() {
		var t = this;
		this.sqgamesdk.saveToDesktop(function() {
			t._crtPlatData.desktop_switch = 2, this.onPlatformGetParmas()
		})
	}, e.prototype.platShare = function() {
		var t = "这个游戏给你安排的明明白白的",
			e = "屠龙之战",
			i = "";
		this.sqgamesdk.share(t, e, i, function() {
			VipCommandSender.sendC2S_addRemainderTurntableMessage()
		}, function() {
			Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">分享失败!</font>")
		})
	}, e.prototype.platVerify = function() {
		var t = this;
		this.sqgamesdk.verify(function() {
			t._crtPlatData.id_verify = 2, this.onPlatformGetParmas()
		})
	}, e
}(BasePlatfrom);
__reflect(Platfrom_37wan.prototype, "Platfrom_37wan");
var PlatformParms = function() {
	function t() {
		this.wx_is_subscribe = 0, this.shared_switch = 0, this.wd_download_switch = 0, this.desktop_switch = 0, this.id_verify =
			0
	}
	return t
}();
__reflect(PlatformParms.prototype, "PlatformParms");
var Platfrom_BAIDU = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.game_key = "d3db5d2bf80ed5ab", e.game_url = "", e.signature = "", e.ticket = "", e.nonce = "", e.open_id =
			"", e.timestamp = 0, e.login_type = 0, e.is_new = 0, e.ad = "", e.LOGIN_PATH = "https://login-lyj.hgame.com",
			window.swan && e.initSDK(), e
	}
	return __extends(e, t), e.prototype.initSDK = function() {
		var t = this;
		this.hgame_BaiduSDK = new hGame({
			game_key: this.game_key
		}), console.log("初始化baidusdk:" + JSON.stringify(this.hgame_BaiduSDK));
		var e = function(e) {
			console.log("ready res:" + e), t.getLoginInfo(), t.getPlatform()
		};
		this.hgame_BaiduSDK && this.hgame_BaiduSDK.ready(e)
	}, e.prototype.getPlatform = function() {
		var t = this,
			e = function(e) {
				console.log("获取渠道信息成功:" + JSON.stringify(e)), t.ad = e.data.platform, e && 0 == e.code
			};
		this.hgame_BaiduSDK && this.hgame_BaiduSDK.getPlatform(e)
	}, e.prototype.getLoginInfo = function() {
		var t = this,
			e = function(e) {
				console.log("获得登录信息:" + JSON.stringify(e)), t.game_key = e.game_key, t.signature = e.signature, t.timestamp =
					Number(e.timestamp), t.game_url = e.game_url, t.ticket = e.ticket, t.nonce = e.nonce, t.login_type = e.login_type,
					ReLoginModule.gameURL = decodeURIComponent(e.game_url);
				t.login()
			},
			i = swan.getLaunchOptionsSync(),
			n = {};
		n.query = i.query, n.scene = i.scene, n.forceAuth = !0, n.createLoginBtn = function() {
			var t = swan.createUserInfoButton({
				type: "text",
				text: "获取用户信息",
				style: {
					left: 10,
					top: 76,
					width: 200,
					height: 40,
					lineHeight: 40,
					backgroundColor: "#ff0000",
					color: "#ffffff",
					textAlign: "center",
					fontSize: 16,
					borderRadius: 4
				}
			});
			return t.show(), t
		}, this.hgame_BaiduSDK && this.hgame_BaiduSDK.login(e, n)
	}, e.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e, i, n, a, o;
			return __generator(this, function(r) {
				switch (r.label) {
					case 0:
						t = this, e = null, r.label = 1;
					case 1:
						return i ? [3, 3] : [4, this.getServerList()];
					case 2:
						return i = r.sent(), [3, 1];
					case 3:
						if (console.log("serverData:" + JSON.stringify(i)), !i) return [3, 8];
						Config.serverList = this.parseServerList(i), n = Config.serverList[0], a = void 0, r.label = 4;
					case 4:
						return a ? [3, 6] : [4, this.getbutterflyH5OpenId()];
					case 5:
						return a = r.sent(), [3, 4];
					case 6:
						return console.log("userinfo:" + JSON.stringify(a)), this.open_id = StringUtil.JsonParse(a).openId, console
							.log("this.open_id:" + this.open_id), e = {
								agent: this.agent,
								cdn: n.cdn,
								prover: n.prover,
								resver: n.resver,
								account: this.open_id
							}, [4, this.getRoleLoginServer(this.open_id)];
					case 7:
						o = r.sent(), Config.lastLoginServerList = this.parseLoginServerData(o), r.label = 8;
					case 8:
						return console.log("login-param:", e), 0 == Config.isRelease && (e.cdn =
							"http://192.168.13.90/resource/h5_wkz/"), App.dispatcher.dispatchEvent(EventType.SETPARAM, e), [2, this.getResultPromise(
							e)]
				}
			})
		})
	}, e.prototype.getbutterflyH5OpenId = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e;
			return __generator(this, function(i) {
				switch (i.label) {
					case 0:
						return t = this.LOGIN_PATH + "/g/butterflyH5OpenId", e = {
							ticket: this.ticket,
							login_type: this.login_type,
							game_key: this.game_key
						}, [4, this.createRequest("getbutterflyH5OpenId", t, e, egret.HttpMethod.POST)];
					case 1:
						return [2, i.sent()]
				}
			})
		})
	}, e.prototype.platShare = function() {
		var t = this,
			e = {};
		e.open_id = t.open_id, e.title = "炼妖记", e.message = "石破天惊，猴王出世！踏碎凌霄，风卷残云！逆战天地，战魂不灭！一世轮回，屠仙再起！修仙路漫漫，带上兄弟征伐仙魔！", e.imgUrl =
			"", e.url = t.game_url, e.shareKey = "", e.extend = {}, this.hgame_BaiduSDK && this.hgame_BaiduSDK.share(e,
				function(t) {
					t.data;
					switch (t.code) {
						case 0:
							VipCommandSender.sendC2S_addRemainderTurntableMessage();
							break;
						case -2:
							console.log("分享失败错误信息:" + t.message)
					}
				})
	}, e.prototype.createOrder = function(e, i) {
		return void 0 === i && (i = ""), __awaiter(this, void 0, void 0, function() {
			var i;
			return __generator(this, function(n) {
				return i = WebParams.appid, [2, t.prototype.createOrder.call(this, e, i, this.ad)]
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t, e = this;
			return __generator(this, function(i) {
				return t = new Promise(function(t, i) {
					var n = App.global.characterData,
						a = r.result,
						o = {};
					o.game_key = a.game_key, o.open_id = a.open_id, o.total_fee = a.total_fee, o.game_orderno = a.game_orderno,
						o.subject = a.subject, o.description = a.description, o.notify_url = a.notify_url, o.timestamp = a.timestamp,
						o.nonce = a.nonce, o.game_area = WebParams.sid, o.game_group = n.serverid, o.game_role_id = n.personId, o
						.signature = a.signature, e.hgame_BaiduSDK && e.hgame_BaiduSDK.pay(o, "", e.payCallBack)
				}), [2, t]
			})
		})
	}, e.prototype.payCallBack = function(t) {}, e.prototype.gameReport = function(t, e) {
		void 0 === e && (e = null);
		var i = App.global.characterData,
			n = {};
		n.game_key = this.game_key, n.open_id = this.open_id, n.role = i.personId, n.nickname = i.name, n.area = WebParams.sid,
			n.group = i.serverid;
		var a;
		switch (t) {
			case "enterGame":
				a = this.enterGameExtendData;
				break;
			case "levelUpgrade":
				a = this.levelUpgradeExtendData
		}
		console.log("调用接口gameReport action：" + t), this.hgame_BaiduSDK && this.hgame_BaiduSDK.gameReport(t, n, a, e)
	}, Object.defineProperty(e.prototype, "enterGameExtendData", {
		get: function() {
			var t = App.global.characterData,
				e = {};
			return e.level = t.level, e.vipLevel = t.vipLevel, e.score = 0, e.isNew = this.is_new, e.shareRole = t.personId,
				e
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.enterGameCallBack = function(t) {
		console.log("游戏数据上报-登录游戏后回调data:" + JSON.stringify(t))
	}, Object.defineProperty(e.prototype, "levelUpgradeExtendData", {
		get: function() {
			var t = App.global.characterData,
				e = {};
			return e.level = t.level, e
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.levelUpgradeCallBack = function(t) {
		console.log("游戏数据上报-角色升级后回调data:" + JSON.stringify(t))
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		switch (console.log("platformLog:" + t), t) {
			case 1:
				this.is_new = 0;
				break;
			case 2:
				this.is_new = 1;
				break;
			case 3:
				this.gameReport("enterGame", this.enterGameCallBack);
				break;
			case 4:
				this.gameReport("levelUpgrade", this.levelUpgradeCallBack);
				break;
			case 5:
				break;
			case 6:
		}
	}, e
}(BasePlatfrom);
__reflect(Platfrom_BAIDU.prototype, "Platfrom_BAIDU");
var Platfrom_HDHD = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.game_key = "d3db5d2bf80ed5ab", e.game_url = "", e.signature = "", e.open_id = "", e.timestamp = 0, window.BUTTERFLY_H5 &&
			(e.hgameSdk = BUTTERFLY_H5.hgameSdk), e
	}
	return __extends(e, t), e.prototype.initGame = function() {
			t.prototype.initGame.call(this), this.open_id = WebParams.account, this.queryExtraStatus(), this.addListener()
		}, e.prototype.addListener = function() {
			App.dispatcher.addEventListener(PlatformEventType.ACTIVITY_BUTTERFLY_ID, this.operateHandle, this), App.dispatcher.addEventListener(
				PlatformEventType.BUTTERFLY_KEFU_CLOSE, this.customerServiceStopFun, this), App.dispatcher.addEventListener(
				PlatformEventType.BUTTERFLY_KEFU_CHECK, this.customerServiceCheckFun, this), App.dispatcher.addEventListener(
				PlatformEventType.BUTTERFLY_KEFU_POST, this.customerServicePostFun, this), App.dispatcher.addEventListener(
				PlatformEventType.BUTTERFLY_KEFU_START, this.customerServiceStartFun, this)
		}, e.prototype.operateHandle = function(t) {
			var e = this;
			switch (t) {
				case 105:
					e.doExtraAction("realNameAuth", e.verifyCB);
					break;
				case 106:
					e.doExtraAction("bindPhone", e.bindCB);
					break;
				case 107:
				case 108:
					e.platShare();
					break;
				case 103:
					e.doExtraAction("client", e.clientCB);
					break;
				case 104:
					e.doExtraAction("toDesktop", e.toDesktopCB);
					break;
				case 110:
					break;
				case 101:
					e.doExtraAction("subscribe", e.subscribeCB)
			}
		}, e.prototype.getPlatform = function() {
			var t = this,
				e = function(t) {
					t && 0 == t.code
				};
			t.hgameSdk && t.hgameSdk.getPlatform(e)
		}, e.prototype.getLoginInfo = function() {
			var t = this,
				e = function(e) {
					console.log("获得登录信息:" + JSON.stringify(e)), t.game_key = e.game_key, t.signature = e.signature, t.timestamp =
						Number(e.timestamp), t.game_url = e.game_url, ReLoginModule.gameURL = decodeURIComponent(e.game_url)
				};
			t.hgameSdk && t.hgameSdk.login(e)
		}, e.prototype.platShare = function() {
			var t = this,
				e = {};
			e.open_id = t.open_id, e.title = "炼妖记", e.message = "石破天惊，猴王出世！踏碎凌霄，风卷残云！逆战天地，战魂不灭！一世轮回，屠仙再起！修仙路漫漫，带上兄弟征伐仙魔！", e.imgUrl =
				"", e.url = t.game_url, e.shareKey = "", e.extend = {}, t.hgameSdk && t.hgameSdk.share(e, function(t) {
					t.data;
					switch (t.code) {
						case 0:
							VipCommandSender.sendC2S_addRemainderTurntableMessage();
							break;
						case -2:
							console.log("分享失败错误信息:" + t.message)
					}
				})
		}, e.prototype.doExtraAction = function(t, e) {
			var i = this,
				n = {};
			n.open_id = i.open_id, n.game_key = i.game_key, n.timestamp = i.timestamp, n.signature = i.signature, n.autoRedirect = !
				0, console.log("调用执行相关功能接口data:" + JSON.stringify(n)), i.hgameSdk && i.hgameSdk.doExtraAction(t, n, e)
		}, e.prototype.bindCB = function(t) {
			t && 0 == t.code ? (e.bind_status = 1, t.data && t.data.status && (e.bind_status = t.data.status), App.dispatcher.dispatchEvent(
					PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS), App.data.activityCenter.checkAtivityPointById(812, 106, e.bind_status)) :
				Notice.showBottomMessage("手机绑定失败")
		}, e.prototype.verifyCB = function(t) {
			t && 0 == t.code ? (e.verify_status = 1, t.data && t.data.status && (e.verify_status = t.data.status), App.dispatcher
				.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS), App.data.activityCenter.checkAtivityPointById(
					811, 105, e.verify_status)) : Notice.showBottomMessage("实名认证失败")
		}, e.prototype.clientCB = function(t) {
			t && 0 == t.code ? (e.client_status = 1, App.data.activityCenter.checkAtivityPointById(814, 103, e.client_status),
				App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS)) : Notice.showBottomMessage(
				"下载微端失败")
		}, e.prototype.toDesktopCB = function(t) {
			console.log("下载桌面回调：" + JSON.stringify(t)), t && 0 == t.code ? (e.todesktop_status = 1, App.dispatcher.dispatchEvent(
					PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS), App.data.activityCenter.checkAtivityPointById(816, 104, e.todesktop_status)) :
				Notice.showBottomMessage("添加桌面失败")
		}, e.prototype.subscribeCB = function(t) {
			t && 0 == t.code ? (e.subscribe_status = 1, App.dispatcher.dispatchEvent(PlatformEventType.ACTIVITY_BUTTERFLY_RETURN_PARMAS),
				App.data.activityCenter.checkAtivityPointById(817, 101, e.subscribe_status)) : Notice.showBottomMessage("微信关注失败")
		}, e.prototype.changeAccountCB = function(t) {}, e.prototype.queryExtraStatus = function() {
			var t = {};
			t.open_id = this.open_id, this.hgameSdk && this.hgameSdk.queryExtraStatus(t, this.queryExtraStatuCB)
		}, e.prototype.queryExtraStatuCB = function(t) {
			console.log("查询结果回调result:" + JSON.stringify(t)), t && (t.bindPhone ? (e.is_bind = 1, t.bindPhone.status && (e.bind_status =
					t.bindPhone.status)) : e.is_bind = 0, t.realNameAuth ? (e.is_verify = 1, t.realNameAuth.status && (e.verify_status =
					t.realNameAuth.status)) : e.is_verify = 0, t.client ? (e.is_client = 1, t.client.status && (e.client_status_2 =
					t.client.status, Config.isWxGame = 1 == Number(t.client.status) ? !0 : !1)) : e.is_client = 0, t.share ? (e.is_share =
					1, t.share.status && (e.share_status = t.share.status)) : e.is_share = 0, t.customerService ? e.is_customerService =
				1 : e.is_customerService = 0, t.toDesktop ? (e.is_todesktop = 1, t.toDesktop.status && (e.todesktop_status = t.toDesktop
					.status)) : e.is_todesktop = 0, t.changeAccount ? e.is_changeAccount = 1 : e.is_changeAccount = 0, t.vipService ?
				e.is_vipService = 1 : e.is_vipService = 0, t.gameSound ? e.is_gameSound = 1 : e.is_gameSound = 0, t.subscribe ? (
					e.is_subscribe = 1, t.subscribe.status && (e.subscribe_status = t.subscribe.status)) : e.is_subscribe = 0, t.chatMonitor ?
				e.is_chatMonitor = 1 : e.is_chatMonitor = 0)
		}, e.prototype.createOrder = function(e, i) {
			return void 0 === i && (i = ""), __awaiter(this, void 0, void 0, function() {
				var i;
				return __generator(this, function(n) {
					return i = WebParams.appid, [2, t.prototype.createOrder.call(this, e, i)]
				})
			})
		}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
			return __awaiter(this, void 0, void 0, function() {
				var t, e = this;
				return __generator(this, function(i) {
					return t = new Promise(function(t, i) {
						var n = App.global.characterData,
							a = r.result,
							o = {};
						o.game_key = a.game_key, o.open_id = a.open_id, o.total_fee = a.total_fee, o.game_orderno = a.game_orderno,
							o.subject = a.subject, o.description = a.description, o.notify_url = a.notify_url, o.timestamp = a.timestamp,
							o.nonce = a.nonce, o.game_area = WebParams.sid, o.game_group = n.serverid, o.game_role_id = n.personId, o
							.signature = a.signature, e.hgameSdk && e.hgameSdk.pay(o, "", e.payCallBack)
					}), [2, t]
				})
			})
		}, e.prototype.payCallBack = function(t) {}, e.prototype.gameReport = function(t, e) {
			void 0 === e && (e = null);
			var i = App.global.characterData,
				n = {};
			n.game_key = this.game_key, n.open_id = this.open_id, n.role = i.personId, n.nickname = i.name, n.area = WebParams.sid,
				n.group = i.serverid;
			var a;
			switch (t) {
				case "enterGame":
					a = this.enterGameExtendData;
					break;
				case "levelUpgrade":
					a = this.levelUpgradeExtendData
			}
			console.log("调用接口gameReport action：" + t), this.hgameSdk.gameReport(t, n, a, e)
		}, Object.defineProperty(e.prototype, "enterGameExtendData", {
			get: function() {
				var t = App.global.characterData,
					i = {};
				return i.level = t.level, i.vipLevel = t.vipLevel, i.score = 0, i.isNew = e.is_new, i.shareRole = t.personId, i
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.enterGameCallBack = function(t) {
			console.log("游戏数据上报-登录游戏后回调data:" + JSON.stringify(t))
		}, Object.defineProperty(e.prototype, "levelUpgradeExtendData", {
			get: function() {
				var t = App.global.characterData,
					e = {};
				return e.level = t.level, e
			},
			enumerable: !0,
			configurable: !0
		}), e.prototype.levelUpgradeCallBack = function(t) {
			console.log("游戏数据上报-角色升级后回调data:" + JSON.stringify(t))
		}, e.prototype.platformLog = function(t) {
			for (var i = [], n = 1; n < arguments.length; n++) i[n - 1] = arguments[n];
			switch (console.log("platformLog:" + t), t) {
				case 1:
					e.is_new = 0, this.getPlatform(), this.getLoginInfo();
					break;
				case 2:
					e.is_new = 1;
					break;
				case 3:
					this.gameReport("enterGame", this.enterGameCallBack);
					break;
				case 4:
					this.gameReport("levelUpgrade", this.levelUpgradeCallBack);
					break;
				case 5:
					break;
				case 6:
					var a = i[0],
						o = i[1];
					this.chatMonitor(a, o)
			}
		}, e.prototype.customerServiceStartFun = function() {
			var t = this;
			t.hgameSdk && t.hgameSdk.customerServiceStart(e.userinfo, t.pushChatFunc, t.customerServiceStartCB)
		}, e.prototype.pushChatFunc = function(t) {
			var i = t;
			e.chatData = e.chatData.concat(i), console.log("聊天历史记录1：" + JSON.stringify(i)), console.log("聊天历史记录2：" + JSON.stringify(
				e.chatData));
			for (var n = 0; n < i.length; n++) {
				var a = new KefuChatVO,
					o = i[n];
				a.content = o.content, a.id = o.id, a.time = o.time, a.nickname = o.nickname, App.dispatcher.dispatchEvent(
					PlatformEventType.BUTTERFLY_KEFU_ADDCHAT, a)
			}
		}, e.prototype.customerServiceStartCB = function(t) {
			App.dispatcher.dispatchEvent(PlatformEventType.BUTTERFLY_KEFU_SUCCESS, t)
		}, e.prototype.customerServicePostFun = function(t) {
			var e = App.global.characterData,
				i = {};
			i.content = t, i.level = e.level, i.vipLevel = e.vipLevel, this.hgameSdk && this.hgameSdk.customerServicePost(i)
		}, e.prototype.chatMonitor = function(t, i) {
			var n = this,
				a = App.global.characterData;
			if (1 == e.is_chatMonitor) {
				var o = {};
				o.type = "帮会" == t ? 5 : 4, o.group = a.serverid, o.open_id = n.open_id, o.nickname = a.name, o.msg = i, console.log(
					"发送聊天监控：" + JSON.stringify(o)), n.hgameSdk && n.hgameSdk.doExtraAction("chatMonitor", o)
			}
		}, e.prototype.customerServiceCheckFun = function() {
			this.hgameSdk && this.hgameSdk.customerServiceCheck(this.customerServiceCheckCB)
		}, e.prototype.customerServiceCheckCB = function(t) {
			if (t) {
				var e = t.code;
				if (0 == e && t.data && t.data.num > 0) {
					console.log("检测客服新信息:" + JSON.stringify(t.data));
					var i = new KefuChatVO;
					i.content = t.data.content, i.id = t.data.id, i.time = t.data.time, i.nickname = t.data.nickname, App.dispatcher.dispatchEvent(
						PlatformEventType.BUTTERFLY_KEFU_ADDCHAT, i)
				}
			}
		}, e.prototype.customerServiceStopFun = function() {
			this.hgameSdk && this.hgameSdk.customerServiceStop(function(t) {
				console.log("关闭客服聊天：" + t)
			})
		}, e.is_verify = 0, e.verify_status = 0, e.is_bind = 0, e.bind_status = 0, e.is_client = 0, e.client_status = 0, e.client_status_2 =
		0, e.is_share = 0, e.share_status = 0, e.is_new = 0, e.is_customerService = 0, e.is_todesktop = 0, e.todesktop_status =
		0, e.is_subscribe = 0, e.subscribe_status = 0, e.is_changeAccount = 0, e.is_vipService = 0, e.is_gameSound = 0, e.is_chatMonitor =
		0, e.chatData = [], e
}(BasePlatfrom);
__reflect(Platfrom_HDHD.prototype, "Platfrom_HDHD");
var Platfrom_mengyou = function(t) {
	function e() {
		var e = t.call(this) || this;
		return Config.isNeedExitGameBtn = !0, e._sdk = new mengyou({
			pver: WebParams.cfgver
		}), e._sdk.init(), e
	}
	return __extends(e, t), e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t, e = this;
			return __generator(this, function(i) {
				return t = new Promise(function(t, i) {
					function a(e) {
						var i = (e.dsn, e.status);
						t(1 == i ? !0 : !1)
					}
					var s = App.global.characterData,
						h = {};
					h.dsn = o, h.dsid = WebParams.sid, h.dsname = WebParams.sid, h.drid = s.personId, h.drname = s.name, h.drlevel =
						s.level, h.money = 100 * n, h.dext = "", h.time = r.time, h.sign = r.sign, e._sdk.pay(h, a)
				}), [2, t]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (App.global) {
			var n = App.global.characterData;
			if (n) {
				var a = 0;
				if (2 == t) a = 31;
				else switch (t) {
					case 3:
						a = 32;
						break;
					case 4:
						a = 35;
						break;
					case 5:
						sdk.login_out()
				}
				if (a > 0) {
					var o = (n.guildId, App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO).toString()),
						r = App.data.guildNameCenter.getGuildName(n.guildId),
						s = {};
					s.dsid = WebParams.sid, s.dsname = WebParams.sid, s.drid = n.personId, s.drname = n.name, s.drlevel = n.level, s
						.drbalance = o, s.drvip = n.vipLevel, s.dcountry = r, s.dparty = r, s.dext = {
							guildID: n.guildId
						}, s.eid = a, this._sdk.event(s)
				}
			}
		}
	}, e
}(BasePlatfrom);
__reflect(Platfrom_mengyou.prototype, "Platfrom_mengyou");
var Platfrom_rexue = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t;
			return __generator(this, function(e) {
				return t = new Promise(function(t, e) {
					window.parent.postMessage({
						uid: WebParams.account,
						username: WebParams.platUsername,
						money: n,
						server_id: WebParams.sid,
						role_id: App.global.characterData.personId,
						ext: o,
						appid: 28
					}, "*"), t(!0)
				}), [2, t]
			})
		})
	}, e
}(BasePlatfrom);
__reflect(Platfrom_rexue.prototype, "Platfrom_rexue");
var Platfrom_tulongH5 = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.pay = function(t, e, i, n) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i, n, a, o, r, s;
			return __generator(this, function(h) {
				switch (h.label) {
					case 0:
						return e = !1, [4, this.choosePayType(t)];
					case 1:
						return i = h.sent(), i ? [4, this.createOrder(t, i)] : [3, 7];
					case 2:
						return (n = h.sent()) ? (n = StringUtil.JsonParse(n), a = n.code, 0 != a ? [3, 7] : (o = n.result, e = !0,
							"alipay" != i ? [3, 3] : (document.write(o), [3, 7]))) : [3, 7];
					case 3:
						return "wx" != i ? [3, 4] : (Config.isMobile && window.top.postMessage({
							success: !0,
							pay_url: o
						}, "*"), [3, 7]);
					case 4:
						return "wxgzh" != i ? [3, 7] : [4, this.inWxAppPay(o)];
					case 5:
						return (r = h.sent()) ? (s = o.paymentId, [4, this.checkPayResult(s)]) : [3, 7];
					case 6:
						e = h.sent(), h.label = 7;
					case 7:
						return [2, this.getResultPromise(e)]
				}
			})
		})
	}, e.prototype.clickWebWxPay = function() {}, e.prototype.inWxAppPay = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e;
			return __generator(this, function(i) {
				return e = new Promise(function(e, i) {
					function n() {
						WeixinJSBridge.invoke("getBrandWCPayRequest", {
							appId: t.appId,
							timeStamp: t.timeStamp,
							nonceStr: t.nonceStr,
							"package": t["package"],
							signType: "MD5",
							paySign: t.paySign
						}, function(t) {
							e("get_brand_wcpay_request:ok" == t.err_msg ? !0 : !1)
						})
					}
					"undefined" == typeof WeixinJSBridge ? document.addEventListener ? document.addEventListener(
						"WeixinJSBridgeReady", n, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", n),
						document.attachEvent("onWeixinJSBridgeReady", n)) : n()
				}), [2, e]
			})
		})
	}, e.prototype.choosePayType = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i;
			return __generator(this, function(n) {
				return e = this, i = new Promise(function(i, n) {
					if (NavigatorUtils.isAliPay()) i("alipay");
					else if (NavigatorUtils.isWexin()) i("wxgzh");
					else if (NavigatorUtils.isQQ()) i("wx");
					else {
						var a = function(t) {
							var n = t;
							i("wx" == n ? "wx" : "zfb" == n ? "alipay" : null), App.dispatcher.removeEventListener(EventType.EventTypePaymentPlatform,
								a, e)
						};
						App.panel.openPanel(99999, t), App.dispatcher.addEventListener(EventType.EventTypePaymentPlatform, a, e)
					}
				}), [2, i]
			})
		})
	}, e
}(BasePlatfrom);
__reflect(Platfrom_tulongH5.prototype, "Platfrom_tulongH5");
var Platfrom_XY = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.gid = "55", e
	}
	return __extends(e, t), e.prototype.initGame = function() {
		t.prototype.initGame.call(this), Config.isNeedKeFuBtn = !0, App.dispatcher.addEventListener(PlatformEventType.PLATFORM_OPEN_KEFU,
			this.onPlatOpenKefu, this)
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i = this;
			return __generator(this, function(a) {
				return e = new Promise(function(e, a) {
					var r = i.gid,
						s = WebParams.account,
						h = App.global.characterData.name,
						l = WebParams.sid,
						p = App.global.characterData.personId,
						c = t,
						_ = n,
						d = "1548161",
						u = o;
					sdk.loadPayBox(r, s, h, l, p, c, _, d, u), e(!0)
				}), [2, e]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (App.global) {
			var n = App.global.characterData;
			if (n) {
				switch (t) {
					case 3:
						-1 != Config.createRoleJob && -1 != Config.createRoleSex && sdk.createRole(WebParams.account, WebParams.sid, n.name,
							n.personId, WebParams.sid, n.level);
						var a = this.gid;
						sdk.gamelogin(WebParams.account, a, WebParams.sid, n.personId, n.name);
						break;
					case 4:
						sdk.upgrade(WebParams.account, WebParams.sid, n.name, n.personId, WebParams.sid, n.level);
						break;
					case 6:
						var o = WebParams.sid,
							r = n.name,
							s = WebParams.sid,
							h = "xy",
							l = "xy",
							p = WebParams.account,
							c = e[0],
							_ = e[0],
							d = e[1],
							u = "xy",
							g = this.gid,
							f = "0",
							m = n.vipLevel.toString();
						sdk.sendchatlog(o, r, s, h, l, p, d, c, _, u, g, f, m)
				}
			}
		}
	}, e.prototype.onPlatOpenKefu = function() {
		var t = App.global.characterData;
		if (t) {
			var e = "https://www.xy.com/kfsys?type=h5&uid=" + WebParams.account + "&gid=" + this.gid + "&sid=" + WebParams.sid +
				"&rolename=" + t.name + "&roleid=" + t.personId;
			App.panel.openPanel(119, e)
		}
	}, e
}(BasePlatfrom);
__reflect(Platfrom_XY.prototype, "Platfrom_XY");
var Platfrom_youyou = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t;
			return __generator(this, function(e) {
				return t = new Promise(function(t, e) {
					var i = r.safeCode;
					H5youyouSDK.Pay({
						safeCode: i
					}), t(!0)
				}), [2, t]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (App.global) {
			var n = App.global.characterData;
			if (n) {
				switch (t) {
					case 3:
					case 4:
						H5youyouSDK.RoleInfo({
							serverid: WebParams.sid,
							servername: WebParams.sid.toString(),
							roleid: n.personId,
							rolename: n.name,
							rolelevel: n.level,
							appkey: "10c02c8459b8a0b32d865375ff05ba06",
							account: WebParams.account
						})
				}
			}
		}
	}, e
}(BasePlatfrom);
__reflect(Platfrom_youyou.prototype, "Platfrom_youyou");
var Platfrom_ZQB = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initGame = function() {
		t.prototype.initGame.call(this), Config.isNeedExitGameBtn = !0, this.addWindowListener()
	}, e.prototype.enterGame = function() {
		var t = App.global.characterData,
			e = {};
		e.ServerId = WebParams.sid, e.ServerName = WebParams.sid, e.UserRoleId = t.personId, e.UserRoleName = t.name, e.UserRoleLevel =
			t.level, e.RoleCreateTime = String(Math.floor(t.regTime / 1e3));
		var i = JSON.stringify(e);
		console.log("角色信息---" + i), AndroidSDK.enterGame(i)
	}, e.prototype.upRoleLevel = function(t) {
		var e = App.global.characterData,
			i = {};
		i.ServerId = WebParams.sid, i.ServerName = WebParams.sid, i.UserRoleId = e.personId, i.UserRoleName = e.name, i.UserRoleLevel =
			e.level, i.RoleCreateTime = String(Math.floor(e.regTime / 1e3));
		var n = JSON.stringify(i);
		console.log("等级提升---" + n), AndroidSDK.upRoleLevel(n)
	}, e.prototype.createRole = function(t) {
		var e = {};
		e.ServerId = WebParams.sid, e.ServerName = WebParams.sid, e.UserRoleId = t[1], e.UserRoleName = t[0], e.UserRoleLevel =
			1, e.RoleCreateTime = String(Math.floor(t[2] / 1e3));
		var i = JSON.stringify(e);
		console.log("创建角色---" + i), AndroidSDK.createRole(i)
	}, e.prototype.createOrder = function(t, e) {
		return void 0 === e && (e = ""), __awaiter(this, void 0, void 0, function() {
			var i, n, a, o, r, s, h, l;
			return __generator(this, function(p) {
				switch (p.label) {
					case 0:
						return console.log("createOrder1"), i = JSON.parse(WebParams.ext).platformid, console.log("createOrder2:" +
							i), n = JSON.parse(WebParams.ext).session, a = WebParams.account, o = WebParams.appid, r = JSON.parse(
							WebParams.ext).accid, s = App.global.characterData, console.log("开始创建订单1："), h = {
							account: WebParams.account,
							roleId: s.personId,
							gameId: "tlsy",
							serverId: WebParams.zoneid,
							agent: WebParams.agent,
							goodsId: t,
							ad: Config.OS,
							payType: e,
							roleName: s.name,
							regTime: s.regTime,
							platform_id: i,
							session: n,
							appid: o,
							accountOut: a,
							accid: r
						}, console.log("开始创建订单2：" + h), l = WebParams.rechargeurl + "/pay/createOrder", console.log(
							"请求下单gameOrder：" + l), [4, this.createRequest("createOrder", l, h)];
					case 1:
						return [2, p.sent()]
				}
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			var t;
			return __generator(this, function(e) {
				return t = new Promise(function(t, e) {
					var n = App.global.characterData,
						s = {};
					s.GameOrderId = o, s.ProductDesc = i, s.ProductNum = 1, s.ProductRealPrice = r.money, s.ProductId = r.product_id,
						s.ProductName = r.subject, s.SubmitTime = r.time, s.UserBalance = 0, s.UserGamerVip = n.vipLevel, s.UserLevel =
						n.level, s.UserPartyName = App.data.guildNameCenter.getGuildName(n.guildId), s.UserRoleName = n.name, s.UserRoleId =
						n.personId, s.UserServerName = WebParams.sid, s.UserServerId = n.serverid, s.GameMoneyAmount = a, s.GameMoneyName =
						"元宝", s.LoginAccount = WebParams.account, s.AccessKey = r.sign, s.LoginDataEx = o, s.UserId = JSON.parse(
							WebParams.ext).accid, s.LoginSession = JSON.parse(WebParams.ext).session, s.OutOrderId = r.outOrdersId,
						s.NotifyUrl = r.notice_url;
					var h = JSON.stringify(s);
					AndroidSDK.pay(h)
				}), [2, t]
			})
		})
	}, e.prototype.platformLog = function(t) {
		for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
		if (console.log("platformLog:" + t), 2 == t) console.log("收到创建角色事件EnumPlatformLogType.PLATFORM_CREATE_ROLE"), this.createRole(
			e);
		else {
			if (!App.global) return void console.log("App.global不存在");
			var n = App.global.characterData;
			if (!n) return void console.log("charData不存在");
			switch (t) {
				case 3:
					console.log("收到进入游戏事件EnumPlatformLogType.PLATFORM_LOGIN_GAME"), this.enterGame();
					break;
				case 4:
					console.log("收到角色升级事件EnumPlatformLogType.PLATFORM_LEVEL_UP"), this.upRoleLevel(e);
					break;
				case 5:
					AndroidSDK.logout()
			}
		}
	}, e.prototype.addWindowListener = function() {
		var t = this;
		window.addEventListener("message", function(e) {
			var i = e.data;
			try {
				var n = JSON.parse(i)
			} catch (e) {
				var n = null
			}
			if (null != n && "object" == typeof n && n.hasOwnProperty("func")) {
				var a = n.func;
				switch (a) {
					case "Event_Android_Init":
						var o = n.params;
						t._platformId = JSON.parse(o).PlatformId, console.log("loc._platformId:" + t._platformId), console.log(o);
						break;
					case "Event_Android_Pay":
						var r = n.params;
						console.log(r);
						break;
					case "Event_Android_Login":
						var s = n.params;
						console.log(s), console.log("pid:" + AndroidSDK.getPlatformId()), console.log("Event_Android_Login");
						break;
					case "Event_Android_ChangeAccount":
						var s = n.params;
						console.log(s), console.log("pid:" + AndroidSDK.getPlatformId()), console.log("Event_Android_ChangeAccount");
						break;
					case "Event_Android_Logout":
						var h = n.params;
						8 == h && ReLoginModule.reConnectFun(), console.log(h), console.log("logout"), console.log(
							"Event_Android_Logout")
				}
			}
		}, !1)
	}, e
}(BasePlatfrom);
__reflect(Platfrom_ZQB.prototype, "Platfrom_ZQB");
var EnumWxPayCode = function() {
	function t() {}
	return t.getMessage = function(t) {
		this.messageDict || this.initMessageDict();
		var e = this.messageDict[t];
		return e
	}, t.initMessageDict = function() {
		var t = this;
		t.messageDict = {}, t.registerMessgae(-1, "系统失败"), t.registerMessgae(-2, "支付取消"), t.registerMessgae(-15001,
				"虚拟支付接口错误码，缺少参数"), t.registerMessgae(-15002, "虚拟支付接口错误码，参数不合法"), t.registerMessgae(-15003, "虚拟支付接口错误码，订单重复"), t.registerMessgae(
				-15004, "虚拟支付接口错误码，后台错误"), t.registerMessgae(-15005, "虚拟支付接口错误码，appId 权限被封禁"), t.registerMessgae(-15006,
				"虚拟支付接口错误码，货币类型不支持"), t.registerMessgae(-15007, "虚拟支付接口错误码，订单已支付"), t.registerMessgae(1, "虚拟支付接口错误码，用户取消支付"), t.registerMessgae(
				2, "虚拟支付接口错误码，客户端错误, 判断到小程序在用户处于支付中时,又发起了一笔支付请求"), t.registerMessgae(3,
				"虚拟支付接口错误码，Android 独有错误：用户使用 Google Play 支付，而手机未安装 Google Play"), t.registerMessgae(4, "虚拟支付接口错误码，用户操作系统支付状态异常"),
			t.registerMessgae(5, "虚拟支付接口错误码，操作系统错误"), t.registerMessgae(6, "虚拟支付接口错误码，其他错误"), t.registerMessgae(1e3, "参数错误"),
			t.registerMessgae(1003, "米大师 Portal 错误")
	}, t.registerMessgae = function(t, e) {
		this.messageDict[t] = e
	}, t
}();
__reflect(EnumWxPayCode.prototype, "EnumWxPayCode");
var Platform_wx = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.offerId = "1450017213", e.LOGIN_PATH = "https://boot.wujiehuyu.com/boot", e.FUNC_PATH =
			"https://login.wujiehuyu.com", Weixin.WXShare(), Weixin.GameCommunity(), e.OpenDataCommandLoad(), e
	}
	return __extends(e, t), e.prototype.OpenDataCommandLoad = function() {
		var t = window.platform;
		t.openDataContext.postMessage({
			command: "loadRes"
		})
	}, e.prototype.getUserInfo = function() {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				return [2, platform.getUserInfo()]
			})
		})
	}, e.prototype.login = function() {
		return __awaiter(this, void 0, void 0, function() {
			var t, e, i, n, a, o, r, s, h, l, p, c;
			return __generator(this, function(_) {
				switch (_.label) {
					case 0:
						return t = Weixin.getLaunchArg(), e = null, [4, platform.login()];
					case 1:
						return i = _.sent(), n = i.code, [4, this.getServerList()];
					case 2:
						return (a = _.sent()) ? (o = StringUtil.JsonParse(a), Config.serverList = o, r = o[0], [4, this.getAccessToken(
							n)]) : [3, 5];
					case 3:
						return s = _.sent(), h = StringUtil.JsonParse(s), 0 != h.code ? [3, 5] : (l = h.openid, e = {
							agent: this.agent,
							cdn: r.cdn,
							prover: r.prover,
							resver: r.resver,
							account: l
						}, [4, this.getRoleLoginServer(l)]);
					case 4:
						return p = _.sent(), c = StringUtil.JsonParse(p), Config.lastLoginServerList = c, [3, 5];
					case 5:
						return console.log("logininfo:", i), console.log("微信code:", n), [4, t.then(function(t) {
							e.ad = "weixin"
						})["catch"](function(t) {
							console.warn(t)
						})];
					case 6:
						return _.sent(), [2, this.getResultPromise(e)]
				}
			})
		})
	}, e.prototype.payBuy = function(t, e, i, n, a, o, r) {
		return __awaiter(this, void 0, void 0, function() {
			return __generator(this, function(t) {
				switch (t.label) {
					case 0:
						return [4, this.wxPay(this.offerId, WebParams.sid, a)];
					case 1:
						return [2, t.sent()]
				}
			})
		})
	}, e.prototype.getAccessToken = function(t) {
		return __awaiter(this, void 0, void 0, function() {
			var e, i;
			return __generator(this, function(n) {
				switch (n.label) {
					case 0:
						return e = this.FUNC_PATH + "/g/getAccessToken", i = {
							code: t
						}, [4, this.createRequest("getAccessToken", e, i, egret.HttpMethod.POST)];
					case 1:
						return [2, n.sent()]
				}
			})
		})
	}, e.prototype.wxPay = function(t, e, i) {
		var n = this,
			a = new Promise(function(a, o) {
				Weixin.pay(t, e, i, new FunctionVO(function(t) {
					a(!0)
				}, n), new FunctionVO(function(t) {
					a(!1)
				}, n), new FunctionVO(function(t) {}, n))
			});
		return a
	}, e
}(BasePlatfrom);
__reflect(Platform_wx.prototype, "Platform_wx");
var Weixin = function() {
	function t() {}
	return t.setUserCloudStorage = function(e) {
		t.wexin().setUserCloudStorage({
			KVDataList: [{
				key: "playerLv",
				value: e
			}],
			success: function() {
				console.log("%c微信数据托管成功", "color: #f00")
			},
			fail: function() {
				console.log("%c微信数据托管失败", "color: #f00")
			},
			complete: function() {
				console.log("%c微信数据托管完成", "color: #f00")
			}
		})
	}, t.getSetting = function() {
		t.wexin().getSetting({
			success: function(t) {
				var e = t.authSetting;
				e["scope.userInfo"] === !0 || e["scope.userInfo"] === !1
			},
			fail: null,
			complete: null
		})
	}, t.WXShare = function(t, e) {
		var i = wx;
		i.showShareMenu(), i.onShareAppMessage(function() {
			return {
				title: "屠龙圣域转发",
				imgUrl: "",
				query: "key1=weixin",
				success: function(e) {
					console.warn(e), t && t()
				},
				fail: function(t) {
					console.warn(t), e && e()
				}
			}
		})
	}, t.GetSharedCanvas = function(t) {
		if (t.getChildByName("obstacleMask")) {
			var e = window.platform;
			t.removeChild(t.getChildByName("obstacleMask")), t.removeChild(t.getChildByName("sharedCanvas")), e.openDataContext
				.postMessage({
					command: "close"
				})
		} else {
			var i = new egret.Shape;
			i.graphics.beginFill(0, 1), i.graphics.drawRect(0, 0, App.stage.width, App.stage.height), i.graphics.endFill(), i.alpha =
				.5, i.touchEnabled = !0, i.name = "obstacleMask", t.addChild(i), t.swapChildren(i, t.getChildByName("RankBtn"));
			var n = window.platform,
				a = n.openDataContext.createDisplayObject(null, App.stage.stageWidth, App.stage.stageHeight);
			a.name = "sharedCanvas", t.addChild(a), t.getChildByName("RankBtn")
		}
	}, t.GameCommunity = function() {
		var e = wx;
		t.GameClubBtn = e.createGameClubButton({
			icon: "green",
			style: {
				left: 10,
				top: 76,
				width: 40,
				height: 40
			}
		}), t.GameClubBtn.onTap(function(t) {
			console.log(t)
		})
	}, t.HideGameCommunity = function() {
		t.GameClubBtn.hide(), t.GameClubBtn = null
	}, t.getLaunchArg = function() {
		var t = new Promise(function(t, e) {
			var i = wx;
			i.onShow(function(i) {
				1008 === i.scene ? i.query.key1 ? t(i.query.key1) : e("No Share Arg") : e("Not Share")
			})
		});
		return t
	}, t.pay = function(e, i, n, a, o, r) {
		Config.isRelease ? 0 : 1;
		t.wexin().requestMidasPayment({
			mode: "game",
			env: 1,
			offerId: e,
			currencyType: "CNY",
			platform: "android",
			buyQuantity: n,
			zoneId: i,
			success: function(t) {
				console.log("支付成功", t), a.exec()
			},
			fail: function(t) {
				console.log("支付失败", t), o.exec()
			},
			complete: function(t) {
				console.log("支付完成", t), r.exec()
			}
		})
	}, t.wexin = function() {
		return window.wx
	}, t
}();
__reflect(Weixin.prototype, "Weixin");
var GameLoading = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._resVerUrl = "ver/res.gif", e._resVerLoaderErrorCount = 0, e
	}
	return __extends(e, t), e.prototype.beginStartupLoad = function() {
		this.loadingView = new GameLoadingUI, this.addChild(this.loadingView), this.addEventListener(egret.Event.ADDED_TO_STAGE,
			this.onAddToStage, this), App.dispatcher.addEventListener(PreLoadEvent.PRE_LOADING_INFO, this.onPreLoadingInfo,
			this), RES.addEventListener(RES.ResourceEvent.CONFIG_COMPLETE, this.onConfigComplete, this), RES.addEventListener(
			RES.ResourceEvent.CONFIG_LOAD_ERROR, this.onLoadError, this), Config.isWxGame || Config.isBaiduGame ? RES.loadConfig(
			"default.res.json", "") : RES.loadConfig(Config.ASSETS_PATH + "default.res.json", Config.ASSETS_PATH), GameLog.log(
			"启动界面default.res.json加载")
	}, e.prototype.onAddToStage = function(t) {
		this.resize(), this.stage.addEventListener(egret.Event.RESIZE, this.resize, this)
	}, e.prototype.resize = function() {
		this.parent && this.parent.stage && (this.x = this.parent.stage.stageWidth - 640 >> 1), Config.SCREEN_WIDTH = this.stage
			.stageWidth, Config.SCREEN_HEIGHT = this.stage.stageHeight
	}, e.prototype.onConfigComplete = function(t) {
		if (0 == Config.isRelease) {
			var e = new HttpLoader;
			e.httpCompleteFun = new FunctionVO(function(t) {
				var i = e.data;
				Config.DEFAULT_RES = StringUtil.JsonParse(i)
			}, this), e.send(GameVersionController.getVirtualPath(Config.ASSETS_PATH + "default.res.json"))
		}
		this.loadingView.createView(), this.loadingView.setProgress("加载资源配置文件...", 1), Config.isRelease ? this.loadResVersionFile() :
			this.loadCommonResource()
	}, e.prototype.loadResVersionFile = function(t) {
		void 0 === t && (t = !1), this.loadingView.setProgress("加载资源版本文件...", 0);
		var e = this._resVerUrl.replace(".gif", "_" + WebParams.resVer + ".gif");
		t && (e = e + "?" + (new Date).getTime()), e = WebParams.cdn + e, RES.getResByUrl(e, this.onResVerComplete, this,
			RES.ResourceItem.TYPE_BIN)
	}, e.prototype.onResVerComplete = function(t, e) {
		t ? (this.loadingView.setProgress("加载资源版本文件...", 1), Config.resourceVersion.start(t, new FunctionVO(this.loadCommonResource,
			this))) : (this._resVerLoaderErrorCount++, this._resVerLoaderErrorCount > 3 ? GameLog.logError("Res版本文件加载出错！") :
			this.loadResVersionFile(!0))
	}, e.prototype.loadCommonResource = function() {
		RES.removeEventListener(RES.ResourceEvent.CONFIG_COMPLETE, this.onConfigComplete, this), RES.removeEventListener(
				RES.ResourceEvent.CONFIG_LOAD_ERROR, this.onLoadError, this), RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE,
				this.onResourceLoadComplete, this), RES.addEventListener(RES.ResourceEvent.GROUP_LOAD_ERROR, this.onResourceLoadError,
				this), RES.addEventListener(RES.ResourceEvent.GROUP_PROGRESS, this.onResourceProgress, this), RES.addEventListener(
				RES.ResourceEvent.ITEM_LOAD_ERROR, this.onItemLoadError, this), this.loadingView.setProgress("加载资源文件...", 0), RES
			.loadGroup("prelogo")
	}, e.prototype.onResourceLoadComplete = function(t) {
		var i = this;
		if ("prelogo" == t.groupName) {
			var n = GameVersionController.getVirtualPath("pro/gameEui.json");
			0 == Config.isWxGame && 0 == Config.isBaiduGame && 0 == Config.isRelease && "" == WebParams.cdn && (n = Config.ASSETS_PATH +
				"gameEui.json", GameLog.log("gameEui.json的位置", n));
			var a = new HttpLoader;
			a.httpCompleteFun = new FunctionVO(function(t) {
				var e = a.data,
					n = StringUtil.JsonParse(e);
				i.onThemeLoadComplete(n), GameLog.log("读取到commonjs2资源")
			}, this), a.send(n), GameLog.log("开始COMMONJS2的必须资源的加载: " + n)
		} else "preload" == t.groupName && (RES.removeEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onResourceLoadComplete,
			this), RES.removeEventListener(RES.ResourceEvent.GROUP_LOAD_ERROR, this.onResourceLoadError, this), RES.removeEventListener(
			RES.ResourceEvent.GROUP_PROGRESS, this.onResourceProgress, this), RES.removeEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,
			this.onItemLoadError, this), this.dispatchEvent(new GameEvent(e.LOAD_COMPLETE)))
	}, e.prototype.onThemeLoadComplete = function(t) {
		window.JSONParseClass.setData(t), this.loadingView.imgBar.width = GameLoadingUI.BAR_WIDTH, this.loadingView.setProgress(
			"加载主题文件完毕...", 1), RES.loadGroup("preload")
	}, e.prototype.onLoadError = function(t) {
		GameLog.logWarn("Url:" + t.resItem.url + " has failed to load")
	}, e.prototype.onItemLoadError = function(t) {
		GameLog.logWarn("Url:" + t.resItem.url + " has failed to load")
	}, e.prototype.onResourceLoadError = function(t) {
		GameLog.logWarn("Group:" + t.groupName + " has failed to load")
	}, e.prototype.onResourceProgress = function(t) {
		this.loadingView && this.loadingView.setProgress("加载资源文件...", t.itemsLoaded / t.itemsTotal)
	}, e.prototype.onPreLoadingInfo = function(t, e) {
		this.contains(this.loadingView) || this.addChild(this.loadingView), this.loadingView.setProgress(t, isNaN(e) ? 0 :
			e)
	}, e.prototype.dispose = function() {
		this.loadingView && (this.loadingView.dispose(), this.loadingView.parent && this.loadingView.parent.removeChild(
				this.loadingView), this.loadingView = void 0), this.parent && this.parent.removeChild(this), Config.SCREEN_WIDTH &&
			(App.stage.removeEventListener(egret.Event.ADDED_TO_STAGE, this.onAddToStage, this), App.stage.removeEventListener(
				egret.Event.RESIZE, this.resize, this))
	}, e.LOAD_COMPLETE = "LOAD_COMPLETE", e
}(h5_engine.GDisplayObjectContainer);
__reflect(GameLoading.prototype, "GameLoading");
var GameLoadingUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._str = "", e._num = 0, e.rate = 1, e.offsetY = 0, e.banquan = 110, e
	}
	return __extends(e, t), e.prototype.createView = function() {
		this._stage = egret.MainContext.instance.stage, this.rate = Number(this._stage.stageHeight / 1062), this.offsetY =
			Config.isAllShow() || Config.isNeiZhiWeb ? MainParams.UP : 0, this.imgLog = new eui.Image, this.imgLog.source =
			"beijing_jpg", Config.isMobile ? (this.imgLog.x = (640 - this._stage.stageWidth) / 2, this.imgLog.width = this._stage
				.stageWidth, this.imgLog.height = 1062 * (this._stage.stageWidth / 640)) : (this.imgLog.x = 0, this.imgLog.width =
				640), this.imgLog.y = 0, this.imgLog.verticalCenter = -177, this.addChild(this.imgLog), this.imgTitle1 = new eui.Image,
			this.imgTitle1.source = "load_title_bg_2_png", this.imgTitle1.x = 128.5, this.imgTitle1.y = Config.isAllShow() ?
			MainParams.Down + 50 : 50, this.addChild(this.imgTitle1), this.imgBar = new eui.Group, this.imgBar.x = 60, this.imgBar
			.y = (988 - this.banquan) * this.rate - this.offsetY, this.imgBar.width = e.BAR_WIDTH, this.imgBar.height = e.BAR_HEIGHT,
			this.addChild(this.imgBar), this.textField = new h5_engine.GTextField, this.textField.y = (1032 - this.banquan) *
			this.rate - this.offsetY, this.textField.x = 60, this.textField.width = e.BAR_WIDTH, this.textField.height = 100,
			this.textField.size = 18, this.textField.textColor = 16771787, this.textField.textAlign = "center", this.addChild(
				this.textField), this.gonggao0 = new h5_engine.GTextField, this.gonggao0.y = 10, this.gonggao0.x = 10, this.gonggao0
			.width = e.BAR_WIDTH, this.gonggao0.height = 100, this.gonggao0.size = 16, this.gonggao0.textColor = 16771787,
			this.gonggao0.textAlign = "left", this.addChild(this.gonggao0), this.gonggao1 = new h5_engine.GTextField, this.gonggao1
			.y = 28, this.gonggao1.x = 10, this.gonggao1.width = e.BAR_WIDTH, this.gonggao1.height = 100, this.gonggao1.size =
			16, this.gonggao1.textColor = 16771787, this.gonggao1.textAlign = "left", this.addChild(this.gonggao1), this.gonggao2 =
			new h5_engine.GTextField, this.gonggao2.y = 46, this.gonggao2.x = 10, this.gonggao2.width = e.BAR_WIDTH, this.gonggao2
			.height = 100, this.gonggao2.size = 16, this.gonggao2.textColor = 16771787, this.gonggao2.textAlign = "left", this
			.addChild(this.gonggao2), this.gonggao3 = new h5_engine.GTextField, this.gonggao3.y = 64, this.gonggao3.x = 10,
			this.gonggao3.width = e.BAR_WIDTH, this.gonggao3.height = 100, this.gonggao3.size = 16, this.gonggao3.textColor =
			16771787, this.gonggao3.textAlign = "left", this.addChild(this.gonggao3), this.friendNum = new h5_engine.GTextField,
			this.friendNum.y = (922 - this.banquan) * this.rate - this.offsetY, this.friendNum.x = 235, this.friendNum.width =
			171, this.friendNum.height = 18, this.friendNum.size = 16, this.friendNum.textColor = 16180790, this.friendNum.textAlign =
			"center", this.friendNum.text = "已有6位好友进入游戏", this.addChild(this.friendNum), this.barMask = new eui.Image, this.barMask
			.source = "loadmask_png", this.barMask.width = e.BAR_WIDTH, this.barMask.height = e.BAR_HEIGHT, this.barMask.x = 0,
			this.barMask.y = 0, this.imgBar.addChild(this.barMask), this.imgBar.mask = this.barMask, this.gonggao0.text =
			"著作权人：深圳无界互娱有限公司", this.gonggao1.text = "批准文号：新广出审[2017]7201号", this.gonggao2.text = "出版物号：ISBN 978-7-498-00236-5",
			this.gonggao3.text = "出版单位：上海雪鲤鱼计算机科技有限公司", this.gonggao0.visible = !1, this.gonggao1.visible = !1, this.gonggao2.visible = !
			1, this.gonggao3.visible = !1, this.refreLab = new h5_engine.GTextField, this.refreLab.y = (960 - this.banquan) *
			this.rate - this.offsetY, this.refreLab.x = 180, this.refreLab.width = 270, this.refreLab.height = 18, this.refreLab
			.size = 18, this.refreLab.textColor = 12420166, this.refreLab.textAlign = "center", this.refreLab.touchEnabled = !
			0, "" == ReLoginModule.gameURL || ReLoginModule.gameURL.split(".//")[1] ? (this.refreLab.textFlow = HtmlUtil.getHtmlStr(
				"进度条长时间未动，点击" + HtmlUtil.formatUnderline("<font color='0x2bb12a'>刷新游戏</font>")), this.refreLab.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.onTouch, this)) : this.refreLab.textFlow = HtmlUtil.getHtmlStr(
				"首次加载时间较长请耐心等待..."), this.addChild(this.refreLab), this.imgTitle2 = new eui.Image, this.imgTitle2.source =
			"load_title_bg_1_png", this.imgTitle2.x = 26, this.imgTitle2.y = this._stage.stageHeight - this.banquan + this.offsetY,
			this.addChild(this.imgTitle2)
	}, e.prototype.onTouch = function(t) {
		ReLoginModule.refreshPage()
	}, e.prototype.setProgress = function(t, i) {
		if (this._str == t ? i < this._num && (i = this._num) : this._num = i, this._str = t, this.textField.text = t +
			"  " + Math.round(100 * i) + "%", !this._loginbareff) {
			var n = new CEffect;
			this._loginbareff = EffectUtils.showCEffect(this, this.imgBar, ResPathUtil.getProEffectPath("loginbar"), 274, 30,
				n)
		}
		if (!this._loginbtneff) {
			var n = new CEffect;
			this._loginbtneff = EffectUtils.showCEffect(this, this, ResPathUtil.getProEffectPath("bareffect"), this.imgBar.x +
				50, this.imgBar.y + 29, n)
		}
		if (!this._loginlighteff) {
			var n = new CEffect;
			this._loginlighteff = EffectUtils.showCEffect(this, this, ResPathUtil.getProEffectPath("loginlight"), this.imgBar.x +
				50, this.imgBar.y + 29, n)
		}
		this.barMask.x = (e.BAR_WIDTH - 100) * i - (e.BAR_WIDTH - 50), this.imgBar.mask = this.barMask, this._loginlighteff
			.x = this._loginbtneff.x = this.imgBar.x + 50 + (e.BAR_WIDTH - 100) * i, App.timer.doTimeOnce(this, 100, this.onTimerClick,
				[t, i + .01])
	}, e.prototype.onTimerClick = function(t, e) {
		e > .99 ? e = .99 : this.setProgress(t, e), this._num = e
	}, e.prototype.dispose = function() {
		this.refreLab.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), RES.destroyRes("logo2_json"),
			App.timer.clearTimer(this.onTimerClick, this), this._loginbtneff && (this._loginbtneff.stop(), this._loginbtneff.dispose(),
				this._loginbtneff = null), this._loginbareff && (this._loginbareff.stop(), this._loginbareff.dispose(), this._loginbareff =
				null), this._loginlighteff && (this._loginlighteff.stop(), this._loginlighteff.dispose(), this._loginlighteff =
				null), this.textField = null, this.imgLog = null, this.imgBottom = null, this.imgBar = null, this.barMask = null,
			this._stage = null
	}, e.BAR_WIDTH = 548, e.BAR_HEIGHT = 64, e
}(h5_engine.GSprite);
__reflect(GameLoadingUI.prototype, "GameLoadingUI");
var PreLoadEvent = function() {
	function t() {}
	return t.PRE_LOADING_INFO = "pre_loading_info", t.PRE_LOADING_COMPLETE = "pre_loading_complete", t.INIT_GAME =
		"init_game", t
}();
__reflect(PreLoadEvent.prototype, "PreLoadEvent");
var ReLoginModule = function() {
	function t() {
		this._reLoginMaxTime = !1, this._showReLoginMax = !1, this.init()
	}
	return t.prototype.init = function() {
		this._reLoginService = new ReLoginService(this), App.dispatcher.addEventListener(EventType.EventTypeExecReconnect,
			this.doReConnect, this)
	}, t.prototype.doReConnect = function(e) {
		Config.socket.getIsReconnecting() || (this._doReConnectVo || (this._doReConnectVo = new FunctionVO(this.onReconnectSuccess,
			this)), Config.socket.doReConnect(this._doReConnectVo)), 0 == this._reLoginMaxTime && (this._reLoginMaxTime = !0,
			App.timer.doTimeOnce(this, 18e4, this.tipResefsh)), this._reLoginMaxTime && this._showReLoginMax && (App.dispatcher
			.dispatchEvent(EventType.EventTypeIsRelogin, !1), null == this._reLoginAlert && (this._reLoginAlert = Alert.show(
				"自动连接失败，请重新登陆！", "网络连接失败", "刷新",
				function() {
					t.refreshPage()
				}, this, null, !1, !0, !1)))
	}, t.reConnectFun = function() {
		App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !0, "正在连接中，请稍等..."), App.dispatcher.dispatchEvent(
			EventType.EventTypeExecReconnect, "")
	}, t.refreshPage = function() {
		console.log("刷新地址：" + t.gameURL.split(".//")[1]), "" == t.gameURL ? window.location.reload(!0) : t.gameURL.split(
			".//")[1] ? window.open(t.gameURL, "_top") : t.reConnectFun()
	}, t.prototype.reLoginAletrIsShow = function() {
		return null != this._reLoginAlert
	}, t.prototype.clearAlert = function() {
		this._reLoginAlert && (this._reLoginAlert.dispose(), this._reLoginAlert = null)
	}, t.prototype.tipResefsh = function() {
		this._showReLoginMax = !0
	}, t.prototype.onReconnectSuccess = function() {
		GameLog.logWarn("重新连接服务器成功"), this._reLoginService.start(), WebParams.isFlag ? this._reLoginService.sendLoginForPlatformMessage() :
			this._reLoginService.sendLoginMessage(WebParams.account, WebParams.passward, parseInt(WebParams.zoneid)), this.reConnectSuccess()
	}, t.prototype.show = function(t) {
		this._panel && this._panel.show(t)
	}, t.prototype.reConnectSuccess = function() {
		this._reLoginMaxTime = !1, this._showReLoginMax = !1, App.timer.clearTimer(this.tipResefsh, this)
	}, t.prototype.clear = function() {
		this._panel && (this._reLoginService.clear(), this._panel.hide())
	}, Object.defineProperty(t.prototype, "rePanel", {
		get: function() {
			return this._panel || (this._panel = new ReLoginPanel), this._panel
		},
		enumerable: !0,
		configurable: !0
	}), t.gameURL = "", t
}();
__reflect(ReLoginModule.prototype, "ReLoginModule");
var ReLoginPanel = function() {
	function t() {}
	return t.prototype.show = function(t) {
		this.makeTipField(), this._txtField.text = t, this._txtField.width = this._txtField.textWidth + 10, this._txtField.parent ||
			App.layer.popLayer.addChild(this._txtField), this._txtField.x = Config.SCREEN_WIDTH - this._txtField.width >> 1,
			this._txtField.y = Config.SCREEN_HEIGHT - this._txtField.height >> 1
	}, t.prototype.hide = function() {
		this._txtField.parent && this._txtField.parent.removeChild(this._txtField), this._txtField.text = "", this._txtField =
			null
	}, t.prototype.makeTipField = function() {
		this._txtField || (this._txtField = new h5_engine.GTextField, this._txtField.size = 30, this._txtField.textColor =
			16715541, this._txtField.stroke = 2, this._txtField.strokeColor = 0)
	}, t
}();
__reflect(ReLoginPanel.prototype, "ReLoginPanel");
var ReLoginService = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i._beginInteractiveTime = 0, i.init(), i._module = e, i
	}
	return __extends(e, t), e.prototype.init = function() {
			this._errorFunctioVo = new FunctionVO(this.onErrorHandler, this), this._createCharacterFunVo = new FunctionVO(this.onS2CreateCharacterMessageHandler,
					this), this._accountLoginSuccessFunVo = new FunctionVO(this.onS2C_AccountLoginSuccessMessageHandler, this), this._playerEnterGameSuccessFunVo =
				new FunctionVO(this.onS2C_PlayerEnterGameSuccessMessage, this), this._characterListFunVo = new FunctionVO(this.onS2C_CharacterListMessageHandler,
					this)
		}, e.prototype.start = function() {
			Config.socket.registerCommand(5289, this._errorFunctioVo), Config.socket.registerCommand(5180, this._createCharacterFunVo),
				Config.socket.registerCommand(5358, this._accountLoginSuccessFunVo), Config.socket.registerCommand(5351, this._playerEnterGameSuccessFunVo),
				Config.socket.registerCommand(5206, this._characterListFunVo)
		}, e.prototype.clear = function() {
			Config.socket.removeCommand(5289, this._errorFunctioVo), Config.socket.removeCommand(5180, this._createCharacterFunVo),
				Config.socket.removeCommand(5358, this._accountLoginSuccessFunVo), Config.socket.removeCommand(5351, this._playerEnterGameSuccessFunVo),
				Config.socket.removeCommand(5206, this._characterListFunVo)
		}, e.prototype.onS2C_AccountLoginSuccessMessageHandler = function(t) {
			LoginModule.loginKey = t.loginKey, ServerTime.setServerInfo(t.serverStartTime, t.serverOpenZoneTime, t.serverCurTime,
				t.serverVer, t.msgVer)
		}, e.prototype.onS2CreateCharacterMessageHandler = function(t) {}, e.prototype.onS2C_CharacterListMessageHandler =
		function(t) {
			var e = t.loginRoleInfos.concat();
			if (ArrayUtil.sortOnArr(e, ["loginTime"], [ArrayUtil.DESCENDING]), !(e && e.length > 0)) throw new Error(
				"出现重登陆意外的错误：S2C_CharacterListMessage");
			this.sendSelectRoleMessage(t.loginRoleInfos[0].playerId)
		}, e.prototype.onS2C_PlayerEnterGameSuccessMessage = function(t) {
			Config.mapId = t.mapId, this._myPlayerInfoInitFunVo || (this._myPlayerInfoInitFunVo = new FunctionVO(this.onMyRoleInit,
				this)), Config.socket.registerCommand(5133, this._myPlayerInfoInitFunVo), App.global.mapModule.notification.onEnterInMap(
				Config.mapId), App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !1), this._module && this._module.clearAlert()
		}, e.prototype.onMyRoleInit = function() {
			var t = this;
			Config.socket.removeCommand(5133, this._myPlayerInfoInitFunVo), this._module && (this._module.show("服务器连接成功！"), App
				.timer.doTimeOnce(this, 1e3, function() {
					t._module.clear()
				}))
		}, e.prototype.onErrorHandler = function(t) {
			var e;
			switch (t.errorcode) {
				case -10007:
					break;
				case -10201:
					e = "角色创建数据库错误";
					break;
				case -10003:
					e = "登录玩家数量达到上限";
					break;
				case -10002:
					e = "账号禁止登录";
					break;
				case -1e4:
					e = "服务器未开启";
					break;
				case -9999:
					App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !1)
			}
			e && Alert.show(e, "网络连接失败", "重新连接", function() {
				ReLoginModule.reConnectFun()
			}, this)
		}, e.prototype.sendLoginMessage = function(t, e, i) {
			void 0 === i && (i = 1);
			var n = this.createCmd(16091);
			n.name = t, n.password = e, n.webid = 1, n.serverId = i, LoginModule.loginKey, Config.socket.sendCommand(n), this.beginInteractiveTime =
				egret.getTimer()
		}, e.prototype.sendLoginForPlatformMessage = function() {
			var t = this.createCmd(16220);
			t.webid = parseInt(WebParams.webid), t.serverId = WebParams.zoneid, t.username = WebParams.account, t.agent =
				WebParams.agent, t.time = WebParams.time.toString(), t.sign = WebParams.passward, t.ad = WebParams.ad, t.isadult =
				WebParams.isadultStr, t.logintype = WebParams.showlogin, t.agentPlusdata = WebParams.agent_plusdata, t.agentColdatas =
				WebParams.agent_coldatas, t.adregtime = WebParams.adregtime, t.hfagent = WebParams.hfagent, t.agentAppendData =
				WebParams.agentAppendData, t.agentAppendSign = WebParams.agentAppendSign, LoginModule.loginKey, Config.socket.sendCommand(
					t), GameLog.logWarn("重新连接服务器成功, 发送平台登录消息"), this.beginInteractiveTime = egret.getTimer()
		}, e.prototype.sendSelectRoleMessage = function(t) {
			var e = this.createCmd(16138);
			e.playerId = t, Config.socket.sendCommand(e)
		}, e.prototype.sendLoadMapFinishMessage = function(t, e) {
			void 0 === t && (t = 0), void 0 === e && (e = 0);
			var i = this.createCmd(16142);
			i.width = Config.SCREEN_WIDTH, i.height = Config.SCREEN_HEIGHT, Config.socket.sendCommand(i)
		}, Object.defineProperty(e.prototype, "beginInteractiveTime", {
			set: function(t) {
				this._beginInteractiveTime = t
			},
			enumerable: !0,
			configurable: !0
		}), e
}(BaseConnectionSender);
__reflect(ReLoginService.prototype, "ReLoginService");
var UtilsCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5054, this.onS2C_FunctionOpenStateMessage), this.register(5060, this.onS2C_NotifyMessage), this.register(
				5252, this.onS2C_SubstituteMessageHandler), this.register(5151, this.onS2C_ServerMidNightEvent_BroadCastMessage),
			this.register(5289, this.onErrorHandler), this.register(5475, this.onOfflineExp)
	}, e.prototype.onOfflineExp = function(t) {
		t.offlineItemInfo && App.panel.openPanel(57, {
			info: t.offlineItemInfo
		})
	}, e.prototype.onS2C_FunctionOpenStateMessage = function(t) {
		App.global.funcOpen.state = t.state
	}, e.prototype.showShopSucc = function(t) {
		var e = App.config.q_recharge_shopContainer.getDataBean(t);
		e && Notice.showBottomMessage(e.q_shop_name + "成功")
	}, e.prototype.showReward = function(t) {
		var e = App.config.q_activitiesContainer.getDataBean(t);
		if (e) {
			var i = ItemUtil.getRewardDataList(e.q_show_rewards);
			2 == e.q_type && "" != e.q_desc && App.global.characterData.vipLevel >= Number(e.q_desc) ? App.panel.openPanel(115,
				i.concat(i)) : App.panel.openPanel(115, i)
		}
	}, e.prototype.onS2C_NotifyMessage = function(t) {
		switch (t.notifycode) {
			case 10001:
				var e = parseInt(t.notifyMsg);
				App.global.characterData.gmLevel = e;
				break;
			case 10002:
				App.dispatcher.dispatchEvent(ActivityEvent.SUCCESS_JOIN, parseInt(t.notifyMsg)), this.showReward(Number(t.notifyMsg));
				break;
			case 10018:
				this.showShopSucc(Number(t.notifyMsg));
				break;
			case 10005:
				App.dispatcher.dispatchEvent(ActivityEvent.SIGN_IN), this.showReward(Number(t.notifyMsg));
				break;
			case 10006:
				var i = t.notifyMsg.split(",");
				App.data.exploitCenter.updateActivePoint(Number(i[0]), Number(i[1]));
				break;
			case 10014:
				var n = App.config.q_vipContainer.getDataBean(Number(t.notifyMsg));
				if (n) {
					var a = ItemUtil.getRewardDataList(n.q_libao_vip);
					App.panel.openPanel(115, a)
				}
				break;
			case 10015:
				var n = App.config.q_vipContainer.getDataBean(Number(t.notifyMsg));
				if (n) {
					var a = ItemUtil.getRewardDataList(n.q_libao_buy);
					App.panel.openPanel(115, a)
				}
				break;
			case 10010:
				App.global.characterData.isForbidSpeak = !0;
				break;
			case 10011:
				App.global.characterData.isForbidSpeak = !1;
				break;
			case 10016:
				var a = ItemUtil.getRewardDataList(t.notifyMsg);
				App.panel.openPanel(400, a);
				break;
			case 10017:
				App.panel.openPanel(203);
				break;
			default:
				if (App.config.q_notify_constContainer.hasDataBean(t.notifycode)) {
					var o = GameUtil.getNotifyConstData(t.notifycode);
					if (o) {
						var r = o.q_type,
							s = o.q_Desc;
						Notice.showNoticeTypeMsg(r, s)
					}
					break
				}
		}
	}, e.prototype.onS2C_SubstituteMessageHandler = function(t) {
		Config.isSubstitute = !0, App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !1), Alert.show(
			"本账号已经在另一处登陆\nIP：" + t.ip, "警告", "确定", this.okCB, this), Config.socket.close("本账号已经在另一处登陆")
	}, e.prototype.okCB = function() {
		ReLoginModule.reConnectFun()
	}, e.prototype.onS2C_ServerMidNightEvent_BroadCastMessage = function(t) {}, e.prototype.onErrorHandler = function(t) {
		try {
			var e = "",
				i = t.errorcode,
				n = new RegExp(/\{[0-9]\}/i),
				a = t.errorParam;
			if (0 == i) e = StringUtil.substitute(e, a);
			else if (Config.configDataInit) {
				var o = GameUtil.getErrorConstData(i);
				o && (e = o.q_Desc, n.test(e) && (e = StringUtil.substitute(e, a)))
			}
			var r = null == o ? Notice.BOTTOM : o.q_type;
			switch (i) {
				case 10603:
					App.global.characterData.clearTransferInfo();
					break;
				case -10305:
					Notice.showBottomMessage(e);
					break;
				case -10308:
					"" == e ? (e = "进入副本次数已达上限，不能进入", Notice.showNoticeTypeMsg(Notice.MOUSE, e)) : Notice.showNoticeTypeMsg(r, e);
					break;
				case 10701:
					App.dispatcher.dispatchEvent(WingEvent.CHANGESERFACE_ERROR);
					break;
				case -10901:
					GameLog.logDebug("S2C_ErrorMessage: errorId=" + t.errorcode, "errorMsg=" + e);
					break;
				case -15016:
					App.global && (App.global.enterMapIng = !0, App.data.zoneCenter.guanQiaCenter.into = !0);
					break;
				case -10346:
					App.global && (App.global.enterMapIng = !0);
					break;
				case -10007:
					break;
				case -9999:
					App.dispatcher.dispatchEvent(EventType.EventTypeIsRelogin, !1);
					break;
				default:
					GameLog.logDebug("S2C_ErrorMessage: errorId=" + t.errorcode, "errorMsg=" + e)
			}
			GameLog.log("S2C_ErrorMessage: errorId=" + t.errorcode, "errorMsg=" + e)
		} catch (s) {
			GameLog.logError(s, "S2C_ErrorMessage-空对象")
		}
	}, e
}(BaseConnectionRegister);
__reflect(UtilsCommandRegister.prototype, "UtilsCommandRegister");
var DebugPanelUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "DebugPanelSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(DebugPanelUI.prototype, "DebugPanelUI");
var ActBossItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ActBossItemRenderSkin", e.createChildren(), e
	}
	return __extends(e, t), e.prototype.createChildren = function() {
		this.imgKill.visible = !1
	}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this.icon = App.thing.create(CImage, egret.getQualifiedClassName(this), !0),
			this.icon.x = 46, this.icon.y = 27, this.icon.scaleX = 1, this.icon.scaleY = 1, this.addChildAt(this.icon, this.numChildren -
				2)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if (void 0 == t.extendMap || "" == t.extendMap) return void GameLog.log("扩展字段'' ");
		var e, i = StringUtil.JsonParse(t.extendMap),
			n = Number(i.zone1),
			a = App.data.zoneCenter.getData(n);
		e = App.config.q_monsterContainer.getDataBean(Number(a.bean.q_image)), this.imgKill.visible = 0 == t.playerStates,
			UIMaker.showPoint(this, this, 1 == t.playerStates, -16, 8);
		var o = a.bean.q_min_metem_lv > 0 ? a.bean.q_min_metem_lv + "转" : a.bean.q_min_lv + "级";
		this.tfBossName.text = StringUtil.substitute("{0}\n({1})", e.q_name, o), this.icon.url = ResPathUtil.getHead(e.q_faceid +
			"", EnumImageType.BOSS_HEAD)
	}, e.prototype.clear = function() {
		this.icon && (UIMaker.showPoint(this, this, !1, -16, 8), this.icon.dispose(), this.icon = null), t.prototype.clear.call(
			this)
	}, e
}(ItemRenderer);
__reflect(ActBossItemRender.prototype, "ActBossItemRender");
var ActConChargeItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.itemC = 15322651, e.skinName = "ActChargeItemRender", e.createChildren(), e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._list = new eui.List, this._layout = new eui.HorizontalLayout, this._dataProvider =
			new eui.ArrayCollection, this._list.layout = this._layout, this._list.dataProvider = this._dataProvider, this._list
			.itemRenderer = ActRewardItemRender, this._list.x = 24, this._list.y = 44, this.addChild(this._list), this._dispatcher
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this), this._dispatcher.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.onBtnGet, this, this.btnGet)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.clearEffect = function() {
		this._titleEffect && (this._titleEffect.stop(), this._titleEffect.dispose(), this._titleEffect = null)
	}, e.prototype.clear = function() {
		this.clearEffect(), this._list && (this._list.parent && this._list.parent.removeChild(this._list), this._list =
			null), this._layout = null, this._dataProvider && (this._dataProvider.removeAll(), this._dataProvider = null)
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		if ("" != t.bean.q_show_rewards) {
			this.tfRule.textFlow = HtmlUtil.getHtmlStr(t.bean.q_info);
			var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
			this._dataProvider.replaceAll(e), this.updateBtn(t), this.updateItem(t)
		}
	}, e.prototype.updateBtn = function(t) {
		var e = 1 == t.playerStates;
		if (e) {
			this.btnGet.label = "领 取", this.btnGet.enabled = this.btnGet.visible = !0, this.btnGet.filters = null, this.tfGot.visible = !
				1, this._titleEffect ? this._titleEffect.url = ResPathUtil.getMenuEffect("panel", "btneffect") : this._titleEffect =
				EffectUtils.showCEffect(this, this.btnGet, ResPathUtil.getMenuEffect("panel", "btneffect"), 61, 24, this._titleEffect);
			var i = !0;
			(14 == t.bean.q_type || 729 == t.bean.q_type) && (i = !1), this._titleEffect.visible = i
		} else this.clearEffect(), 0 == t.playerStates ? (this.btnGet.visible = !1, this.btnGet.filters = null, this.tfGot.visible = !
			0) : (this.btnGet.visible = !0, this.btnGet.label = "未达成", this.btnGet.filters = FilterUtil.FILTER_GRAY, this.btnGet
			.enabled = this.tfGot.visible = !1)
	}, e.prototype.updateItem = function(t) {
		var e;
		switch (t.type) {
			case 13:
				this.btnGet.filters = null, this.btnGet.enabled = !0, this.priceBar.visible = !1, 1 == t.playerStates ? this.btnGet
					.label = "领取" : this.btnGet.label = "去充值";
				break;
			case 14:
				this.priceBar.visible = !0, e = StringUtil.JsonParse(t.bean.q_need_item);
				var i = e[0].num;
				this.priceBar.setMoney(Number(i), this.itemC), this.btnGet.label = "购 买", 2 == t.playerStates && (this.btnGet.filters =
					null, this.btnGet.enabled = !0);
				break;
			case 725:
				this.priceBar.visible = !1;
				var n = 15938355;
				if (void 0 == t.extendMap || "" == t.extendMap) break;
				1 == t.playerStates && (n = 2863402), e = StringUtil.JsonParse(t.extendMap), this.tfRule.textFlow = HtmlUtil.getHtmlStr(
					StringUtil.substitute(t.bean.q_info, e.num, n));
				break;
			case 737:
				this.priceBar.visible = !1;
				var a = 15938355;
				if (void 0 == t.extendMap || "" == t.extendMap) break;
				1 == t.playerStates && (a = 2863402), e = StringUtil.JsonParse(t.extendMap), this.tfRule.textFlow = HtmlUtil.getHtmlStr(
					StringUtil.substitute(t.bean.q_info, e.num, a));
				break;
			case 729:
				this.priceBar.visible = !1, this.btnGet.label = "充 值", 2 == t.playerStates && (this.btnGet.filters = null, this.btnGet
					.enabled = !0);
				break;
			case 201:
				if (void 0 == t.extendMap || "" == t.extendMap) {
					GameLog.log("扩展字段为空");
					break
				}
				e = StringUtil.JsonParse(t.extendMap);
				var o = StringUtil.substitute(t.bean.q_info, e.regday);
				this.tfRule.textFlow = HtmlUtil.getHtmlStr(o), this.priceBar.visible = !1;
				break;
			default:
				this.priceBar.visible = !1
		}
	}, e.prototype.onTouch = function(t) {
		GameLog.log("点击选择")
	}, e.prototype.succClick = function(t) {
		App.panel.removePanel(82)
	}, e.prototype.failClick = function(t) {}, e.prototype.canelClick = function(t) {}, e.prototype.onBtnGet = function() {
		var t = this.data;
		if (t)
			if (729 == t.type) {
				var e = App.config.q_recharge_shopContainer.getDataBean(t.bean.q_desc);
				App.platform.pay(t.bean.q_desc, "" + e.q_shop_name, "", e.q_rmb_num, new FunctionVO(this.succClick, this), new FunctionVO(
					this.failClick, this), new FunctionVO(this.canelClick, this))
			} else if (13 == t.type) 1 == t.playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(t.bean.q_id) :
			PanelOpenManager.openChargePanel(0, !1);
		else if (14 != t.type) ActivityCommandSender.sendC2S_JoinActivityMessage(t.bean.q_id);
		else {
			var i = StringUtil.JsonParse(t.bean.q_need_item)[0].num,
				n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			if (i > n) return void PanelOpenManager.openChargePanel(i);
			if (t.id == ActivityCenter.specialId) {
				var a = App.data.activityCenter.getData(ActivityCenter.specialId);
				return void(1 == a.playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(t.bean.q_id) :
					PanelOpenManager.openPanel(116))
			}
			if (t.id == ActivityCenter.specialId1) {
				var a = App.data.activityCenter.getData(ActivityCenter.specialId);
				return void(1 == a.playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(t.bean.q_id) :
					PanelOpenManager.openPanel(3002))
			}
			ActivityCommandSender.sendC2S_JoinActivityMessage(t.bean.q_id)
		}
	}, e
}(ItemRenderer);
__reflect(ActConChargeItemRender.prototype, "ActConChargeItemRender");
var ActivityMainUI = function(t) {
	function e(e) {
		var i = t.call(this) || this;
		return i.euiSkinName = "ActivityMainSkin", i.init(), i
	}
	return __extends(e, t), e.prototype.init = function() {
		this.showMoney(!0)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.close_btn.visible = !1, this._dispatcher.addEventListener(MoneyEvent.CHANGE,
			this.updateMyMoney, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.goChongzhi, this,
			this.btn_yuanbao), this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI)
	}, e.prototype.hide = function() {
		t.prototype.hide.call(this)
	}, e.prototype.showMoney = function(t) {
		void 0 === t && (t = !1), this.goldGroup.visible = t, t && (this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(
			EnumMoney.JIN_BI))
	}, e.prototype.goChongzhi = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt.text = StringUtil.formatMoney(i, "万", 1e6)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt.text = StringUtil.formatMoney(n, "万", 1e6)
		}
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 640
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 932
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ViewBase);
__reflect(ActivityMainUI.prototype, "ActivityMainUI");
var ActRewardItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ActRewardItemRenderSkin", e.createChildren(), e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._grid = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL),
			this._grid.x = 12, this._grid.y = 2, this._grid.scaleX = 1, this._grid.scaleY = 1, this.addChild(this._grid), this
			._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e), this.clear()
	}, e.prototype.dataChanged = function() {
		var t = this.data;
		null != t && this._grid.setData(t)
	}, e.prototype.onTouch = function(t) {
		GameLog.log("点击选择")
	}, e.prototype.clear = function() {
		null != this._grid && (this._grid.dispose(), this._grid = null), t.prototype.clear.call(this)
	}, Object.defineProperty(e.prototype, "width", {
		get: function() {
			return 100
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		get: function() {
			return 100
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ItemRenderer);
__reflect(ActRewardItemRender.prototype, "ActRewardItemRender");
var VipCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5165, this.vipInfoRefresh), this.register(5509, this.lingquCallBack), this.register(5508, this.vipLevelCharge),
			this.register(5507, this.buyLibaoStateCallback), this.register(5510, this.buyLibaoCallback), this.register(5182,
				this.onS2C_MoonCardInfoMessage), this.register(5309, this.onS2C_MoonCardBuyResult), this.register(5149, this.onS2C_MoonCardRewardResult),
			this.register(5574, this.onS2C_PrivilegeInfoMessage), this.register(5575, this.onS2C_PrivilegelistMessage), this.register(
				5576, this.onS2C_TurntableInfoMessage), this.register(5579, this.onS2C_rechargeLogMessage), this.register(5593,
				this.onS2C_hongbaoInfoMessage), this.register(5627, this.onS2C_WarPetKunDevourRewardMessage), this.register(5629,
				this.onS2C_FanPaiInfoMessagemthis)
	}, e.prototype.onS2C_FanPaiInfoMessagemthis = function(t) {
		App.data.moonCardCenter.loadFanpai(t)
	}, e.prototype.onS2C_WarPetKunDevourRewardMessage = function(t) {
		App.data.moonCardCenter.kunHongbaoAdd(t)
	}, e.prototype.onS2C_hongbaoInfoMessage = function(t) {
		App.data.moonCardCenter.loadRedEnve(t)
	}, e.prototype.onS2C_rechargeLogMessage = function(t) {
		t.goodsIds && (App.data.getVipCenter()._yichongzhiarr = t.goodsIds, App.dispatcher.dispatchEvent(VipEvent.CHONGZHI))
	}, e.prototype.onS2C_TurntableInfoMessage = function(t) {
		App.data.moonCardCenter.loadTuranble(t)
	}, e.prototype.onS2C_PrivilegeInfoMessage = function(t) {}, e.prototype.onS2C_PrivilegelistMessage = function(t) {
		App.data.moonCardCenter.loadPriviLegeList(t), App.dispatcher.dispatchEvent(VipEvent.Privilege)
	}, e.prototype.vipInfoRefresh = function(t) {
		var e = App.global.characterData.vipLevel;
		t.vipLevel > e && ActivityCommandSender.sendC2S_GetSpecialRing(), App.global.characterData.vipLevel = t.vipLevel;
		var i = App.data.getVipCenter();
		i.parserVipData(t)
	}, e.prototype.lingquCallBack = function(t) {
		var e = App.data.getVipCenter();
		e.parseLibaoState(t)
	}, e.prototype.vipLevelCharge = function(t) {
		var e = App.global.characterData.vipLevel;
		t.vipLevel > e && ActivityCommandSender.sendC2S_GetSpecialRing();
		var i = App.data.getVipCenter();
		App.global.characterData.vipLevel = t.vipLevel, i.setVipExp(0), VipCommandSender.requestC2S_VipBuyLibaoStatus(),
			App.dispatcher.dispatchEvent(VipEvent.VIP_LEVEL_UP, t.vipLevel)
	}, e.prototype.buyLibaoStateCallback = function(t) {
		var e = App.data.getVipCenter();
		e.parseBuyLibaoState(t)
	}, e.prototype.buyLibaoCallback = function(t) {
		var e = App.data.getVipCenter();
		e.buyLibaoCallBack(t)
	}, e.prototype.onS2C_MoonCardInfoMessage = function(t) {
		App.data.moonCardCenter.loadCardVip(t)
	}, e.prototype.onS2C_MoonCardBuyResult = function(t) {
		App.dispatcher.dispatchEvent(VipEvent.CARD_BUY_RESULT, t.result)
	}, e.prototype.onS2C_MoonCardRewardResult = function(t) {
		0 == t.result && (App.data.moonCardCenter.getCardData(t.type).todayReward = 1), App.dispatcher.dispatchEvent(
			VipEvent.REWARD_RESULT, t.result, t.type)
	}, e
}(BaseConnectionRegister);
__reflect(VipCommandRegister.prototype, "VipCommandRegister");
var AdvanceEquipTipUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(AdvanceEquipTipUI.prototype, "AdvanceEquipTipUI");
var AdvanceStrengUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(AdvanceStrengUI.prototype, "AdvanceStrengUI");
var AdvanceUsePropUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(AdvanceUsePropUI.prototype, "AdvanceUsePropUI");
var AdvanceZhiShengDanUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(AdvanceZhiShengDanUI.prototype, "AdvanceZhiShengDanUI");
var ComboBox = function(t) {
	function e(e, i) {
		var n = t.call(this) || this;
		return n._height = 20, n._width = 115, n.isDispose = !1, n._listItemRender = i, n.skinName = e ? e : "ComboBoxSkin",
			n
	}
	return __extends(e, t), e.prototype.onRemove = function(t) {
		egret.is(t.target, "ComboItemRender") || (this.scroll.visible = !1, App.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onRemove, this), App.stage.removeEventListener(egret.Event.RESIZE, this.resize, this))
	}, Object.defineProperty(e.prototype, "skinName", {
		get: function() {
			return egret.superGetter(e, this, "skinName")
		},
		set: function(t) {
			egret.superSetter(e, this, "skinName", t), this._listItemRender ? this.dropDownList.itemRenderer = this._listItemRender :
				this.dropDownList.itemRenderer = ComboItemRender, this.configUI()
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.configUI = function() {
		this.txtInfo.text = "", this.scroll.visible = !1, App.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onRemove,
			this), this.btn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onDropDown, this), this.txtInfo.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.onDropDown, this), this.dropDownList.addEventListener(eui.ItemTapEvent.ITEM_TAP,
			this.onItemTap, this)
	}, e.prototype.resize = function() {
		var t = this.txtInfo.localToGlobal();
		this.scroll.x = t.x, this.scroll.y = t.y + this.txtInfo.height + 2
	}, e.prototype.onDropDown = function(t) {
		this.scroll.visible = !this.scroll.visible, this.scroll.visible ? (this.resize(), App.stage.addChild(this.scroll),
			App.timer.doFrameOnce(this, 1, this.addEvent)) : (App.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onRemove,
			this), App.stage.removeEventListener(egret.Event.RESIZE, this.resize, this))
	}, e.prototype.addEvent = function() {
		App.stage.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onRemove, this), App.stage.addEventListener(egret.Event
			.RESIZE, this.resize, this)
	}, e.prototype.onItemTap = function(t) {
		this.txtInfo.text = t.item.label, this.scroll.visible = !1, App.stage.removeEventListener(egret.TouchEvent.TOUCH_TAP,
			this.onRemove, this), this._selectFunc && this._selectFunc.exec(t.itemIndex)
	}, Object.defineProperty(e.prototype, "width", {
		set: function(t) {
			this._width = t, this.txtInfo.width = this._width - 20, this.txtBg.width = this._width, this.btn.x = this.txtInfo
				.x + this.txtInfo.width, this.dropDownList.width = this._width;
			for (var e = 0; e < this.dropDownList.numChildren; ++e) this.dropDownList.getChildAt(e).width = this._width
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "height", {
		set: function(t) {
			this._height = t, this.txtBg.height = this._height, this.txtInfo.height = this._height, this.btn.height = this._height,
				this.btn.width = this._height, this.txtInfo.width = this._width - this._height, this.btn.x = this.txtInfo.x +
				this.txtInfo.width, this.scroll.y = this._height
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "dataProvider", {
		set: function(t) {
			this._dataProvider ? this._dataProvider.replaceAll(t) : (this._dataProvider = new eui.ArrayCollection(t), this.dropDownList
				.dataProvider = this._dataProvider)
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.getDataProvider = function() {
		return this._dataProvider
	}, Object.defineProperty(e.prototype, "selectIndex", {
		get: function() {
			return this.dropDownList.selectedIndex
		},
		set: function(t) {
			this.dropDownList.selectedIndex = t, this.selectItem = this.dropDownList.selectedItem
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectItem", {
		get: function() {
			return this.dropDownList.selectedItem
		},
		set: function(t) {
			this.dropDownList.selectedItem = t, this.dropDownList.selectedItem && this.dropDownList.selectedItem.label && (
				this.txtInfo.text = this.dropDownList.selectedItem.label)
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "selectHandler", {
		get: function() {
			return this._selectFunc
		},
		set: function(t) {
			this._selectFunc = t
		},
		enumerable: !0,
		configurable: !0
	}), e.prototype.removeAll = function() {
		this._dataProvider && this._dataProvider.removeAll(), this.txtInfo.text = ""
	}, e
}(eui.Component);
__reflect(ComboBox.prototype, "ComboBox");
var ComboItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.touchEnabled = !0, e.touchChildren = !1, e.skinName = "ComboItemRenderSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function() {
		this.txtItem.text = this.data.label
	}, e
}(eui.ItemRenderer);
__reflect(ComboItemRender.prototype, "ComboItemRender");
var CommonInputUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "ConmonInputSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CommonInputUI.prototype, "CommonInputUI");
var PriceBar = function(t) {
	function e(e, i) {
		void 0 === e && (e = EnumMoney.YUAN_BAO), void 0 === i && (i = 16777215);
		var n = t.call(this) || this;
		n._height = 20, n._width = 115, n._moneyId = EnumMoney.YUAN_BAO, n.isDispose = !1, n.skinName = "PriceBarSkin", n._moneyId =
			e;
		var a = GameUtil.getMoneyIcon(e);
		return "" != a && (n.img.source = a), n
	}
	return __extends(e, t), e.prototype.setMoney = function(t, e) {
		void 0 === e && (e = 16711935), this.tfNum.$setTextColor(e), this.tfNum.text = t.toString()
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.parent && this.parent.removeChild(this)
	}, e
}(ViewBase);
__reflect(PriceBar.prototype, "PriceBar");
var CrossExploitRankUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossExploitRankUI.prototype, "CrossExploitRankUI");
var CrossFightLogUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossFightLogUI.prototype, "CrossFightLogUI");
var CrossFightRewardUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossFightRewardUI.prototype, "CrossFightRewardUI");
var CrossKillMonsterUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossKillMonsterUI.prototype, "CrossKillMonsterUI");
var CrossServiceActUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossServiceActUI.prototype, "CrossServiceActUI");
var CrossZoneTrackUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(CrossZoneTrackUI.prototype, "CrossZoneTrackUI");
var WarpetCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5599, this.onS2C_hatchListInfoMessage), this.register(5600, this.onS2C_warPetUpgradeMessage), this.register(
			5601, this.onS2C_warPetSkillUpgradeMessage), this.register(5602, this.onS2C_warPetlistInfoMessage), this.register(
			5609, this.onS2C_warPetAddMessage), this.register(5610, this.onS2C_warPetfenjieMessage), this.register(5623, this
			.onS2C_WarPetChangeTalnetMessage), this.register(5622, this.onS2C_WarPetTalnetBookFuseMessage), this.register(
			5608, this.onS2C_kunRewardsListMessage), this.register(5613, this.onS2C_WarPetKunDevourMessage), this.register(
			5614, this.onS2C_WarPetKunDevourCdMessage), this.register(5615, this.onS2C_WarPetKunTunTianAttrMessage), this.register(
			5630, this.onS2C_KunRewardSpeedCostMessage)
	}, e.prototype.onS2C_WarPetTalnetBookFuseMessage = function(t) {
		0 == t.type ? App.dispatcher.dispatchEvent(WarpetEvent.WARPET_TALENT_COMPOSE, t.newMid) : 1 == t.type && App.dispatcher
			.dispatchEvent(WarpetEvent.WARPET_JINGPO_COMPOSE, t.newMid)
	}, e.prototype.onS2C_WarPetChangeTalnetMessage = function(t) {
		App.data.warpetCenter.changeDataTalent(t.petId, t.talnet)
	}, e.prototype.onS2C_warPetfenjieMessage = function(t) {
		App.data.warpetCenter.removeWarpet(t.listPetId)
	}, e.prototype.onS2C_hatchListInfoMessage = function(t) {
		App.data.warpetCenter.loadFuhuaList(t)
	}, e.prototype.onS2C_warPetUpgradeMessage = function(t) {
		App.data.warpetCenter.kunCenter.petUpgrade(t)
	}, e.prototype.onS2C_warPetSkillUpgradeMessage = function(t) {}, e.prototype.onS2C_warPetlistInfoMessage = function(
		t) {
		App.data.warpetCenter.initWarPetHash(t.warPetlist)
	}, e.prototype.onS2C_warPetAddMessage = function(t) {
		t.warPetInfo && App.data.warpetCenter.initWarPetHash([t.warPetInfo], t.type)
	}, e.prototype.onS2C_kunRewardsListMessage = function(t) {
		App.data.warpetCenter.kunCenter.loadRewards(t.kunRewards)
	}, e.prototype.onS2C_WarPetKunDevourMessage = function(t) {
		App.dispatcher.dispatchEvent(WarpetEvent.KUN_EAT, t)
	}, e.prototype.onS2C_WarPetKunDevourCdMessage = function(t) {
		App.data.warpetCenter.kunCenter.cd = t.endTime, App.dispatcher.dispatchEvent(WarpetEvent.KUN_EAT_CD)
	}, e.prototype.onS2C_WarPetKunTunTianAttrMessage = function(t) {
		App.data.warpetCenter.kunCenter.loadAttr(t.attrs, t.max)
	}, e.prototype.onS2C_KunRewardSpeedCostMessage = function(t) {
		App.data.warpetCenter.kunCenter.cost = t.costGold
	}, e
}(BaseConnectionRegister);
__reflect(WarpetCommandRegister.prototype, "WarpetCommandRegister");
var WearEquipCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5370, this.onS2C_WearEquipItemMessage), this.register(5243, this.onS2C_UnwearEquipItemMessage), this.register(
			5617, this.onS2C_shenluListInfoMessage), this.register(5616, this.onS2C_shenluEquipMessage), this.register(5029,
			this.onS2C_MagicWeaponWearMessage)
	}, e.prototype.onS2C_shenluEquipMessage = function(t) {
		App.data.wearEquipCenter.shenLuUp(t.indexId, t.equipId)
	}, e.prototype.onS2C_shenluListInfoMessage = function(t) {
		App.data.wearEquipCenter.loadShenluHash(t.shenluList)
	}, e.prototype.onS2C_WearEquipItemMessage = function(t) {
		for (var e = 0; e < t.equips.length; e++) App.data.wearEquipCenter.wearEquip(t.equips[e], t.index), App.dispatcher.dispatchEvent(
			EventType.WEAR_LIST_REFRESH, t.equips[e], t.equips[e].gridId);
		App.dispatcher.dispatchEvent(EventType.WEAR_LIST_REFRESH_ALL)
	}, e.prototype.onS2C_UnwearEquipItemMessage = function(t) {
		App.data.wearEquipCenter.unWearEquip(t.index, t.gridId)
	}, e.prototype.onS2C_MagicWeaponWearMessage = function(t) {
		App.data.characterCenter.addFaBaoEquipData(t.itemInfo, t.index, t.pos), App.dispatcher.dispatchEvent(EventType.FABAO_EQUIP_REFRESH,
			t.pos)
	}, e
}(BaseConnectionRegister);
__reflect(WearEquipCommandRegister.prototype, "WearEquipCommandRegister");
var XSRWCommandRegister = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.initialize = function() {
		this.register(5493, this.onS2C_xsrwTaskInfo), this.register(5495, this.onS2C_xsrwAward), this.register(5496, this.onS2C_xsrwStateChange)
	}, e.prototype.onS2C_xsrwTaskInfo = function(t) {
		var e = App.data.getXSRWCenter();
		e.parseTaskData(t)
	}, e.prototype.onS2C_xsrwAward = function(t) {
		var e = App.data.getXSRWCenter();
		e.reciveAward(t)
	}, e.prototype.onS2C_xsrwStateChange = function(t) {
		var e = App.data.getXSRWCenter();
		e.stateChange(t)
	}, e
}(BaseConnectionRegister);
__reflect(XSRWCommandRegister.prototype, "XSRWCommandRegister");
var ActivityCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2s_card = function(t) {
		var e = this.createCmd(16106);
		e.card = t, this.sendCommand(e)
	}, e.sendDetailMessageByType = function(t) {
		for (var e = [], i = App.data.activityCenter.getList(t, !1, !1), n = 0; n < i.length; n++) e.push(i[n].id);
		e.length > 0 && this.sendC2S_ActivityDetailInfosMessage(e)
	}, e.sendC2S_ActivityDetailInfosMessage = function(t) {
		var e = this.createCmd(16122);
		e.activityIds = t, this.sendCommand(e), this.i++, GameLog.log("活动id：" + t + "发送次数：" + this.i)
	}, e.sendC2S_JoinActivityMessage = function(t, e, i) {
		void 0 === e && (e = 1), void 0 === i && (i = "");
		var n = this.createCmd(16084);
		n.activityId = t, n.count = e, n.extendMap = i, this.sendCommand(n), GameLog.log("参加活动的活动id为：" + t)
	}, e.sendC2S_zeroPurchaseMessage = function(t) {
		var e = this.createCmd(16556);
		e.activityId = t, this.sendCommand(e)
	}, e.sendC2S_SignMessage = function(t) {
		var e = this.createCmd(16296);
		e.monthOfDay = t, this.sendCommand(e)
	}, e.sendC2S_ActiveSpecialRing = function(t) {
		var e = this.createCmd(16453);
		e.ringId = t, this.sendCommand(e)
	}, e.sendC2S_GetSpecialRing = function() {
		var t = this.createCmd(16462);
		this.sendCommand(t)
	}, e.sendC2S_PromiseInfoMessage = function() {
		var t = this.createCmd(16547);
		this.sendCommand(t)
	}, e.sendC2S_PromiseReceiveMessage = function() {
		var t = this.createCmd(16546);
		this.sendCommand(t)
	}, e.sendC2S_PromiseSelectItemMessage = function(t, e) {
		void 0 === e && (e = 0);
		var i = this.createCmd(16545);
		i.gridIndex = e, i.itemIndex = t, this.sendCommand(i)
	}, e.i = 0, e
}(BaseConnectionSender);
__reflect(ActivityCommandSender.prototype, "ActivityCommandSender");
var FriendChatItemUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(FriendChatItemUI.prototype, "FriendChatItemUI");
var FriendItemUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(FriendItemUI.prototype, "FriendItemUI");
var FriendUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(FriendUI.prototype, "FriendUI");
var HeadItemUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(HeadItemUI.prototype, "HeadItemUI");
var GMCountryUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GMCountryUI.prototype, "GMCountryUI");
var GMExtendUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GMExtendUI.prototype, "GMExtendUI");
var GmItemUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmItemUI.prototype, "GmItemUI");
var GMMailUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GMMailUI.prototype, "GMMailUI");
var GmMapUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmMapUI.prototype, "GmMapUI");
var GmOtherUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmOtherUI.prototype, "GmOtherUI");
var GmPanelUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmPanelUI.prototype, "GmPanelUI");
var GmRoleUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmRoleUI.prototype, "GmRoleUI");
var GmSearchItemUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmSearchItemUI.prototype, "GmSearchItemUI");
var GMSkillGuildUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GMSkillGuildUI.prototype, "GMSkillGuildUI");
var GmTaskUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GmTaskUI.prototype, "GmTaskUI");
var GMYunYingUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GMYunYingUI.prototype, "GMYunYingUI");
var GuildCangkuViewUI = function() {
	function t() {}
	return t
}();
__reflect(GuildCangkuViewUI.prototype, "GuildCangkuViewUI");
var CastleWarCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.askCountryStructureInfo = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16230);
		e.type = t, this.sendCommand(e)
	}, e.askCountrySiegeSelect = function(t, e) {
		void 0 === t && (t = 0), void 0 === e && (e = 0);
		var i = this.createCmd(16103);
		i.type = t, i.location = e, i.loc = e, this.sendCommand(i)
	}, e.askOpenRewardPanel = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16024);
		e.type = t, this.sendCommand(e)
	}, e.askCountryReward = function(t, e) {
		var i = this.createCmd(16215);
		i.type = t, i.rewardType = e, this.sendCommand(i)
	}, e.askCountryWarApply = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16124);
		e.type = t, this.sendCommand(e)
	}, e.askCountryWarOpenPanel = function(t) {
		void 0 === t && (t = 0);
		var e = this.createCmd(16051);
		e.type = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(CastleWarCommandSender.prototype, "CastleWarCommandSender");
var ChallengeCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_ChallengeBookMessage = function() {
		var t = this.createCmd(16446);
		t.challengeId = 0, this.sendCommand(t)
	}, e.sendC2S_getChallengeBookRewardMessage = function() {
		var t = this.createCmd(16448);
		t.challengeId = 0, this.sendCommand(t)
	}, e.sendC2S_AccpetChallengeBookMessage = function() {
		var t = this.createCmd(16447);
		t.challengeId = 0, this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(ChallengeCommandSender.prototype, "ChallengeCommandSender");
var ManageMemberUI = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ManageMemberUI.prototype, "ManageMemberUI");
var ReviseBulletinUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "ReviseBulletinSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(ReviseBulletinUI.prototype, "ReviseBulletinUI");
var MailItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._x = 0, e._y = 0, e._flag = !0, e.skinName = "MailItemSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler,
			this, this.selectitem), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.removeImgClick, this,
			this.removeimg), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_BEGIN, this.itemChangeClick, this, this)
	}, e.prototype.removeImgClick = function(t) {
		this.data.isAccessory ? Notice.showMousePosMessage("您还有附件未领取！") : MailCommandSender.C2S_MailDeleteMail([this.data.mailId])
	}, e.prototype.itemChangeClick = function(t) {
		this._flag = !0, this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this, this), this
			._x = t.stageX, this._y = t.stageY
	}, e.prototype.moveOnclick = function(t) {
		t.stageX - this._x < -30 && (TweenLite.to(this.contentview, .5, {
			x: -96
		}), this._flag = !1, this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this,
			this)), t.stageX - this._x > 30 && (TweenLite.to(this.contentview, .5, {
			x: 0
		}), this._flag = !1, this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick, this,
			this)), t.stageY - this._y > 50 && this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick,
			this, this), t.stageY - this._y < -50 && this._dispatcher.removeEventListener(egret.TouchEvent.TOUCH_MOVE, this.moveOnclick,
			this, this)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this)
	}, e.prototype.dataChanged = function() {
		t.prototype.dataChanged.call(this), TweenLite.to(this.contentview, .5, {
			x: 0
		});
		var e = 1 == this.data.isRead ? this.data.title + "<font color='#8c762a'>(已读)</font>" : this.data.title +
			"<font color='#2bb12a'>(未读)</font>";
		this.title.textFlow = HtmlUtil.getHtmlStr(e), this.senderName.text = "发件人：" + this.data.senderName.replace("system",
				"系统"), this.time.text = DateUtil.format(new Date(1e3 * this.data.sendTime)), this.imgFuJian.visible = this.data.isAccessory,
			this.data.isRead ? (this.time.textColor = this.senderName.textColor = 6576455, this.bg1.source =
				"chatview_border_012_png") : (this.time.textColor = this.senderName.textColor = 11639929, this.bg1.source =
				"chatview_border_013_png")
	}, e.prototype.clickHandler = function(t) {
		this._flag && (App.panel.openPanel(40, this.data), TweenLite.to(this.contentview, .5, {
			x: 0
		}))
	}, e
}(ItemRenderer);
__reflect(MailItemView.prototype, "MailItemView");
var RoleFigureUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "RoleFigureSkin", e
	}
	return __extends(e, t), e.prototype.showeffect = function(t, e) {
		this.hide(), t = 1, 1 == e ? this._roleEff = EffectUtils.showCEffect(this, this.roleGroup, ResPathUtil.getMenuEffect(
				"createRole", "job" + e + "_" + t), 169, 216) : 2 == e ? this._roleEff = EffectUtils.showCEffect(this, this.roleGroup,
				ResPathUtil.getMenuEffect("createRole", "job" + e + "_" + t), 153, 223) : 3 == e && (this._roleEff = EffectUtils.showCEffect(
				this, this.roleGroup, ResPathUtil.getMenuEffect("createRole", "job" + e + "_" + t), 150, 220)), 3 == e ? this._roleDaoEff =
			EffectUtils.showCEffect(this.roleGroup, this, ResPathUtil.getMenuEffect("createRole", "fu3_" + t), 148, 140) :
			this.clear_roleDaoEff(), this.roleGroup.addChild(this.imgJob)
	}, e.prototype.clear_roleEff = function() {
		this._roleEff && (this._roleEff.stop(), this._roleEff.dispose(), this._roleEff = null)
	}, e.prototype.clear_roleDaoEff = function() {
		this._roleDaoEff && (this._roleDaoEff.stop(), this._roleDaoEff.dispose(), this._roleDaoEff = null)
	}, e.prototype.hide = function() {
		this.clear_roleEff(), this.clear_roleDaoEff()
	}, e
}(ViewBase);
__reflect(RoleFigureUI.prototype, "RoleFigureUI");
var GetRedEnvelopesUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(GetRedEnvelopesUI.prototype, "GetRedEnvelopesUI");
var RingItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._ringIcon = "SpecialRing_YC_tejie_", e.skinName = "RingItemRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch,
			this)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.clear = function() {
		UIMaker.showPoint(this, this, !1, -16, 6), t.prototype.clear.call(this)
	}, e.prototype.dataChanged = function() {
		this._myData = this.data;
		var t = 1 == this._myData.status;
		if (t) {
			this.labCondition.visible = !1, this.imgRing.filters = FilterUtil.FILTER_GRAY, this.labName.textColor = 11841962,
				this.imgActive.visible = !0;
			var e = App.data.getRingDataCenter().getRingGotID() == this._myData.bean.q_ring_id - 1;
			UIMaker.showPoint(this, this, e, -16, 6)
		} else {
			this.imgActive.visible = !1;
			var i = 0 == this._myData.status;
			if (this.labCondition.visible = i, i) {
				var n = void 0;
				n = "第" + this._myData.bean.q_ring_time + "天开启", this.labCondition.text = n, this.imgRing.mask = this.mask, this.tfBg
					.filters = this.iconBg.filters = this.imgRing.filters = FilterUtil.FILTER_GRAY, this.maskRing.visible = !0, this
					.labName.textColor = 11841962
			} else this.tfBg.filters = this.iconBg.filters = this.imgRing.filters = null, this.labName.textColor = 16769412,
				this.maskRing.visible = !1;
			UIMaker.showPoint(this, this, !1, -16, 6)
		}
		this.imgRing.source = this._ringIcon + this._myData.bean.q_ring_id + "_png", this.labName.text = this._myData.bean.q_ring_model
	}, e.prototype.onTouch = function(t) {
		GameLog.log("点击选择")
	}, e
}(ItemRenderer);
__reflect(RingItemRender.prototype, "RingItemRender");
var RoleRingEquipUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RoleRingEquipSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RoleRingEquipUI.prototype, "RoleRingEquipUI");
var SurfaceLevelUPView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "SurfaceLevelUPViewSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(SurfaceLevelUPView.prototype, "SurfaceLevelUPView");
var CharacterUICommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.checkPalyerInfo = function(t, e, i) {
		void 0 === e && (e = 0), void 0 === i && (i = !0), RankItemView.MESSAGE_TYPE = i, GameLog.logInfo(
			"查看别的玩家装备:personId=" + t.toString(), "type=" + e);
		var n = this.createCmd(16240);
		n.personId = t, n.type = e, n.passing = ServerTime.getFlashTime(), n.cur = ServerTime.getSystemTime(), this.sendCommand(
			n)
	}, e.getMetempsychosisInfo = function() {
		var t = this.createCmd(16189);
		this.sendCommand(t)
	}, e.sendExpToXiuwei = function() {
		var t = this.createCmd(16039);
		this.sendCommand(t)
	}, e.sendExpToLunhuiXiuwei = function() {
		var t = this.createCmd(16518);
		this.sendCommand(t)
	}, e.upgradeMetempsychosis = function() {
		var t = this.createCmd(16026);
		this.sendCommand(t)
	}, e.showSerface = function(t, e) {
		var i = this.createCmd(16379);
		i.surfaceId = t, i.index = e, this.sendCommand(i)
	}, e.hideSerface = function(t, e) {
		var i = this.createCmd(16380);
		i.surfaceId = t, i.index = e, this.sendCommand(i)
	}, e.hideTypeSerface = function(t, e) {
		var i = this.createCmd(16068);
		i.surfaceType = t, i.opType = e, this.sendCommand(i)
	}, e.rayWingAdvance = function(t, e, i) {
		void 0 === e && (e = !1), void 0 === i && (i = 1)
	}, e.advanceLevelUp = function(t, e, i) {
		void 0 === e && (e = !1), void 0 === i && (i = 1);
		var n = this.createCmd(16014);
		n.type = t, n.advanceType = 1 == e ? 1 : 0, n.index = i, this.sendCommand(n)
	}, e.activeSurface = function(t, e) {
		var i = this.createCmd(16092);
		i.surfaceId = t, i.index = e, this.sendCommand(i)
	}, e.openRole = function(t, e) {
		var i = this.createCmd(16347);
		i.job = e, i.sex = t, this.sendCommand(i)
	}, e.sendC2S_InsidePowerLevelupMessage = function(t, e) {
		void 0 === e && (e = 0);
		var i = this.createCmd(16286);
		i.index = t, 1 == e && (i.type = e), this.sendCommand(i)
	}, e.sendC2S_InsidePowerExpMessage = function(t, e) {
		var i = this.createCmd(16135);
		i.reqType = t, i.index = e, this.sendCommand(i)
	}, e.sendC2S_MergeAttackUpMessage = function(t) {
		var e = this.createCmd(16424);
		e.fuseId = t, this.sendCommand(e)
	}, e.sendC2S_MergeAttackWearMessage = function(t) {
		var e = this.createCmd(16425);
		e.equipPkId = t, this.sendCommand(e)
	}, e.sendC2S_WearMaxGodWingMessage = function(t, e, i) {
		var n = this.createCmd(16471);
		n.godWingId = t, n.index = i, n.godWingType = e, this.sendCommand(n)
	}, e.sendC2S_ConvertGodWingMessage = function(t, e) {
		var i = this.createCmd(16473);
		i.convertGodWingId = t, i.godWingId = e, this.sendCommand(i)
	}, e.sendC2S_GodWingAdvanceMessage = function(t, e) {
		var i = this.createCmd(16474);
		i.godWingId = t, i.godWingType = e, this.sendCommand(i)
	}, e.sendC2S_GodWingFastAdvanceMessage = function(t, e) {
		var i = this.createCmd(16472);
		i.godWingId = t, i.index = e, this.sendCommand(i)
	}, e.sendC2S_ChangePlayerNameMessage = function(t) {
		var e = this.createCmd(16277);
		e.newname = t, this.sendCommand(e)
	}, e.sendC2S_GuildSuitUSE = function(t, e, i) {
		var n = this.createCmd(16493);
		n.itemId = t, n.pos = e, n.index = i, this.sendCommand(n)
	}, e.sendC2S_GuildSuitUP = function(t, e, i) {
		var n = this.createCmd(16494);
		n.itemId = t, n.pos = e, n.index = i, this.sendCommand(n)
	}, e.sendC2S_HideAllSurfaceMessage = function(t) {
		var e = this.createCmd(16505);
		e.type = t, this.sendCommand(e)
	}, e.sendC2S_LunHUiLevelUP = function() {
		var t = this.createCmd(16515);
		this.sendCommand(t)
	}, e.sendC2S_LunHUiEquipZhuHun = function(t, e, i) {
		var n = this.createCmd(16514);
		n.index = t, n.itemid = e, n.Pos = i, this.sendCommand(n)
	}, e.sendC2S_LunHUiEquiplevel = function(t, e, i) {
		var n = this.createCmd(16516);
		n.index = t, n.modelid = e, n.Pos = i, this.sendCommand(n)
	}, e.sendC2S_LunHUiEquipWearableMessage = function(t, e, i) {
		var n = this.createCmd(16517);
		n.index = t, n.itemId = LongUtil.fromString(e), n.Pos = i, this.sendCommand(n)
	}, e.sendC2S_ReXueEquipWearableMessage = function(t, e, i) {
		var n = this.createCmd(16559);
		n.index = LongUtil.fromNumber(t), n.itemId = LongUtil.fromString(e), n.pos = i, this.sendCommand(n)
	}, e.sendC2S_GodEquipWearableMessage = function(t, e, i) {
		var n = this.createCmd(16001);
		n.index = LongUtil.fromNumber(t), n.itemId = LongUtil.fromString(e), n.pos = i, this.sendCommand(n)
	}, e.sendC2S_GodEquipFenJieMessage = function(t, e) {
		var i = this.createCmd(16028);
		i.index = t, i.pos = e, this.sendCommand(i)
	}, e.sendWearAdvanceEquipMessage = function(t, e, i, n) {
		var a = this.createCmd(16018);
		a.type = t, a.itemId = e, a.index = n, this.sendCommand(a)
	}, e.sendAdvanceEquipStrengthMessage = function(t, e, i, n) {
		void 0 === e && (e = 0), void 0 === i && (i = -1), void 0 === n && (n = 1);
		var a = this.createCmd(16017);
		a.type = t, a.itemId = e, a.pos = i, a.index = n, this.sendCommand(a)
	}, e.sendC2S_ChangePKStateMessage = function(t) {
		var e = this.createCmd(16186);
		e.pkState = t, this.sendCommand(e)
	}, e
}(BaseConnectionSender);
__reflect(CharacterUICommandSender.prototype, "CharacterUICommandSender");
var RingActiveUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RingActiveSkin", e.priceBar.setMoney(3e4), e
	}
	return __extends(e, t), e.prototype.dispose = function() {
		t.prototype.dispose.call(this)
	}, e.prototype.removeAllChild = function() {
		DisplayObjectUtil.removeAllChild(this)
	}, e
}(ViewBase);
__reflect(RingActiveUI.prototype, "RingActiveUI");
var RingLevelUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RingLevelSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RingLevelUI.prototype, "RingLevelUI");
var RingSkillUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "RingSkillSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(RingSkillUI.prototype, "RingSkillUI");
var BagRecoverySettingUI = function(t) {
	function e() {
		return null !== t && t.apply(this, arguments) || this
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(BagRecoverySettingUI.prototype, "BagRecoverySettingUI");
var ChatCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendChatMessage = function(t, e, i) {
		void 0 === i && (i = "");
		var n = this.createCmd(16061);
		n.chattype = t, n.condition = e, n.roleName = i, this.sendCommand(n)
	}, e.sendAddBlack = function(t, e) {
		var i = this.createCmd(16488);
		i.playerId = LongUtil.fromString(LongUtil.toString(t)), i.type = e, this.sendCommand(i)
	}, e.sendBlackList = function() {
		var t = this.createCmd(16492);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(ChatCommandSender.prototype, "ChatCommandSender");
var CrossCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_LinkContendInfo = function() {
		var t = this.createCmd(16511);
		this.sendCommand(t)
	}, e.sendC2S_LinkContendReceiveReward = function(t) {
		var e = this.createCmd(16512);
		e.index = t, this.sendCommand(e)
	}, e.sendC2S_LinkContendRankInfo = function() {
		var t = this.createCmd(16510);
		this.sendCommand(t)
	}, e.sendC2S_LinkContendHistoryInfo = function() {
		var t = this.createCmd(16513);
		this.sendCommand(t)
	}, e
}(BaseConnectionSender);
__reflect(CrossCommandSender.prototype, "CrossCommandSender");
var EquipFuseCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendEquipFuseMessage = function(t, e, i, n) {
		void 0 === n && (n = 0);
		var a = this.createCmd(16198);
		a.fuseId = t, a.equips = e, a.index = i, a.pos = n, this.sendCommand(a)
	}, e.sendWearChuanqi = function(t, e, i, n) {
		var a = this.createCmd(16552);
		a.equipId = LongUtil.fromString(t), a.index = e, a.suitId = i, a.suitpos = n, this.sendCommand(a)
	}, e
}(BaseConnectionSender);
__reflect(EquipFuseCommandSender.prototype, "EquipFuseCommandSender");
var ExploitCommandSender = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.sendC2S_ActiveRewardInfoMessage = function() {
		var t = this.createCmd(16009);
		this.sendCommand(t)
	}, e.sendC2S_GetActiveRewardMessage = function(t, e, i) {
		void 0 === i && (i = 0);
		var n = this.createCmd(16236);
		n.id = i, n.type = t, n.num = e, this.sendCommand(n)
	}, e.sendC2S_ActiveReceiveUpMessage = function() {
		this.sendCommand(this.createCmd(16432))
	}, e.sendC2S_ReceivePosRewardsMessage = function() {
		var t = this.createCmd(16452);
		this.sendCommand(t)
	}, e.sendC2S_JadeInfoMessage = function() {
		this.sendCommand(this.createCmd(16427))
	}, e.sendC2S_JadeUpLevelMessage = function() {
		this.sendCommand(this.createCmd(16426))
	}, e.sendC2S_TuJianListMessage = function() {
		this.sendCommand(this.createCmd(16490))
	}, e.sendC2S_TuJianGrowUpMessage = function(t) {
		var e = this.createCmd(16491);
		e.id = t, this.sendCommand(e)
	}, e.sendC2S_TuJianFenJieMessage = function(t) {
		var e = this.createCmd(16489);
		e.ids = LongUtil.fromStringList(t), this.sendCommand(e)
	}, e.sendC2S_achievementInfoMessage = function() {
		this.sendCommand(this.createCmd(16456))
	}, e.sendC2S_achievementLevelupMessage = function() {
		this.sendCommand(this.createCmd(16478))
	}, e
}(BaseConnectionSender);
__reflect(ExploitCommandSender.prototype, "ExploitCommandSender");
var ItemUseView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.SpecialShowView = function(t) {
			App.panel.openPanel(26, t.q_ui)
		}, e.SeparateOpen = function(t) {
			5 == t.panelid ? App.panel.openPanel(t.panelid, {
				selectedIndex: 0,
				index: t.selectIndex
			}) : App.panel.openPanel(t.panelid, {
				selectedIndex: t.selectIndex
			})
		}, e
	}
	return __extends(e, t), e.prototype.setData = function(t) {
		this._eventRegister || (this._eventRegister = new DispatcherRegister), this._itemData = t, this._count = this._itemData
			.count;
		var e = this._itemData.getDataBean();
		if (46 == this._itemData.itemId ? (this.num.text = Math.floor(this._itemData.count / 100) + "", this.selectgroup.visible = !
				1, this.btnUse.label = "合成") : 55 == e.q_type ? (this.selectgroup.visible = !1, this.btnUse.label = "回收") : 0 ==
			e.q_whether_batch ? (this.selectgroup.visible = !1, this.btnUse.label = "使用") : (this.num.text = this._count + "",
				this.selectgroup.visible = !0, this.btnUse.label = "使用"), "" != e.q_use_consume) {
			this.moneytext.visible = !0;
			var i = StringUtil.JsonParse(e.q_use_consume);
			this.moneytext.text = "消耗" + i[0].num + ItemUtil.getItemName(i[0].id) + "打开"
		} else this.moneytext.visible = !1
	}, e.prototype.addEvents = function() {
		this.removeEvents(), this._eventRegister.addEventListener(egret.TouchEvent.TOUCH_TAP, this.minHandler, this, this.btnMin),
			this._eventRegister.addEventListener(egret.TouchEvent.TOUCH_TAP, this.maxHandler, this, this.btnMax), this._eventRegister
			.addEventListener(egret.TouchEvent.TOUCH_TAP, this.subHandler, this, this.btnSub), this._eventRegister.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.addHandler, this, this.btnAdd), this._eventRegister.addEventListener(egret.TouchEvent
				.TOUCH_TAP, this.useHandler, this, this.btnUse), this._dispatcher.addEventListener(egret.Event.CHANGE, this.updateNum,
				this, this.num)
	}, e.prototype.minHandler = function(t) {
		46 == this._itemData.itemId ? this.num.text = "1" : this.num.text = this.count > 0 ? "1" : "0", t.stopPropagation()
	}, e.prototype.updateNum = function(t) {
		var e = parseInt(this.num.text);
		e > Math.floor(this._itemData.count / 100) && (this.num.text = "" + Math.floor(this._itemData.count / 100), e =
			Math.floor(this._itemData.count / 100)), 1 > e && (this.num.text = "1", e = 1)
	}, e.prototype.maxHandler = function(t) {
		46 == this._itemData.itemId ? this.num.text = Math.floor(this._itemData.count / 100) + "" : this.num.text = this.count +
			"", t.stopPropagation()
	}, e.prototype.subHandler = function(t) {
		t.stopPropagation(), this.txtNum > 1 && (this.num.text = this.txtNum - 1 + "")
	}, e.prototype.addHandler = function(t) {
		46 == this._itemData.itemId ? this.txtNum < Math.floor(this.count / 100) && (this.num.text = this.txtNum + 1 + "") :
			this.txtNum < this.count && (this.num.text = this.txtNum + 1 + ""), t.stopPropagation()
	}, e.prototype.useHandler = function(t) {
		var e = this._itemData.getDataBean();
		if (55 == e.q_type) return ItemCommandSender.sendEquipHuiShou([this._itemData.id]), void(null != this.callback &&
			this.callback.exec());
		if (1 == e.q_use && "" != e.q_ui) {
			var i = StringUtil.JsonParse(e.q_ui);
			0 == i.functionid ? 20027 == e.q_id ? 1 == App.data.activityCenter.getData(81001).activityStates ? App.panel.openPanel(
				i.panelid, {
					selectedIndex: i.selectIndex
				}) : Notice.showMousePosMessage("<font color=" + Notice.MIDDLE_COLOR_2 + ">未到魔宠乐园开放时间</font>") : App.panel.openPanel(
				i.panelid, {
					selectedIndex: i.selectIndex
				}) : App.global.funcOpen.isFunctionOpen(i.functionid, "", !0) && this.SeparateOpen(i)
		} else if (5 == e.q_use && "" != e.q_ui) this.SpecialShowView(e);
		else {
			var n = 0 == this._itemData.getDataBean().q_whether_batch ? 1 : this.txtNum;
			App.global.itemUse.useItemByItemData(this._itemData, n)
		}
		null != this.callback && this.callback.exec()
	}, e.prototype.removeEvents = function() {
		this._eventRegister.removeAllListeners()
	}, Object.defineProperty(e.prototype, "count", {
		get: function() {
			return this._count
		},
		enumerable: !0,
		configurable: !0
	}), Object.defineProperty(e.prototype, "txtNum", {
		get: function() {
			return Number(this.num.text)
		},
		enumerable: !0,
		configurable: !0
	}), e
}(ItemUseUI);
__reflect(ItemUseView.prototype, "ItemUseView");
var SkillTipUI = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.euiSkinName = "SkillTipSkin", e
	}
	return __extends(e, t), e
}(ViewBase);
__reflect(SkillTipUI.prototype, "SkillTipUI");
var MailibaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._num = 0, e.timeIs = !1, e.euiSkinName = "MailibaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._gridHash = new HashObject, null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this,
			ResPathUtil.getImgPath("fuli/hd_a01", "", ".jpg")));
		for (var t = 0; 4 > t; t++) {
			var e = GridUtil.getGrid(ItemGrid, EnumGridStyle.GRID_STYLE_NORMAL);
			e.x = 110 * t + 60, e.y = 495, e.isShowCount = !0, e.isShowDesc = !0, this._gridHash.put(t, e), this.addChild(e)
		}
		ActivityCenter.zeroFlag = !1, App.data.activityCenter.checkMailibaoRedPoint()
	}, e.prototype.onTouch = function(t) {
		"领取元宝" == this.btn.label ? this.timeIs ? (ActivityCommandSender.sendC2S_zeroPurchaseMessage(this.commonDATA.id),
			App.panel.openPanel(115, ItemUtil.getRewardDataList(this.commonDATA.bean.q_need_item)), 90005 == this.commonDATA.id &&
			App.panel.removePanel(2011)) : Notice.showBottomMessage(this.timetext.text) : App.data.currencyDataCenter.isMoneyEnough(
			this._num, EnumMoney.YUAN_BAO, !1) && ActivityCommandSender.sendC2S_JoinActivityMessage(this.commonDATA.id)
	}, e.prototype.onRechageClick = function() {
		this.showView()
	}, e.prototype.showView = function() {
		for (var t = App.data.activityCenter.getList(738), e = t.length, i = 0; e > i; i++)
			if (1 == t[i].activityStates) {
				this.refreView(t[i]);
				break
			}
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouch, this,
			this.btn), this._dispatcher.addEventListener(ActivityEvent.REFRESH_DETAIL, this.onRechageClick, this), this.showView()
	}, e.prototype.timeClick = function(t) {
		t.spuleTime >= 0 ? (this.timetext.text = StringUtil.convertTime_4(t.spuleTime) + "后可领取", this.timeIs = !1) : (this.btn
			.label = "领取元宝", this.timeIs = !0, this.timetext.text = StringUtil.convertTime_4(0), App.timer.clearTimer(this.timeClick,
				this))
	}, e.prototype.refreView = function(t) {
		this.commonDATA = t;
		var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards),
			i = StringUtil.JsonParse(t.extendMap),
			n = StringUtil.JsonParse(t.bean.q_need_item);
		this._num = n[0].num, this.btn.label = n[0].num + "元宝", i && i.zeroRurchaseTime > 0 ? (App.timer.serverTimeEnd(this,
			this.timeClick, i.zeroRurchaseTime / 1e3), this.btn.label = "领取元宝") : this.timetext.textFlow = HtmlUtil.getHtmlStr(
			t.bean.q_desc);
		for (var a = 0; a < e.length; a++) {
			var o = this._gridHash.get(a);
			o.setData(e[a])
		}
		this.mrEffect ? this.mrEffect.url = "" + ResPathUtil.getMenuEffect("panel", "" + t.bean.q_icon2) : this.mrEffect =
			EffectUtils.showCEffect(this, this, ResPathUtil.getMenuEffect("panel", "" + t.bean.q_icon2), 280, 321)
	}, e.prototype.hide = function() {
		this.clearEffect(), t.prototype.hide.call(this)
	}, e.prototype.clearEffect = function() {
		this.mrEffect && (this.mrEffect.stop(), this.mrEffect.dispose(), this.mrEffect = null)
	}, e.prototype.dispose = function() {
		if (this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.clearEffect(), this._gridHash) {
			for (var e = 0; e < this._gridHash.length; e++) this._gridHash.get(e).dispose();
			this._gridHash = null
		}
		t.prototype.dispose.call(this)
	}, e
}(ViewBase);
__reflect(MailibaoView.prototype, "MailibaoView");
var PrivilegeItemView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "PrivilegeItemSkin", e
	}
	return __extends(e, t), e.prototype.dataChanged = function() {
		this.curData = this.data, this.lalPrivilegeName.text = this.itemIndex + 1 + ". " + this.curData.name, this.curData.bingo >
			-1 ? (this.imgPrivilegeBingo.visible = !0, this.lalPrivilegeValue.visible = !1, this.imgPrivilegeBingo.source = 1 ==
				this.curData.bingo ? "beibao_json.gou_01_png" : "", this.imgPrivilegeBingo.x = this.lalPrivilegeName.x + this.lalPrivilegeName
				.width + 20) : (this.lalPrivilegeValue.visible = !0, this.imgPrivilegeBingo.visible = !1, this.lalPrivilegeValue.text =
				this.curData.value, this.lalPrivilegeValue.x = this.lalPrivilegeName.x + this.lalPrivilegeName.width + 20)
	}, e.prototype.clear = function() {
		this.curData = null, t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(PrivilegeItemView.prototype, "PrivilegeItemView");
var VipPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentIndex = 1, e.viplevel = 0, e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("VipPanelSkin"), this.addChild(this._view), null == this.bgimg && (this.bgimg =
				UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("vipbg_013", "", ".jpg"))), this._tequanList = [],
			this._gridContent = new LayoutContainer(ItemGrid, 100, 100, 5, new FunctionVO(this.itemRender, this)), this._gridContent
			.x = 100, this._gridContent.y = 688, this._view.red_vip.visible = !1, this._btnClose = this._view.btnClose, this.addChild(
				this._gridContent), this._vipCenter = App.data.getVipCenter()
	}, e.prototype.itemRender = function(t, e) {
		var i = new ItemData;
		i.itemId = e.id, i.count = e.num, t.setData(i)
	}, e.prototype.show = function(e) {
		void 0 === e && (e = null), t.prototype.show.call(this, e), null != e && (this.viplevel = e.selectedIndex), this.addEvent(),
			VipCommandSender.requestC2S_VipInfo()
	}, e.prototype.refreshView = function(t) {
		this._currentVip = App.config.q_vipContainer.getDataBean(t);
		App.data.getVipCenter().getMaxVipLevel();
		this._view.desTF.textFlow = HtmlUtil.getHtmlStr(this._currentVip.q_vip_desc), this._view.imgNextVip.source =
			"vip_vip_lvl" + t + "_png", this._view.libaotxt.textFlow = HtmlUtil.getHtmlStr("<font color='#eaf44b'>VIP" + t +
				"</font><font color='#b19c79'>礼包</font>"), this._view.tequantxt.textFlow = HtmlUtil.getHtmlStr(
				"<font color='#eaf44b'>VIP" + t + "</font><font color='#b19c79'>特权</font>");
		var e, i, n = StringUtil.JsonParse(StringUtil.replacJosnStr(this._currentVip.q_libao_vip)),
			a = n.length,
			o = [];
		for (e = 0; a > e; e++) i = n[e], i && o.push(i);
		this._gridContent.dataProvider = o
	}, e.prototype.refreshExp = function(t, e) {
		var i;
		i = e < App.data.getVipCenter().getMaxVipLevel() ? App.config.q_vipContainer.getDataBean(e + 1) : App.config.q_vipContainer
			.getDataBean(e);
		var n = i.q_vip_value,
			a = 235;
		this._view.progressYuanBao.width = Math.min(1, t / n) * a, this._view.lalYuanBaoPer.text = t + "/" + n
	}, e.prototype.refreshLibao = function(t) {
		var e = App.data.getVipCenter().getptLibaoState(t);
		1 == e ? (this._view.btnGet.label = "已领取", this._view.btnGet.enabled = !1, this._view.btnGet.filters = FilterUtil.FILTER_GRAY) :
			(this._view.btnGet.label = "领取奖励", this._view.btnGet.enabled = !0, this._view.btnGet.filters = [])
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), null != this.ceffect && (this.ceffect.stop(), this.ceffect.dispose(), this.ceffect =
				null), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this._gridContent && this._gridContent.clear(),
			this._gridContent = void 0
	}, e.prototype.onOpenChargePanel = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(VipEvent.VIP_INFO_REFRESH, this._infoHandler, this), this._dispatcher.addEventListener(
				VipEvent.VIP_LEVEL_UP, this._levelChange, this), this._dispatcher.addEventListener(VipEvent.VIP_PUTONGLIBAO_CHANGE,
				this._libaoState, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.preHandler, this,
				this._view.btnPre), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.nextHandler, this, this._view
				.btnNext), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.lingquHandler, this, this._view.btnGet),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onOpenChargePanel, this, this._view.btnChongZhi),
			this._dispatcher.addEventListener(EventType.SHOW_REDPOINT, this.redShow, this)
	}, e.prototype.redShow = function(t) {
		128 == t && this.checkShowRedImg()
	}, e.prototype.showEffect = function() {
		null == this.ceffect && (this.ceffect = EffectUtils.showCEffect(this, this._view.btnGet, ResPathUtil.getMenuEffect(
			"main", "firstflushbtn"), 105, 40)), this.ceffect.play(), this.ceffect.visible = !0
	}, e.prototype.hideEffect = function() {
		this.ceffect && (this.ceffect.visible = !1, this.ceffect.stop())
	}, e.prototype.checkShowRedImg = function() {
		App.data.getVipCenter().getCurrentVip() >= this._currentIndex ? App.data.getVipCenter().getptLibaoState(this._currentIndex) >
			0 ? (this._view.red_vip.visible = !1, this.hideEffect()) : 1 == App.data.getVipCenter().showVipRedDot() ? (this._view
				.red_vip.visible = !0, this.showEffect()) : (this._view.red_vip.visible = !1, this.hideEffect()) : (this._view.red_vip
				.visible = !1, this.hideEffect()), this._view.leftred.visible = !1, this._view.rightred.visible = !1;
		for (var t = 1; t < App.data.getVipCenter().getMaxVipLevel(); t++) t < this._currentIndex ? App.global.characterData
			.vipLevel >= t && App.data.getVipCenter().getptLibaoState(t) < 1 && (this._view.leftred.visible = !0) : t > this._currentIndex &&
			App.global.characterData.vipLevel >= t && App.data.getVipCenter().getptLibaoState(t) < 1 && (this._view.rightred.visible = !
				0)
	}, e.prototype.preHandler = function(t) {
		this._currentIndex - 1 < 0 || (this._currentIndex = 1 == this._currentIndex ? this._currentIndex : this._currentIndex -
			1, this.showOtherVipInfo(this._currentIndex), this.checkShowRedImg())
	}, e.prototype.nextHandler = function(t) {
		this._currentIndex >= App.data.getVipCenter().getMaxVipLevel() || (this._currentIndex = this._currentIndex == App.data
			.getVipCenter().getMaxVipLevel() ? this._currentIndex : this._currentIndex + 1, this.showOtherVipInfo(this._currentIndex),
			this.checkShowRedImg())
	}, e.prototype.showOtherVipInfo = function(t) {
		this.refreshView(t), this.refreshLibao(t)
	}, e.prototype._infoHandler = function(t) {
		var e = App.data.getVipCenter().getVipExp();
		this._view.imgCurVip.source = "vip_vippos" + t + "_png";
		var i, n =
			"<font color='#b19c79'>再充值</font><font color='#eaf44b'>{0}元宝</font><font color='#b19c79'>成为</font><font color='#fff82e'>VIP{1}</font>";
		if (t < App.data.getVipCenter().getMaxVipLevel() ? (i = App.config.q_vipContainer.getDataBean(t + 1), this._view.lalZcz
				.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(n, i.q_vip_value - e, i.q_vip_level))) : (i = App.config.q_vipContainer
				.getDataBean(t), n = "已达最高VIP等级", this._view.lalZcz.text = n), this.refreshExp(e, t), t >= App.data.getVipCenter()
			.getMaxVipLevel() ? t = App.data.getVipCenter().getMaxVipLevel() : t++, App.global.characterData.vipLevel > 0)
			for (var a = App.global.characterData.vipLevel, o = 1; a >= o; o++)
				if (1 != App.data.getVipCenter().getptLibaoState(o)) {
					t = o;
					break
				} 0 != this.viplevel && (t = this.viplevel, this.viplevel = 0), this._currentIndex = t, this.refreshView(t), this
			.refreshLibao(t), this.checkShowRedImg()
	}, e.prototype._levelChange = function(t) {
		this._infoHandler(t)
	}, e.prototype._libaoState = function(t) {
		if (App.global.characterData.vipLevel > 0)
			for (var e = App.global.characterData.vipLevel, i = 1; e >= i; i++)
				if (1 != App.data.getVipCenter().getptLibaoState(i)) {
					t = i;
					break
				} this._currentIndex = t, this.refreshView(t), this.refreshLibao(t), this.checkShowRedImg(), t == this._currentIndex &&
			this.refreshLibao(t)
	}, e.prototype.lingquHandler = function(t) {
		var e = 0 == this._currentIndex ? this._currentIndex + 1 : this._currentIndex,
			i = App.config.q_vipContainer.getDataBean(e);
		return i.q_vip_level > App.data.getVipCenter().getCurrentVip() ? void Alert.show("vip等级不足 前往充值", "提示", "确定|取消",
			this.okFunc, this) : void VipCommandSender.requestC2S_LingquVipLibao(this._currentIndex)
	}, e.prototype.okFunc = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e
}(BasePanel);
__reflect(VipPanel.prototype, "VipPanel");
var LiBaoPanel = function(t) {
	function e() {
		return t.call(this) || this
	}
	return __extends(e, t), e.prototype.init = function() {
		t.prototype.init.call(this), this.showTab("终生限购,本月特惠,本周特惠"), this.registerSubPanel(0, ZhongshengTehuiView, "", 176,
			!1, !1), this.registerSubPanel(1, MeiyueTehuiView, "", 175, !1, !1), this.registerSubPanel(2, MeizhouTehuiView,
			"", 174, !1, !1)
	}, e.prototype.show = function(e) {
		t.prototype.show.call(this, e), this.window._moneyBar.visible = !1, this.window.close_btn.visible = !1
	}, e
}(TabPanel);
__reflect(LiBaoPanel.prototype, "LiBaoPanel");
var LibaoRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = -1, e.skinName = "VipLibaoRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		this.curData = null
	}, e.prototype.itemSelect = function(t) {
		void 0 === t && (t = null), this.selectView.visible = t.id == this.curData.id, MeizhouTehuiView.selectIndex = t.id
	}, e.prototype.onAddStage = function(i) {
		t.prototype.onAddStage.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler,
			this, this), this._dispatcher.addEventListener(e.ITEMSELECT, this.itemSelect, this)
	}, e.prototype.clickHandler = function(t) {
		App.dispatcher.dispatchEvent(e.ITEMSELECT, this.curData)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.curData = this.data, this.selectView.visible = !1, this.curData.id == MeizhouTehuiView.selectIndex && (this.selectView
				.visible = !0), this.icon.source = "vip_libao_libao" + this.curData.id + "_png", this.icon.x = 8, this.libao.visible =
			this.viplevel.visible = !1
	}, e.prototype.getIndex = function() {
		return this.index
	}, e.ITEMSELECT = "LibaoRender.ItemSELECT", e
}(ItemRenderer);
__reflect(LibaoRender.prototype, "LibaoRender");
var LibaoView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "LibaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("bj", "viplibao",
				".jpg"))), this._vscroller = new VScrollPanel(100, 100, LibaoRender, 1, void 0, 2), this._vscroller.move(0, 0,
				this.itemGroup), this._gridShowContainer1 = new LayoutContainer(ItemGrid, 100, 100, 6, new FunctionVO(this.showItemRender,
				this)), this._gridShowContainer1.x = 10, this._gridShowContainer1.y = 547, this.addChild(this._gridShowContainer1),
			this.libaotitle.source = "vip_libao_xg_c02_png"
	}, e.prototype.showItemRender = function(t, e) {
		t.setData(e)
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt0.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt0.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(39)
	}, e.prototype.show = function(i) {
		void 0 === i && (i = null), t.prototype.show.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.buyClick, this, this.buyBtn), this._dispatcher.addEventListener(LibaoRender.ITEMSELECT, this.refreshLibaoView,
				this), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.closePanel, this, this.btnClose), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.refreView, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.preHandler, this, this.btnPre), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.nextHandler,
				this, this.btnNext), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.goBtn, this, this.btn_yuanbao0),
			this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI);
		var n = App.data.activityCenter.getList(760, !1, !0);
		n = n.filter(function(t) {
				return 0 == t.bean.q_isdelete
			}), this._vscroller.dataProvider = n, n.length > 5 ? this._vscroller.scrollPolicyH = eui.ScrollPolicy.ON : this._vscroller
			.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller.width = 100 * (n.length > 5 ? 5 : n.length), App.timer.doFrameOnce(
				this, 1, this.callLater), e.ZHONGSHENGREDPOINT = !1, App.global.redPoint.redPointDispatchEvent(174)
	}, e.prototype.goBtn = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.preHandler = function(t) {
		this._vscroller.selectClick(0, 5, !1)
	}, e.prototype.nextHandler = function(t) {
		this._vscroller.selectClick(1, 5, !1)
	}, e.prototype.refreView = function() {
		this.refreshLibaoView(App.data.activityCenter.getData(MeizhouTehuiView.selectIndex))
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t.itemSelect(t.data), this.refreshLibaoView(t.data)
	}, e.prototype.buyClick = function(t) {
		this.ad && (1 == this.ad.playerStates ? ActivityCommandSender.sendC2S_JoinActivityMessage(this.ad.id) : 0 == this.ad
			.playerStates || App.platform.pay(this.shopBean.q_id + "", this.shopBean.q_shop_name, "特惠礼包", this.shopBean.q_rmb_num)
		)
	}, e.prototype.refreshLibaoView = function(t) {
		if (void 0 === t && (t = null), null != t) {
			this.ad = t, MeizhouTehuiView.selectIndex = t.id;
			var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
			if (this._gridShowContainer1.dataProvider = e, e.length > 4 ? this._gridShowContainer1.x = 10 : this._gridShowContainer1
				.x = 110, null == this.showimg ? this.showimg = UIMaker.getCImage(this.vipshowviewgroup, this, ResPathUtil.getImgPath(
					"show" + t.id, "viplibao", ".png")) : this.showimg.url = ResPathUtil.getImgPath("show" + t.id, "viplibao",
					".png"), null == this.itemimg ? this.itemimg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("item" + t.id,
					"viplibao", ".png"), 60, 110) : this.itemimg.url = ResPathUtil.getImgPath("item" + t.id, "viplibao", ".png"),
				this.shopBean = App.config.q_recharge_shopContainer.getDataBean(t.bean.q_desc), 1 == t.playerStates ? (this.buyBtn
					.label = "领取", this.buyBtn.filters = [], this.buyBtn.touchEnabled = !0) : 0 == t.playerStates ? (this.buyBtn.label =
					"已购买", this.buyBtn.filters = FilterUtil.FILTER_GRAY, this.buyBtn.touchEnabled = !1) : (this.buyBtn.label = this.shopBean
					.q_rmb_num + "元", this.buyBtn.filters = [], this.buyBtn.touchEnabled = !0), t.extendMap) {
				var i = StringUtil.JsonParse(t.extendMap);
				this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, i.rcount))
			} else this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, t.receivedTimes))
		}
	}, e.prototype.hide = function() {
		this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.showimg && (this.showimg.dispose(), this.showimg =
			null), this.itemimg && (this.itemimg.dispose(), this.itemimg = null), this._vscroller && (this._vscroller.dispose(),
			this._vscroller = null), t.prototype.dispose.call(this)
	}, e.selectIndex = -2, e.ZHONGSHENGREDPOINT = !0, e
}(ViewBase);
__reflect(LibaoView.prototype, "LibaoView");
var MeiyueTehuiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "LibaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("bj", "viplibao",
				".jpg"))), this._vscroller = new VScrollPanel(100, 100, LibaoRender, 1, void 0, 2), this._vscroller.move(0, 0,
				this.itemGroup), this._gridShowContainer1 = new LayoutContainer(ItemGrid, 100, 100, 6, new FunctionVO(this.showItemRender,
				this)), this._gridShowContainer1.x = 10, this._gridShowContainer1.y = 547, this.addChild(this._gridShowContainer1),
			this.libaotitle.source = "vip_libao_xg_c01_png"
	}, e.prototype.showItemRender = function(t, e) {
		t.setData(e)
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt0.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt0.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(39)
	}, e.prototype.show = function(i) {
		void 0 === i && (i = null), t.prototype.show.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.buyClick, this, this.buyBtn), this._dispatcher.addEventListener(LibaoRender.ITEMSELECT, this.refreshLibaoView,
			this), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.closePanel, this, this.btnClose), this._dispatcher.addEventListener(
			ActivityEvent.REFRESH_DETAIL, this.refreView, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.goBtn, this, this.btn_yuanbao0), this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI);
		var n = App.data.activityCenter.getList(761, !1, !0);
		n = n.filter(function(t) {
				return 0 == t.bean.q_isdelete
			}), this._vscroller.dataProvider = n, n.length > 5 ? this._vscroller.scrollPolicyH = eui.ScrollPolicy.ON : this._vscroller
			.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller.width = 100 * (n.length > 5 ? 5 : n.length), App.timer.doFrameOnce(
				this, 1, this.callLater), e.MEIYUEREDPOINT = !1, App.global.redPoint.redPointDispatchEvent(175)
	}, e.prototype.goBtn = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.refreView = function() {
		this.refreshLibaoView(App.data.activityCenter.getData(MeizhouTehuiView.selectIndex))
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t.itemSelect(t.data), this.refreshLibaoView(t.data)
	}, e.prototype.buyClick = function(t) {
		App.platform.pay(this.shopBean.q_id + "", this.shopBean.q_shop_name, "特惠礼包", this.shopBean.q_rmb_num)
	}, e.prototype.refreshLibaoView = function(t) {
		if (void 0 === t && (t = null), null != t) {
			MeizhouTehuiView.selectIndex = t.id;
			var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
			if (this._gridShowContainer1.dataProvider = e, e.length > 4 ? this._gridShowContainer1.x = 10 : this._gridShowContainer1
				.x = 110, null == this.showimg ? this.showimg = UIMaker.getCImage(this.vipshowviewgroup, this, ResPathUtil.getImgPath(
					"show" + t.id, "viplibao", ".png")) : this.showimg.url = ResPathUtil.getImgPath("show" + t.id, "viplibao",
					".png"), null == this.itemimg ? this.itemimg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("item" + t.id,
					"viplibao", ".png"), 60, 110) : this.itemimg.url = ResPathUtil.getImgPath("item" + t.id, "viplibao", ".png"),
				this.shopBean = App.config.q_recharge_shopContainer.getDataBean(t.bean.q_desc), 1 == t.playerStates ? (this.buyBtn
					.label = this.shopBean.q_rmb_num + "元", this.buyBtn.filters = [], this.buyBtn.touchEnabled = !0) : (this.buyBtn.label =
					"已购买", this.buyBtn.filters = FilterUtil.FILTER_GRAY, this.buyBtn.touchEnabled = !1), t.extendMap) {
				var i = StringUtil.JsonParse(t.extendMap);
				this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, i.rcount))
			} else this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, t.receivedTimes))
		}
	}, e.prototype.hide = function() {
		this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.showimg && (this.showimg.dispose(), this.showimg =
			null), this.itemimg && (this.itemimg.dispose(), this.itemimg = null), this._vscroller && (this._vscroller.dispose(),
			this._vscroller = null), t.prototype.dispose.call(this)
	}, e.MEIYUEREDPOINT = !0, e
}(ViewBase);
__reflect(MeiyueTehuiView.prototype, "MeiyueTehuiView");
var MeizhouTehuiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "LibaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("bj", "viplibao",
				".jpg"))), this._vscroller = new VScrollPanel(100, 100, LibaoRender, 1, void 0, 2), this._vscroller.move(0, 0,
				this.itemGroup), this._gridShowContainer1 = new LayoutContainer(ItemGrid, 100, 100, 6, new FunctionVO(this.showItemRender,
				this)), this._gridShowContainer1.x = 10, this._gridShowContainer1.y = 547, this.addChild(this._gridShowContainer1),
			this.libaotitle.source = "vip_libao_xg_c02_png"
	}, e.prototype.showItemRender = function(t, e) {
		t.setData(e)
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt0.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt0.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(39)
	}, e.prototype.show = function(i) {
		void 0 === i && (i = null), t.prototype.show.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.buyClick, this, this.buyBtn), this._dispatcher.addEventListener(LibaoRender.ITEMSELECT, this.refreshLibaoView,
				this), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this), this._dispatcher.addEventListener(
				egret.TouchEvent.TOUCH_TAP, this.closePanel, this, this.btnClose), this._dispatcher.addEventListener(
				ActivityEvent.REFRESH_DETAIL, this.refreView, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
				this.preHandler, this, this.btnPre), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.nextHandler,
				this, this.btnNext), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.goBtn, this, this.btn_yuanbao0),
			this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI);
		var n = App.data.activityCenter.getList(762, !1, !0);
		n = n.filter(function(t) {
				return 0 == t.bean.q_isdelete
			}), this._vscroller.dataProvider = n, n.length > 5 ? this._vscroller.scrollPolicyH = eui.ScrollPolicy.ON : this._vscroller
			.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller.width = 100 * (n.length > 5 ? 5 : n.length), App.timer.doFrameOnce(
				this, 1, this.callLater), e.MEIZHOUREDPOINT = !1, App.global.redPoint.redPointDispatchEvent(174)
	}, e.prototype.goBtn = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.preHandler = function(t) {
		this._vscroller.selectClick(0, 5, !1)
	}, e.prototype.nextHandler = function(t) {
		this._vscroller.selectClick(1, 5, !1)
	}, e.prototype.refreView = function() {
		this.refreshLibaoView(App.data.activityCenter.getData(e.selectIndex))
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t.itemSelect(t.data), this.refreshLibaoView(t.data)
	}, e.prototype.buyClick = function(t) {
		App.platform.pay(this.shopBean.q_id + "", this.shopBean.q_shop_name, "特惠礼包", this.shopBean.q_rmb_num)
	}, e.prototype.refreshLibaoView = function(t) {
		if (void 0 === t && (t = null), null != t) {
			e.selectIndex = t.id;
			var i = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
			if (this._gridShowContainer1.dataProvider = i, i.length > 4 ? this._gridShowContainer1.x = 10 : this._gridShowContainer1
				.x = 110, null == this.showimg ? this.showimg = UIMaker.getCImage(this.vipshowviewgroup, this, ResPathUtil.getImgPath(
					"show" + t.id, "viplibao", ".png")) : this.showimg.url = ResPathUtil.getImgPath("show" + t.id, "viplibao",
					".png"), null == this.itemimg ? this.itemimg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("item" + t.id,
					"viplibao", ".png"), 60, 110) : this.itemimg.url = ResPathUtil.getImgPath("item" + t.id, "viplibao", ".png"),
				this.shopBean = App.config.q_recharge_shopContainer.getDataBean(t.bean.q_desc), 1 == t.playerStates ? (this.buyBtn
					.label = this.shopBean.q_rmb_num + "元", this.buyBtn.filters = [], this.buyBtn.touchEnabled = !0) : (this.buyBtn.label =
					"已购买", this.buyBtn.filters = FilterUtil.FILTER_GRAY, this.buyBtn.touchEnabled = !1), t.extendMap) {
				var n = StringUtil.JsonParse(t.extendMap);
				this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, n.rcount))
			} else this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, t.receivedTimes))
		}
	}, e.prototype.hide = function() {
		this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.showimg && (this.showimg.dispose(), this.showimg =
			null), this.itemimg && (this.itemimg.dispose(), this.itemimg = null), this._vscroller && (this._vscroller.dispose(),
			this._vscroller = null), t.prototype.dispose.call(this)
	}, e.selectIndex = -2, e.MEIZHOUREDPOINT = !0, e
}(ViewBase);
__reflect(MeizhouTehuiView.prototype, "MeizhouTehuiView");
var VipLibaoPanel = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e._currentIndex = 1, e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		this._view = UIMaker.createViewBase("VipLibaoSkin"), this._currentIndex = 1, this._view.red_vip.visible = !1, this._vscroller =
			new VScrollPanel(490, 120, VipLibaoRender, 1, void 0, 2), this._vscroller.move(0, 0, this._view.itemGroup), this._gridShowContainer1 =
			new LayoutContainer(ItemGrid, 100, 100, 4, new FunctionVO(this.showItemRender, this)), this._gridShowContainer1.x =
			110, this._gridShowContainer1.y = 547, this.addChild(this._view), this.addChild(this._gridShowContainer1), null ==
			this.bgimg && (this.bgimg = UIMaker.getCImage(this._view.bggroup, this, ResPathUtil.getImgPath("bj", "viplibao",
				".jpg")))
	}, e.prototype.show = function(i) {
		void 0 === i && (i = null), t.prototype.show.call(this, i), this.addEvent(), e.selectIndex = -2, VipCommandSender.requestC2S_VipBuyLibaoStatus(),
			this._vscroller.dataProvider = App.data.getVipCenter().getExceptZero(), this._vscroller.selectedIndex = 0, this.updateMyMoney(
				EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI), App.timer.doFrameOnce(this, 1, this.callLater), App.global
			.redPoint.redPointDispatchEvent(127)
	}, e.prototype.callLater = function() {
		var t = App.config.q_vipContainer.getDataBean(App.data.getVipCenter().getLibaocurrID());
		if (t.q_vip_level > 5) {
			var e = this._vscroller.list.getChildAt(t.q_vip_level - 6);
			e.itemSelect(t.q_vip_level)
		} else {
			var e = this._vscroller.list.getChildAt(0 == t.q_vip_level ? 0 : t.q_vip_level - 1);
			e.itemSelect(t.q_vip_level)
		}
	}, e.prototype.addEvent = function() {
		this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this), this._dispatcher.addEventListener(
				VipEvent.VIP_BUYLIBAO_INFO_REFRESH, this.libaoinfo, this), this._dispatcher.addEventListener(VipEvent.VIP_BUYLIBAO_CHANGE,
				this.libaochange, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.preHandler, this,
				this._view.btnPre), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.nextHandler, this, this._view
				.btnNext), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.buyHandler, this, this._view.buyBtn),
			this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.goBtn, this, this._view.btn_yuanbao), this._dispatcher
			.addEventListener(VipLibaoRender.ITEM_SELECT, this.refreshLibaoView, this), this._dispatcher.addEventListener(
				EventType.SHOW_REDPOINT, this.redShow, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.closePanel,
				this, this._view.btnClose)
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(1021)
	}, e.prototype.goBtn = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.redShow = function(t) {
		128 == t && this.checkShowRedImg()
	}, e.prototype.checkShowRedImg = function() {
		App.data.getVipCenter().getCurrentVip() >= this._currentIndex ? 1 == App.data.getVipCenter().getLibaoState(this._currentIndex) ||
			0 == this._currentIndex ? this._view.red_vip.visible = !1 : this._view.red_vip.visible = !0 : this._view.red_vip.visible = !
			1
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this._view.jinbi_txt.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this._view.yuanbao_txt.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.refreshLibaoView = function(t) {
		void 0 === t && (t = null);
		var e;
		e = null == t ? 1 : t, this._currentIndex = e, e = 0 == e ? e + 1 : e;
		var i = App.config.q_vipContainer.getDataBean(e);
		if (i && i.q_libao_buy.length > 0) {
			var n, a, o = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_libao_buy)),
				r = o.length,
				s = [];
			for (n = 0; r > n; n++) a = o[n], a && s.push(a);
			this._gridShowContainer1.dataProvider = s
		}
		this.libaoinfobyClick(i.q_vip_level), null == this.showimg ? this.showimg = UIMaker.getCImage(this._view.vipshowviewgroup,
				this, ResPathUtil.getImgPath("show" + i.q_vip_level, "viplibao", ".png")) : this.showimg.url = ResPathUtil.getImgPath(
				"show" + i.q_vip_level, "viplibao", ".png"), this._view.vipimgmiaoshu.source = "vip_libao_title5_" + i.q_vip_level +
			"_png", this._view.vipimgtitle.source = "vip_libao_title3_" + i.q_vip_level + "_png", 10 == i.q_vip_level ? (this._view
				.vipnumber1.visible = !0, this._view.vipnumber0.source = "vip_libao_title4_1_png", this.showimg.x = -50) : (this._view
				.vipnumber1.visible = !1, this._view.vipnumber0.source = "vip_libao_title4_" + i.q_vip_level + "_png", this.showimg
				.x = 0)
	}, e.prototype.libaoinfobyClick = function(t) {
		t = 0 == t ? t + 1 : t;
		var e = App.data.getVipCenter().getLibaoState(t);
		if (1 == e) this._view.goldTF.text = "已购买", this._view.buyBtn.enabled = !1, this._view.buyBtn.filters = FilterUtil.FILTER_GRAY,
			this._view.red_vip.visible = !1;
		else {
			var i = App.config.q_vipContainer.getDataBean(t);
			this._view.goldTF.text = i.q_libao_jiage + "元宝", this._view.buyBtn.enabled = !0, this._view.buyBtn.filters = [],
				this.checkShowRedImg()
		}
	}, e.prototype.okFunc = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.buyHandler = function(t) {
		var e = 0 == this._currentIndex ? this._currentIndex + 1 : this._currentIndex,
			i = App.config.q_vipContainer.getDataBean(e);
		return i.q_vip_level > App.data.getVipCenter().getCurrentVip() ? void Alert.show("vip等级不足 前往充值", "提示", "确定|取消",
				this.okFunc, this) : App.data.currencyDataCenter.isMoneyEnough(i.q_libao_jiage, EnumMoney.YUAN_BAO, !1) ? void VipCommandSender
			.requestC2S_BuyVipLibao(this._currentIndex) : void Alert.show("元宝不足 前往充值", "提示", "确定|取消", this.okFunc, this)
	}, e.prototype.preHandler = function(t) {
		return this._currentIndex - 5 < 1 ? (this._currentIndex = 1, void this._vscroller.selectClick(this._currentIndex -
			1, 5, !1)) : (this._currentIndex -= 5, void this._vscroller.selectClick(0, 5, !1))
	}, e.prototype.nextHandler = function(t) {
		this._currentIndex + 1 > App.data.getVipCenter().getMaxVipLevel() || (this._currentIndex + 5 > 6 ? this._currentIndex =
			6 : this._currentIndex += 5, this._vscroller.selectClick(5, 5))
	}, e.prototype.libaoinfo = function() {
		this.refreshLibaoView(App.data.getVipCenter().getLibaocurrID());
		var t = App.data.getVipCenter().getLibaoState(App.data.getVipCenter().getLibaocurrID());
		if (1 == t) this._view.goldTF.text = "已购买", this._view.buyBtn.enabled = !1, this._view.buyBtn.filters = FilterUtil.FILTER_GRAY,
			this._view.red_vip.visible = !1;
		else {
			var e = App.config.q_vipContainer.getDataBean(this._currentIndex);
			this._view.goldTF.text = e.q_libao_jiage + "元宝", this._view.buyBtn.enabled = !0, this._view.buyBtn.filters = [],
				this.checkShowRedImg()
		}
		this.refreshViewAndScroll()
	}, e.prototype.libaochange = function() {
		var t = App.data.getVipCenter().getLibaoState(this._currentIndex);
		if (1 == t) this._view.goldTF.text = "已购买", this._view.buyBtn.enabled = !1, this._view.buyBtn.filters = FilterUtil.FILTER_GRAY,
			this._view.red_vip.visible = !1;
		else {
			var e = App.config.q_vipContainer.getDataBean(this._currentIndex);
			this._view.goldTF.text = e.q_libao_jiage + "元宝", this._view.buyBtn.enabled = !0, this._view.buyBtn.filters = []
		}
		this.callLater(), this.libaoinfo(), App.dispatcher.dispatchEvent(VipLibaoRender.ITEM_SELECT, this._currentIndex)
	}, e.prototype.refreshViewAndScroll = function() {
		this.libaoinfobyClick(App.data.getVipCenter().getLibaocurrID()), this._currentIndex > App.data.getVipCenter().getCurrentVip() ?
			0 != App.data.getVipCenter().getCurrentVip() ? this._vscroller.selectClick(App.data.getVipCenter().getLibaocurrID() -
				1, 5, !1) : this._vscroller.selectClick(App.data.getVipCenter().getLibaocurrID(), 5, !1) : App.data.getVipCenter()
			.getLibaocurrID() > 5 ? this._vscroller.selectClick(5, 5) : this._vscroller.selectClick(0, 5)
	}, e.prototype.showLibaoItem = function() {
		var t, e, i = App.config.q_vipContainer.getDataBean(this._currentIndex),
			n = StringUtil.JsonParse(StringUtil.replacJosnStr(i.q_libao_buy)),
			a = n.length,
			o = [];
		for (t = 0; a > t; t++) e = n[t], e && o.push(e);
		this._gridShowContainer1.dataProvider = o
	}, e.prototype.showItemRender = function(t, e) {
		var i = new ItemData;
		i.itemId = e.id, i.count = e.num, t.setData(i)
	}, e.prototype.itemRender = function(t, e) {}, e.prototype.hide = function() {
		this._vscroller && this._vscroller.removeAll(), App.global.redPoint.redPointDispatchEvent(127), t.prototype.hide.call(
			this)
	}, e.prototype.dispose = function() {
		t.prototype.dispose.call(this), this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.showimg && (this.showimg
				.dispose(), this.showimg = null), this._vscroller.dispose(), this._vscroller = null, this._gridShowContainer1 &&
			this._gridShowContainer1.clear(), this._gridShowContainer1 = void 0
	}, e.selectIndex = -2, e
}(ViewBase);
__reflect(VipLibaoPanel.prototype, "VipLibaoPanel");
var VipLibaoRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.index = -1, e.skinName = "VipLibaoRenderSkin", e
	}
	return __extends(e, t), e.prototype.createChildren = function() {}, e.prototype.clear = function() {
		this.curData = null
	}, e.prototype.itemSelect = function(t) {
		this.curData.q_vip_level == t ? this.selectView.visible = !0 : this.selectView.visible = !1, VipLibaoPanel.selectIndex =
			t
	}, e.prototype.onAddStage = function(i) {
		t.prototype.onAddStage.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.clickHandler,
			this, this), this._dispatcher.addEventListener(e.ITEM_SELECT, this.itemSelect, this)
	}, e.prototype.clickHandler = function(t) {
		App.dispatcher.dispatchEvent(e.ITEM_SELECT, this.index)
	}, e.prototype.onRemoveStage = function(e) {
		t.prototype.onRemoveStage.call(this, e)
	}, e.prototype.dataChanged = function() {
		this.curData = this.data;
		var t = StringUtil.JsonParse(StringUtil.replacJosnStr(this.curData.q_libao_buy)),
			e = t[0];
		this.selectView.visible = !1, this.curData.q_vip_level == VipLibaoPanel.selectIndex && (this.selectView.visible = !
			0);
		GameUtil.getItemConfigData(e.id);
		this.icon.source = "vip_libao_V_gift" + this.curData.q_vip_level + "_png", this.viplevel.source = "vip_libao_V" +
			this.curData.q_vip_level + "_png", this.index = this.curData.q_vip_level
	}, e.prototype.getIndex = function() {
		return this.index
	}, e.ITEM_SELECT = "item_select", e
}(ItemRenderer);
__reflect(VipLibaoRender.prototype, "VipLibaoRender");
var ZhongshengTehuiView = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "LibaoViewSkin", e.init(), e
	}
	return __extends(e, t), e.prototype.init = function() {
		null == this.bgimg && (this.bgimg = UIMaker.getCImage(this.bggroup, this, ResPathUtil.getImgPath("bj", "viplibao",
				".jpg"))), this._vscroller = new VScrollPanel(100, 100, LibaoRender, 1, void 0, 2), this._vscroller.move(0, 0,
				this.itemGroup), this._gridShowContainer1 = new LayoutContainer(ItemGrid, 100, 100, 6, new FunctionVO(this.showItemRender,
				this)), this._gridShowContainer1.x = 10, this._gridShowContainer1.y = 547, this.addChild(this._gridShowContainer1),
			this.libaotitle.source = "vip_libao_xg_c03_png"
	}, e.prototype.showItemRender = function(t, e) {
		t.setData(e)
	}, e.prototype.updateMyMoney = function(t, e) {
		if (void 0 === e && (e = 0), t == EnumMoney.JIN_BI || t == EnumMoney.BIND_JIN_BI) {
			var i = App.data.currencyDataCenter.getMoney(EnumMoney.JIN_BI);
			this.jinbi_txt0.text = StringUtil.formatNum(i, !0, !1, !0)
		} else if (t == EnumMoney.YUAN_BAO || t == EnumMoney.BIND_YUAN_BAO) {
			var n = App.data.currencyDataCenter.getMoney(EnumMoney.YUAN_BAO);
			this.yuanbao_txt0.text = StringUtil.formatNum(n, !0, !1, !0)
		}
	}, e.prototype.closePanel = function() {
		App.panel.removePanel(39)
	}, e.prototype.show = function(i) {
		void 0 === i && (i = null), t.prototype.show.call(this, i), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.buyClick, this, this.buyBtn), this._dispatcher.addEventListener(LibaoRender.ITEMSELECT, this.refreshLibaoView,
			this), this._dispatcher.addEventListener(MoneyEvent.CHANGE, this.updateMyMoney, this), this._dispatcher.addEventListener(
			egret.TouchEvent.TOUCH_TAP, this.closePanel, this, this.btnClose), this._dispatcher.addEventListener(
			ActivityEvent.REFRESH_DETAIL, this.refreView, this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP,
			this.goBtn, this, this.btn_yuanbao0), this.updateMyMoney(EnumMoney.YUAN_BAO), this.updateMyMoney(EnumMoney.JIN_BI);
		var n = App.data.activityCenter.getList(760, !1, !0);
		n = n.filter(function(t) {
				return 0 == t.bean.q_isdelete
			}), this._vscroller.dataProvider = n, n.length > 5 ? this._vscroller.scrollPolicyH = eui.ScrollPolicy.ON : this._vscroller
			.scrollPolicyH = eui.ScrollPolicy.OFF, this._vscroller.width = 100 * (n.length > 5 ? 5 : n.length), App.timer.doFrameOnce(
				this, 1, this.callLater), e.ZHONGSHENGREDPOINT = !1, App.global.redPoint.redPointDispatchEvent(176)
	}, e.prototype.goBtn = function() {
		PanelOpenManager.openChargePanel(0, !1)
	}, e.prototype.refreView = function() {
		this.refreshLibaoView(App.data.activityCenter.getData(MeizhouTehuiView.selectIndex))
	}, e.prototype.callLater = function() {
		var t = this._vscroller.list.getChildAt(0);
		t.itemSelect(t.data), this.refreshLibaoView(t.data)
	}, e.prototype.buyClick = function(t) {
		App.platform.pay(this.shopBean.q_id + "", this.shopBean.q_shop_name, "特惠礼包", this.shopBean.q_rmb_num)
	}, e.prototype.refreshLibaoView = function(t) {
		if (void 0 === t && (t = null), this.buyBtn.touchEnabled = !1, null != t) {
			MeizhouTehuiView.selectIndex = t.id;
			var e = ItemUtil.getRewardDataList(t.bean.q_show_rewards);
			if (this._gridShowContainer1.dataProvider = e, e.length > 4 ? this._gridShowContainer1.x = 10 : this._gridShowContainer1
				.x = 110, null == this.showimg ? this.showimg = UIMaker.getCImage(this.vipshowviewgroup, this, ResPathUtil.getImgPath(
					"show" + t.id, "viplibao", ".png")) : this.showimg.url = ResPathUtil.getImgPath("show" + t.id, "viplibao",
					".png"), null == this.itemimg ? this.itemimg = UIMaker.getCImage(this, this, ResPathUtil.getImgPath("item" + t.id,
					"viplibao", ".png"), 60, 110) : this.itemimg.url = ResPathUtil.getImgPath("item" + t.id, "viplibao", ".png"),
				this.shopBean = App.config.q_recharge_shopContainer.getDataBean(t.bean.q_desc), 1 == t.playerStates ? (this.buyBtn
					.label = this.shopBean.q_rmb_num + "元", this.buyBtn.filters = [], this.buyBtn.touchEnabled = !0) : (this.buyBtn.label =
					"已购买", this.buyBtn.filters = FilterUtil.FILTER_GRAY, this.buyBtn.touchEnabled = !1), t.extendMap) {
				var i = StringUtil.JsonParse(t.extendMap);
				this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, i.rcount))
			} else this.libaodesc.textFlow = HtmlUtil.getHtmlStr(StringUtil.substitute(t.bean.q_info, t.receivedTimes))
		}
	}, e.prototype.hide = function() {
		this._vscroller && this._vscroller.removeAll(), t.prototype.hide.call(this)
	}, e.prototype.dispose = function() {
		this.bgimg && (this.bgimg.dispose(), this.bgimg = null), this.showimg && (this.showimg.dispose(), this.showimg =
			null), this.itemimg && (this.itemimg.dispose(), this.itemimg = null), this._vscroller && (this._vscroller.dispose(),
			this._vscroller = null), t.prototype.dispose.call(this)
	}, e.ZHONGSHENGREDPOINT = !0, e
}(ViewBase);
__reflect(ZhongshengTehuiView.prototype, "ZhongshengTehuiView");
var XSRWItemRender = function(t) {
	function e() {
		var e = t.call(this) || this;
		return e.skinName = "XSRWItemRenderSkin", e
	}
	return __extends(e, t), e.prototype.onAddStage = function(e) {
		t.prototype.onAddStage.call(this), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnHandler,
			this, this.btn_lq), this._dispatcher.addEventListener(egret.TouchEvent.TOUCH_TAP, this.btnHandler, this, this.getthis)
	}, e.prototype.btnHandler = function(t) {
		if ("前往" == this.btn_lq.label) {
			App.panel.removePanel(45);
			var e = this.data,
				i = App.config.q_LimitTaskContainer.getDataBean(e.taskId);
			App.data.taskCenter.tryExecuteTask(i.q_panel_ID)
		} else {
			var e = this.data;
			XSRWCommandSender.sendXSRWaward(e.taskId)
		}
	}, e.prototype.dataChanged = function() {
		var t = this.data,
			e = App.config.q_LimitTaskContainer.getDataBean(t.taskId),
			i = StringUtil.JsonParse(e.q_finish_condition_ids)[0];
		this.txt_name.text = App.data.taskCenter.getTaskDesc(e.q_task_des, i, t.finishCount), this.txt_jie.text = e.q_group_id +
			"阶", this.txt_pro.text = App.data.taskCenter.getTaskDesc("{0}/{1}", i, t.finishCount);
		var n = Number(this.txt_pro.text.slice(0, this.txt_pro.text.indexOf("/"))),
			a = Number(this.txt_pro.text.slice(this.txt_pro.text.indexOf("/") + 1)),
			o = n >= a ? 3533365 : 15938355;
		this.red_img.visible = a > n ? !1 : !0, this.btn_lq.label = a > n ? "前往" : "领取", this.btn_lq.visible = a > n ? !1 :
			!0, this.getthis.textFlow = HtmlUtil.getHtmlStr(HtmlUtil.formatUnderline("前往获取")), this.getthis.visible = a > n,
			this.img_tb.visible = !1, t.state && (this.img_tb.visible = !0, this.getthis.visible = this.red_img.visible = this
				.btn_lq.visible = !1), this.txt_pro.textColor = o, this.txt_pro.text = "(" + this.txt_pro.text + ")";
		var r = StringUtil.JsonParse(e.q_tesk_rewards);
		this.icon_img.source = ResPathUtil.getIcon(GameUtil.getItemConfigData(r[0].id).q_tiny_icon, EnumImageType.ITEM_80),
			this.icon_img.touchEnabled = !0;
		var s = App.tip.getTipData(this.icon_img);
		s ? s.data = r[0].id : App.tip.addTip(this.icon_img, new TipData(4, r[0].id))
	}, e.prototype.clear = function() {
		this.icon_img && (App.tip.removeTip(this.icon_img), this.icon_img.dispose()), t.prototype.clear.call(this)
	}, e
}(ItemRenderer);
__reflect(XSRWItemRender.prototype, "XSRWItemRender");
var GameVersionController = function() {
	function t() {}
	return t.initMessageDict = function() {
		var t = this;
		t.messageDict = {}, t.registerMessgae("gameEui.json", "resource/gameEui.json"), t.registerMessgae(
			"default.res.json", "resource/default.res.json"), t.registerMessgae("pro/module/sheet/logo.png",
			"localres/logo.png"), t.registerMessgae("pro/module/sheet/logo.json", "localres/logo.json")
	}, t.getMessage = function(t) {
		this.messageDict || this.initMessageDict();
		var e = this.messageDict[t];
		return e
	}, t.prototype.init = function() {
		return Promise.resolve()
	}, t.registerMessgae = function(t, e) {
		this.messageDict[t] = e
	}, t.getVirtualPath = function(t) {
		var e = /default./,
			i = "";
		if (Config.isBaiduGame) {
			console.log("getlocal - url:" + t);
			var n = this.getMessage(t);
			if (n) return n
		}
		return WebParams.cdn && "" != WebParams.cdn ? -1 != t.indexOf(Config.PRO_PATH) ? i = t : e.test(t) ? i = Config.getProResPath(
				t) : -1 != t.indexOf("pro/") ? (t = t.replace("pro/", ""), i = Config.getProResPath(t)) : i = t : i = t + Config.debugVersion,
			0 != Config.isRelease || !h5_engine.NetResourceManager.instance.isLoadedResource(i) && -1 == i.indexOf("/res/") ?
			i : (GameLog.logError("这个资源用CImage加载过了, 换成CImage处理", i), "")
	}, t.prototype.getVirtualUrl = function(e) {
		return t.getVirtualPath(e)
	}, t
}();
__reflect(GameVersionController.prototype, "GameVersionController", ["RES.VersionController", "RES.IVersionController"]);
